perf tools: Add cpumode to struct hist_entry
authorDon Zickus <dzickus@redhat.com>
Tue, 27 May 2014 16:28:05 +0000 (12:28 -0400)
committerJiri Olsa <jolsa@kernel.org>
Mon, 9 Jun 2014 11:34:48 +0000 (13:34 +0200)
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>
tools/perf/util/hist.c
tools/perf/util/sort.h

index 5a0a4b2cadc4574dce4c23239ac9a14e4e13b6fe..d5f47a47c4bf6e819408043b390eb1fcdc393c52 100644 (file)
@@ -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,
index 5bf0098d6b068921190c4b98256bf355cb092333..6de22f83885477a494c7030c1aee665bb7e23613 100644 (file)
@@ -89,6 +89,7 @@ struct hist_entry {
        u64                     ip;
        u64                     transaction;
        s32                     cpu;
+       u8                      cpumode;
 
        struct hist_entry_diff  diff;