summaryrefslogtreecommitdiffstats
path: root/arch/s390/net
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-07-16 10:36:06 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-07-18 12:44:35 +0200
commitfee1b5488d76396d8f95989624d37f436b3fba44 (patch)
treebd8e39b6d469ddb9587549b1f6ad248c5907c741 /arch/s390/net
parent1eeb74782d354175ef9f3bff02fae62c6e0aef24 (diff)
downloadop-kernel-dev-fee1b5488d76396d8f95989624d37f436b3fba44.zip
op-kernel-dev-fee1b5488d76396d8f95989624d37f436b3fba44.tar.gz
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: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/net')
-rw-r--r--arch/s390/net/bpf_jit_comp.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c
index a41f0b1..80828bf 100644
--- a/arch/s390/net/bpf_jit_comp.c
+++ b/arch/s390/net/bpf_jit_comp.c
@@ -787,15 +787,9 @@ void bpf_jit_compile(struct sk_filter *fp)
cjit = jit;
}
if (bpf_jit_enable > 1) {
- pr_err("flen=%d proglen=%lu pass=%d image=%p\n",
- fp->len, jit.end - jit.start, pass, jit.start);
- if (jit.start) {
- printk(KERN_ERR "JIT code:\n");
+ bpf_jit_dump(fp->len, jit.end - jit.start, pass, jit.start);
+ if (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)
fp->bpf_func = (void *) jit.start;
OpenPOWER on IntegriCloud