1. 24 7月, 2009 2 次提交
    • M
      ftrace: Only update $offset when we update $ref_func · bd171d5f
      Matt Fleming 提交于
      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: NMatt Fleming <matt@console-pimps.org>
      LKML-Reference: <1248365775-25196-2-git-send-email-matt@console-pimps.org>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      bd171d5f
    • M
      ftrace: Fix the conditional that updates $ref_func · fc4c7355
      Matt Fleming 提交于
      Fix the conditional that checks if we already have a $ref_func and that
      the new function is weak. The code as previously checking whether either
      condition was false, and we really need to only update $ref_func is both
      cconditions are false.
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      LKML-Reference: <1248365775-25196-1-git-send-email-matt@console-pimps.org>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      fc4c7355
  2. 23 7月, 2009 5 次提交
  3. 18 7月, 2009 4 次提交
  4. 17 7月, 2009 26 次提交
  5. 16 7月, 2009 3 次提交