projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namespace enum lttng_ust_bytecode_interpreter_ret flags with lttng_ust_ prefix
[lttng-ust.git]
/
tests
/
benchmark
/
bench.c
diff --git
a/tests/benchmark/bench.c
b/tests/benchmark/bench.c
index 4e9c355126cb07eab69b62003d64f03afbd29c91..1626fd2beeb7998db7a9d755cd942570689a1faf 100644
(file)
--- a/
tests/benchmark/bench.c
+++ b/
tests/benchmark/bench.c
@@
-1,18
+1,23
@@
/*
/*
- * bench.c
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
+ * Copyright 2010 Douglas Santos <douglas.santos@polymtl.ca>
*
* LTTng Userspace Tracer (UST) - benchmark tool
*/
*
* LTTng Userspace Tracer (UST) - benchmark tool
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <unistd.h>
#include <sched.h>
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <unistd.h>
#include <sched.h>
-#include <ust/marker.h>
#include <time.h>
#include <time.h>
+#ifdef TRACING
+#define TRACEPOINT_DEFINE
+#include "ust_tests_benchmark.h"
+#endif
+
static int nr_cpus;
static unsigned long nr_events;
static int nr_cpus;
static unsigned long nr_events;
@@
-28,8
+33,8
@@
void do_stuff(void)
fclose(file);
time(NULL);
fclose(file);
time(NULL);
-#ifdef
MARKER
- trace
_mark(event, "event %d"
, v);
+#ifdef
TRACING
+ trace
point(ust_tests_benchmark, tpbench
, v);
#endif
}
#endif
}
This page took
0.028063 seconds
and
4
git commands to generate.