From: Ankita Garg Date: Mon, 12 May 2008 19:20:58 +0000 (+0200) Subject: ftrace: fix conversion of task state to char in latency tracer X-Git-Tag: v2.6.27-rc1~1102^2^2~1^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d17d969160c18b631a19c2b34d260691402650f8;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed