summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-kallsyms.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-kallsyms.c')
-rw-r--r--tools/perf/builtin-kallsyms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-kallsyms.c b/tools/perf/builtin-kallsyms.c
index bcfb363112d3..90d1a2305b72 100644
--- a/tools/perf/builtin-kallsyms.c
+++ b/tools/perf/builtin-kallsyms.c
@@ -27,7 +27,7 @@ static int __cmd_kallsyms(int argc, const char **argv)
for (i = 0; i < argc; ++i) {
struct map *map;
- struct symbol *symbol = machine__find_kernel_function_by_name(machine, argv[i], &map);
+ struct symbol *symbol = machine__find_kernel_symbol_by_name(machine, argv[i], &map);
if (symbol == NULL) {
printf("%s: not found\n", argv[i]);