diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-12-17 21:34:13 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-18 12:03:09 (GMT) |
commit | 3d9101e92529e1ff6014f95a69afc82f37b9b13a (patch) | |
tree | 5147a9331a9a98d0ab073258d489aa0b052e524b /arch/x86/include/asm/ds.h | |
parent | 55dac3a5553b13891f0ae4bbd11920619b5436d4 (diff) | |
download | linux-3d9101e92529e1ff6014f95a69afc82f37b9b13a.tar.xz |
trace: fix task state printout
Impact: fix occasionally incorrect trace output
The tracing code has interesting varieties of printing out task state.
Unfortunalely only one of the instances is correct as it copies the
code from sched.c:sched_show_task(). The others are plain wrong as
they treatthe bitfield as an integer offset into the character
array. Also the size check of the character array is wrong as it
includes the trailing \0.
Use a common state decoder inline which does the Right Thing.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/ds.h')
0 files changed, 0 insertions, 0 deletions