[PATCH] RISC-V/bpf: Enable bpf_probe_read{, str}()
Christoph Hellwig
hch at infradead.org
Sun Jul 10 20:58:17 PDT 2022
On Sat, Jul 09, 2022 at 04:48:05PM +0800, Yixun Lan wrote:
> never mind, I think the logic is quite clear, we can do something in bcc:
>
> 1) adopt new _{kernel,user} interface whenever possible, this will
> work fine for all arch with new kernel versions
>
> 2) for old kernel versions which lack the _{kernel,user} support,
> fall back to old bpf_probe_read(), but take care of the Archs which
> have overlaping address space - like s390, and just error out for it
Yes, that is the right thing to do.
More information about the linux-riscv
mailing list