aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2019-11-02 12:09:38 +0100
committerAlexei Starovoitov <[email protected]>2019-11-02 12:35:07 -0700
commit4580b25fcee5347327aaffcec31c615ec28a889a (patch)
tree71cf7bd577f474ac8f27980028e991c0440161dd /tools/lib/bpf/bpf_helpers.h
parentd1b4574a4b86565325ef2e545eda8dfc9aa07c60 (diff)
libbpf: Store map pin path and status in struct bpf_map
Support storing and setting a pin path in struct bpf_map, which can be used for automatic pinning. Also store the pin status so we can avoid attempts to re-pin a map that has already been pinned (or reused from a previous pinning). The behaviour of bpf_object__{un,}pin_maps() is changed so that if it is called with a NULL path argument (which was previously illegal), it will (un)pin only those maps that have a pin_path set. Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions