aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/machine.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-10-13 00:38:46 -0400
committerDavid S. Miller <davem@davemloft.net>2018-10-13 00:38:46 -0400
commitd864991b220b7c62e81d21209e1fd978fd67352c (patch)
treeb570a1ad6fc1b959c5bcda6ceca0b321319c01e0 /tools/perf/util/machine.c
parenta688c53a0277d8ea21d86a5c56884892e3442c5e (diff)
parentbab5c80b211035739997ebd361a679fa85b39465 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts were easy to resolve using immediate context mostly, except the cls_u32.c one where I simply too the entire HEAD chunk. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/util/machine.c')
-rw-r--r--tools/perf/util/machine.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
index c4acd2001db0..111ae858cbcb 100644
--- a/tools/perf/util/machine.c
+++ b/tools/perf/util/machine.c
@@ -2286,7 +2286,8 @@ static int append_inlines(struct callchain_cursor *cursor,
2286 if (!symbol_conf.inline_name || !map || !sym) 2286 if (!symbol_conf.inline_name || !map || !sym)
2287 return ret; 2287 return ret;
2288 2288
2289 addr = map__rip_2objdump(map, ip); 2289 addr = map__map_ip(map, ip);
2290 addr = map__rip_2objdump(map, addr);
2290 2291
2291 inline_node = inlines__tree_find(&map->dso->inlined_nodes, addr); 2292 inline_node = inlines__tree_find(&map->dso->inlined_nodes, addr);
2292 if (!inline_node) { 2293 if (!inline_node) {
@@ -2312,7 +2313,7 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
2312{ 2313{
2313 struct callchain_cursor *cursor = arg; 2314 struct callchain_cursor *cursor = arg;
2314 const char *srcline = NULL; 2315 const char *srcline = NULL;
2315 u64 addr; 2316 u64 addr = entry->ip;
2316 2317
2317 if (symbol_conf.hide_unresolved && entry->sym == NULL) 2318 if (symbol_conf.hide_unresolved && entry->sym == NULL)
2318 return 0; 2319 return 0;
@@ -2324,7 +2325,8 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
2324 * Convert entry->ip from a virtual address to an offset in 2325 * Convert entry->ip from a virtual address to an offset in
2325 * its corresponding binary. 2326 * its corresponding binary.
2326 */ 2327 */
2327 addr = map__map_ip(entry->map, entry->ip); 2328 if (entry->map)
2329 addr = map__map_ip(entry->map, entry->ip);
2328 2330
2329 srcline = callchain_srcline(entry->map, entry->sym, addr); 2331 srcline = callchain_srcline(entry->map, entry->sym, addr);
2330 return callchain_cursor_append(cursor, entry->ip, 2332 return callchain_cursor_append(cursor, entry->ip,