diff options
author | Alexander Færøy <ahf@torproject.org> | 2020-11-09 14:15:07 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2020-11-09 14:15:07 +0000 |
commit | faa96f9a8eb7e461b8affea04ce3882a2e6e0ddc (patch) | |
tree | 6df57ff832b8315faa58a4000a83a5d51d2e5320 /configure.ac | |
parent | 0702cf10db0ab0824d8d4d5df467fb15fc832f2e (diff) | |
parent | 486ddde2c4946d3e7da2c9b217e28c08b36931f5 (diff) | |
download | tor-faa96f9a8eb7e461b8affea04ce3882a2e6e0ddc.tar.gz tor-faa96f9a8eb7e461b8affea04ce3882a2e6e0ddc.zip |
Merge remote-tracking branch 'tor-gitlab/mr/193'
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 77b0e43207..5e16884f74 100644 --- a/configure.ac +++ b/configure.ac @@ -292,11 +292,25 @@ if test "x$enable_tracing_instrumentation_usdt" = "xyes"; then AC_CHECK_HEADERS([sys/sdt.h], [], [AC_MSG_ERROR([USDT instrumentation requires sys/sdt.h header. On Debian, apt install systemtap-sdt-dev])], []) - dnl LTTng generates USDT probes if the UST library was built with - dnl --with-sdt. There is unfortunately no way to check that so we always - dnl build the USDT probes even though LTTng instrumentation was requested. - AC_DEFINE([USE_TRACING_INSTRUMENTATION_USDT], [1], [Using USDT instrumentation]) - have_tracing=1 + AC_MSG_CHECKING([STAP_PROBEV()]) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + #define SDT_USE_VARIADIC + #include <sys/sdt.h> + void test(void) + { + STAP_PROBEV(p, n, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12); + } + ]])], [ + AC_MSG_RESULT([yes]) + dnl LTTng generates USDT probes if the UST library was built with + dnl --with-sdt. There is unfortunately no way to check that so we always + dnl build the USDT probes even though LTTng instrumentation was requested. + AC_DEFINE([USE_TRACING_INSTRUMENTATION_USDT], [1], [Using USDT instrumentation]) + have_tracing=1 + ], [ + AC_MSG_RESULT([no]) + AC_MSG_ERROR([USDT tracing support requires STAP_PROBEV()]) + ]) fi dnl Tracepoints event to debug logs. |