bpf: Move trampoline JIT image allocation to a function
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 13 Dec 2019 17:51:07 +0000 (18:51 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Dec 2019 21:09:32 +0000 (13:09 -0800)
commit98e8627efcada18ac043a77b9101b4b4c768090b
tree78bddd4e10be8b09a0a0703129ff112e8ee012f4
parent91cbdf740a476cf2c744169bf407de2e3ac1f3cf
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
include/linux/bpf.h
kernel/bpf/trampoline.c