diff options
Diffstat (limited to 'tools/perf/config/Makefile')
-rw-r--r-- | tools/perf/config/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 58b2d37ae23a..f5905f2b197d 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -31,6 +31,10 @@ ifeq ($(ARCH),x86_64) | |||
31 | endif | 31 | endif |
32 | NO_PERF_REGS := 0 | 32 | NO_PERF_REGS := 0 |
33 | endif | 33 | endif |
34 | ifeq ($(ARCH),arm) | ||
35 | NO_PERF_REGS := 0 | ||
36 | LIBUNWIND_LIBS = -lunwind -lunwind-arm | ||
37 | endif | ||
34 | 38 | ||
35 | ifeq ($(NO_PERF_REGS),0) | 39 | ifeq ($(NO_PERF_REGS),0) |
36 | CFLAGS += -DHAVE_PERF_REGS_SUPPORT | 40 | CFLAGS += -DHAVE_PERF_REGS_SUPPORT |
@@ -305,8 +309,7 @@ ifndef NO_LIBELF | |||
305 | endif # NO_DWARF | 309 | endif # NO_DWARF |
306 | endif # NO_LIBELF | 310 | endif # NO_LIBELF |
307 | 311 | ||
308 | # There's only x86 (both 32 and 64) support for CFI unwind so far | 312 | ifeq ($(LIBUNWIND_LIBS),) |
309 | ifneq ($(ARCH),x86) | ||
310 | NO_LIBUNWIND := 1 | 313 | NO_LIBUNWIND := 1 |
311 | endif | 314 | endif |
312 | 315 | ||
@@ -322,8 +325,13 @@ ifndef NO_LIBUNWIND | |||
322 | endif | 325 | endif |
323 | 326 | ||
324 | ifneq ($(feature-libunwind), 1) | 327 | ifneq ($(feature-libunwind), 1) |
325 | msg := $(warning No libunwind found, disabling post unwind support. Please install libunwind-dev[el] >= 0.99); | 328 | msg := $(warning No libunwind found, disabling post unwind support. Please install libunwind-dev[el] >= 1.1); |
326 | NO_LIBUNWIND := 1 | 329 | NO_LIBUNWIND := 1 |
330 | else | ||
331 | ifneq ($(feature-libunwind-debug-frame), 1) | ||
332 | msg := $(warning No debug_frame support found in libunwind); | ||
333 | CFLAGS += -DNO_LIBUNWIND_DEBUG_FRAME | ||
334 | endif | ||
327 | endif | 335 | endif |
328 | endif | 336 | endif |
329 | 337 | ||