diff options
author | David Carrillo-Cisneros <davidcc@google.com> | 2017-01-12 16:01:59 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-01-16 12:59:15 -0500 |
commit | 2484c4c58fd1bc0d7711d294c530a1518da6a172 (patch) | |
tree | caf67fb80978ce0f9c84c73beb74ad3b97785399 /tools/perf | |
parent | d02fc6bcd53721cf8588633409157c232f2418e0 (diff) |
perf tools: Remove unneccessary feature-dwarf warning
Don't warn for feature-dwarf==0 if user explicitily disabled DWARF by
using NO_DWARF=1.
Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20170112210159.76143-1-davidcc@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/Makefile.config | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 76c84f0eec52..03cf947755b9 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config | |||
@@ -291,8 +291,10 @@ else | |||
291 | endif | 291 | endif |
292 | endif | 292 | endif |
293 | ifneq ($(feature-dwarf), 1) | 293 | ifneq ($(feature-dwarf), 1) |
294 | msg := $(warning No libdw.h found or old libdw.h found or elfutils is older than 0.138, disables dwarf support. Please install new elfutils-devel/libdw-dev); | 294 | ifndef NO_DWARF |
295 | NO_DWARF := 1 | 295 | msg := $(warning No libdw.h found or old libdw.h found or elfutils is older than 0.138, disables dwarf support. Please install new elfutils-devel/libdw-dev); |
296 | NO_DWARF := 1 | ||
297 | endif | ||
296 | else | 298 | else |
297 | ifneq ($(feature-dwarf_getlocations), 1) | 299 | ifneq ($(feature-dwarf_getlocations), 1) |
298 | msg := $(warning Old libdw.h, finding variables at given 'perf probe' point will not work, install elfutils-devel/libdw-dev >= 0.157); | 300 | msg := $(warning Old libdw.h, finding variables at given 'perf probe' point will not work, install elfutils-devel/libdw-dev >= 0.157); |