Steven Rostedt 35de3b1aa1 powerpc: Implement save_stack_trace_regs() to enable kprobe stack tracing
It has come to my attention that kprobe event stack tracing does not
work on powerpc. You can see with the following:

  # cd /sys/kernel/debug/tracing
  # echo stacktrace > trace_options
  # echo 'p kfree' > kprobe_events
  # echo 1 > events/kprobes/enable

Will print the following warning:
  save_stack_trace_regs() not implemented yet.

Although save_stack_trace() (which normal event stack traces use) is
implemented, save_stack_trace_regs() which kprobe events use is not.
This is a cheap attempt to implement that function.

Note, This may have issues if a task tries to get a stack trace from
another task with its regs, because it just passes in "current" to
save_context_stack(). But this does solve the issue with stack tracing
kprobe events.

Reported-by: Chunyu Hu <chuhu@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-01-11 14:27:28 +11:00
..
2014-11-27 09:32:58 +11:00
2014-12-11 17:48:14 -08:00
2014-08-13 15:13:42 +10:00
2014-09-25 23:14:46 +10:00
2014-11-03 12:12:32 +11:00
2014-11-03 12:12:32 +11:00
2015-08-06 15:10:20 +10:00
2015-10-27 18:13:30 -05:00
2015-03-24 13:15:52 +11:00
2014-12-11 17:48:14 -08:00
2015-09-08 14:35:59 -07:00
2015-12-14 20:40:32 +11:00
2015-12-17 22:40:56 +11:00
2014-09-25 23:14:41 +10:00
2015-12-14 20:40:32 +11:00
2015-12-14 20:40:32 +11:00
2014-08-06 13:04:32 +02:00
2015-12-02 19:34:40 +11:00
2015-12-16 12:54:04 +11:00
2015-04-07 17:15:13 +10:00
2015-06-24 17:49:38 -07:00