aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-05-12 15:20:41 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:31:05 -0400
commit7c731e0a495e25e79dc1e9e68772a67a55721a65 (patch)
tree6d61a9a01708a8174d2b0badaee8df1153449be8 /include/linux/sched.h
parentbd3bff9e20f454b242d979ec2f9a4dca0d5fa06f (diff)
ftrace: make the task state char-string visible to all
The tracer wants to be able to convert the state number into a user visible character. This patch pulls that conversion string out the scheduler into the header. This way if it were to ever change, other parts of the kernel will know. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 717cab8a0c83..6e26f1fdbfe2 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2237,6 +2237,8 @@ static inline void mm_init_owner(struct mm_struct *mm, struct task_struct *p)
2237} 2237}
2238#endif /* CONFIG_MM_OWNER */ 2238#endif /* CONFIG_MM_OWNER */
2239 2239
2240#define TASK_STATE_TO_CHAR_STR "RSDTtZX"
2241
2240#endif /* __KERNEL__ */ 2242#endif /* __KERNEL__ */
2241 2243
2242#endif 2244#endif