projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build fix: workaround g++ 4.8 decltype handling bug
[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 dce6e577fef9b208c17b29cddfcf482f42f41320..6148d1c090d3abd298e514accf94292ff35dd4d4 100644
(file)
--- a/
doc/examples/trigger-condition-event-matches/instrumented-app.c
+++ b/
doc/examples/trigger-condition-event-matches/instrumented-app.c
@@
-8,12
+8,13
@@
#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 <unistd.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
-int main(
int argc, char **argv
)
+int main(
void
)
{
uint64_t i;
{
uint64_t i;
@@
-25,10
+26,10
@@
int main(int argc, char **argv)
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.034511 seconds
and
4
git commands to generate.