From: Frederic Weisbecker Date: Wed, 26 Aug 2009 21:38:30 +0000 (+0200) Subject: tracing/kprobes: Dump the culprit kprobe in case of kprobe recursion X-Git-Tag: v2.6.33-rc1~399^2~239 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24851d2447830e6cba4c4b641cb73e713f312373;p=pandora-kernel.git tracing/kprobes: Dump the culprit kprobe in case of kprobe recursion Kprobes can enter into a probing recursion, ie: a kprobe that does an endless loop because one of its core mechanism function used during probing is also probed itself. This patch helps pinpointing the kprobe that raised such recursion by dumping it and raising a BUG instead of a warning (we also disarm the kprobe to try avoiding recursion in BUG itself). Having a BUG instead of a warning stops the stacktrace in the right place and doesn't pollute the logs with hundreds of traces that eventually end up in a stack overflow. Signed-off-by: Frederic Weisbecker Cc: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli --- Reading git-diff-tree failed