diff options
author | Toke Høiland-Jørgensen <toke@redhat.com> | 2020-03-29 15:22:52 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-03-30 01:17:05 +0200 |
commit | e2842be53d4f31962a9992eab39391cdf637fa2e (patch) | |
tree | 9c448a2ad2a0e7dc392015e97a0fbd247dd6a7b6 /fs/pstore/inode.c | |
parent | 5a95cbb80ef8d8f2db29ab10777cd4742e6fc8ec (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 <toke@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200329132253.232541-1-toke@redhat.com
Diffstat (limited to 'fs/pstore/inode.c')
0 files changed, 0 insertions, 0 deletions