Re: [patch] Real-Time Preemption, -RT-2.6.11-rc3-V0.7.38-01

Steven Rostedt
2005-02-11T21:49:17Z

Ingo,

Here's a trivial patch to help others from freaking out when they see on
a show_trace that most of their processes are TASK_UNINTERRUPTIBLE.

Index: kernel/sched.c
===================================================================
--- kernel/sched.c (revision 75)
+++ kernel/sched.c (working copy)
@@ -4489,7 +4489,7 @@
task_t *relative;
unsigned state;
unsigned long free = 0;
- static const char *stat_nam[] = { "R", "S", "D", "T", "t", "Z", "X" };
+ static const char *stat_nam[] = { "R", "M", "S", "D", "T", "t", "Z", "X" };

printk("%-13.13s [%p]", p->comm, p);
state = p->state ? __ffs(p->state) + 1 : 0;

I figure that "M" would be a good fit for TASK_RUNNING_MUTEX.

-- Steve