2 * Copyright (C) 2021 Francis Deslauriers <francis.deslauriers@efficios.com>
4 * SPDX-License-Identifier: MIT
8 #include "tracepoint-incr-value-example.h"
10 #include <lttng/tracepoint.h>
16 int main(int argc
, char **argv
)
20 for (i
= 0; i
< UINT64_MAX
; i
++) {
25 gettimeofday(&tv
, NULL
);
28 strftime(time_str
, sizeof(time_str
), "[%m-%d-%Y] %T",
29 localtime(&the_time
));
30 printf("%s.%ld - Tracing event \"trigger_example:my_event1\"\n",
31 time_str
, tv
.tv_usec
);
33 tracepoint(incr_value_ex
, event1
, i
);
35 tracepoint(incr_value_ex
, event2
, i
);
39 tracepoint(incr_value_ex
, event3
, i
);
This page took 0.030217 seconds and 5 git commands to generate.