Files
android_kernel_samsung_sm8750/scripts
Matt Fleming bd171d5ffc ftrace: Only update $offset when we update $ref_func
The value of $offset should be the offset of $ref_func from the
beginning of the object file. Therefore, we should set both variables
together.

This fixes a bug I was hitting on sh where $offset (which is used to
calcualte the addends for the __mcount_loc entries) was being set
multiple times and didn't correspond to $ref_func's offset in the object
file. The addends in __mcount_loc were calculated incorrectly, resulting
in ftrace dynamically modifying addresses that weren't mcount call
sites.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
LKML-Reference: <1248365775-25196-2-git-send-email-matt@console-pimps.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2009-07-23 12:20:30 -04:00
..
2009-06-27 00:07:27 +02:00
2009-06-27 00:17:48 +02:00
2007-12-17 19:28:17 -08:00
2009-02-27 16:26:22 -08:00
2008-10-22 21:53:49 -07:00
2008-07-25 22:12:41 +02:00
2009-06-09 22:37:54 +02:00
2009-06-09 22:37:43 +02:00
2009-07-01 11:26:40 -07:00
2008-04-25 20:18:48 +02:00
2008-04-25 20:18:48 +02:00
2009-06-09 22:37:54 +02:00