Thread (22 messages) flat view 22 messages, 4 authors, 2020-03-29

Re: [PATCH v4 1/2] libbpf: Add setter for initial value for internal maps

From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2020-03-29 23:46:24
Also in: bpf

On 3/29/20 3:22 PM, Toke Høiland-Jørgensen wrote:
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 <redacted>
Both applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help