Fix: syscall event rule: emission sites not compared in is_equal
[lttng-tools.git] / tests / utils / testapp / gen-ust-events / tp.h
CommitLineData
9d16b343
MJ
1/*
2 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
7e0cc23b
CB
8#undef TRACEPOINT_PROVIDER
9#define TRACEPOINT_PROVIDER tp
10
11#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
12#define _TRACEPOINT_TP_H
13
7e0cc23b 14#include <lttng/tracepoint.h>
28f23191 15
6f9f5cd0
JR
16#include <stdint.h>
17
28f23191
JG
18TRACEPOINT_ENUM(tp,
19 tptest_enum,
20 TP_ENUM_VALUES(ctf_enum_auto("AUTO: EXPECT 0") ctf_enum_value("VALUE: 23", 23)
21 ctf_enum_value("VALUE: 27",
22 27) ctf_enum_auto("AUTO: EXPECT 28")
23 ctf_enum_range("RANGE: 101 TO 303", 101, 303)
24 ctf_enum_auto("AUTO: EXPECT 304")
25 ctf_enum_value("VALUE: -1", -1)))
7e0cc23b 26
28f23191
JG
27TRACEPOINT_EVENT(
28 tp,
29 tptest,
30 TP_ARGS(int,
31 anint,
32 int,
33 netint,
34 long *,
35 values,
36 char *,
37 text,
38 size_t,
39 textlen,
40 char *,
41 etext,
42 uint32_t *,
43 net_values,
44 double,
45 doublearg,
46 float,
47 floatarg),
7e0cc23b 48 TP_FIELDS(
28f23191
JG
49 ctf_integer(int, intfield, anint) ctf_integer_hex(int, intfield2, anint) ctf_integer(
50 long, longfield, anint) ctf_integer(int,
51 signedfield,
52 -1) ctf_integer_network(int,
53 netintfield,
54 netint)
55 ctf_integer_network_hex(int, netintfieldhex, netint) ctf_array(
56 long,
57 arrfield1,
58 values,
59 3) ctf_array_text(char,
60 arrfield2,
61 text,
62 10) ctf_array_network(uint32_t,
63 arrfield3,
64 net_values,
65 3) ctf_sequence(char,
66 seqfield1,
67 text,
68 size_t,
69 textlen)
70 ctf_sequence_text(char,
71 seqfield2,
72 text,
73 size_t,
74 textlen) ctf_sequence_network(uint32_t,
75 seqfield3,
76 net_values,
77 size_t,
78 3)
79 ctf_sequence(long, seqfield4, values, size_t, 3) ctf_string(
80 stringfield,
81 text) ctf_string(stringfield2,
82 etext) ctf_float(float,
83 floatfield,
84 floatarg)
85 ctf_float(double, doublefield, doublearg) ctf_enum(
86 tp,
87 tptest_enum,
88 int,
89 enum0,
90 0) ctf_enum(tp,
91 tptest_enum,
92 int,
93 enum23,
94 23) ctf_enum(tp,
95 tptest_enum,
96 int,
97 enum27,
98 27)
99 ctf_enum(tp, tptest_enum, int, enum28, 28)
100 ctf_enum(tp,
101 tptest_enum,
102 int,
103 enum202,
104 202) ctf_enum(tp,
105 tptest_enum,
106 int,
107 enum304,
108 304)
109 ctf_enum(tp,
110 tptest_enum,
111 int,
112 enumnegative,
113 -1)))
7e0cc23b 114
28f23191 115TRACEPOINT_EVENT(tp, end, TP_ARGS(), TP_FIELDS())
6ffce1f5 116
7e0cc23b
CB
117#endif /* _TRACEPOINT_TP_H */
118
59eb182b
MD
119#undef TRACEPOINT_INCLUDE
120#define TRACEPOINT_INCLUDE "./tp.h"
7e0cc23b
CB
121
122/* This part must be outside ifdef protection */
123#include <lttng/tracepoint-event.h>
This page took 0.06347 seconds and 5 git commands to generate.