aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/config/feature-checks/test-libunwind-debug-frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/config/feature-checks/test-libunwind-debug-frame.c')
-rw-r--r--tools/perf/config/feature-checks/test-libunwind-debug-frame.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/perf/config/feature-checks/test-libunwind-debug-frame.c b/tools/perf/config/feature-checks/test-libunwind-debug-frame.c
new file mode 100644
index 000000000000..0ef8087a104a
--- /dev/null
+++ b/tools/perf/config/feature-checks/test-libunwind-debug-frame.c
@@ -0,0 +1,16 @@
1#include <libunwind.h>
2#include <stdlib.h>
3
4extern int
5UNW_OBJ(dwarf_find_debug_frame) (int found, unw_dyn_info_t *di_debug,
6 unw_word_t ip, unw_word_t segbase,
7 const char *obj_name, unw_word_t start,
8 unw_word_t end);
9
10#define dwarf_find_debug_frame UNW_OBJ(dwarf_find_debug_frame)
11
12int main(void)
13{
14 dwarf_find_debug_frame(0, NULL, 0, 0, NULL, 0, 0);
15 return 0;
16}