tracing: kprobe: Make gen test module work in arm and riscv
authorYipeng Zou <zouyipeng@huawei.com>
Mon, 19 Sep 2022 12:56:29 +0000 (20:56 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 26 Sep 2022 20:04:47 +0000 (16:04 -0400)
commitd8ef45d66c01425ff748e13ef7dd1da7a91cc93c
tree2c6caedae55c9e76070ef78479cc6743d1c6c5f5
parentac48e189527fae87253ef2bf58892e782fb36874
tracing: kprobe: Make gen test module work in arm and riscv

For now, this selftest module can only work in x86 because of the
kprobe cmd was fixed use of x86 registers.
This patch adapted to register names under arm and riscv, So that
this module can be worked on those platform.

Link: https://lkml.kernel.org/r/20220919125629.238242-3-zouyipeng@huawei.com
Cc: <linux-riscv@lists.infradead.org>
Cc: <mingo@redhat.com>
Cc: <paul.walmsley@sifive.com>
Cc: <palmer@dabbelt.com>
Cc: <aou@eecs.berkeley.edu>
Cc: <zanussi@kernel.org>
Cc: <liaochang1@huawei.com>
Cc: <chris.zjh@huawei.com>
Fixes: 64836248dda2 ("tracing: Add kprobe event command generation test module")
Signed-off-by: Yipeng Zou <zouyipeng@huawei.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/kprobe_event_gen_test.c