diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-04 12:14:32 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-12 08:20:53 -0300 |
commit | 5f0fef8ac3e7a5707751493293ba8ff2ffc0f8a4 (patch) | |
tree | 5976b7a548550703dcc4b07a6661626a87b74ec3 /tools/perf/builtin-kmem.c | |
parent | c1529738f5eb5fe7c472e0374ad7954d52566df9 (diff) | |
download | linux-5f0fef8ac3e7a5707751493293ba8ff2ffc0f8a4.tar.gz linux-5f0fef8ac3e7a5707751493293ba8ff2ffc0f8a4.tar.bz2 linux-5f0fef8ac3e7a5707751493293ba8ff2ffc0f8a4.zip |
perf callchain: Use 'struct map_symbol' in 'struct callchain_cursor_node'
To ease passing around map+symbol, just like done for other parts of the
tree recently.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-kmem.c')
-rw-r--r-- | tools/perf/builtin-kmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index 9661671cc26e..003c85f5f56c 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c @@ -412,8 +412,8 @@ static u64 find_callsite(struct evsel *evsel, struct perf_sample *sample) sizeof(key), callcmp); if (!caller) { /* found */ - if (node->map) - addr = map__unmap_ip(node->map, node->ip); + if (node->ms.map) + addr = map__unmap_ip(node->ms.map, node->ip); else addr = node->ip; |