6 #if defined(WITH_LTTNG_UST)
7 #include "barectf-tracepoint-lttng-ust.h"
8 #elif defined(WITH_QEMU_ARM_UART)
9 #include "barectf-tracepoint-qemu-arm-uart.h"
11 #include "barectf-tracepoint-linux-fs.h"
22 static void trace_stuff(int argc
, char *argv
[])
27 /* record 40000 events */
28 for (i
= 0; i
< 5000; ++i
) {
30 tracepoint(barectf_tp
, simple_uint32
, i
* 1500);
31 tracepoint(barectf_tp
, simple_int16
, -i
* 2);
32 tracepoint(barectf_tp
, simple_float
, (float) i
/ 1.23);
33 tracepoint(barectf_tp
, simple_string
, str
);
34 tracepoint(barectf_tp
, simple_enum
, RUNNING
);
35 tracepoint(barectf_tp
, a_few_fields
, -1, 301, -3.14159,
37 tracepoint(barectf_tp
, bit_packed_integers
, 1, -1, 3,
38 -2, 2, 7, 23, -55, 232);
39 tracepoint(barectf_tp
, simple_enum
, TERMINATED
);
45 static char *strings
[] = {
53 int main(int argc
, char *argv
[])
58 /* use static strings if there's nothing interesting in argv */
63 trace_stuff(argc
, argv
);
This page took 0.03217 seconds and 4 git commands to generate.