lkml.org 
[lkml]   [2008]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ftrace: remove direct reference to mcount in trace code

* Steven Rostedt <rostedt@goodmis.org> wrote:

> 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>

applied to tip/tracing/ftrace - thanks Steve!

Ingo


\
 
 \ /
  Last update: 2008-08-28 09:53    [W:0.034 / U:2.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site