-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
noinst_LTLIBRARIES = liblttng-benchmark.la
noinst_PROGRAMS = bench_sessions
UTILS=utils.h
-SESSIONS=$(top_srcdir)/lttng-sessiond/session.c
+SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.c
liblttng_benchmark_la_SOURCES = benchmark.c benchmark.h cpu.c cpu.h
bench_sessions_SOURCES = bench-sessions.c $(SESSIONS) $(UTILS)
-bench_sessions_LDADD = $(top_builddir)/benchmark/liblttng-benchmark.la
+bench_sessions_LDADD = $(top_builddir)/benchmark/liblttng-benchmark.la \
+ $(top_builddir)/src/common/libcommon.la
bench:
./runall.sh
#include <unistd.h>
#include <time.h>
-#include "lttng-sessiond/session.h"
+#include <bin/lttng-sessiond/session.h>
#include "utils.h"
#include "benchmark.h"
names[i] = get_random_string();
ret = system("echo 3 >/proc/sys/vm/drop_caches");
tracepoint(create_session_start);
- ret = session_create(names[i], PATH1);
+ ret = session_create(names[i], PATH1, getuid(), getgid());
tracepoint(create_session_end);
if (ret < 0) {
printf("Create session went wrong. Aborting\n");