diff options
author | Tejun Heo <tj@kernel.org> | 2011-12-15 14:31:35 -0800 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-12-21 07:27:02 -0500 |
commit | 38b78eb855409a05f9d370228bec1955e6878e08 (patch) | |
tree | 4f07483d49aaa53f7b6905a482f05ddcde4834de /scripts/genksyms | |
parent | 762e1207889b3451c50d365b741af6f9ce958886 (diff) | |
download | linux-stable-38b78eb855409a05f9d370228bec1955e6878e08.tar.gz linux-stable-38b78eb855409a05f9d370228bec1955e6878e08.tar.bz2 linux-stable-38b78eb855409a05f9d370228bec1955e6878e08.zip |
tracing: Factorize filter creation
There are four places where new filter for a given filter string is
created, which involves several different steps. This patch factors
those steps into create_[system_]filter() functions which in turn make
use of create_filter_{start|finish}() for common parts.
The only functional change is that if replace_filter_string() is
requested and fails, creation fails without any side effect instead of
being ignored.
Note that system filter is now installed after the processing is
complete which makes freeing before and then restoring filter string
on error unncessary.
-v2: Rebased to resolve conflict with 49aa29513e and updated both
create_filter() functions to always set *filterp instead of
requiring the caller to clear it to %NULL on entry.
Link: http://lkml.kernel.org/r/1323988305-1469-2-git-send-email-tj@kernel.org
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/genksyms')
0 files changed, 0 insertions, 0 deletions