bpf: arm64: Enable arm64 jit to provide bpf_line_info
Subsystems (5)
PATCH 1/1 bpf: arm64: Enable arm64 jit to provide bpf_line_info
This patch enables arm64's bpf_int_jit_compile() to provide bpf_line_info by calling bpf_prog_fill_jited_linfo().
--- arch/arm64/net/bpf_jit_comp.c | 1 + 1 file changed, 1 insertion(+)
arch/arm64/net/bpf_jit_comp.c +1 -0
@@ -932,6 +932,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) prog->jited_len = image_size;if (!prog->is_func || extra_pass) { +bpf_prog_fill_jited_linfo (prog, ctx.offset); out_off:kfree (ctx.offset);kfree (jit_data);
Signature · 1 line
2.17.1
Quoted 4 lines · Martin KaFai Lau
This patch enables arm64's
bpf_int_jit_compile()to providebpf_line_infoby callingbpf_prog_fill_jited_linfo().Signed-off-by Martin KaFai Lau <[email protected]>
Applied, thanks! Given the change is rather small, could you also follow-up for the other JITs (if you don't have access to test infra, the related maintainers should be able to help you out here)?
Thanks,
Daniel
Quoted 9 lines · Daniel Borkmann
Quoted 4 lines · Martin KaFai Lau
This patch enables arm64's
bpf_int_jit_compile()to providebpf_line_infoby callingbpf_prog_fill_jited_linfo().Signed-off-by Martin KaFai Lau <[email protected]>Applied, thanks! Given the change is rather small, could you also follow-up for the other JITs (if you don't have access to test infra, the related maintainers should be able to help you out here)?
Although I haven't looked at all ARCH's jits, I will try to post the ones that has an obvious change like this patch. :)
The next one probably will be sparc.
Daniel Borkmann
maintainerQuoted 7 lines · Martin Lau
Quoted 6 lines · Daniel Borkmann
Quoted 4 lines · Martin KaFai Lau
This patch enables arm64's
bpf_int_jit_compile()to providebpf_line_infoby callingbpf_prog_fill_jited_linfo().Signed-off-by Martin KaFai Lau <[email protected]>
Quoted 7 lines
Quoted 3 lines
Applied, thanks! Given the change is rather small, could you also follow-up for the other JITs (if you don't have access to test infra, the related maintainers should be able to help you out here)?
Although I haven't looked at all ARCH's jits, I will try to post the ones that has an obvious change like this patch. :)
The next one probably will be sparc.
Sounds good, for the non-obvious ones, feel free to ping the JIT folks from the maintainers file so they have a chance to follow-up.
Thanks,
Daniel