From 53092f7e074936df43aa4dbf4b6c3df812f3dab9 Mon Sep 17 00:00:00 2001 From: Yauheni Kaliuta Date: Fri, 30 Aug 2019 14:51:09 +0300 Subject: [PATCH] bpf: s390: add JIT support for bpf line info 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, but it should pass the array starting from 1. This fixes test_btf. Signed-off-by: Yauheni Kaliuta Acked-by: Ilya Leoshkevich Tested-by: Ilya Leoshkevich Signed-off-by: Daniel Borkmann --- 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 a76cbe4cc7cc..e3615e55e7ef 100644 --- a/arch/s390/net/bpf_jit_comp.c +++ b/arch/s390/net/bpf_jit_comp.c @@ -1418,6 +1418,7 @@ skip_init_ctx: fp->jited_len = jit.size; if (!fp->is_func || extra_pass) { + bpf_prog_fill_jited_linfo(fp, jit.addrs + 1); free_addrs: kfree(jit.addrs); kfree(jit_data); -- 2.30.2