Message ID | 20230815085912.701356-3-liaoyu15@huawei.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | add loongarch and riscv support for kprobe args test | expand |
On Tue, 15 Aug 2023 16:59:12 +0800 Yu Liao <liaoyu15@huawei.com> wrote: > This is the riscv variant of commit 9855c4626c67 ("selftests/ftrace: > Add ppc support for kprobe args tests"). Looks good to me. Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Thank you, > > Signed-off-by: Yu Liao <liaoyu15@huawei.com> > --- > .../selftests/ftrace/test.d/kprobe/kprobe_args_char.tc | 3 +++ > .../selftests/ftrace/test.d/kprobe/kprobe_args_string.tc | 3 +++ > .../selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc | 4 ++++ > 3 files changed, 10 insertions(+) > > diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc > index 3047fa96a7b7..3462c06d29b0 100644 > --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc > +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc > @@ -31,6 +31,9 @@ mips*) > loongarch*) > ARG1=%r4 > ;; > +riscv*) > + ARG1=%a0 > +;; > *) > echo "Please implement other architecture here" > exit_untested > diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc > index a4f8e7c53c1f..9bfd2e488cea 100644 > --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc > +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc > @@ -31,6 +31,9 @@ mips*) > loongarch*) > ARG1=%r4 > ;; > +riscv*) > + ARG1=%a0 > +;; > *) > echo "Please implement other architecture here" > exit_untested > diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc > index 1df61e13a812..8f1292ad80ff 100644 > --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc > +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc > @@ -44,6 +44,10 @@ loongarch*) > GOODREG=%r4 > BADREG=%r12 > ;; > +riscv*) > + GOODREG=%a0 > + BADREG=%a8 > +;; > *) > echo "Please implement other architecture here" > exit_untested > -- > 2.25.1 >
diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc index 3047fa96a7b7..3462c06d29b0 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc @@ -31,6 +31,9 @@ mips*) loongarch*) ARG1=%r4 ;; +riscv*) + ARG1=%a0 +;; *) echo "Please implement other architecture here" exit_untested diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc index a4f8e7c53c1f..9bfd2e488cea 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc @@ -31,6 +31,9 @@ mips*) loongarch*) ARG1=%r4 ;; +riscv*) + ARG1=%a0 +;; *) echo "Please implement other architecture here" exit_untested diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc index 1df61e13a812..8f1292ad80ff 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc @@ -44,6 +44,10 @@ loongarch*) GOODREG=%r4 BADREG=%r12 ;; +riscv*) + GOODREG=%a0 + BADREG=%a8 +;; *) echo "Please implement other architecture here" exit_untested
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> --- .../selftests/ftrace/test.d/kprobe/kprobe_args_char.tc | 3 +++ .../selftests/ftrace/test.d/kprobe/kprobe_args_string.tc | 3 +++ .../selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc | 4 ++++ 3 files changed, 10 insertions(+)