File: example_ev_codes.h

package info (click to toggle)
eztrace-contrib 1.0.5-3
  • links: PTS, VCS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd
  • size: 4,744 kB
  • ctags: 4,106
  • sloc: ansic: 24,805; sh: 11,403; perl: 1,107; makefile: 851; f90: 295; python: 57; fortran: 38
file content (36 lines) | stat: -rw-r--r-- 1,229 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* -*- c-file-style: "GNU" -*- */
/*
 * Copyright (C) CNRS, INRIA, Université Bordeaux 1, Télécom SudParis
 * See COPYING in top-level directory.
 */

#ifndef __EXAMPLE_EV_CODES_H__
#define __EXAMPLE_EV_CODES_H__

/* This file defines the event codes that are used by the example
 * module.
 */
#include "ev_codes.h"

/* Event codes prefix. This identifies the module and thus should be
 * unique.
 * The 0x0? prefix is reserved for eztrace internal use. Thus you can
 * use any prefix between 0x10 and 0xff.
 */
#define EXAMPLE_EVENTS_ID    USER_MODULE_ID(0x11)
#define EXAMPLE_PREFIX       (EXAMPLE_EVENTS_ID << NB_BITS_EVENTS)

/* Define various event codes used by the example module
 * The 2 most significant bytes should correspond to the module id,
 * as below:
 */
#define EZTRACE_EXAMPLE_FUNCTION1_ENTRY  (EXAMPLE_PREFIX | 0x0001)
#define EZTRACE_EXAMPLE_FUNCTION1_EXIT   (EXAMPLE_PREFIX | 0x0002)

#define EZTRACE_EXAMPLE_FUNCTION2_ENTRY  (EXAMPLE_PREFIX | 0x0011)
#define EZTRACE_EXAMPLE_FUNCTION2_EXIT   (EXAMPLE_PREFIX | 0x0012)

#define EZTRACE_STATIC_EXAMPLE_FUNCTION_ENTRY  (EXAMPLE_PREFIX | 0x0101)
#define EZTRACE_STATIC_EXAMPLE_FUNCTION_EXIT   (EXAMPLE_PREFIX | 0x0102)

#endif	/* __EXAMPLE_EV_CODES_H__ */