Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: tracing: Use mutex_unlock for testing glob filter

Since commit c5b6ababd21a ("locking/mutex: implement
mutex_trylock_nested") makes mutex_trylock() as an inlined
function if CONFIG_DEBUG_LOCK_ALLOC=y, we can not use
mutex_trylock() for testing the glob filter of ftrace.

Use mutex_unlock instead.

Link: https://lore.kernel.org/r/175151680309.2149615.9795104805153538717.stgit@mhiramat.tok.corp.google.com
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Masami Hiramatsu (Google) and committed by
Shuah Khan
a089bb28 95d32c7e

+1 -1
+1 -1
tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc
··· 29 29 ftrace_filter_check '*pin*lock' '.*pin.*lock$' 30 30 31 31 # filter by start*mid* 32 - ftrace_filter_check 'mutex*try*' '^mutex.*try.*' 32 + ftrace_filter_check 'mutex*unl*' '^mutex.*unl.*' 33 33 34 34 # Advanced full-glob matching feature is recently supported. 35 35 # Skip the tests if we are sure the kernel does not support it.