diff --git a/tools/perf/util/db-export.c b/tools/perf/util/db-export.c index 8ca4186bf31bf8877e867cd9bd2e636bff32952c..8d96c80cc67e629f0ef576ae24c1266e468df91f 100644 --- a/tools/perf/util/db-export.c +++ b/tools/perf/util/db-export.c @@ -326,6 +326,10 @@ static struct call_path *call_path_from_sample(struct db_export *dbe, al.machine = machine; al.addr = node->ip; + if (al.map && !al.sym) + al.sym = dso__find_symbol(al.map->dso, MAP__FUNCTION, + al.addr); + db_ids_from_al(dbe, &al, &dso_db_id, &sym_db_id, &offset); /* add node to the call path tree if it doesn't exist */