diff options
author | Don Zickus <dzickus@redhat.com> | 2014-05-27 18:28:05 +0200 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-06-09 13:34:48 +0200 |
commit | 7365be55eee37ddb4f487263b4ba5bc8beb9638f (patch) | |
tree | 68553be73f483fb513b60699bcdce26409892449 /tools | |
parent | perf report: Add mem-mode documentation to report command (diff) | |
download | linux-7365be55eee37ddb4f487263b4ba5bc8beb9638f.tar.xz linux-7365be55eee37ddb4f487263b4ba5bc8beb9638f.zip |
perf tools: Add cpumode to struct hist_entry
The next patch needs to sort on cpumode, so add it to hist_entry to be tracked.
Signed-off-by: Don Zickus <dzickus@redhat.com>
Link: http://lkml.kernel.org/r/1401208087-181977-6-git-send-email-dzickus@redhat.com
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/hist.c | 7 | ||||
-rw-r--r-- | tools/perf/util/sort.h | 1 |
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, .map = al->map, .sym = al->sym, }, - .cpu = al->cpu, - .ip = al->addr, - .level = al->level, + .cpu = al->cpu, + .cpumode = al->cpumode, + .ip = al->addr, + .level = al->level, .stat = { .nr_events = 1, .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 { u64 ip; u64 transaction; s32 cpu; + u8 cpumode; struct hist_entry_diff diff; |