diff options
author | Alexei Starovoitov <ast@kernel.org> | 2021-12-01 10:10:33 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-12-02 11:18:35 -0800 |
commit | be05c94476f3cf4fdc29feab4ed1053187323296 (patch) | |
tree | 31e84f0d56868119c04b4ef7f6e9b345d00e1d26 /tools/lib/bpf/libbpf.c | |
parent | libbpf: Use CO-RE in the kernel in light skeleton. (diff) | |
download | linux-dev-be05c94476f3cf4fdc29feab4ed1053187323296.tar.xz linux-dev-be05c94476f3cf4fdc29feab4ed1053187323296.zip |
libbpf: Support init of inner maps in light skeleton.
Add ability to initialize inner maps in light skeleton.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211201181040.23337-11-alexei.starovoitov@gmail.com
Diffstat (limited to '')
-rw-r--r-- | tools/lib/bpf/libbpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 831c12e00813..1341ce539662 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -4971,9 +4971,9 @@ static int init_map_in_map_slots(struct bpf_object *obj, struct bpf_map *map) fd = bpf_map__fd(targ_map); if (obj->gen_loader) { - pr_warn("// TODO map_update_elem: idx %td key %d value==map_idx %td\n", - map - obj->maps, i, targ_map - obj->maps); - return -ENOTSUP; + bpf_gen__populate_outer_map(obj->gen_loader, + map - obj->maps, i, + targ_map - obj->maps); } else { err = bpf_map_update_elem(map->fd, &i, &fd, 0); } |