Commit | Line | Data |
---|---|---|
580d134b MD |
1 | #undef TRACEPOINT_PROVIDER |
2 | #define TRACEPOINT_PROVIDER ust_tests_demo | |
3 | ||
4 | #if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ) | |
5 | #define _TRACEPOINT_UST_TESTS_DEMO_H | |
6 | ||
7 | #ifdef __cplusplus | |
8 | extern "C" { | |
9 | #endif | |
10 | ||
11 | /* | |
12 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
13 | * | |
49276e52 MD |
14 | * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED |
15 | * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. | |
580d134b | 16 | * |
49276e52 MD |
17 | * Permission is hereby granted to use or copy this program |
18 | * for any purpose, provided the above notices are retained on all copies. | |
19 | * Permission to modify the code and to distribute modified code is granted, | |
20 | * provided the above notices are retained, and a notice that the code was | |
21 | * modified is included with the above copyright notice. | |
580d134b MD |
22 | */ |
23 | ||
24 | #include <lttng/tracepoint.h> | |
25 | ||
05ceaafd | 26 | TRACEPOINT_LOGLEVEL_ENUM( |
8e90eb06 MD |
27 | tp_loglevel(critical, 0) |
28 | tp_loglevel(warning, 1) | |
29 | tp_loglevel(debug, 2) | |
05ceaafd MD |
30 | ) |
31 | ||
580d134b MD |
32 | TRACEPOINT_EVENT(ust_tests_demo, starting, |
33 | TP_ARGS(int, value), | |
34 | TP_FIELDS( | |
35 | ctf_integer(int, value, value) | |
36 | ) | |
37 | ) | |
05ceaafd | 38 | TRACEPOINT_LOGLEVEL(ust_tests_demo, starting, critical) |
580d134b MD |
39 | |
40 | TRACEPOINT_EVENT(ust_tests_demo, done, | |
41 | TP_ARGS(int, value), | |
42 | TP_FIELDS( | |
43 | ctf_integer(int, value, value) | |
44 | ) | |
45 | ) | |
05ceaafd | 46 | TRACEPOINT_LOGLEVEL(ust_tests_demo, done, critical) |
580d134b MD |
47 | |
48 | #endif /* _TRACEPOINT_UST_TESTS_DEMO_H */ | |
49 | ||
580d134b | 50 | #undef TRACEPOINT_INCLUDE_FILE |
8511626a | 51 | #define TRACEPOINT_INCLUDE_FILE ./ust_tests_demo.h |
580d134b MD |
52 | |
53 | /* This part must be outside ifdef protection */ | |
54 | #include <lttng/tracepoint-event.h> | |
55 | ||
56 | #ifdef __cplusplus | |
57 | } | |
58 | #endif |