diff options
author | Ankita Garg <ankita@in.ibm.com> | 2008-05-12 21:20:58 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 21:46:30 +0200 |
commit | d17d969160c18b631a19c2b34d260691402650f8 (patch) | |
tree | 7be3269a644d164021d1e57effe3b1f57b3adb7a /ipc | |
parent | 72829bc3d63cdc592d8f7dd86ad3b3fe8900fb74 (diff) |
ftrace: fix conversion of task state to char in latency tracer
The conversion of task states to a character in the sched_switch tracer (part
of latency tracer infrastructure), seems to be incorrect. We currently do it
by indexing into the state_to_char array using the state value. The state
values do not map directly into the array index and are thus incorrect. The
following patch addresses this issue. This is also what is being done even
in the show_task() routine in kernel/sched.c
The patch has been compile and run tested.
Signed-off-by: Ankita Garg <ankita@in.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions