41708d2aaf1bd6325a1a7fa9849ae9e5503361c1
6 #if defined(WITH_LTTNG_UST)
7 #include "barectf-tracepoint-lttng-ust.h"
9 #include "barectf-tracepoint-linux-fs.h"
20 static void trace_stuff(int argc
, char *argv
[])
25 /* record 40000 events */
26 for (i
= 0; i
< 5000; ++i
) {
27 tracepoint(barectf_tp
, simple_uint32
, i
* 1500);
28 tracepoint(barectf_tp
, simple_int16
, -i
* 2);
29 tracepoint(barectf_tp
, simple_float
, (float) i
/ 1.23);
37 tracepoint(barectf_tp
, simple_string
, str
);
38 tracepoint(barectf_tp
, simple_enum
, RUNNING
);
39 tracepoint(barectf_tp
, a_few_fields
, -1, 301, -3.14159,
41 tracepoint(barectf_tp
, bit_packed_integers
, 1, -1, 3,
42 -2, 2, 7, 23, -55, 232);
43 tracepoint(barectf_tp
, simple_enum
, TERMINATED
);
47 int main(int argc
, char *argv
[])
50 trace_stuff(argc
, argv
);
This page took 0.02954 seconds and 3 git commands to generate.