[PATCH v5 3/9] riscv/kprobe: Prepare the skeleton to prepare optimized kprobe
liaochang (A)
liaochang1 at huawei.com
Wed Jan 4 00:34:39 PST 2023
在 2023/1/3 16:27, Björn Töpel 写道:
> Chen Guokai <chenguokai17 at mails.ucas.ac.cn> writes:
>
>> From: Liao Chang <liaochang1 at huawei.com>
>
>> diff --git a/arch/riscv/kernel/probes/opt.c b/arch/riscv/kernel/probes/opt.c
>> index 56c8a227c857..a4271e6033ba 100644
>> --- a/arch/riscv/kernel/probes/opt.c
>> +++ b/arch/riscv/kernel/probes/opt.c
>> @@ -10,6 +10,54 @@
>>
>> #include <linux/kprobes.h>
>> #include <asm/kprobes.h>
>> +#include <asm/patch.h>
>> +
>> +static inline int in_auipc_jalr_range(long val)
>
> Leave "inline" out; Let the compiler decide.
Will do.
--
BR,
Liao, Chang
More information about the linux-riscv
mailing list