On Thu, May 13, 2021 at 5:36 PM Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > From: Alexei Starovoitov <ast@xxxxxxxxxx> > > Introduce bpf_map__initial_value() to read initial contents > of mmaped data/rodata/bss maps. > Note that bpf_map__set_initial_value() doesn't allow modifying > kconfig map while bpf_map__initial_value() allows reading > its values. > > Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx> > --- Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > tools/lib/bpf/libbpf.c | 8 ++++++++ > tools/lib/bpf/libbpf.h | 1 + > tools/lib/bpf/libbpf.map | 1 + > 3 files changed, 10 insertions(+) > [...]