From 8e263af9b993968608270e7825ba65dcd2280c3a Mon Sep 17 00:00:00 2001 From: yangsheng Date: Thu, 21 May 2009 07:22:17 +0000 Subject: [PATCH] Branch b1_8 b=18668 i=johann, brian SLES11 patchless support. --- lnet/libcfs/linux/linux-debug.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lnet/libcfs/linux/linux-debug.c b/lnet/libcfs/linux/linux-debug.c index c75bdf4..9a693ea 100644 --- a/lnet/libcfs/linux/linux-debug.c +++ b/lnet/libcfs/linux/linux-debug.c @@ -281,6 +281,14 @@ static DUMP_TRACE_CONST struct stacktrace_ops print_trace_ops = { #endif /* HAVE_TRACE_ADDRESS_RELIABLE */ &print_trace_ops, NULL); printk("\n"); +#elif defined(HAVE_SCHED_SHOW_TASK) + /* exported by lustre patch on 2.6.27 kernel */ + extern void show_task(struct task_struct *); + + if (tsk == NULL) + tsk = current; + CWARN("showing stack for process %d\n", tsk->pid); + sched_show_task(tsk); #else if ((tsk == NULL) || (tsk == current)) dump_stack(); -- 1.8.3.1