/usr/src/kernel-patches/lustre/patches/export-show_task-2.6-vanilla.patch is in linux-patch-lustre 1.8.5+dfsg-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | Index: linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091/kernel/sched.c
===================================================================
--- linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091.orig/kernel/sched.c 2004-10-22 15:25:05.000000000 -0400
+++ linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091/kernel/sched.c 2004-10-22 15:39:18.000000000 -0400
@@ -3147,7 +3147,7 @@
return list_entry(p->sibling.next,struct task_struct,sibling);
}
-static void show_task(task_t * p)
+void show_task(task_t * p)
{
task_t *relative;
unsigned state;
@@ -3200,9 +3200,10 @@
else
printk(" (NOTLB)\n");
- if (state != TASK_RUNNING)
+ if (state != TASK_RUNNING || p == current)
show_stack(p, NULL);
}
+EXPORT_SYMBOL(show_task);
void show_state(void)
{
|