]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdaee0f6c8f77455e1ea7423af8aab2ea8c157688
tree4797b1d56f791555250422902c10708306afd64b
parent5333e9c3ba5333e853cc4ba379f57f250244112b
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