Commit 9de09a02 authored by Steven Rostedt (Google)'s avatar Steven Rostedt (Google) Committed by JSY
Browse files

tracing/selftests: Update kprobe args char/string to match new functions

mainline inclusion
from mainline-v6.7-rc1
commit f5d9e8e08f81c9e7c723de7abcce106808f0770c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB6GTE

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f5d9e8e08f81c9e7c723de7abcce106808f0770c

--------------------------------

The function that the kprobe_args_char and kprobes_arg_string attaches to
for its test has changed its name once again. Now we need to check for
eventfs_create_dir(), and if it exists, use that, otherwise check for
eventfs_add_dir() and if that exists use that, otherwise use the original
tracefs_create_dir()!

Link: https://lore.kernel.org/linux-trace-kernel/20230914163535.487267410@goodmis.org



Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ajay Kaher <akaher@vmware.com>
Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarJiangshan Yi <yijiangshan@kylinos.cn>
parent dccd6d84
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -34,7 +34,9 @@ mips*)
esac

: "Test get argument (1)"
if grep -q eventfs_add_dir available_filter_functions; then
if grep -q eventfs_create_dir available_filter_functions; then
  DIR_NAME="eventfs_create_dir"
elif grep -q eventfs_add_dir available_filter_functions; then
  DIR_NAME="eventfs_add_dir"
else
  DIR_NAME="tracefs_create_dir"
+3 −1
Original line number Diff line number Diff line
@@ -40,7 +40,9 @@ sw_64)
esac

: "Test get argument (1)"
if grep -q eventfs_add_dir available_filter_functions; then
if grep -q eventfs_create_dir available_filter_functions; then
  DIR_NAME="eventfs_create_dir"
elif grep -q eventfs_add_dir available_filter_functions; then
  DIR_NAME="eventfs_add_dir"
else
  DIR_NAME="tracefs_create_dir"