Skip to content

Commit f5d9e8e

Browse files
committed
tracing/selftests: Update kprobe args char/string to match new functions
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: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 5790b1f commit f5d9e8e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ mips*)
3434
esac
3535

3636
: "Test get argument (1)"
37-
if grep -q eventfs_add_dir available_filter_functions; then
37+
if grep -q eventfs_create_dir available_filter_functions; then
38+
DIR_NAME="eventfs_create_dir"
39+
elif grep -q eventfs_add_dir available_filter_functions; then
3840
DIR_NAME="eventfs_add_dir"
3941
else
4042
DIR_NAME="tracefs_create_dir"

tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ loongarch*)
3737
esac
3838

3939
: "Test get argument (1)"
40-
if grep -q eventfs_add_dir available_filter_functions; then
40+
if grep -q eventfs_create_dir available_filter_functions; then
41+
DIR_NAME="eventfs_create_dir"
42+
elif grep -q eventfs_add_dir available_filter_functions; then
4143
DIR_NAME="eventfs_add_dir"
4244
else
4345
DIR_NAME="tracefs_create_dir"

0 commit comments

Comments
 (0)