]> 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)
commit9882a30b5b4aed9536af948f9454de7d26f3778c
tree2c6caedae55c9e76070ef78479cc6743d1c6c5f5
parent05ec3a0aea176776d9f753d1937293eb02613fba
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: dca1e36112e6 ("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