1
linux/kernel/trace
Ankita Garg d17d969160 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>
2008-05-23 21:46:30 +02:00
..
ftrace.c ftrace: add UNINTERRUPTIBLE state for kftraced on disable 2008-05-23 21:15:42 +02:00
Kconfig ftrace: restrict tracing to HAVE_FTRACE architectures 2008-05-23 21:15:29 +02:00
Makefile ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_functions.c ftrace: remove notrace 2008-05-23 20:58:28 +02:00
trace_irqsoff.c ftrace: irqsoff use raw_smp_processor_id 2008-05-23 21:13:41 +02:00
trace_sched_switch.c ftrace: remove add-hoc code 2008-05-23 21:13:32 +02:00
trace_sched_wakeup.c ftrace: printk and trace irqsoff and wakeups 2008-05-23 21:13:02 +02:00
trace_selftest_dynamic.c ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_selftest.c ftrace: selftest protect againt max flip 2008-05-23 21:15:59 +02:00
trace.c ftrace: fix conversion of task state to char in latency tracer 2008-05-23 21:46:30 +02:00
trace.h ftrace: move enums to ftrace.h and make helper function global 2008-05-23 21:37:28 +02:00