File: main_ev_codes.h

package info (click to toggle)
eztrace 2.0%2Brepack-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,132 kB
  • sloc: ansic: 23,501; perl: 910; sh: 857; cpp: 771; makefile: 696; fortran: 327; f90: 320; python: 57
file content (32 lines) | stat: -rw-r--r-- 973 bytes parent folder | download | duplicates (6)
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
/*
 * Copyright (C) CNRS, INRIA, Université Bordeaux 1, Télécom SudParis
 * See COPYING in top-level directory.
 */

#ifndef __main_EV_CODES_H__
#define __main_EV_CODES_H__

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

/* 7-bits 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 0x80 and 0xff.
 */
#define main_EVENTS_ID    USER_MODULE_ID(0x99)
#define main_PREFIX       (main_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_lib_function_1 (main_PREFIX | 0x1)
#define EZTRACE_lib_function_2 (main_PREFIX | 0x2)
#define EZTRACE_bin_function_1 (main_PREFIX | 0x3)
#define EZTRACE_bin_function_2 (main_PREFIX | 0x4)


#endif	/* __main_EV_CODES_H__ */