]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ftrace: release functions from hash
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 16 Oct 2008 13:31:27 +0000 (09:31 -0400)
committerIngo Molnar <mingo@elte.hu>
Mon, 20 Oct 2008 16:27:01 +0000 (18:27 +0200)
commitbd95b88d9e51fcbf392a7e90338a8fcc3499cbd6
treea88df2bd756a4dd0715a92c3cec193366d86b861
parentc513867561eeb07d24a0bdda1a18a8f91921a301
ftrace: release functions from hash

The x86 architecture uses a static recording of mcount caller locations
and is not affected by this patch.

For architectures still using the dynamic ftrace daemon, this patch is
critical. It removes the race between the recording of a function that
calls mcount, the unloading of a module, and the ftrace daemon updating
the call sites.

This patch adds the releasing of the hash functions that the daemon uses
to update the mcount call sites. When a module is unloaded, not only
are the replaced call site table update, but now so is the hash recorded
functions that the ftrace daemon will use.

Again, architectures that implement MCOUNT_RECORD are not affected by
this (which currently only x86 has).

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