aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2018-11-09 16:21:42 +0000
committerAlexei Starovoitov <[email protected]>2018-11-10 23:56:10 +0000
commitfd734c5cca62b7630703244d3613be135d646a0e (patch)
tree0546f050a5173c376a319e7fff09dae12abf535a /tools/bpf/bpftool/prog.c
parentlibbpf: cleanup after partial failure in bpf_object__pin (diff)
downloadkernel-fd734c5cca62b7630703244d3613be135d646a0e.tar.gz
kernel-fd734c5cca62b7630703244d3613be135d646a0e.zip
libbpf: bpf_program__pin: add special case for instances.nr == 1
When bpf_program has only one instance, don't create a subdirectory with per-instance pin files (<prog>/0). Instead, just create a single pin file for that single instance. This simplifies object pinning by not creating unnecessary subdirectories. This can potentially break existing users that depend on the case where '/0' is always created. However, I couldn't find any serious usage of bpf_program__pin inside the kernel tree and I suppose there should be none outside. Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions