diff options
author | Qing Zhang <zhangqing@loongson.cn> | 2023-02-25 08:52:57 +0100 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-02-25 15:12:18 +0100 |
commit | 8883bf83127d533abb415b204eabc064863ae6c9 (patch) | |
tree | 7e2b6cc1f7b5bc6f2503ba321e8c78c3ba770425 | |
parent | selftests/seccomp: Add LoongArch selftesting support (diff) | |
download | linux-8883bf83127d533abb415b204eabc064863ae6c9.tar.xz linux-8883bf83127d533abb415b204eabc064863ae6c9.zip |
selftests/ftrace: Add LoongArch kprobe args string tests support
Before:
[5] Kprobe event string type argument [UNTESTED]
[7] Kprobe event argument syntax [UNTESTED]
After:
[5] Kprobe event string type argument [PASS]
[7] Kprobe event argument syntax [PASS]
Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc | 3 | ||||
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc | 4 |
2 files changed, 7 insertions, 0 deletions
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 459741565222..a4f8e7c53c1f 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 @@ -28,6 +28,9 @@ s390*) mips*) ARG1=%r4 ;; +loongarch*) + ARG1=%r4 +;; *) 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 d4662c8cf407..1df61e13a812 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 @@ -40,6 +40,10 @@ mips*) GOODREG=%r4 BADREG=%r12 ;; +loongarch*) + GOODREG=%r4 + BADREG=%r12 +;; *) echo "Please implement other architecture here" exit_untested |