summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorjolsa@redhat.com <jolsa@redhat.com>2009-10-07 19:00:35 +0200
committerSteven Rostedt <rostedt@goodmis.org>2009-10-07 15:52:09 -0400
commite7247a15ff3bbdab0a8b402dffa1171e5c05a8e0 (patch)
tree139c26b2abd8ea5dd55ee6a4d43622bb24a0ee6a /include/linux
parent829b876dfc94ea8be3a47e200d06f1f217bb104f (diff)
downloadlinux-e7247a15ff3bbdab0a8b402dffa1171e5c05a8e0.tar.gz
linux-e7247a15ff3bbdab0a8b402dffa1171e5c05a8e0.tar.bz2
linux-e7247a15ff3bbdab0a8b402dffa1171e5c05a8e0.zip
tracing: correct module boundaries for ftrace_release
When the module is about the unload we release its call records. The ftrace_release function was given wrong values representing the module core boundaries, thus not releasing its call records. Plus making ftrace_release function module specific. Signed-off-by: Jiri Olsa <jolsa@redhat.com> LKML-Reference: <1254934835-363-3-git-send-email-jolsa@redhat.com> Cc: stable@kernel.org Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ftrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index cd3d2abaf30a..0b4f97d24d7f 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -241,7 +241,7 @@ extern void ftrace_enable_daemon(void);
# define ftrace_set_filter(buf, len, reset) do { } while (0)
# define ftrace_disable_daemon() do { } while (0)
# define ftrace_enable_daemon() do { } while (0)
-static inline void ftrace_release(void *start, unsigned long size) { }
+static inline void ftrace_release_mod(struct module *mod) {}
static inline int register_ftrace_command(struct ftrace_func_command *cmd)
{
return -EINVAL;