diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-10-23 14:26:17 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-10-29 08:32:46 -0400 |
commit | cc8b7c2bf553151a579a8009020875faa1d43e29 (patch) | |
tree | 77439fb5f4ca15827938a7bcf0557bc8dbe3e0db /tools/perf/util/session.c | |
parent | bb871a9c8d68692ed2513b3f0e1c010c2ac12f44 (diff) |
perf thread: Adopt resolve_callchain method from machine
Shortening function signature lenght too, since a thread's machine can be
obtained from thread->mg->machine, no need to pass thread, machine.
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-5wb6css280ty0cel5p0zo2b1@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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 6702ac28754b..776010844cdc 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -1417,9 +1417,9 @@ void perf_evsel__print_ip(struct perf_evsel *evsel, struct perf_sample *sample, | |||
1417 | if (symbol_conf.use_callchain && sample->callchain) { | 1417 | if (symbol_conf.use_callchain && sample->callchain) { |
1418 | struct addr_location node_al; | 1418 | struct addr_location node_al; |
1419 | 1419 | ||
1420 | if (machine__resolve_callchain(al->machine, evsel, al->thread, | 1420 | if (thread__resolve_callchain(al->thread, evsel, |
1421 | sample, NULL, NULL, | 1421 | sample, NULL, NULL, |
1422 | PERF_MAX_STACK_DEPTH) != 0) { | 1422 | PERF_MAX_STACK_DEPTH) != 0) { |
1423 | if (verbose) | 1423 | if (verbose) |
1424 | error("Failed to resolve callchain. Skipping\n"); | 1424 | error("Failed to resolve callchain. Skipping\n"); |
1425 | return; | 1425 | return; |