tracing/filters: Fix MATCH_FRONT_ONLY filter matching
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 14 Jan 2010 02:53:21 +0000 (10:53 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Jan 2010 03:38:05 +0000 (22:38 -0500)
commit285caad415f459f336247932b4db95a571357a02
treeb4372c5336dee9919f26c61a4808ef08993a43a6
parent751e9983ee276cb150e8812b1d995f6035a63878
tracing/filters: Fix MATCH_FRONT_ONLY filter matching

MATCH_FRONT_ONLY actually is a full matching:

  # ./perf record -R -f -a -e lock:lock_acquire \
--filter 'name ~rcu_*' sleep 1
  # ./perf trace
  (no output)

We should pass the length of the pattern string to strncmp().

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