diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-09-30 06:07:11 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-09 02:48:28 -0400 |
commit | 89fe808ae777728da6e1d78b7d13562792310d17 (patch) | |
tree | fd8771bb2e99e0801fbb16b742c4d425ee4f2bda /tools/perf/arch | |
parent | 429eb051011a580beae2dc9f8caed5dade9591dc (diff) |
tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT
Standardize all the feature flags based on the HAVE_{FEATURE}_SUPPORT naming convention:
HAVE_ARCH_X86_64_SUPPORT
HAVE_BACKTRACE_SUPPORT
HAVE_CPLUS_DEMANGLE_SUPPORT
HAVE_DWARF_SUPPORT
HAVE_ELF_GETPHDRNUM_SUPPORT
HAVE_GTK2_SUPPORT
HAVE_GTK_INFO_BAR_SUPPORT
HAVE_LIBAUDIT_SUPPORT
HAVE_LIBELF_MMAP_SUPPORT
HAVE_LIBELF_SUPPORT
HAVE_LIBNUMA_SUPPORT
HAVE_LIBUNWIND_SUPPORT
HAVE_ON_EXIT_SUPPORT
HAVE_PERF_REGS_SUPPORT
HAVE_SLANG_SUPPORT
HAVE_STRLCPY_SUPPORT
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/n/tip-u3zvqejddfZhtrbYbfhi3spa@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/arch')
-rw-r--r-- | tools/perf/arch/x86/include/perf_regs.h | 6 | ||||
-rw-r--r-- | tools/perf/arch/x86/util/unwind.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/arch/x86/include/perf_regs.h b/tools/perf/arch/x86/include/perf_regs.h index 7fcdcdbee917..e84ca76aae77 100644 --- a/tools/perf/arch/x86/include/perf_regs.h +++ b/tools/perf/arch/x86/include/perf_regs.h | |||
@@ -5,7 +5,7 @@ | |||
5 | #include "../../util/types.h" | 5 | #include "../../util/types.h" |
6 | #include <asm/perf_regs.h> | 6 | #include <asm/perf_regs.h> |
7 | 7 | ||
8 | #ifndef ARCH_X86_64 | 8 | #ifndef HAVE_ARCH_X86_64_SUPPORT |
9 | #define PERF_REGS_MASK ((1ULL << PERF_REG_X86_32_MAX) - 1) | 9 | #define PERF_REGS_MASK ((1ULL << PERF_REG_X86_32_MAX) - 1) |
10 | #else | 10 | #else |
11 | #define REG_NOSUPPORT ((1ULL << PERF_REG_X86_DS) | \ | 11 | #define REG_NOSUPPORT ((1ULL << PERF_REG_X86_DS) | \ |
@@ -52,7 +52,7 @@ static inline const char *perf_reg_name(int id) | |||
52 | return "FS"; | 52 | return "FS"; |
53 | case PERF_REG_X86_GS: | 53 | case PERF_REG_X86_GS: |
54 | return "GS"; | 54 | return "GS"; |
55 | #ifdef ARCH_X86_64 | 55 | #ifdef HAVE_ARCH_X86_64_SUPPORT |
56 | case PERF_REG_X86_R8: | 56 | case PERF_REG_X86_R8: |
57 | return "R8"; | 57 | return "R8"; |
58 | case PERF_REG_X86_R9: | 58 | case PERF_REG_X86_R9: |
@@ -69,7 +69,7 @@ static inline const char *perf_reg_name(int id) | |||
69 | return "R14"; | 69 | return "R14"; |
70 | case PERF_REG_X86_R15: | 70 | case PERF_REG_X86_R15: |
71 | return "R15"; | 71 | return "R15"; |
72 | #endif /* ARCH_X86_64 */ | 72 | #endif /* HAVE_ARCH_X86_64_SUPPORT */ |
73 | default: | 73 | default: |
74 | return NULL; | 74 | return NULL; |
75 | } | 75 | } |
diff --git a/tools/perf/arch/x86/util/unwind.c b/tools/perf/arch/x86/util/unwind.c index 78d956eff96f..456a88cf5b37 100644 --- a/tools/perf/arch/x86/util/unwind.c +++ b/tools/perf/arch/x86/util/unwind.c | |||
@@ -4,7 +4,7 @@ | |||
4 | #include "perf_regs.h" | 4 | #include "perf_regs.h" |
5 | #include "../../util/unwind.h" | 5 | #include "../../util/unwind.h" |
6 | 6 | ||
7 | #ifdef ARCH_X86_64 | 7 | #ifdef HAVE_ARCH_X86_64_SUPPORT |
8 | int unwind__arch_reg_id(int regnum) | 8 | int unwind__arch_reg_id(int regnum) |
9 | { | 9 | { |
10 | int id; | 10 | int id; |
@@ -108,4 +108,4 @@ int unwind__arch_reg_id(int regnum) | |||
108 | 108 | ||
109 | return id; | 109 | return id; |
110 | } | 110 | } |
111 | #endif /* ARCH_X86_64 */ | 111 | #endif /* HAVE_ARCH_X86_64_SUPPORT */ |