libbpf: add internal pin_name
authorStanislav Fomichev <sdf@google.com>
Fri, 9 Nov 2018 16:21:43 +0000 (08:21 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 10 Nov 2018 23:56:11 +0000 (15:56 -0800)
commit33a2c75c55e24aa30ff9fed805ae8bea13c1e2a3
tree4797b1d56f791555250422902c10708306afd64b
parentfd734c5cca62b7630703244d3613be135d646a0e
libbpf: add internal pin_name

pin_name is the same as section_name where '/' is replaced
by '_'. bpf_object__pin_programs is converted to use pin_name
to avoid the situation where section_name would require creating another
subdirectory for a pin (as, for example, when calling bpf_object__pin_programs
for programs in sections like "cgroup/connect6").

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c