projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng_ust_init_thread: initialise cached context values
[lttng-ust.git]
/
tests
/
benchmark
/
bench.c
diff --git
a/tests/benchmark/bench.c
b/tests/benchmark/bench.c
index 166dc910b426c24fda47af5f1c49a7649eeb6904..fcd373ad973ac1edc3d8a8806b6a762a43f2442c 100644
(file)
--- a/
tests/benchmark/bench.c
+++ b/
tests/benchmark/bench.c
@@
-16,7
+16,7
@@
#include <urcu/compiler.h>
#ifdef TRACING
#include <urcu/compiler.h>
#ifdef TRACING
-#define TRACEPOINT_DEFINE
+#define
LTTNG_UST_
TRACEPOINT_DEFINE
#include "ust_tests_benchmark.h"
#endif
#include "ust_tests_benchmark.h"
#endif
@@
-37,6
+37,7
@@
static unsigned long duration;
static volatile int test_go, test_stop;
static volatile int test_go, test_stop;
+static
void do_stuff(void)
{
int i;
void do_stuff(void)
{
int i;
@@
-47,11
+48,13
@@
void do_stuff(void)
for (i = 0; i < 100; i++)
cmm_barrier();
#ifdef TRACING
for (i = 0; i < 100; i++)
cmm_barrier();
#ifdef TRACING
- tracepoint(ust_tests_benchmark, tpbench, v);
+
lttng_ust_
tracepoint(ust_tests_benchmark, tpbench, v);
#endif
}
#endif
}
-void *function(void *arg)
+
+static
+void *function(void *arg __attribute__((unused)))
{
unsigned long long nr_loops = 0;
struct thread_counter *thread_counter = arg;
{
unsigned long long nr_loops = 0;
struct thread_counter *thread_counter = arg;
@@
-69,6
+72,7
@@
void *function(void *arg)
return NULL;
}
return NULL;
}
+static
void usage(char **argv) {
printf("Usage: %s nr_threads duration(s) <OPTIONS>\n", argv[0]);
printf("OPTIONS:\n");
void usage(char **argv) {
printf("Usage: %s nr_threads duration(s) <OPTIONS>\n", argv[0]);
printf("OPTIONS:\n");
This page took
0.024297 seconds
and
4
git commands to generate.