]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 2 Apr 2010 19:28:06 +0000 (16:28 -0300)
commit57f0e51df7258e647ab990075d18e5faf889ed30
treef37100455c6d9ab84464409ad89e2c893b28c7d4
parent14bc1c09f3faf13b42d83900e588a315e17c6a17
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>
Cc: Darren Hart <dvhltc@us.ibm.com>
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>
tools/perf/builtin-record.c