]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Use func name when pinning programs with LIBBPF_STRICT_SEC_NAME
authorStanislav Fomichev <sdf@google.com>
Thu, 21 Oct 2021 21:48:12 +0000 (14:48 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 22 Oct 2021 23:53:11 +0000 (16:53 -0700)
commit315df24ef9bd042a0942e48dcecddbc0e1eb5fbe
treefe0dd6faf0e68c7693141c4c022dc0f05117ef73
parente2485a344b3a316d659e103e6c48bff394fbe4a9
libbpf: Use func name when pinning programs with LIBBPF_STRICT_SEC_NAME

We can't use section name anymore because they are not unique
and pinning objects with multiple programs with the same
progtype/secname will fail.

  [0] Closes: https://github.com/libbpf/libbpf/issues/273

Fixes: daee0f6c8f77 ("libbpf: add internal pin_name")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20211021214814.1236114-2-sdf@google.com
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_legacy.h