* [PATCH] selftests/ftrace: add LoongArch support for kprobe args string tests
@ 2023-02-11 8:43 Qing Zhang
2023-02-11 11:13 ` Huacai Chen
2023-02-12 23:29 ` Masami Hiramatsu
0 siblings, 2 replies; 3+ messages in thread
From: Qing Zhang @ 2023-02-11 8:43 UTC (permalink / raw)
To: Steven Rostedt, Masami Hiramatsu, Shuah Khan, Huacai Chen,
WANG Xuerui
Cc: Jiaxun Yang, loongarch, linux-kernel, linux-trace-kernel,
linux-kselftest
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>
---
.../selftests/ftrace/test.d/kprobe/kprobe_args_string.tc | 3 +++
.../selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc | 4 ++++
2 files changed, 7 insertions(+)
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
--
2.36.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] selftests/ftrace: add LoongArch support for kprobe args string tests
2023-02-11 8:43 [PATCH] selftests/ftrace: add LoongArch support for kprobe args string tests Qing Zhang
@ 2023-02-11 11:13 ` Huacai Chen
2023-02-12 23:29 ` Masami Hiramatsu
1 sibling, 0 replies; 3+ messages in thread
From: Huacai Chen @ 2023-02-11 11:13 UTC (permalink / raw)
To: Qing Zhang
Cc: Steven Rostedt, Masami Hiramatsu, Shuah Khan, WANG Xuerui,
Jiaxun Yang, loongarch, linux-kernel, linux-trace-kernel,
linux-kselftest
Queued, thanks.
Huacai
On Sat, Feb 11, 2023 at 4:43 PM Qing Zhang <zhangqing@loongson.cn> wrote:
>
> 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>
> ---
> .../selftests/ftrace/test.d/kprobe/kprobe_args_string.tc | 3 +++
> .../selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc | 4 ++++
> 2 files changed, 7 insertions(+)
>
> 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
> --
> 2.36.0
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] selftests/ftrace: add LoongArch support for kprobe args string tests
2023-02-11 8:43 [PATCH] selftests/ftrace: add LoongArch support for kprobe args string tests Qing Zhang
2023-02-11 11:13 ` Huacai Chen
@ 2023-02-12 23:29 ` Masami Hiramatsu
1 sibling, 0 replies; 3+ messages in thread
From: Masami Hiramatsu @ 2023-02-12 23:29 UTC (permalink / raw)
To: Qing Zhang
Cc: Steven Rostedt, Shuah Khan, Huacai Chen, WANG Xuerui, Jiaxun Yang,
loongarch, linux-kernel, linux-trace-kernel, linux-kselftest
On Sat, 11 Feb 2023 16:43:46 +0800
Qing Zhang <zhangqing@loongson.cn> wrote:
> 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]
>
Thanks for updating the test!
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
> Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
> ---
> .../selftests/ftrace/test.d/kprobe/kprobe_args_string.tc | 3 +++
> .../selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc | 4 ++++
> 2 files changed, 7 insertions(+)
>
> 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
> --
> 2.36.0
>
--
Masami Hiramatsu (Google) <mhiramat@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-12 23:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-11 8:43 [PATCH] selftests/ftrace: add LoongArch support for kprobe args string tests Qing Zhang
2023-02-11 11:13 ` Huacai Chen
2023-02-12 23:29 ` Masami Hiramatsu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).