3 # LTTNG_CHECK_SDT_WORKS([ACTION-SUCCESS], [ACTION-FAILURE])
7 # Check whether it's possible to build a binary with Systemtap SDT probes.
9 # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
14 # Copyright (c) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
15 # Copyright (c) 2019 Michael Jeanson <mjeanson@efficios.com>
17 # Copying and distribution of this file, with or without modification, are
18 # permitted in any medium without royalty provided the copyright notice
19 # and this notice are preserved. This file is offered as-is, without any
24 AC_DEFUN([LTTNG_CHECK_SDT_WORKS], [
25 AC_CACHE_CHECK([whether SDT probes compile], [lttng_cv_sdt_works], [
28 #define SDT_USE_VARIADIC
32 STAP_PROBEV(provider,name,1,2,3,4,5,6,7,8,9,10);
36 lttng_cv_sdt_works=yes
41 AS_IF([test "x$lttng_cv_sdt_works" = "xyes"], [