OSDN Git Service

perf unwind: Unwind with libdw doesn't take symfs into account
[android-x86/kernel.git] / tools / perf / util / unwind-libdw.c
index b46e1cf..b34085a 100644 (file)
@@ -48,7 +48,7 @@ static int __report_module(struct addr_location *al, u64 ip,
 
        if (!mod)
                mod = dwfl_report_elf(ui->dwfl, dso->short_name,
-                                     dso->long_name, -1, al->map->start,
+                                     (dso->symsrc_filename ? dso->symsrc_filename : dso->long_name), -1, al->map->start,
                                      false);
 
        return mod && dwfl_addrmodule(ui->dwfl, ip) == mod ? 0 : -1;