summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/libbpf.map
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2023-05-15 17:01:58 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2023-05-23 23:41:01 +0200
commitf1674dc79fd276aeef6cad738a5f25ed2ba6d329 (patch)
treee904349782c623c02c32ca8a7d4586bfbc8039d1 /tools/lib/bpf/libbpf.map
parentcb8edce28073a906401c9e421eca7c99f3396da1 (diff)
downloadlwn-f1674dc79fd276aeef6cad738a5f25ed2ba6d329.tar.gz
lwn-f1674dc79fd276aeef6cad738a5f25ed2ba6d329.zip
libbpf: Add opts-based bpf_obj_pin() API and add support for path_fd
Add path_fd support for bpf_obj_pin() and bpf_obj_get() operations (through their opts-based variants). This allows to take advantage of new kernel-side support for O_PATH-based pin/get location specification. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20230523170013.728457-4-andrii@kernel.org
Diffstat (limited to 'tools/lib/bpf/libbpf.map')
-rw-r--r--tools/lib/bpf/libbpf.map2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map
index 9171ac89a802..7521a2fb7626 100644
--- a/tools/lib/bpf/libbpf.map
+++ b/tools/lib/bpf/libbpf.map
@@ -393,4 +393,6 @@ LIBBPF_1.2.0 {
} LIBBPF_1.1.0;
LIBBPF_1.3.0 {
+ global:
+ bpf_obj_pin_opts;
} LIBBPF_1.2.0;