summaryrefslogtreecommitdiffstats
path: root/tools/perf/config/feature-checks/test-libaudit.c
diff options
context:
space:
mode:
authorIngo Molnar2013-09-30 14:55:31 +0200
committerIngo Molnar2013-10-09 08:48:40 +0200
commitd795a658eb0ab5ab0b86cda5abe28954b0a08471 (patch)
treecaeb6549959220a58f2d918a78a9b55e0651b69d /tools/perf/config/feature-checks/test-libaudit.c
parenttools/perf/build: Split out feature check: 'libunwind' (diff)
downloadkernel-qcow2-linux-d795a658eb0ab5ab0b86cda5abe28954b0a08471.tar.gz
kernel-qcow2-linux-d795a658eb0ab5ab0b86cda5abe28954b0a08471.tar.xz
kernel-qcow2-linux-d795a658eb0ab5ab0b86cda5abe28954b0a08471.zip
tools/perf/build: Split out feature check: 'libaudit'
Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/n/tip-orhejqtjao3vf4wxwBUdzhaz@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/config/feature-checks/test-libaudit.c')
-rw-r--r--tools/perf/config/feature-checks/test-libaudit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/config/feature-checks/test-libaudit.c b/tools/perf/config/feature-checks/test-libaudit.c
new file mode 100644
index 000000000000..854a65d3cc78
--- /dev/null
+++ b/tools/perf/config/feature-checks/test-libaudit.c
@@ -0,0 +1,7 @@
+#include <libaudit.h>
+
+int main(void)
+{
+ printf("error message: %s\n", audit_errno_to_name(0));
+ return audit_open();
+}