bpf: Move trampoline JIT image allocation to a function

Refactor the image allocation in the BPF trampoline code into a
separate function, so it can be shared with the BPF dispatcher in
upcoming commits.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191213175112.30208-2-bjorn.topel@gmail.com
This commit is contained in:
Björn Töpel 2019-12-13 18:51:07 +01:00 • committed by Alexei Starovoitov
commit 98e8627efc
2 changed files with 18 additions and 7 deletions