d58fa26847a7cedc032f80111688f6315c3afdea
2 * Copyright (C) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #undef TRACEPOINT_PROVIDER
9 #define TRACEPOINT_PROVIDER multi
11 #undef TRACEPOINT_INCLUDE
12 #define TRACEPOINT_INCLUDE "./probes.h"
14 #if !defined(PROBES_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
17 #include <lttng/tracepoint.h>
21 #if defined(ACTIVATE_PROBES_A)
22 TRACEPOINT_EVENT(multi
,
24 TP_ARGS(uint64_t, arg
),
25 TP_FIELDS(ctf_integer(uint64_t, arg_long_A
, arg
)))
26 #elif defined(ACTIVATE_PROBES_B)
27 TRACEPOINT_EVENT(multi
,
29 TP_ARGS(uint64_t, arg
),
30 TP_FIELDS(ctf_integer(uint64_t, arg_long_B
, arg
)
31 ctf_float(float, arg_float_B
, (float) arg
)))
32 #elif defined(ACTIVATE_PROBES_C)
33 TRACEPOINT_ENUM(multi
,
35 TP_ENUM_VALUES(ctf_enum_value("FIELD_A", 0) ctf_enum_value("FIELD_B", 1)
36 ctf_enum_range("RANGE_C", 2, 10)))
37 TRACEPOINT_EVENT(multi
,
39 TP_ARGS(uint64_t, arg
),
40 TP_FIELDS(ctf_unused(arg
) ctf_enum(multi
, enum_a
, int16_t, enum_short_C
, 0)
41 ctf_enum(multi
, enum_a
, int32_t, enum_int_C
, 1)
42 ctf_enum(multi
, enum_a
, uint64_t, enum_long_C
, 2)))
43 #elif defined(ACTIVATE_PROBES_D)
44 TRACEPOINT_ENUM(multi
,
46 TP_ENUM_VALUES(ctf_enum_value("FIELD_A", 0) ctf_enum_value("FIELD_B", 1)
47 ctf_enum_range("RANGE_C_PRIME", 2, 10)))
48 TRACEPOINT_EVENT(multi
,
50 TP_ARGS(uint64_t, arg
),
51 TP_FIELDS(ctf_unused(arg
) ctf_enum(multi
, enum_a
, int32_t, enum_int_D
, 1)
52 ctf_enum(multi
, enum_a
, int16_t, enum_short_D
, 0)
53 ctf_enum(multi
, enum_a
, uint64_t, enum_long_D
, 2)))
54 #elif defined(ACTIVATE_PROBES_E)
56 * Here we declare tracepoints really similar to one another but are different.
57 * This is meant to test tracepoint comparaison code.
59 TRACEPOINT_EVENT(multi
, tp
, TP_ARGS(uint64_t, arg
), TP_FIELDS(ctf_integer(uint64_t, arg_long
, arg
)))
60 #elif defined(ACTIVATE_PROBES_F)
61 TRACEPOINT_EVENT(multi
, tp
, TP_ARGS(uint64_t, arg
), TP_FIELDS(ctf_integer(int64_t, arg_long
, arg
)))
62 #elif defined(ACTIVATE_PROBES_G)
63 TRACEPOINT_EVENT(multi
,
65 TP_ARGS(uint64_t, arg
),
66 TP_FIELDS(ctf_integer_hex(int64_t, arg_long
, arg
)))
67 #elif defined(ACTIVATE_PROBES_H)
68 TRACEPOINT_EVENT(multi
,
70 TP_ARGS(uint64_t, arg
),
71 TP_FIELDS(ctf_integer_hex(int16_t, arg_long
, arg
)))
72 #elif defined(ACTIVATE_PROBES_I)
73 TRACEPOINT_EVENT(multi
,
75 TP_ARGS(uint64_t, arg
),
76 TP_FIELDS(ctf_integer_hex(int32_t, arg_long
, arg
)))
77 #elif defined(ACTIVATE_PROBES_J)
78 TRACEPOINT_EVENT(multi
,
80 TP_ARGS(uint64_t, arg
),
81 TP_FIELDS(ctf_float(float, arg_float
, (float) arg
)))
82 #elif defined(ACTIVATE_PROBES_K)
83 TRACEPOINT_EVENT(multi
,
85 TP_ARGS(uint64_t, arg
),
86 TP_FIELDS(ctf_float(double, arg_float
, (double) arg
)))
87 #elif defined(ACTIVATE_PROBES_L)
88 TRACEPOINT_ENUM(multi
,
90 TP_ENUM_VALUES(ctf_enum_value("FIELD_A", 0) ctf_enum_value("FIELD_B", 1)
91 ctf_enum_range("RANGE_C", 2, 10)))
92 TRACEPOINT_EVENT(multi
,
94 TP_ARGS(uint64_t, arg
),
95 TP_FIELDS(ctf_unused(arg
) ctf_enum(multi
, enum_a
, int32_t, enum_int
, 1)))
96 #elif defined(ACTIVATE_PROBES_M)
97 TRACEPOINT_ENUM(multi
,
99 TP_ENUM_VALUES(ctf_enum_value("FIELD_A", 0) ctf_enum_value("FIELD_B", 1)
100 ctf_enum_range("RANGE_C", 2, 10)))
101 TRACEPOINT_EVENT(multi
,
103 TP_ARGS(uint64_t, arg
),
104 TP_FIELDS(ctf_unused(arg
) ctf_enum(multi
, enum_a
, int64_t, enum_int
, 1)))
105 #elif defined(ACTIVATE_PROBES_N)
106 TRACEPOINT_ENUM(multi
,
108 TP_ENUM_VALUES(ctf_enum_value("FIELD_A", 0) ctf_enum_value("FIELD_B", 1)
109 ctf_enum_range("RANGE_C", 2, 10)))
110 TRACEPOINT_EVENT(multi
,
112 TP_ARGS(uint64_t, arg
),
113 TP_FIELDS(ctf_unused(arg
) ctf_enum(multi
, enum_a
, int16_t, enum_int
, 1)))
114 #elif defined(ACTIVATE_PROBES_O)
115 TRACEPOINT_EVENT(multi
,
117 TP_ARGS(uint64_t, arg
),
118 TP_FIELDS(ctf_unused(arg
) ctf_string(arg_string
, "string")))
119 #elif defined(ACTIVATE_PROBES_P)
120 TRACEPOINT_EVENT(multi
,
122 TP_ARGS(uint64_t, arg
),
123 TP_FIELDS(ctf_unused(arg
) ctf_string(my_arg_string
, "string")))
125 TRACEPOINT_EVENT(multi
, tp
, TP_ARGS(uint64_t, arg
), TP_FIELDS(ctf_unused(arg
)))
128 #endif /* PROBES_H */
130 #include <lttng/tracepoint-event.h>
This page took 0.032128 seconds and 3 git commands to generate.