Commit | Line | Data |
---|---|---|
51489cad MD |
1 | #ifndef _LTTNG_TRACEPOINT_TYPES_H |
2 | #define _LTTNG_TRACEPOINT_TYPES_H | |
3 | ||
4 | /* | |
5 | * Copyright (C) 2008-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
6 | * Copyright (C) 2009 Pierre-Marc Fournier | |
7 | * Copyright (C) 2009 Steven Rostedt <rostedt@goodmis.org> | |
8 | * | |
9 | * This library is free software; you can redistribute it and/or | |
10 | * modify it under the terms of the GNU Lesser General Public | |
11 | * License as published by the Free Software Foundation; | |
12 | * version 2.1 of the License. | |
13 | * | |
14 | * This library is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 | * Lesser General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU Lesser General Public | |
20 | * License along with this library; if not, write to the Free Software | |
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
22 | * | |
23 | * Heavily inspired from the Linux Kernel Markers. | |
24 | */ | |
25 | ||
26 | #ifdef __cplusplus | |
27 | extern "C" { | |
28 | #endif | |
29 | ||
30 | struct tracepoint_probe { | |
31 | void *func; | |
32 | void *data; | |
33 | }; | |
34 | ||
35 | struct tracepoint { | |
36 | const char *name; /* Tracepoint name */ | |
37 | char state; /* State. */ | |
38 | struct tracepoint_probe *probes; | |
39 | }; | |
40 | ||
41 | #ifdef __cplusplus | |
42 | } | |
43 | #endif | |
44 | ||
45 | #endif /* _LTTNG_TRACEPOINT_TYPES_H */ |