]> bbs.cooldavid.org Git - net-next-2.6.git/commit
function-graph: allow unregistering twice
authorSteven Rostedt <srostedt@redhat.com>
Mon, 30 Mar 2009 15:11:28 +0000 (11:11 -0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 1 Apr 2009 12:47:42 +0000 (14:47 +0200)
commit2aad1b76e6b0cc5a2e5d9b95a9f356ddddbfa8a9
tree80ac6be0f1502079a50f8b1b4ffcc5e0586791e8
parent8b54e45b0005875f59cb8b1c44d429a161d5f245
function-graph: allow unregistering twice

Impact: fix to permanent disabling of function graph tracer

There should be nothing to prevent a tracer from unregistering a
function graph callback more than once. This can simplify error paths.

But currently, the counter does not account for mulitple unregistering
of the function graph callback. If it happens, the function graph
tracer will be permanently disabled.

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