aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorMatt Fleming <[email protected]>2009-07-23 17:16:15 +0100
committerSteven Rostedt <[email protected]>2009-07-23 12:20:30 -0400
commitbd171d5ffc5cb2ba471e8205c679ee9d12b90116 (patch)
tree0fdc1ae72f3e850368867c08ab5311262d8bce8b /net/lapb/lapb_iface.c
parentfc4c73554c9d93b3e495f2f7acae1323b0d5db84 (diff)
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 <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions