#include <urcu/compiler.h>
#ifdef TRACING
-#define TRACEPOINT_DEFINE
+#define LTTNG_UST_TRACEPOINT_DEFINE
#include "ust_tests_benchmark.h"
#endif
static volatile int test_go, test_stop;
+static
void do_stuff(void)
{
int i;
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
}
-void *function(void *arg)
+
+static
+void *function(void *arg __attribute__((unused)))
{
unsigned long long nr_loops = 0;
struct thread_counter *thread_counter = arg;
return NULL;
}
+static
void usage(char **argv) {
printf("Usage: %s nr_threads duration(s) <OPTIONS>\n", argv[0]);
printf("OPTIONS:\n");