From: Daniel Borkmann Date: Thu, 21 Mar 2013 21:22:03 +0000 (+0100) Subject: filter: bpf_jit_comp: refactor and unify BPF JIT image dump output X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~374 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79617801ea0c0e6664cb497d4c1892c2ff407364;p=pandora-kernel.git filter: bpf_jit_comp: refactor and unify BPF JIT image dump output If bpf_jit_enable > 1, then we dump the emitted JIT compiled image after creation. Currently, only SPARC and PowerPC has similar output as in the reference implementation on x86_64. Make a small helper function in order to reduce duplicated code and make the dump output uniform across architectures x86_64, SPARC, PPC, ARM (e.g. on ARM flen, pass and proglen are currently not shown, but would be interesting to know as well), also for future BPF JIT implementations on other archs. Cc: Mircea Gherzan Cc: Matt Evans Cc: Eric Dumazet Cc: David S. Miller Signed-off-by: Daniel Borkmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed