]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5cef7fbf299db85397fa6b9a15f8dc0d62add0c
tree2c6caedae55c9e76070ef78479cc6743d1c6c5f5
parent7a5080df2ea1baff7a700729ea6614a4de4cc946
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: c07be05c2d05 ("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