diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-10-01 12:32:51 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-10-02 17:36:45 -0400 |
commit | 4e34d9588b46f44a4dba718606913133f15e4b21 (patch) | |
tree | 0b9d6f410d12a6695f20cef47f7ec1047a6e2958 /tools/perf/Makefile | |
parent | 4d8061faca7a50010f037374410f0c3647c3ecf8 (diff) |
perf tools: Convert to BACKTRACE_SUPPORT
For building perf without stack backtrace debug, we can set
NO_BACKTRACE=1 as a argument of make. It then defines NO_BACKTRACE
macro for C code to do the proper handling. However it usually used in
a negative semantics - e.g. #ifndef - so we saw double negations which
can be misleading. Convert it to a positive form to make it more
readable and add _SUPPORT suffix for consistency.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Irina Tirdea <irina.tirdea@gmail.com>
Cc: Irina Tirdea <irina.tirdea@intel.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1349109171-1942-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 5216ade909d0..f9126f89efef 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -45,6 +45,8 @@ include config/utilities.mak | |||
45 | # | 45 | # |
46 | # Define NO_LIBUNWIND if you do not want libunwind dependency for dwarf | 46 | # Define NO_LIBUNWIND if you do not want libunwind dependency for dwarf |
47 | # backtrace post unwind. | 47 | # backtrace post unwind. |
48 | # | ||
49 | # Define NO_BACKTRACE if you do not want stack backtrace debug feature | ||
48 | 50 | ||
49 | $(OUTPUT)PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE | 51 | $(OUTPUT)PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE |
50 | @$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT) | 52 | @$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT) |
@@ -749,11 +751,9 @@ ifndef NO_STRLCPY | |||
749 | endif | 751 | endif |
750 | endif | 752 | endif |
751 | 753 | ||
752 | ifdef NO_BACKTRACE | 754 | ifndef NO_BACKTRACE |
753 | BASIC_CFLAGS += -DNO_BACKTRACE | 755 | ifeq ($(call try-cc,$(SOURCE_BACKTRACE),),y) |
754 | else | 756 | BASIC_CFLAGS += -DBACKTRACE_SUPPORT |
755 | ifneq ($(call try-cc,$(SOURCE_BACKTRACE),),y) | ||
756 | BASIC_CFLAGS += -DNO_BACKTRACE | ||
757 | endif | 757 | endif |
758 | endif | 758 | endif |
759 | 759 | ||