diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-11 20:10:26 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 07:37:58 -0500 |
commit | 246d4ce8107ea16521384c8b2a8fcff354ef2b7c (patch) | |
tree | 07fbf7ad718cb25b8520d5ad28254c681459ca84 /tools/perf/builtin-top.c | |
parent | 10d0f086df77f3ff259b46cb501362dbaf2c7989 (diff) |
perf session: Remove superfluous callchain_cursor member
Since we have it in evsel->hists.callchain_cursor, remove it from
perf_session.
One more step in disentangling several places from requiring a
perf_session pointer.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
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-rxr5dj3di7ckyfmnz0naku1z@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 04288ee223ed..9b3bbb40d46f 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -777,7 +777,7 @@ static void perf_event__process_sample(const union perf_event *event, | |||
777 | 777 | ||
778 | if ((sort__has_parent || symbol_conf.use_callchain) && | 778 | if ((sort__has_parent || symbol_conf.use_callchain) && |
779 | sample->callchain) { | 779 | sample->callchain) { |
780 | err = perf_session__resolve_callchain(session, al.thread, | 780 | err = perf_session__resolve_callchain(session, evsel, al.thread, |
781 | sample->callchain, &parent); | 781 | sample->callchain, &parent); |
782 | if (err) | 782 | if (err) |
783 | return; | 783 | return; |
@@ -790,7 +790,7 @@ static void perf_event__process_sample(const union perf_event *event, | |||
790 | } | 790 | } |
791 | 791 | ||
792 | if (symbol_conf.use_callchain) { | 792 | if (symbol_conf.use_callchain) { |
793 | err = callchain_append(he->callchain, &session->callchain_cursor, | 793 | err = callchain_append(he->callchain, &evsel->hists.callchain_cursor, |
794 | sample->period); | 794 | sample->period); |
795 | if (err) | 795 | if (err) |
796 | return; | 796 | return; |