diff options
| author | Steven Rostedt <rostedt@goodmis.org> | 2026-10-29 21:12:18 -0400 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2026-11-05 14:18:20 -0700 |
| commit | 88d5f8cb8a6276194ac8c1de44f3ed77d7e938ce (patch) | |
| tree | fe9014d03af42cf815044331bd477f9f7e07eccd /include/linux/debugobjects.h | |
| parent | 27698b545cde67aaf947e20f8e6fe00af1b667df (diff) | |
tracing/selftests: Fix false bashism in kprobe_non_uniq_symbol.tc
The checkbashism is giving a false positive to the kprobe test of:
($"foo" should be eval_gettext "foo"):
if [ "$(grep -c -E "[[:alnum:]]+ t ${SYMBOL}$" /proc/kallsyms)" -le '1' ]; then
This is because it sees the $" at the end of the grep as a bash symbol.
Instead, escape the '$' with a backslash as it is within quotes and that
'$' is for grep to process an end of line character and not a bash
variable.
Link: https://lore.kernel.org/r/20261029211218.3749963a@fedora
Cc: stable@vger.kernel.org
Fixes: d22c3e0088e85 ("selftests/ftrace: Fix unique symbol check in kprobe_non_uniq_symbol.tc")
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
