diff options
Diffstat (limited to 'tools/perf/builtin-c2c.c')
-rw-r--r-- | tools/perf/builtin-c2c.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 17855c4626a0..c0815a37fdb5 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c | |||
@@ -27,13 +27,10 @@ | |||
27 | #include "sort.h" | 27 | #include "sort.h" |
28 | #include "tool.h" | 28 | #include "tool.h" |
29 | #include "data.h" | 29 | #include "data.h" |
30 | #include "sort.h" | ||
31 | #include "event.h" | 30 | #include "event.h" |
32 | #include "evlist.h" | 31 | #include "evlist.h" |
33 | #include "evsel.h" | 32 | #include "evsel.h" |
34 | #include <asm/bug.h> | ||
35 | #include "ui/browsers/hists.h" | 33 | #include "ui/browsers/hists.h" |
36 | #include "evlist.h" | ||
37 | #include "thread.h" | 34 | #include "thread.h" |
38 | 35 | ||
39 | struct c2c_hists { | 36 | struct c2c_hists { |
@@ -2224,9 +2221,9 @@ static int perf_c2c__browse_cacheline(struct hist_entry *he) | |||
2224 | struct hist_browser *browser; | 2221 | struct hist_browser *browser; |
2225 | int key = -1; | 2222 | int key = -1; |
2226 | const char help[] = | 2223 | const char help[] = |
2227 | " ENTER Togle callchains (if present) \n" | 2224 | " ENTER Toggle callchains (if present) \n" |
2228 | " n Togle Node details info \n" | 2225 | " n Toggle Node details info \n" |
2229 | " s Togle full lenght of symbol and source line columns \n" | 2226 | " s Toggle full length of symbol and source line columns \n" |
2230 | " q Return back to cacheline list \n"; | 2227 | " q Return back to cacheline list \n"; |
2231 | 2228 | ||
2232 | /* Display compact version first. */ | 2229 | /* Display compact version first. */ |
@@ -2303,7 +2300,7 @@ static int perf_c2c__hists_browse(struct hists *hists) | |||
2303 | int key = -1; | 2300 | int key = -1; |
2304 | const char help[] = | 2301 | const char help[] = |
2305 | " d Display cacheline details \n" | 2302 | " d Display cacheline details \n" |
2306 | " ENTER Togle callchains (if present) \n" | 2303 | " ENTER Toggle callchains (if present) \n" |
2307 | " q Quit \n"; | 2304 | " q Quit \n"; |
2308 | 2305 | ||
2309 | browser = perf_c2c_browser__new(hists); | 2306 | browser = perf_c2c_browser__new(hists); |
@@ -2393,9 +2390,10 @@ static int setup_callchain(struct perf_evlist *evlist) | |||
2393 | enum perf_call_graph_mode mode = CALLCHAIN_NONE; | 2390 | enum perf_call_graph_mode mode = CALLCHAIN_NONE; |
2394 | 2391 | ||
2395 | if ((sample_type & PERF_SAMPLE_REGS_USER) && | 2392 | if ((sample_type & PERF_SAMPLE_REGS_USER) && |
2396 | (sample_type & PERF_SAMPLE_STACK_USER)) | 2393 | (sample_type & PERF_SAMPLE_STACK_USER)) { |
2397 | mode = CALLCHAIN_DWARF; | 2394 | mode = CALLCHAIN_DWARF; |
2398 | else if (sample_type & PERF_SAMPLE_BRANCH_STACK) | 2395 | dwarf_callchain_users = true; |
2396 | } else if (sample_type & PERF_SAMPLE_BRANCH_STACK) | ||
2399 | mode = CALLCHAIN_LBR; | 2397 | mode = CALLCHAIN_LBR; |
2400 | else if (sample_type & PERF_SAMPLE_CALLCHAIN) | 2398 | else if (sample_type & PERF_SAMPLE_CALLCHAIN) |
2401 | mode = CALLCHAIN_FP; | 2399 | mode = CALLCHAIN_FP; |