diff options
author | Tao Chen <chen.dylane@gmail.com> | 2024-07-02 15:11:50 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2024-07-02 18:20:32 +0200 |
commit | da5f8fd1f0d393d5eaaba9ad8c22d1c26bb2bf9b (patch) | |
tree | 83cbd2cfabaf5cad2a7579c3c8f9a3ace3116442 /tools/tracing | |
parent | selftests/bpf: Add testcase where 7th argment is struct (diff) | |
download | linux-da5f8fd1f0d393d5eaaba9ad8c22d1c26bb2bf9b.tar.xz linux-da5f8fd1f0d393d5eaaba9ad8c22d1c26bb2bf9b.zip |
bpftool: Mount bpffs when pinmaps path not under the bpffs
As Quentin said [0], BPF map pinning will fail if the pinmaps path is not
under the bpffs, like:
libbpf: specified path /home/ubuntu/test/sock_ops_map is not on BPF FS
Error: failed to pin all maps
[0] https://github.com/libbpf/bpftool/issues/146
Fixes: 3767a94b3253 ("bpftool: add pinmaps argument to the load/loadall")
Signed-off-by: Tao Chen <chen.dylane@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Quentin Monnet <qmo@kernel.org>
Reviewed-by: Quentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/bpf/20240702131150.15622-1-chen.dylane@gmail.com
Diffstat (limited to 'tools/tracing')
0 files changed, 0 insertions, 0 deletions