2 * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: MIT
8 #include "tracepoint-trigger-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_event\"\n",
31 time_str
, tv
.tv_usec
);
33 tracepoint(trigger_example
, my_event
, i
);
This page took 0.047623 seconds and 5 git commands to generate.