lkml.org 
[lkml]   [2023]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v5 9/9] riscv/kprobe: Search free registers from unused caller-saved ones
Date
Chen Guokai <chenguokai17@mails.ucas.ac.cn> writes:

> diff --git a/arch/riscv/kernel/probes/opt.c b/arch/riscv/kernel/probes/opt.c
> index 1c0e9d218f6f..884e77d2df4c 100644
> --- a/arch/riscv/kernel/probes/opt.c
> +++ b/arch/riscv/kernel/probes/opt.c
> @@ -12,6 +12,7 @@
> #include <asm/kprobes.h>
> #include <asm/patch.h>
> #include <asm/asm-offsets.h>
> +#include <linux/extable.h>
>
> #include "simulate-insn.h"
> #include "decode-insn.h"
> @@ -130,7 +131,7 @@ static void prepare_detour_buffer(kprobe_opcode_t *code, kprobe_opcode_t *slot,
> * as a destination register before any branch or jump instruction.
> */
> static void find_register(unsigned long start, unsigned long end,
> - unsigned long *write, unsigned long *read)
> + unsigned long *write, unsigned long *read)

Probably a patch messup; This makes the series no apply fully.


Björn

\
 
 \ /
  Last update: 2023-03-26 23:25    [W:0.164 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site