tools: bpf_jit_disasm: Handle large images.
authorDavid Daney <david.daney@cavium.com>
Tue, 13 Jun 2017 23:49:35 +0000 (16:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jun 2017 19:03:22 +0000 (15:03 -0400)
commite274da1a50f6f3c8216e5bb22e1b0964ab993f13
treed9cc45167ba0ad198ec6f455a21acb03da805f43
parent2fae5d0e647c6470d206e72b5fc24972bb900f70
tools: bpf_jit_disasm: Handle large images.

Dynamically allocate memory so that JIT images larger than the size of
the statically allocated array can be handled.

Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/net/bpf_jit_disasm.c