summaryrefslogtreecommitdiff
path: root/tools/perf/config/feature-checks/test-backtrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/config/feature-checks/test-backtrace.c')
-rw-r--r--tools/perf/config/feature-checks/test-backtrace.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/config/feature-checks/test-backtrace.c b/tools/perf/config/feature-checks/test-backtrace.c
new file mode 100644
index 000000000000..5b79468bea2a
--- /dev/null
+++ b/tools/perf/config/feature-checks/test-backtrace.c
@@ -0,0 +1,10 @@
+#include <execinfo.h>
+#include <stdio.h>
+
+int main(void)
+{
+ backtrace(NULL, 0);
+ backtrace_symbols(NULL, 0);
+
+ return 0;
+}