Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e993f
)
Branch b1_8
author
yangsheng
<yangsheng>
Thu, 21 May 2009 07:22:17 +0000
(07:22 +0000)
committer
yangsheng
<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
patch
|
blob
|
history
diff --git
a/lnet/libcfs/linux/linux-debug.c
b/lnet/libcfs/linux/linux-debug.c
index
c75bdf4
..
9a693ea
100644
(file)
--- 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();