diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-10-10 14:49:21 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-10-14 10:41:25 -0400 |
commit | 2a1731fb85ec96a1f6a326fb2d52cd93494dafa2 (patch) | |
tree | 2b55d616d523092a367436035558a8a3677d3ad4 /tools/perf/util/session.c | |
parent | 95e8d97e9b78040285defe482e1edf8b6341a4c1 (diff) |
perf session: Remove last reference to hists struct
Now perf_session doesn't require that the evsels in its evlist are hists
containing ones.
Tools that are hists based and want to do per evsel events_stats
updates, if at some point this turns into a necessity, should do it in
the tool specific code, keeping the session class hists agnostic.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-cli1bgwpo82mdikuhy3djsuy@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 66cae50b5c4c..896bac73ea08 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -1375,16 +1375,9 @@ size_t perf_session__fprintf_dsos_buildid(struct perf_session *session, FILE *fp | |||
1375 | 1375 | ||
1376 | size_t perf_session__fprintf_nr_events(struct perf_session *session, FILE *fp) | 1376 | size_t perf_session__fprintf_nr_events(struct perf_session *session, FILE *fp) |
1377 | { | 1377 | { |
1378 | struct perf_evsel *pos; | ||
1379 | size_t ret = fprintf(fp, "Aggregated stats:\n"); | 1378 | size_t ret = fprintf(fp, "Aggregated stats:\n"); |
1380 | 1379 | ||
1381 | ret += events_stats__fprintf(&session->stats, fp); | 1380 | ret += events_stats__fprintf(&session->stats, fp); |
1382 | |||
1383 | evlist__for_each(session->evlist, pos) { | ||
1384 | ret += fprintf(fp, "%s stats:\n", perf_evsel__name(pos)); | ||
1385 | ret += events_stats__fprintf(&evsel__hists(pos)->stats, fp); | ||
1386 | } | ||
1387 | |||
1388 | return ret; | 1381 | return ret; |
1389 | } | 1382 | } |
1390 | 1383 | ||