diff options
author | Qing Zhang <zhangqing@loongson.cn> | 2023-02-25 15:52:57 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-02-25 22:12:17 +0800 |
commit | 356bd6f23682f11f7afe923d86c7f5f852b97fb2 (patch) | |
tree | ec88f7e3445613d5e304f22d3f6e9840f88139ef /arch/loongarch/include/asm/loongarch.h | |
parent | 1a69f7a161a78aead07cd4b811d796950e892fa4 (diff) | |
download | lwn-356bd6f23682f11f7afe923d86c7f5f852b97fb2.tar.gz lwn-356bd6f23682f11f7afe923d86c7f5f852b97fb2.zip |
LoongArch: ptrace: Add function argument access API
Add regs_get_argument() which returns N th argument of the function
call, This enables ftrace kprobe events to access kernel function
arguments via $argN syntax for later use.
E.g.:
echo 'p bio_add_page arg1=$arg1' > kprobe_events
bash: echo: write error: Invalid argument
Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include/asm/loongarch.h')
0 files changed, 0 insertions, 0 deletions