aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/global_data_init.c
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2020-03-29 13:22:52 +0000
committerDaniel Borkmann <[email protected]>2020-03-29 23:17:05 +0000
commite2842be53d4f31962a9992eab39391cdf637fa2e (patch)
tree9c448a2ad2a0e7dc392015e97a0fbd247dd6a7b6 /tools/testing/selftests/bpf/prog_tests/global_data_init.c
parentbpf, net: Fix build issue when net ns not configured (diff)
downloadkernel-e2842be53d4f31962a9992eab39391cdf637fa2e.tar.gz
kernel-e2842be53d4f31962a9992eab39391cdf637fa2e.zip
libbpf: Add setter for initial value for internal maps
For internal maps (most notably the maps backing global variables), libbpf uses an internal mmaped area to store the data after opening the object. This data is subsequently copied into the kernel map when the object is loaded. This adds a function to set a new value for that data, which can be used to before it is loaded into the kernel. This is especially relevant for RODATA maps, since those are frozen on load. Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/global_data_init.c')
0 files changed, 0 insertions, 0 deletions