diff options
| author | Toke Høiland-Jørgensen <toke@redhat.com> | 2019-11-02 14:09:39 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2019-11-02 22:35:07 +0300 |
| commit | 196f8487f51ee6e2a46f51e10ac3f4ca67574ba9 (patch) | |
| tree | 4a2053bceebc780361068b64a6298c977bacfd20 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 4580b25fcee5347327aaffcec31c615ec28a889a (diff) | |
| download | linux-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/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
