Skip to contentSkip to conversation

bpf: powerpc64: add JIT support for bpf line info

PATCH Applied Sandipan Das 2 participants 2 messages Feb 1, 2019

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: powerpc64: add JIT support for bpf line info

This adds support for generating bpf line info for JITed programs.

---
 arch/powerpc/net/bpf_jit_comp64.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/net/bpf_jit_comp64.c +1 -0
index 15bba765fa79..4194d3cfb60c 100644
@@ -1185,6 +1185,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
 
 	bpf_flush_icache(bpf_hdr, (u8 *)bpf_hdr + (bpf_hdr->pages * PAGE_SIZE));
 	if (!fp->is_func || extra_pass) {
+		bpf_prog_fill_jited_linfo(fp, addrs);
 out_addrs:
 		kfree(addrs);
 		kfree(jit_data);
Signature · 1 line
2.19.2
maintainer Applied
#1 lore raw
Quoted 14 lines · Sandipan Das

This adds support for generating bpf line info for JITed programs.

---
 arch/powerpc/net/bpf_jit_comp64.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/net/bpf_jit_comp64.c +0 -0
index 15bba765fa79..4194d3cfb60c 100644

arch/powerpc/net/bpf_jit_comp64.c struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) · line 1191

Quoted 7 lines
arch/powerpc/net/bpf_jit_comp64.c +1 -0
@@ -1185,6 +1185,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
 
 	bpf_flush_icache(bpf_hdr, (u8 *)bpf_hdr + (bpf_hdr->pages * PAGE_SIZE));
 	if (!fp->is_func || extra_pass) {
+		bpf_prog_fill_jited_linfo(fp, addrs);
 out_addrs:
 		kfree(addrs);
 		kfree(jit_data);

Applied, thanks!