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:39 +0100
committerAlexei Starovoitov <[email protected]>2019-11-02 12:35:07 -0700
commit196f8487f51ee6e2a46f51e10ac3f4ca67574ba9 (patch)
tree4a2053bceebc780361068b64a6298c977bacfd20 /tools/lib/bpf/bpf_helpers.h
parent4580b25fcee5347327aaffcec31c615ec28a889a (diff)
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 <[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