Commit e1c7c6a4 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by Ingo Molnar
Browse files

perf symbols: Fix inverted logic for showing kallsyms as the source of symbols

Only if we parsed /proc/kallsyms (or a copy found in the buildid
cache) we should set the dso long name to "[kernel.kallsyms]".
Reported-by: default avatarMike Galbraith <>
Signed-off-by: default avatarArnaldo Carvalho de Melo <>
Cc: Frédéric Weisbecker <>
Cc: Mike Galbraith <>
Cc: Peter Zijlstra <>
Cc: Paul Mackerras <>
LKML-Reference: <>
Signed-off-by: default avatarIngo Molnar <>
parent 0f35cd4c
......@@ -1671,7 +1671,7 @@ static int dso__load_kernel_sym(struct dso *self, struct map *map,
if (err > 0) {
if (kallsyms_filename == NULL)
if (kallsyms_filename != NULL)
dso__set_long_name(self, strdup("[kernel.kallsyms]"));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment