Message ID | 20190829161330.14951-1-yauheni.kaliuta@redhat.com |
---|---|
State | Changes Requested |
Delegated to: | BPF Maintainers |
Headers | show |
Series | bpf: s390: add JIT support for bpf line info | expand |
Hi! Hold on, I should check it a bit more. >>>>> On Thu, 29 Aug 2019 19:13:30 +0300, Yauheni Kaliuta wrote: > This adds support for generating bpf line info for JITed programs > like commit 6f20c71d8505 ("bpf: powerpc64: add JIT support for bpf > line info") does for powerpc. > Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com> > --- > The patch is on top of "bpf: s390: add JIT support for multi-function > programs" > --- > arch/s390/net/bpf_jit_comp.c | 1 + > 1 file changed, 1 insertion(+) > diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c > index b6801d854c77..4ef783b67dfc 100644 > --- a/arch/s390/net/bpf_jit_comp.c > +++ b/arch/s390/net/bpf_jit_comp.c > @@ -1420,6 +1420,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) > fp-> jited_len = jit.size; > if (!fp->is_func || extra_pass) { > + bpf_prog_fill_jited_linfo(fp, jit.addrs); > free_addrs: > kfree(jit.addrs); > kfree(jit_data); > -- > 2.22.0
diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c index b6801d854c77..4ef783b67dfc 100644 --- a/arch/s390/net/bpf_jit_comp.c +++ b/arch/s390/net/bpf_jit_comp.c @@ -1420,6 +1420,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) fp->jited_len = jit.size; if (!fp->is_func || extra_pass) { + bpf_prog_fill_jited_linfo(fp, jit.addrs); free_addrs: kfree(jit.addrs); kfree(jit_data);
This adds support for generating bpf line info for JITed programs like commit 6f20c71d8505 ("bpf: powerpc64: add JIT support for bpf line info") does for powerpc. Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com> --- The patch is on top of "bpf: s390: add JIT support for multi-function programs" --- arch/s390/net/bpf_jit_comp.c | 1 + 1 file changed, 1 insertion(+)