summaryrefslogtreecommitdiff
path: root/scripts/ksymoops
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2011-12-19 17:42:42 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-25 17:24:50 -0800
commit9d3f99878bf33d36739bd772c7dafcb1f71387fb (patch)
treeccd3f136cda3744df4bd1d67ae3c1eef5c9de56e /scripts/ksymoops
parent15274414badc6ef0a893454e7102f3753f2c1ccd (diff)
recordmcount: Fix handling of elf64 big-endian objects.
commit 2e885057b7f75035f0b85e02f737891482815a81 upstream. In ELF64, the sh_flags field is 64-bits wide. recordmcount was erroneously treating it as a 32-bit wide field. For little endian objects this works because the flags of interest (SHF_EXECINSTR) reside in the lower 32 bits of the word, and you get the same result with either a 32-bit or 64-bit read. Big endian objects on the other hand do not work at all with this error. The fix: Correctly treat sh_flags as 64-bits wide in elf64 objects. The symptom I observed was that my __start_mcount_loc..__stop_mcount_loc was empty even though ftrace function tracing was enabled. Link: http://lkml.kernel.org/r/1324345362-12230-1-git-send-email-ddaney.cavm@gmail.com Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/ksymoops')
0 files changed, 0 insertions, 0 deletions