summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <toke@redhat.com>2019-11-02 14:09:39 +0300
committerAlexei Starovoitov <ast@kernel.org>2019-11-02 22:35:07 +0300
commit196f8487f51ee6e2a46f51e10ac3f4ca67574ba9 (patch)
tree4a2053bceebc780361068b64a6298c977bacfd20 /tools/lib/bpf/bpf_helpers.h
parent4580b25fcee5347327aaffcec31c615ec28a889a (diff)
downloadlinux-196f8487f51ee6e2a46f51e10ac3f4ca67574ba9.tar.xz
libbpf: Move directory creation into _pin() functions
The existing pin_*() functions all try to create the parent directory before pinning. Move this check into the per-object _pin() functions instead. This ensures consistent behaviour when auto-pinning is added (which doesn't go through the top-level pin_maps() function), at the cost of a few more calls to mkdir(). Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/157269297985.394725.5882630952992598610.stgit@toke.dk
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions