[PATCH v3 1/2] kprobes: textmem API
Jarkko Sakkinen
jarkko at kernel.org
Mon Mar 25 13:50:40 PDT 2024
On Mon Mar 25, 2024 at 10:37 PM EET, Jarkko Sakkinen wrote:
> - if (ret == -ENOENT && !trace_kprobe_module_exist(tk)) {
> +#ifdef CONFIG_MODULES
> + if (ret == -ENOENT && trace_kprobe_module_exist(tk))
> + ret = 0;
> +#endif /* CONFIG_MODULES */
For this we could have
#ifndef CONFIG_MODULES
#define trace_kprobe_module_exist(tk) false
#endif
That would clean up at least two locations requiring no changes. Should
I go forward this or not?
BR, Jarkko
More information about the linux-riscv
mailing list