aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2018-11-23 22:18:03 +0000
committerDaniel Borkmann <[email protected]>2018-12-05 15:36:28 +0000
commitdc002bb62f10c5905420f8b8a7d5ec0da567fc82 (patch)
tree2d5b812a9cb024a671bcda37431505d6dded1c47 /tools/bpf/bpftool/prog.c
parentMerge branch 'prog_test_run-improvement' (diff)
downloadkernel-dc002bb62f10c5905420f8b8a7d5ec0da567fc82.tar.gz
kernel-dc002bb62f10c5905420f8b8a7d5ec0da567fc82.zip
bpf: add __weak hook for allocating executable memory
By default, BPF uses module_alloc() to allocate executable memory, but this is not necessary on all arches and potentially undesirable on some of them. So break out the module_alloc() and module_memfree() calls into __weak functions to allow them to be overridden in arch code. Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions