ftrace: Fix MATCH_END_ONLY function filter
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 14 Jan 2010 02:53:02 +0000 (10:53 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Jan 2010 03:38:03 +0000 (22:38 -0500)
commit751e9983ee276cb150e8812b1d995f6035a63878
tree7f9abfa2ea11bcc2ccfa9922af17811d5020fa69
parentb82a4045f7962483a78a874343dc6e31b79c96c1
ftrace: Fix MATCH_END_ONLY function filter

For '*foo' pattern, we should allow any string ending with
'foo', but ftrace filter incorrectly disallows strings
like bar_foo_foo:

  # echo '*io' > set_ftrace_filter
  # cat set_ftrace_filter | grep 'req_bio_endio'
  # cat available_filter_functions | grep 'req_bio_endio'
  req_bio_endio

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4B4E870E.6060607@cn.fujitsu.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c