diff options
Diffstat (limited to 'tools/perf/tests/dwarf-unwind.c')
-rw-r--r-- | tools/perf/tests/dwarf-unwind.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/tests/dwarf-unwind.c b/tools/perf/tests/dwarf-unwind.c index 96adb730b744..fc25e57f4a5d 100644 --- a/tools/perf/tests/dwarf-unwind.c +++ b/tools/perf/tests/dwarf-unwind.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include "perf_regs.h" | 9 | #include "perf_regs.h" |
10 | #include "map.h" | 10 | #include "map.h" |
11 | #include "thread.h" | 11 | #include "thread.h" |
12 | #include "callchain.h" | ||
12 | 13 | ||
13 | static int mmap_handler(struct perf_tool *tool __maybe_unused, | 14 | static int mmap_handler(struct perf_tool *tool __maybe_unused, |
14 | union perf_event *event, | 15 | union perf_event *event, |
@@ -120,6 +121,8 @@ int test__dwarf_unwind(void) | |||
120 | return -1; | 121 | return -1; |
121 | } | 122 | } |
122 | 123 | ||
124 | callchain_param.record_mode = CALLCHAIN_DWARF; | ||
125 | |||
123 | if (init_live_machine(machine)) { | 126 | if (init_live_machine(machine)) { |
124 | pr_err("Could not init machine\n"); | 127 | pr_err("Could not init machine\n"); |
125 | goto out; | 128 | goto out; |