We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d005efe commit ff4ce28Copy full SHA for ff4ce28
tools/perf/util/machine.c
@@ -2312,7 +2312,7 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
2312
{
2313
struct callchain_cursor *cursor = arg;
2314
const char *srcline = NULL;
2315
- u64 addr;
+ u64 addr = entry->ip;
2316
2317
if (symbol_conf.hide_unresolved && entry->sym == NULL)
2318
return 0;
@@ -2324,7 +2324,8 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
2324
* Convert entry->ip from a virtual address to an offset in
2325
* its corresponding binary.
2326
*/
2327
- addr = map__map_ip(entry->map, entry->ip);
+ if (entry->map)
2328
+ addr = map__map_ip(entry->map, entry->ip);
2329
2330
srcline = callchain_srcline(entry->map, entry->sym, addr);
2331
return callchain_cursor_append(cursor, entry->ip,
0 commit comments