]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
Merge branch 'BTF-map-in-map'
authorAlexei Starovoitov <ast@kernel.org>
Wed, 29 Apr 2020 00:35:03 +0000 (17:35 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Apr 2020 00:35:48 +0000 (17:35 -0700)
commit3271e8f3f63d4793ce9e4a00d3f8b436b9e8d5b4
tree9d13ddbdc3ac707e0f674ef643b8cf028e914377
parent1f427a8077996f8aaefbc99e40ff3068ee627d8d
parent646f02ffdd49c466cb81642c2b013beb80092d01
Merge branch 'BTF-map-in-map'

Andrii Nakryiko says:

====================
This patch set teaches libbpf how to declare and initialize ARRAY_OF_MAPS and
HASH_OF_MAPS maps. See patch #3 for all the details.

Patch #1 refactors parsing BTF definition of map to re-use it cleanly for
inner map definition parsing.

Patch #2 refactors map creation and destruction logic for reuse. It also fixes
existing bug with not closing successfully created maps when bpf_object map
creation overall fails.

Patch #3 adds support for an extension of BTF-defined map syntax, as well as
parsing, recording, and use of relocations to allow declaratively initialize
outer maps with references to inner maps.

v1->v2:
  - rename __inner to __array (Alexei).
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>