selftests/ftrace: Add riscv support for kprobe arg tests
authorYu Liao <liaoyu15@huawei.com>
Wed, 18 Oct 2023 02:08:58 +0000 (10:08 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 18 Oct 2023 20:33:44 +0000 (14:33 -0600)
This is the riscv variant of commit 9855c4626c67 ("selftests/ftrace:
Add ppc support for kprobe args tests").

Signed-off-by: Yu Liao <liaoyu15@huawei.com>
Acked-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/kprobe/kprobe_args_char.tc
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc

index 2b04603a3b4040ad8661aab59273b938f9a316a1..21db6b720754f6251a8ceb13f6eb84559bbe276a 100644 (file)
@@ -31,6 +31,9 @@ mips*)
 loongarch*)
   ARG1=%r4
 ;;
+riscv*)
+  ARG1=%a0
+;;
 *)
   echo "Please implement other architecture here"
   exit_untested
index a202b2ea4baf98e8556263b27b125d66b056038a..4e086f871ceef9491968b50d1a21e30c7fba0030 100644 (file)
@@ -31,6 +31,9 @@ mips*)
 loongarch*)
   ARG1=%r4
 ;;
+riscv*)
+  ARG1=%a0
+;;
 *)
   echo "Please implement other architecture here"
   exit_untested
index 1df61e13a812b789d11a06cc9a3ddc517a72a359..8f1292ad80ff15d6341513782ce61c90f8b0cce7 100644 (file)
@@ -44,6 +44,10 @@ loongarch*)
   GOODREG=%r4
   BADREG=%r12
 ;;
+riscv*)
+  GOODREG=%a0
+  BADREG=%a8
+;;
 *)
   echo "Please implement other architecture here"
   exit_untested