Skip to contentSkip to conversation

bpf: arm64: Enable arm64 jit to provide bpf_line_info

PATCH Applied Martin KaFai Lau 2 participants 4 messages Dec 12, 2018

Subsystems (5)
Networking Network drivers BPF arm64 +1 more subsystems
lore
Share & tools
lore
#0 lore raw

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
index 0a7371a86139..1542df00b23c 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 4 lines · Martin KaFai Lau

This patch enables arm64's bpf_int_jit_compile() to provide bpf_line_info by calling bpf_prog_fill_jited_linfo().

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

author
#2 lore raw
Quoted 9 lines · Daniel Borkmann
Quoted 4 lines · Martin KaFai Lau

This patch enables arm64's bpf_int_jit_compile() to provide bpf_line_info by calling bpf_prog_fill_jited_linfo().

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.

maintainer
#3 lore raw
Quoted 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 provide bpf_line_info by calling bpf_prog_fill_jited_linfo().

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