aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/build/feature/test-all.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2016-07-12 19:05:56 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-13 23:09:09 -0300
commite26e63be64a108c1fd12020b93b5b447ffe0532b (patch)
tree456d74dd1e29ca602315eaa9a77460146c7e4f96 /tools/build/feature/test-all.c
parentperf probe: Support a special SDT probe format (diff)
downloadwireguard-linux-e26e63be64a108c1fd12020b93b5b447ffe0532b.tar.xz
wireguard-linux-e26e63be64a108c1fd12020b93b5b447ffe0532b.zip
perf build: Add sdt feature detection
This checks whether sys/sdt.h is available or not, which is required for DTRACE_PROBE(). We can disable this feature by passing NO_SDT=1 when building. This flag will be used for SDT test case and further SDT events in perftools. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com> Cc: Brendan Gregg <brendan.d.gregg@gmail.com> Cc: Hemant Kumar <hemant@linux.vnet.ibm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/146831795615.17065.17513820540591053933.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/build/feature/test-all.c')
-rw-r--r--tools/build/feature/test-all.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/build/feature/test-all.c b/tools/build/feature/test-all.c
index 843aed024a3a..699e43627397 100644
--- a/tools/build/feature/test-all.c
+++ b/tools/build/feature/test-all.c
@@ -145,6 +145,10 @@
# include "test-libcrypto.c"
#undef main
+#define main main_test_sdt
+# include "test-sdt.c"
+#undef main
+
int main(int argc, char *argv[])
{
main_test_libpython();
@@ -178,6 +182,7 @@ int main(int argc, char *argv[])
main_test_get_cpuid();
main_test_bpf();
main_test_libcrypto();
+ main_test_sdt();
return 0;
}