]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: add UNINTERRUPTIBLE state for kftraced on disable
authorSteven Rostedt <srostedt@redhat.com>
Mon, 12 May 2008 19:20:55 +0000 (21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 19:15:42 +0000 (21:15 +0200)
commit1352149038eca9a9faa61d037ae46257ad7f31bf
tree886495b48c0e10866aa92e61e0dbd247a7e80e25
parenta94e9bd1c7261e983cffd2d7a93129789d8d8333
ftrace: add UNINTERRUPTIBLE state for kftraced on disable

When dynamic ftrace fails and sets itself disabled, the ftraced daemon
will go back to sleep everytime it wakes up. The setting of the
ftraced state to UNINTERRUPTIBLE is skipped in this process, and the
daemon takes up 100% of the CPU.  This patch makes sure the ftraced daemon
sets itself to UNINTERRUPTIBLE in that loop.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/ftrace.c