提交 fee1b548 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

s390/bpf,jit: use generic jit dumper

This is the s390 backend of 79617801 "filter: bpf_jit_comp: refactor
and unify BPF JIT image dump output".
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 1eeb7478
...@@ -787,15 +787,9 @@ void bpf_jit_compile(struct sk_filter *fp) ...@@ -787,15 +787,9 @@ void bpf_jit_compile(struct sk_filter *fp)
cjit = jit; cjit = jit;
} }
if (bpf_jit_enable > 1) { if (bpf_jit_enable > 1) {
pr_err("flen=%d proglen=%lu pass=%d image=%p\n", bpf_jit_dump(fp->len, jit.end - jit.start, pass, jit.start);
fp->len, jit.end - jit.start, pass, jit.start); if (jit.start)
if (jit.start) {
printk(KERN_ERR "JIT code:\n");
print_fn_code(jit.start, jit.mid - jit.start); print_fn_code(jit.start, jit.mid - jit.start);
print_hex_dump(KERN_ERR, "JIT literals:\n",
DUMP_PREFIX_ADDRESS, 16, 1,
jit.mid, jit.end - jit.mid, false);
}
} }
if (jit.start) if (jit.start)
fp->bpf_func = (void *) jit.start; fp->bpf_func = (void *) jit.start;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册