From: David Goulet Date: Thu, 1 Sep 2011 18:06:24 +0000 (-0400) Subject: Merge branch 'master' into benchmark X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=aebe93ee270d76a16e324c24d91b76d8ad22dd4b;p=lttng-tools.git Merge branch 'master' into benchmark Signed-off-by: David Goulet --- aebe93ee270d76a16e324c24d91b76d8ad22dd4b diff --cc configure.ac index 8a1c162b6,f30b8329d..c1bff453f --- a/configure.ac +++ b/configure.ac @@@ -22,20 -25,17 +25,22 @@@ AC_CHECK_LIB([popt], [poptGetContext], [AC_MSG_ERROR([Cannot find libpopt. Use [LDFLAGS]=-Ldir to specify its location.])] ) - # Check liburcu list.h + # Check liburcu list.h, wfqueue.h, futex.h AC_CHECK_DECL([cds_list_add], [], - [AC_MSG_ERROR([liburcu 0.5.4 or newer is needed])], [[#include ]] + [AC_MSG_ERROR([liburcu $liburcu_version or newer is needed])], [[#include ]] ) - <<<<<<< HEAD +# Check liburcu +AC_CHECK_DECL([caa_get_cycles], [], - [AC_MSG_ERROR([liburcu 0.5.4 or newer is needed])], [[#include ]] - ======= - # Check liburcu wfqueue.h ++ [AC_MSG_ERROR([liburcu liburcu_version or newer is needed])], [[#include ]] ++) ++ AC_CHECK_DECL([cds_wfq_init], [], - [AC_MSG_ERROR([liburcu 0.5.4 or newer is needed])], [[#include ]] - >>>>>>> master + [AC_MSG_ERROR([liburcu $liburcu_version or newer is needed])], [[#include ]] + ) + + AC_CHECK_DECL([futex_async], [], + [AC_MSG_ERROR([liburcu $liburcu_version or newer is needed])], [[#include ]] ) AC_PROG_CC diff --cc ltt-sessiond/main.c index 631812cae,85ac06be9..aa44351ca --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@@ -48,10 -52,8 +52,10 @@@ #include "traceable-app.h" #include "ust-ctl.h" #include "utils.h" - #include "ust-comm.h" + #include "ust-ctl.h" +#include "benchmark.h" + /* Const values */ const char default_home_dir[] = DEFAULT_HOME_DIR; const char default_tracing_group[] = LTTNG_DEFAULT_TRACING_GROUP; @@@ -254,16 -293,10 +295,18 @@@ static void cleanup(void DBG("Closing kernel fd"); close(kernel_tracer_fd); - DBG("Unloading kernel modules"); - modprobe_remove_kernel_modules(); + if (is_root) { + DBG("Unloading kernel modules"); + modprobe_remove_kernel_modules(); + } + + /* OUTPUT BENCHMARK RESULTS */ + bench_init(); + + bench_print_boot_process(); + + bench_close(); + /* END BENCHMARK */ } /*