1. 11 7月, 2009 3 次提交
    • M
      sh: Mark __switch_to() as __notrace_funcgraph · 7816fecd
      Matt Fleming 提交于
      Annotate __switch_to() so that the function graph tracer does not try to
      trace it. Use __notrace_funcgraph, as opposed to notrace, so that other
      tracers can continue to trace __switch_to().
      
      The reason that we don't want to trace __switch_to() with the function
      graph tracer is because of how the return address stack in task_struct
      is implemented. When we enter __switch_to we store the real return
      address on prev's ret_stack. When we return from __switch_to() we've
      patched the return address on the kernel stack to be
      return_to_handler. Calling return_to_handler we do,
      
             -> ftrace_return_to_handler()
             	  -> ftrace_pop_return_ftrace()
      
      Which tries to pop the real return address from current->ret_stack. The
      problem being that we stored the return address on prev->ret_stack, but
      current now points to next, and next->ret_stack doesn't contain the
      correct return address (and is possibly even empty).
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      7816fecd
    • M
      sh: Function graph tracer support · 327933f5
      Matt Fleming 提交于
      Add both dynamic and static function graph tracer support for sh.
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      327933f5
    • M
      sh: Provide diagnostic kernel stack checks · b99610fb
      Matt Fleming 提交于
      Enable kernel stack checking code in both the dynamic ftrace and mcount
      code paths. Check the stack to see if it's overflowing and make sure
      that the stack pointer contains an address that's either in init_stack
      or after the bss.
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      b99610fb
  2. 06 7月, 2009 3 次提交
  3. 05 7月, 2009 9 次提交
  4. 04 7月, 2009 8 次提交
  5. 03 7月, 2009 17 次提交