Re: [PATCH] tools: bpf_jit_disasm: Add option to dump JIT image to a file.

2017-04-13 Thread David Miller
From: David Daney Date: Tue, 11 Apr 2017 14:30:52 -0700 > When debugging the JIT on an embedded platform or cross build > environment, libbfd may not be available, making it impossible to run > bpf_jit_disasm natively. > > Add an option to emit a binary image of the JIT code to a file. This > f

Re: [PATCH] tools: bpf_jit_disasm: Add option to dump JIT image to a file.

2017-04-11 Thread David Daney
On 04/11/2017 02:54 PM, Daniel Borkmann wrote: On 04/11/2017 11:30 PM, David Daney wrote: When debugging the JIT on an embedded platform or cross build environment, libbfd may not be available, making it impossible to run bpf_jit_disasm natively. Add an option to emit a binary image of the JIT

Re: [PATCH] tools: bpf_jit_disasm: Add option to dump JIT image to a file.

2017-04-11 Thread Daniel Borkmann
On 04/11/2017 11:30 PM, David Daney wrote: When debugging the JIT on an embedded platform or cross build environment, libbfd may not be available, making it impossible to run bpf_jit_disasm natively. Add an option to emit a binary image of the JIT code to a file. This file can then be disassemb

[PATCH] tools: bpf_jit_disasm: Add option to dump JIT image to a file.

2017-04-11 Thread David Daney
When debugging the JIT on an embedded platform or cross build environment, libbfd may not be available, making it impossible to run bpf_jit_disasm natively. Add an option to emit a binary image of the JIT code to a file. This file can then be disassembled off line. Typical usage in this case mig