Commit | Line | Data |
---|---|---|
b728d87e MD |
1 | #ifndef _LTTNG_TRACEPOINT_TYPES_H |
2 | #define _LTTNG_TRACEPOINT_TYPES_H | |
3 | ||
4 | /* | |
e92f3e28 | 5 | * Copyright 2011-2012 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
b728d87e | 6 | * |
e92f3e28 MD |
7 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
8 | * of this software and associated documentation files (the "Software"), to deal | |
9 | * in the Software without restriction, including without limitation the rights | |
10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
11 | * copies of the Software, and to permit persons to whom the Software is | |
12 | * furnished to do so, subject to the following conditions: | |
b728d87e | 13 | * |
e92f3e28 MD |
14 | * The above copyright notice and this permission notice shall be included in |
15 | * all copies or substantial portions of the Software. | |
b728d87e MD |
16 | */ |
17 | ||
18 | struct tracepoint_probe { | |
0264ec6c | 19 | void (*func)(void); |
23c8854a | 20 | void *data; |
b728d87e MD |
21 | }; |
22 | ||
2e707419 | 23 | #define TRACEPOINT_PADDING 16 |
b728d87e MD |
24 | struct tracepoint { |
25 | const char *name; | |
26 | int state; | |
27 | struct tracepoint_probe *probes; | |
628e1d81 | 28 | int *tracepoint_provider_ref; |
b4f3bc52 | 29 | const char *signature; |
2e707419 | 30 | char padding[TRACEPOINT_PADDING]; |
b728d87e MD |
31 | }; |
32 | ||
b728d87e | 33 | #endif /* _LTTNG_TRACEPOINT_TYPES_H */ |