From: Matt Fleming Date: Thu, 23 Jul 2009 16:16:15 +0000 (+0100) Subject: ftrace: Only update $offset when we update $ref_func X-Git-Tag: v2.6.31-rc6~77^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd171d5ffc5cb2ba471e8205c679ee9d12b90116;p=pandora-kernel.git 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 LKML-Reference: <1248365775-25196-2-git-send-email-matt@console-pimps.org> Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed