]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selftests: tracing: Use mutex_unlock for testing glob filter
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Thu, 3 Jul 2025 04:26:43 +0000 (13:26 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 7 Jul 2025 21:34:10 +0000 (15:34 -0600)
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>
tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc

index 4b994b6df5ac30ebdc8b1010fd949d6a594af9c4..ed81eaf2afd6d9ce29fdb01a05ae4584c2739805 100644 (file)
@@ -29,7 +29,7 @@ ftrace_filter_check 'schedule*' '^schedule.*$'
 ftrace_filter_check '*pin*lock' '.*pin.*lock$'
 
 # filter by start*mid*
-ftrace_filter_check 'mutex*try*' '^mutex.*try.*'
+ftrace_filter_check 'mutex*unl*' '^mutex.*unl.*'
 
 # Advanced full-glob matching feature is recently supported.
 # Skip the tests if we are sure the kernel does not support it.