summaryrefslogtreecommitdiff
path: root/scripts/recordmcount.pl
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2008-08-27 23:24:15 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 10:36:22 +0200
commit3b47bfc1fca01cccad9cce2d18b79b18ef2e4131 (patch)
tree5be5a241139b505dcb0edf6150183096c23b47ed /scripts/recordmcount.pl
parente5a81b629ea8feb9e7530cfac35cfb41c45facf3 (diff)
downloadlwn-3b47bfc1fca01cccad9cce2d18b79b18ef2e4131.tar.gz
lwn-3b47bfc1fca01cccad9cce2d18b79b18ef2e4131.zip
ftrace: remove direct reference to mcount in trace code
The mcount record method of ftrace scans objdump for references to mcount. Using mcount as the reference to test if the calls to mcount being replaced are indeed calls to mcount, this use of mcount was also caught as a location to change. Using a variable that points to the mcount address moves this reference into the data section that is not scanned, and we do not use a false location to try and modify. The warn on code was what was used to detect this bug. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'scripts/recordmcount.pl')
0 files changed, 0 insertions, 0 deletions