perf record: Add a fallback to the reference relocation symbol
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 30 Mar 2010 21:27:39 +0000 (18:27 -0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 13 May 2010 05:55:29 +0000 (07:55 +0200)
commit46db2c3205ca6e24adbb9b038441bc8f65360535
tree28a70cdb69e82795b699d3184f51faf7903d1088
parent829e92458532b1dbfeb972435d45bb060cdbf5a3
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 <dvhltc@us.ibm.com>
Reported-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c