Remove old (now unused) loglevel control code entirely
[lttng-ust.git] / tests / demo / ust_tests_demo3.h
CommitLineData
25c9a6e9
MD
1#undef TRACEPOINT_PROVIDER
2#define TRACEPOINT_PROVIDER ust_tests_demo3
3
4#if !defined(_TRACEPOINT_UST_TESTS_DEMO3_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
5#define _TRACEPOINT_UST_TESTS_DEMO3_H
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11/*
12 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
13 *
14 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
15 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
16 *
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.
22 */
23
24#include <lttng/tracepoint.h>
25
26TRACEPOINT_LOGLEVEL_ENUM(
27 tp_loglevel(test0, 0)
28 tp_loglevel(test1, 1)
29 tp_loglevel(test2, 2)
30)
31
32TRACEPOINT_EVENT(ust_tests_demo3, done,
33 TP_ARGS(int, value),
34 TP_FIELDS(
35 ctf_integer(int, value, value)
36 )
37)
df854e41 38TRACEPOINT_LOGLEVEL(ust_tests_demo3, done, test1)
25c9a6e9
MD
39
40#endif /* _TRACEPOINT_UST_TESTS_DEMO3_H */
41
42#undef TRACEPOINT_INCLUDE_FILE
43#define TRACEPOINT_INCLUDE_FILE ./ust_tests_demo3.h
44
45/* This part must be outside ifdef protection */
46#include <lttng/tracepoint-event.h>
47
48#ifdef __cplusplus
49}
50#endif
This page took 0.023813 seconds and 4 git commands to generate.