aboutsummaryrefslogtreecommitdiff
path: root/lib/test_stackinit.c
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2020-03-29 15:22:52 +0200
committerDaniel Borkmann <[email protected]>2020-03-30 01:17:05 +0200
commite2842be53d4f31962a9992eab39391cdf637fa2e (patch)
tree9c448a2ad2a0e7dc392015e97a0fbd247dd6a7b6 /lib/test_stackinit.c
parent5a95cbb80ef8d8f2db29ab10777cd4742e6fc8ec (diff)
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 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions