From: Li Zefan Date: Thu, 14 Jan 2010 02:53:21 +0000 (+0800) Subject: tracing/filters: Fix MATCH_FRONT_ONLY filter matching X-Git-Tag: v2.6.33-rc5~32^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=285caad415f459f336247932b4db95a571357a02;p=pandora-kernel.git 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 LKML-Reference: <4B4E8721.5090301@cn.fujitsu.com> Acked-by: Frederic Weisbecker Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed