diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-08-30 20:40:17 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-10-10 00:26:09 +0300 |
commit | 0032f4e889764d22ccccb6a15742071d6f0d1f5a (patch) | |
tree | 93b8ed1a0626d8d713d1587681c77dd9dda02342 /kernel/sched | |
parent | 2b1516e55f8416acfb48d5f43d41222d180fb5a3 (diff) | |
download | linux-0032f4e889764d22ccccb6a15742071d6f0d1f5a.tar.xz |
rcutorture: Dump writer stack if stalled
Right now, rcutorture warns if an rcu_torture_writer() kthread stalls,
but this warning is not always all that helpful. This commit therefore
makes the first such warning include a stack dump.
This in turn requires that sched_show_task() be exported to GPL modules,
so this commit makes that change as well.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index d17c5da523a0..7ae0151dcc1d 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5165,6 +5165,7 @@ void sched_show_task(struct task_struct *p) show_stack(p, NULL); put_task_stack(p); } +EXPORT_SYMBOL_GPL(sched_show_task); static inline bool state_filter_match(unsigned long state_filter, struct task_struct *p) |