diff options
-rw-r--r-- | tools/perf/config/Makefile | 10 | ||||
-rw-r--r-- | tools/perf/config/feature-checks/Makefile | 3 | ||||
-rw-r--r-- | tools/perf/config/feature-checks/test-all.c | 4 |
3 files changed, 11 insertions, 6 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 861379ec7632..f7d11a811c74 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -329,8 +329,14 @@ ifndef NO_LIBUNWIND | |||
329 | msg := $(warning No libunwind found, disabling post unwind support. Please install libunwind-dev[el] >= 1.1); | 329 | msg := $(warning No libunwind found, disabling post unwind support. Please install libunwind-dev[el] >= 1.1); |
330 | NO_LIBUNWIND := 1 | 330 | NO_LIBUNWIND := 1 |
331 | else | 331 | else |
332 | ifneq ($(feature-libunwind-debug-frame), 1) | 332 | ifeq ($(ARCH),arm) |
333 | msg := $(warning No debug_frame support found in libunwind); | 333 | $(call feature_check,libunwind-debug-frame) |
334 | ifneq ($(feature-libunwind-debug-frame), 1) | ||
335 | msg := $(warning No debug_frame support found in libunwind); | ||
336 | CFLAGS += -DNO_LIBUNWIND_DEBUG_FRAME | ||
337 | endif | ||
338 | else | ||
339 | # non-ARM has no dwarf_find_debug_frame() function: | ||
334 | CFLAGS += -DNO_LIBUNWIND_DEBUG_FRAME | 340 | CFLAGS += -DNO_LIBUNWIND_DEBUG_FRAME |
335 | endif | 341 | endif |
336 | endif | 342 | endif |
diff --git a/tools/perf/config/feature-checks/Makefile b/tools/perf/config/feature-checks/Makefile index e8e195f49a4e..87e790017c69 100644 --- a/tools/perf/config/feature-checks/Makefile +++ b/tools/perf/config/feature-checks/Makefile | |||
@@ -76,6 +76,9 @@ test-libnuma: | |||
76 | test-libunwind: | 76 | test-libunwind: |
77 | $(BUILD) $(LIBUNWIND_LIBS) -lelf | 77 | $(BUILD) $(LIBUNWIND_LIBS) -lelf |
78 | 78 | ||
79 | test-libunwind-debug-frame: | ||
80 | $(BUILD) $(LIBUNWIND_LIBS) -lelf | ||
81 | |||
79 | test-libaudit: | 82 | test-libaudit: |
80 | $(BUILD) -laudit | 83 | $(BUILD) -laudit |
81 | 84 | ||
diff --git a/tools/perf/config/feature-checks/test-all.c b/tools/perf/config/feature-checks/test-all.c index 799865b60772..59e7a705e146 100644 --- a/tools/perf/config/feature-checks/test-all.c +++ b/tools/perf/config/feature-checks/test-all.c | |||
@@ -49,10 +49,6 @@ | |||
49 | # include "test-libunwind.c" | 49 | # include "test-libunwind.c" |
50 | #undef main | 50 | #undef main |
51 | 51 | ||
52 | #define main main_test_libunwind_debug_frame | ||
53 | # include "test-libunwind-debug-frame.c" | ||
54 | #undef main | ||
55 | |||
56 | #define main main_test_libaudit | 52 | #define main main_test_libaudit |
57 | # include "test-libaudit.c" | 53 | # include "test-libaudit.c" |
58 | #undef main | 54 | #undef main |