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
..
2015-11-26 22:11:17 +11:00
2015-11-26 22:11:17 +11:00
2015-12-01 13:52:25 +11:00
2015-12-27 19:12:14 +11:00
2013-08-27 16:01:23 +10:00
2015-04-11 20:49:28 +10:00
2014-09-22 10:11:31 +02:00
2015-03-17 07:52:48 +11:00
2015-06-19 17:10:28 +10:00
2014-11-10 09:59:26 +11:00
2015-10-27 18:13:27 -05:00
2015-03-20 14:51:53 +11:00
2015-07-13 10:10:55 +10:00
2015-07-13 10:10:55 +10:00
2015-10-28 14:20:50 +09:00
2015-05-13 14:00:07 +10:00
2015-03-24 13:15:51 +11:00
2015-10-21 20:41:43 +11:00
2014-06-11 17:04:33 +10:00
2015-08-18 19:34:42 +10:00
2014-11-27 09:32:58 +11:00
2015-10-21 20:41:43 +11:00
2015-07-29 11:56:11 +10:00
2015-12-17 22:40:57 +11:00
2013-03-13 14:19:36 -05:00
2014-06-10 18:54:22 -07:00
2015-10-27 18:13:27 -05:00
2015-12-17 22:40:58 +11:00
2014-10-30 16:52:46 +11:00
2015-12-01 13:52:26 +11:00
2015-08-07 23:00:01 -05:00
2014-12-11 17:48:14 -08:00
2015-06-02 21:37:28 -05:00
2014-06-11 16:31:21 +10:00
2014-08-13 15:13:42 +10:00
2015-10-27 18:13:27 -05:00
2013-05-02 10:31:01 +10:00
2015-12-01 13:52:25 +11:00
2014-11-03 12:12:32 +11:00
2014-09-25 23:14:46 +10:00
2012-07-11 14:18:22 +10:00
2014-04-23 10:05:16 +10:00
2015-06-02 21:37:19 -05:00
2014-04-23 10:05:16 +10:00
2015-12-01 13:52:24 +11:00
2013-07-01 11:10:35 +10:00
2015-10-12 15:30:09 +11:00
2013-08-14 14:58:08 +10:00
2014-06-24 12:43:13 +10:00
2015-06-11 15:16:49 +10:00
2015-09-15 17:06:28 +02:00
2013-01-03 15:57:04 -08:00
2015-08-03 11:34:12 +02: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
2014-09-25 23:14:46 +10:00
2015-10-27 18:13:30 -05:00
2014-02-11 11:24:52 +11:00
2015-08-06 16:36:23 +10:00
2015-03-17 07:52:48 +11:00
2015-05-12 19:44:01 +10:00
2015-12-17 22:41:00 +11:00
2015-10-27 18:13:30 -05:00
2014-10-15 11:23:20 +11:00
2014-10-02 17:33:54 +10:00
2014-10-02 17:33:54 +10:00
2013-10-30 16:00:31 +11:00
2015-06-02 11:47:45 +10:00
2015-10-02 22:55:05 +10:00
2015-03-24 13:15:52 +11:00
2015-10-27 18:13:28 -05:00
2014-11-19 21:41:51 +11:00
2014-12-11 17:48:14 -08:00
2015-03-31 13:02:38 +11:00
2015-09-08 14:35:59 -07:00
2015-10-15 20:31:57 +11:00
2015-06-03 13:27:15 +10:00
2013-02-03 18:16:10 -05:00
2014-09-25 23:14:40 +10:00
2015-12-01 13:52:25 +11:00
2013-06-29 12:57:50 +04:00
2015-12-14 20:40:32 +11:00
2014-09-25 23:14:46 +10:00
2015-12-17 23:23:22 +11:00
2013-08-14 15:33:26 +10:00
2015-10-28 12:08:32 +09:00
2013-10-18 18:44:49 -05:00
2015-11-26 22:11:17 +11:00
2013-07-01 11:10:34 +10:00
2014-03-07 13:50:19 +11:00
2014-07-28 11:30:54 +10:00
2015-04-11 20:49:09 +10:00
2014-11-10 09:59:32 +11:00
2015-12-17 22:40:56 +11:00
2014-09-25 23:14:41 +10:00
2015-09-17 10:36:53 +10:00
2015-10-27 18:13:29 -05:00
2014-11-03 12:12:51 +11: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
2014-08-06 13:03:09 +02:00
2014-01-15 13:46:44 +11:00
2015-03-04 13:19:33 +11:00
2016-01-11 14:27:28 +11:00
2014-10-09 22:26:04 -04:00
2013-10-31 12:37:29 +11:00
2014-01-07 19:06:03 -06:00
2015-12-02 19:34:40 +11:00
2013-05-09 13:46:38 -04:00
2015-03-28 22:03:40 +11:00
2015-06-07 19:29:15 +10:00
2015-11-26 22:11:17 +11:00
2015-11-26 22:11:17 +11:00
2015-03-28 22:03:40 +11:00
2015-12-16 12:54:04 +11:00
2015-06-07 19:29:00 +10:00
2015-08-06 16:36:23 +10:00
2015-11-26 22:11:16 +11:00
2014-11-12 13:47:20 +11:00
2015-04-07 17:15:13 +10:00
2013-11-20 16:31:01 +01:00
2015-11-26 22:11:17 +11:00
2013-10-11 17:26:49 +11:00
2015-12-01 13:52:26 +11:00
2015-06-24 17:49:38 -07:00
2015-10-15 20:31:59 +11:00