diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-01-22 18:09:33 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-01-31 13:07:45 -0300 |
commit | 29d720ed5f897d7e26f6b36c12c7704dc200d107 (patch) | |
tree | 440fc33f1e4d8954c508eb3fab6296eb7b3d62cd /tools/perf/util/evsel.h | |
parent | 6e1f601a10cbaa5cda869f844292dd81c519a8e7 (diff) | |
download | linux-stable-29d720ed5f897d7e26f6b36c12c7704dc200d107.tar.gz linux-stable-29d720ed5f897d7e26f6b36c12c7704dc200d107.tar.bz2 linux-stable-29d720ed5f897d7e26f6b36c12c7704dc200d107.zip |
perf hists: Resort hist entries using group members for output
When event group is enabled, sorting hist entries on periods for output
should consider groups members' period also. To do that, build period
table using link/pair information and compare the table.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1358845787-1350-6-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.h')
-rw-r--r-- | tools/perf/util/evsel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index c9031ebf196e..371713977888 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -79,6 +79,8 @@ struct perf_evsel { char *group_name; }; +#define hists_to_evsel(h) container_of(h, struct perf_evsel, hists) + struct cpu_map; struct thread_map; struct perf_evlist; |