Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

perf record: Add a fallback to the reference relocation symbol

Usually "_text" is enough, but I received reports that its not always
available, so fallback to "_stext" for the symbol we use to check if we
need to apply any relocation to all the symbols in the kernel symtab,
for when, for instance, kexec is being used.

Reported-by: Darren Hart <>
Reported-by: Steven Rostedt <>
Cc: Frédéric Weisbecker <>
Cc: Mike Galbraith <>
Cc: Peter Zijlstra <>
Cc: Paul Mackerras <>
Signed-off-by: Arnaldo Carvalho de Melo <>
Signed-off-by: Ingo Molnar <>
  • Loading branch information...
commit 46db2c3205ca6e24adbb9b038441bc8f65360535 1 parent 829e924
Arnaldo Carvalho de Melo authored Ingo Molnar committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  tools/perf/builtin-record.c
3  tools/perf/builtin-record.c
@@ -563,6 +563,9 @@ static int __cmd_record(int argc, const char **argv)
err = event__synthesize_kernel_mmap(process_synthesized_event,
session, "_text");
+ if (err < 0)
+ err = event__synthesize_kernel_mmap(process_synthesized_event,
+ session, "_stext");
if (err < 0) {
pr_err("Couldn't record kernel reference relocation symbol.\n");
return err;
Please sign in to comment.
Something went wrong with that request. Please try again.