2 * Copyright (C) - 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by the
6 * Free Software Foundation; version 2.1 of the License.
8 * This library is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, write to the Free Software Foundation,
15 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #undef TRACEPOINT_PROVIDER
19 #define TRACEPOINT_PROVIDER multi
21 #undef TRACEPOINT_INCLUDE
22 #define TRACEPOINT_INCLUDE "./probes.h"
24 #if !defined(PROBES_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
27 #include <lttng/tracepoint.h>
30 #if defined(ACTIVATE_PROBES_A)
31 TRACEPOINT_EVENT(multi
, tp
,
32 TP_ARGS(uint64_t, arg
),
34 ctf_integer(uint64_t, arg_long_A
, arg
)
37 #elif defined(ACTIVATE_PROBES_B)
38 TRACEPOINT_EVENT(multi
, tp
,
39 TP_ARGS(uint64_t, arg
),
41 ctf_integer(uint64_t, arg_long_B
, arg
)
42 ctf_float(float, arg_float_B
, (float) arg
)
45 #elif defined(ACTIVATE_PROBES_C)
46 TRACEPOINT_ENUM(multi
, enum_a
,
48 ctf_enum_value("FIELD_A", 0)
49 ctf_enum_value("FIELD_B", 1)
50 ctf_enum_range("RANGE_C", 2, 10)
53 TRACEPOINT_EVENT(multi
, tp
,
54 TP_ARGS(uint64_t, arg
),
56 ctf_enum(multi
, enum_a
, int16_t, enum_short_C
, 0)
57 ctf_enum(multi
, enum_a
, int32_t, enum_int_C
, 1)
58 ctf_enum(multi
, enum_a
, uint64_t, enum_long_C
, 2)
61 #elif defined(ACTIVATE_PROBES_D)
62 TRACEPOINT_ENUM(multi
, enum_a
,
64 ctf_enum_value("FIELD_A", 0)
65 ctf_enum_value("FIELD_B", 1)
66 ctf_enum_range("RANGE_C_PRIME", 2, 10)
69 TRACEPOINT_EVENT(multi
, tp
,
70 TP_ARGS(uint64_t, arg
),
72 ctf_enum(multi
, enum_a
, int32_t, enum_int_D
, 1)
73 ctf_enum(multi
, enum_a
, int16_t, enum_short_D
, 0)
74 ctf_enum(multi
, enum_a
, uint64_t, enum_long_D
, 2)
77 #elif defined(ACTIVATE_PROBES_E)
79 * Here we declare tracepoints really similar to one another but are different.
80 * This is meant to test tracepoint comparaison code.
82 TRACEPOINT_EVENT(multi
, tp
,
83 TP_ARGS(uint64_t, arg
),
85 ctf_integer(uint64_t, arg_long
, arg
)
88 #elif defined(ACTIVATE_PROBES_F)
89 TRACEPOINT_EVENT(multi
, tp
,
90 TP_ARGS(uint64_t, arg
),
92 ctf_integer(int64_t, arg_long
, arg
)
95 #elif defined(ACTIVATE_PROBES_G)
96 TRACEPOINT_EVENT(multi
, tp
,
97 TP_ARGS(uint64_t, arg
),
99 ctf_integer_hex(int64_t, arg_long
, arg
)
102 #elif defined(ACTIVATE_PROBES_H)
103 TRACEPOINT_EVENT(multi
, tp
,
104 TP_ARGS(uint64_t, arg
),
106 ctf_integer_hex(int16_t, arg_long
, arg
)
109 #elif defined(ACTIVATE_PROBES_I)
110 TRACEPOINT_EVENT(multi
, tp
,
111 TP_ARGS(uint64_t, arg
),
113 ctf_integer_hex(int32_t, arg_long
, arg
)
116 #elif defined(ACTIVATE_PROBES_J)
117 TRACEPOINT_EVENT(multi
, tp
,
118 TP_ARGS(uint64_t, arg
),
120 ctf_float(float, arg_float
, (float) arg
)
123 #elif defined(ACTIVATE_PROBES_K)
124 TRACEPOINT_EVENT(multi
, tp
,
125 TP_ARGS(uint64_t, arg
),
127 ctf_float(double, arg_float
, (double) arg
)
130 #elif defined(ACTIVATE_PROBES_L)
131 TRACEPOINT_ENUM(multi
, enum_a
,
133 ctf_enum_value("FIELD_A", 0)
134 ctf_enum_value("FIELD_B", 1)
135 ctf_enum_range("RANGE_C", 2, 10)
138 TRACEPOINT_EVENT(multi
, tp
,
139 TP_ARGS(uint64_t, arg
),
141 ctf_enum(multi
, enum_a
, int32_t, enum_int
, 1)
144 #elif defined(ACTIVATE_PROBES_M)
145 TRACEPOINT_ENUM(multi
, enum_a
,
147 ctf_enum_value("FIELD_A", 0)
148 ctf_enum_value("FIELD_B", 1)
149 ctf_enum_range("RANGE_C", 2, 10)
152 TRACEPOINT_EVENT(multi
, tp
,
153 TP_ARGS(uint64_t, arg
),
155 ctf_enum(multi
, enum_a
, int64_t, enum_int
, 1)
158 #elif defined(ACTIVATE_PROBES_N)
159 TRACEPOINT_ENUM(multi
, enum_a
,
161 ctf_enum_value("FIELD_A", 0)
162 ctf_enum_value("FIELD_B", 1)
163 ctf_enum_range("RANGE_C", 2, 10)
166 TRACEPOINT_EVENT(multi
, tp
,
167 TP_ARGS(uint64_t, arg
),
169 ctf_enum(multi
, enum_a
, int16_t, enum_int
, 1)
172 #elif defined(ACTIVATE_PROBES_O)
173 TRACEPOINT_EVENT(multi
, tp
,
174 TP_ARGS(uint64_t, arg
),
176 ctf_string(arg_string
, "string")
179 #elif defined(ACTIVATE_PROBES_P)
180 TRACEPOINT_EVENT(multi
, tp
,
181 TP_ARGS(uint64_t, arg
),
183 ctf_string(my_arg_string
, "string")
187 TRACEPOINT_EVENT(multi
, tp
,
188 TP_ARGS(uint64_t, arg
),
194 #endif /* PROBES_H */
196 #include <lttng/tracepoint-event.h>
This page took 0.032504 seconds and 4 git commands to generate.