Commit | Line | Data |
---|---|---|
b728d87e MD |
1 | #ifndef _LTTNG_TRACEPOINT_TYPES_H |
2 | #define _LTTNG_TRACEPOINT_TYPES_H | |
3 | ||
4 | /* | |
5 | * Copyright (c) 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
6 | * | |
7 | * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED | |
8 | * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. | |
9 | * | |
10 | * Permission is hereby granted to use or copy this program | |
11 | * for any purpose, provided the above notices are retained on all copies. | |
12 | * Permission to modify the code and to distribute modified code is granted, | |
13 | * provided the above notices are retained, and a notice that the code was | |
14 | * modified is included with the above copyright notice. | |
15 | */ | |
16 | ||
17 | struct tracepoint_probe { | |
18 | void *callback; | |
19 | void *priv; | |
20 | }; | |
21 | ||
22 | struct tracepoint { | |
23 | const char *name; | |
24 | int state; | |
25 | struct tracepoint_probe *probes; | |
26 | }; | |
27 | ||
28 | struct tracepoint_lib { | |
29 | struct cds_list_head list; | |
30 | struct tracepoint tracepoints_start; | |
31 | int tracepoints_count; | |
32 | }; | |
33 | ||
34 | #endif /* _LTTNG_TRACEPOINT_TYPES_H */ |