aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/hist.c7
-rw-r--r--tools/perf/util/sort.h1
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 5a0a4b2cadc4..d5f47a47c4bf 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -439,9 +439,10 @@ struct hist_entry *__hists__add_entry(struct hists *hists,
439 .map = al->map, 439 .map = al->map,
440 .sym = al->sym, 440 .sym = al->sym,
441 }, 441 },
442 .cpu = al->cpu, 442 .cpu = al->cpu,
443 .ip = al->addr, 443 .cpumode = al->cpumode,
444 .level = al->level, 444 .ip = al->addr,
445 .level = al->level,
445 .stat = { 446 .stat = {
446 .nr_events = 1, 447 .nr_events = 1,
447 .period = period, 448 .period = period,
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h
index 5bf0098d6b06..6de22f838854 100644
--- a/tools/perf/util/sort.h
+++ b/tools/perf/util/sort.h
@@ -89,6 +89,7 @@ struct hist_entry {
89 u64 ip; 89 u64 ip;
90 u64 transaction; 90 u64 transaction;
91 s32 cpu; 91 s32 cpu;
92 u8 cpumode;
92 93
93 struct hist_entry_diff diff; 94 struct hist_entry_diff diff;
94 95