projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.clang-tidy: remove modernize-concat-nested-namespaces
[lttng-tools.git]
/
doc
/
examples
/
trigger-condition-event-matches
/
instrumented-app.c
diff --git
a/doc/examples/trigger-condition-event-matches/instrumented-app.c
b/doc/examples/trigger-condition-event-matches/instrumented-app.c
index 465b4a123c6646f497614fa16dfe4c17a06315d2..6148d1c090d3abd298e514accf94292ff35dd4d4 100644
(file)
--- a/
doc/examples/trigger-condition-event-matches/instrumented-app.c
+++ b/
doc/examples/trigger-condition-event-matches/instrumented-app.c
@@
-8,6
+8,7
@@
#include "tracepoint-trigger-example.h"
#include <lttng/tracepoint.h>
#include "tracepoint-trigger-example.h"
#include <lttng/tracepoint.h>
+
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
@@
-25,10
+26,10
@@
int main(void)
gettimeofday(&tv, NULL);
the_time = tv.tv_sec;
gettimeofday(&tv, NULL);
the_time = tv.tv_sec;
- strftime(time_str, sizeof(time_str), "[%m-%d-%Y] %T",
- localtime(&the_time));
+ strftime(time_str, sizeof(time_str), "[%m-%d-%Y] %T", localtime(&the_time));
printf("%s.%ld - Tracing event \"trigger_example:my_event\"\n",
printf("%s.%ld - Tracing event \"trigger_example:my_event\"\n",
- time_str, tv.tv_usec);
+ time_str,
+ tv.tv_usec);
tracepoint(trigger_example, my_event, i);
sleep(2);
tracepoint(trigger_example, my_event, i);
sleep(2);
This page took
0.02294 seconds
and
4
git commands to generate.