diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 53f90e9c65fe3c4e306914c971420b67645cc603..52e94902afb12a5fde6c71f14ca90ede5f63f3ee 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -1106,6 +1106,9 @@ static int machine__process_kernel_mmap_event(struct machine *machine, if (__machine__create_kernel_maps(machine, kernel) < 0) goto out_problem; + if (strstr(dso->long_name, "vmlinux")) + dso__set_short_name(dso, "[kernel.vmlinux]", false); + machine__set_kernel_mmap_len(machine, event); /*