1. 17 12月, 2009 1 次提交
    • F
      perf events, x86/stacktrace: Make stack walking optional · 61c1917f
      Frederic Weisbecker 提交于
      The current print_context_stack helper that does the stack
      walking job is good for usual stacktraces as it walks through
      all the stack and reports even addresses that look unreliable,
      which is nice when we don't have frame pointers for example.
      
      But we have users like perf that only require reliable
      stacktraces, and those may want a more adapted stack walker, so
      lets make this function a callback in stacktrace_ops that users
      can tune for their needs.
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1261024834-5336-1-git-send-regression-fweisbec@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      61c1917f
  2. 13 6月, 2009 1 次提交
    • V
      x86: add save_stack_trace_bp() for tracing from a specific stack frame · acc6be54
      Vegard Nossum 提交于
      This will help kmemcheck (and possibly other debugging tools) since we
      can now simply pass regs->bp to the stack tracer instead of specifying
      the number of stack frames to skip, which is unreliable if gcc decides
      to inline functions, etc.
      
      Note that this makes the API incomplete for other architectures, but I
      expect that those can be updated lazily, e.g. when they need it.
      
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NVegard Nossum <vegard.nossum@gmail.com>
      acc6be54
  3. 15 5月, 2009 1 次提交
    • S
      x86/stacktrace: return 0 instead of -1 for stack ops · 29a67975
      Steven Rostedt 提交于
      If we return -1 in the ops->stack for the stacktrace saving, we end up
      breaking out of the loop if the stack we are tracing is in the exception
      stack. This causes traces like:
      
                <idle>-0     [002] 34263.745825: raise_softirq_irqoff <-__blk_complete_request
                <idle>-0     [002] 34263.745826:
       <= 0
       <= 0
       <= 0
       <= 0
       <= 0
       <= 0
       <= 0
      
      By returning "0" instead, the irq stack is saved as well, and we see:
      
                <idle>-0     [003]   883.280992: raise_softirq_irqoff <-__hrtimer_star
      t_range_ns
                <idle>-0     [003]   883.280992:
       <= hrtimer_start_range_ns
       <= tick_nohz_restart_sched_tick
       <= cpu_idle
       <= start_secondary
       <=
       <= 0
       <= 0
      
      [ Impact: record stacks from interrupts ]
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      29a67975
  4. 31 1月, 2009 1 次提交
  5. 23 11月, 2008 2 次提交
  6. 30 6月, 2008 1 次提交
  7. 26 2月, 2008 1 次提交
    • V
      x86: don't save unreliable stack trace entries · 1650743c
      Vegard Nossum 提交于
      Currently, there is no way for print_stack_trace() to determine whether
      a given stack trace entry was deemed reliable or not, simply because
      save_stack_trace() does not record this information. (Perhaps needless
      to say, this makes the saved stack traces A LOT harder to read, and
      probably with no other benefits, since debugging features that use
      save_stack_trace() most likely also require frame pointers, etc.)
      
      This patch reverts to the old behaviour of only recording the reliable trace
      entries for saved stack traces.
      Signed-off-by: NVegard Nossum <vegardno@ifi.uio.no>
      Acked-by: NArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      1650743c
  8. 30 1月, 2008 4 次提交
  9. 26 1月, 2008 1 次提交
  10. 18 10月, 2007 1 次提交
  11. 14 10月, 2007 1 次提交
    • D
      Delete filenames in comments. · 835c34a1
      Dave Jones 提交于
      Since the x86 merge, lots of files that referenced their own filenames
      are no longer correct.  Rather than keep them up to date, just delete
      them, as they add no real value.
      
      Additionally:
      - fix up comment formatting in scx200_32.c
      - Remove a credit from myself in setup_64.c from a time when we had no SCM
      - remove longwinded history from tsc_32.c which can be figured out from
        git.
      Signed-off-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      835c34a1
  12. 11 10月, 2007 1 次提交
  13. 09 5月, 2007 1 次提交
  14. 13 2月, 2007 1 次提交
  15. 26 9月, 2006 2 次提交
    • A
      [PATCH] Merge stacktrace and show_trace · c0b766f1
      Andi Kleen 提交于
      This unifies the standard backtracer and the new stacktrace
      in memory backtracer. The standard one is converted to use callbacks
      and then reimplement stacktrace using new callbacks.
      
      The main advantage is that stacktrace can now use the new dwarf2 unwinder
      and avoid false positives in many cases.
      
      I kept it simple to make sure the standard backtracer stays reliable.
      
      Cc: mingo@elte.hu
      Signed-off-by: NAndi Kleen <ak@suse.de>
      c0b766f1
    • A
      [PATCH] x86: Some preparationary cleanup for stack trace · 5a1b3999
      Andi Kleen 提交于
      - Remove unused all_contexts parameter
      No caller used it
      - Move skip argument into the structure (needed for
      followon patches)
      
      Cc: mingo@elte.hu
      Signed-off-by: NAndi Kleen <ak@suse.de>
      5a1b3999
  16. 04 7月, 2006 1 次提交