|
@@ -309,10 +309,10 @@ static SV *perl_process_callchain(struct perf_sample *sample,
|
|
|
if (node->map) {
|
|
|
struct map *map = node->map;
|
|
|
const char *dsoname = "[unknown]";
|
|
|
- if (map && map->dso && (map->dso->name || map->dso->long_name)) {
|
|
|
+ if (map && map->dso) {
|
|
|
if (symbol_conf.show_kernel_path && map->dso->long_name)
|
|
|
dsoname = map->dso->long_name;
|
|
|
- else if (map->dso->name)
|
|
|
+ else
|
|
|
dsoname = map->dso->name;
|
|
|
}
|
|
|
if (!hv_stores(elem, "dso", newSVpv(dsoname,0))) {
|