File: Tables.h

package info (click to toggle)
ltt 0.9.5pre6-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,256 kB
  • ctags: 1,630
  • sloc: ansic: 17,284; sh: 8,010; makefile: 252
file content (49 lines) | stat: -rw-r--r-- 1,277 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Tables.h
 *
 * Copyright (C) 1999 Karim Yaghmour.
 *
 * This is distributed under GPL.
 *
 * Tables for data for the trace toolkit.
 *
 * History : 
 *    K.Y., 29/10/1999, Initial typing.
 */

#ifndef __TRACE_TOOLKIT_TABLES__
#define __TRACE_TOOLKIT_TABLES__

#include <EventDB.h>

/* Number of events defined */
extern int MaxEventID;

/* Event structure sizes */
extern int**   EventStructSize;
#define EVENT_STRUCT_SIZE(X)  ((int) (EventStructSize[X]))

/* Event description strings */
extern char* (*EventString)
               (db*    /* Event database */,
                int    /* Event ID */,
                event* /* Event */);
#define EVENT_STR(DB, ID, EVENT)  (*EventString)(DB, ID, EVENT)

/* Event strings the user can specify at the command line to omit or trace */
extern char** EventOT;
#define EVENT_OT(X)  ((char*) (EventOT[X]))

/* System call name according to it's ID */
extern char* (*SyscallString)
               (db*   /* Event database */,
		int   /* Syscall ID */);
#define SYSCALL_STR(DB, ID) (*SyscallString)(DB, ID)

/* Trap according to it's ID */
extern char* (*TrapString)
               (db*      /* Event database */,
		uint64_t /* Syscall ID */);
#define TRAP_STR(DB, ID) (*TrapString)(DB, ID)

#endif /* __TRACE_TOOLKIT_TABLES__ */