This is a note to let you know that I've just added the patch titled
ftrace: Update filter when tracing enabled in set_ftrace_filter()
to the 3.0-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ftrace-update-filter-when-tracing-enabled-in-set_ftrace_filter.patch
and it can be found in the queue-3.0 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 072126f4529196f71a97960248bca54fd4554c2d Mon Sep 17 00:00:00 2001
From: Steven Rostedt <[email protected]>
Date: Wed, 13 Jul 2011 15:08:31 -0400
Subject: ftrace: Update filter when tracing enabled in set_ftrace_filter()
From: Steven Rostedt <[email protected]>
commit 072126f4529196f71a97960248bca54fd4554c2d upstream.
Currently, if set_ftrace_filter() is called when the ftrace_ops is
active, the function filters will not be updated. They will only be updated
when tracing is disabled and re-enabled.
Update the functions immediately during set_ftrace_filter().
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
kernel/trace/ftrace.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2901,6 +2901,10 @@ ftrace_set_regex(struct ftrace_ops *ops,
mutex_lock(&ftrace_lock);
ret = ftrace_hash_move(ops, enable, orig_hash, hash);
+ if (!ret && ops->flags & FTRACE_OPS_FL_ENABLED
+ && ftrace_enabled)
+ ftrace_run_update_code(FTRACE_ENABLE_CALLS);
+
mutex_unlock(&ftrace_lock);
mutex_unlock(&ftrace_regex_lock);
Patches currently in stable-queue which might be from [email protected] are
queue-3.0/ftrace-balance-records-when-updating-the-hash.patch
queue-3.0/ftrace-update-filter-when-tracing-enabled-in-set_ftrace_filter.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html