diff options
author | Jiri Olsa <jolsa@redhat.com> | 2014-01-07 07:47:28 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-02-18 07:34:48 -0500 |
commit | 9ff125d132001c02d32a193a9423be0690526e11 (patch) | |
tree | 608fc071ded7d3b182df10641d2316ed0d9c5044 /tools/perf/tests | |
parent | ea3da69df959dfa1c807586c061bfcc4ec7e5e17 (diff) |
perf callchain: Introduce HAVE_DWARF_UNWIND_SUPPORT macro
Introducing global macro HAVE_DWARF_UNWIND_SUPPORT to indicate we have
dwarf unwind support. Any library providing the dwarf post unwind
support will enable this macro.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Jean Pihet <jean.pihet@linaro.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1389098853-14466-12-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests')
-rw-r--r-- | tools/perf/tests/builtin-test.c | 2 | ||||
-rw-r--r-- | tools/perf/tests/tests.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c index f5a6ffba8a47..b11bf8a08430 100644 --- a/tools/perf/tests/builtin-test.c +++ b/tools/perf/tests/builtin-test.c | |||
@@ -116,7 +116,7 @@ static struct test { | |||
116 | .func = test__parse_no_sample_id_all, | 116 | .func = test__parse_no_sample_id_all, |
117 | }, | 117 | }, |
118 | #if defined(__x86_64__) || defined(__i386__) | 118 | #if defined(__x86_64__) || defined(__i386__) |
119 | #ifdef HAVE_LIBUNWIND_SUPPORT | 119 | #ifdef HAVE_DWARF_UNWIND_SUPPORT |
120 | { | 120 | { |
121 | .desc = "Test dwarf unwind", | 121 | .desc = "Test dwarf unwind", |
122 | .func = test__dwarf_unwind, | 122 | .func = test__dwarf_unwind, |
diff --git a/tools/perf/tests/tests.h b/tools/perf/tests/tests.h index 8979309876a7..a24795ca002d 100644 --- a/tools/perf/tests/tests.h +++ b/tools/perf/tests/tests.h | |||
@@ -43,7 +43,7 @@ int test__parse_no_sample_id_all(void); | |||
43 | int test__dwarf_unwind(void); | 43 | int test__dwarf_unwind(void); |
44 | 44 | ||
45 | #if defined(__x86_64__) || defined(__i386__) | 45 | #if defined(__x86_64__) || defined(__i386__) |
46 | #ifdef HAVE_LIBUNWIND_SUPPORT | 46 | #ifdef HAVE_DWARF_UNWIND_SUPPORT |
47 | struct thread; | 47 | struct thread; |
48 | struct perf_sample; | 48 | struct perf_sample; |
49 | int test__arch_unwind_sample(struct perf_sample *sample, | 49 | int test__arch_unwind_sample(struct perf_sample *sample, |