diff options
Diffstat (limited to 'tools/perf/config/feature-checks/test-dwarf.c')
-rw-r--r-- | tools/perf/config/feature-checks/test-dwarf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/config/feature-checks/test-dwarf.c b/tools/perf/config/feature-checks/test-dwarf.c new file mode 100644 index 000000000000..3fc1801ce4a9 --- /dev/null +++ b/tools/perf/config/feature-checks/test-dwarf.c | |||
@@ -0,0 +1,10 @@ | |||
1 | #include <dwarf.h> | ||
2 | #include <elfutils/libdw.h> | ||
3 | #include <elfutils/version.h> | ||
4 | |||
5 | int main(void) | ||
6 | { | ||
7 | Dwarf *dbg = dwarf_begin(0, DWARF_C_READ); | ||
8 | |||
9 | return (long)dbg; | ||
10 | } | ||