]> Git Repo - linux.git/commitdiff
perf record: Add a fallback to the reference relocation symbol
authorArnaldo Carvalho de Melo <[email protected]>
Tue, 30 Mar 2010 21:27:39 +0000 (18:27 -0300)
committerIngo Molnar <[email protected]>
Thu, 13 May 2010 05:55:29 +0000 (07:55 +0200)
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 <[email protected]>
Reported-by: Steven Rostedt <[email protected]>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
tools/perf/builtin-record.c

index 3b8b6387c47ca4de49873990b2c47216c8309aaf..f1411e9cdf47eb5355090119604419883ef160a0 100644 (file)
@@ -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;
This page took 0.054091 seconds and 4 git commands to generate.