Whamcloud - gitweb
Branch b1_8
authoryangsheng <yangsheng>
Thu, 21 May 2009 07:22:17 +0000 (07:22 +0000)
committeryangsheng <yangsheng>
Thu, 21 May 2009 07:22:17 +0000 (07:22 +0000)
b=18668

i=johann, brian

SLES11 patchless support.

lnet/libcfs/linux/linux-debug.c

index c75bdf4..9a693ea 100644 (file)
@@ -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();