Commit a976adc3 authored by Pu Lehui's avatar Pu Lehui Committed by Greg Kroah-Hartman
Browse files

bpf, riscv: Support riscv jit to provide bpf_line_info



[ Upstream commit 3cb70413 ]

Add support for riscv jit to provide bpf_line_info. We need to
consider the prologue offset in ctx->offset, but unlike x86 and
arm64, ctx->offset of riscv does not provide an extra slot for
the prologue, so here we just calculate the len of prologue and
add it to ctx->offset at the end. Both RV64 and RV32 have been
tested.

Signed-off-by: default avatarPu Lehui <pulehui@huawei.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220530092815.1112406-3-pulehui@huawei.com


Stable-dep-of: c56fb2aa ("riscv, bpf: Fix inconsistent JIT image generation")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent eb3d1d84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment