Tracepoint probes don't need extern C
[lttng-tools.git] / tests / regression / ust / multi-session / ust_gen_nevents.h
CommitLineData
00eb21af
DG
1#undef TRACEPOINT_PROVIDER
2#define TRACEPOINT_PROVIDER ust_gen_nevents
3
4#if !defined(_TRACEPOINT_UST_GEN_NEVENTS_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
5#define _TRACEPOINT_UST_GEN_NEVENTS_H
6
00eb21af
DG
7/*
8 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 *
10 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
11 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
12 *
13 * Permission is hereby granted to use or copy this program
14 * for any purpose, provided the above notices are retained on all copies.
15 * Permission to modify the code and to distribute modified code is granted,
16 * provided the above notices are retained, and a notice that the code was
17 * modified is included with the above copyright notice.
18 */
19
20#include <lttng/tracepoint.h>
21
22TRACEPOINT_EVENT(ust_gen_nevents, tptest0,
23 TP_ARGS(int, anint, long, value),
24 TP_FIELDS(
25 ctf_integer(int, intfield, anint)
26 ctf_integer(long, longfield, value)
27 )
28)
29
30TRACEPOINT_EVENT(ust_gen_nevents, tptest1,
31 TP_ARGS(int, anint, long, value),
32 TP_FIELDS(
33 ctf_integer(int, intfield, anint)
34 ctf_integer(long, longfield, value)
35 )
36)
37
38TRACEPOINT_EVENT(ust_gen_nevents, tptest2,
39 TP_ARGS(int, anint, long, value),
40 TP_FIELDS(
41 ctf_integer(int, intfield, anint)
42 ctf_integer(long, longfield, value)
43 )
44)
45
46TRACEPOINT_EVENT(ust_gen_nevents, tptest3,
47 TP_ARGS(int, anint, long, value),
48 TP_FIELDS(
49 ctf_integer(int, intfield, anint)
50 ctf_integer(long, longfield, value)
51 )
52)
53
54#endif /* _TRACEPOINT_UST_GEN_NEVENTS_H */
55
56#undef TRACEPOINT_INCLUDE_FILE
57#define TRACEPOINT_INCLUDE_FILE ./ust_gen_nevents.h
58
59/* This part must be outside ifdef protection */
60#include <lttng/tracepoint-event.h>
This page took 0.028385 seconds and 4 git commands to generate.