aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-01-24 20:37:34 -0800
committerAndrii Nakryiko <andrii@kernel.org>2022-01-24 20:44:09 -0800
commitbfc0a2e94efc111de350ec786e684d9ce41d5a22 (patch)
tree6f0bdbb93977abd45c233fcfc05c95ad3d3d6523 /tools/lib
parentMerge branch 'Add bpf_copy_from_user_task helper and sleepable bpf iterator p... (diff)
parentperf: Stop using bpf_object__open_buffer() API (diff)
downloadlinux-bfc0a2e94efc111de350ec786e684d9ce41d5a22.tar.gz
linux-bfc0a2e94efc111de350ec786e684d9ce41d5a22.zip
Merge branch 'deprecate bpf_object__open_buffer() API'
Christy Lee says: ==================== Deprecate bpf_object__open_buffer() API, replace all usage with bpf_object__open_mem(). ==================== Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/bpf/libbpf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h
index 94670066de62..281cb19591e5 100644
--- a/tools/lib/bpf/libbpf.h
+++ b/tools/lib/bpf/libbpf.h
@@ -180,6 +180,7 @@ bpf_object__open_mem(const void *obj_buf, size_t obj_buf_sz,
const struct bpf_object_open_opts *opts);
/* deprecated bpf_object__open variants */
+LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_object__open_mem() instead")
LIBBPF_API struct bpf_object *
bpf_object__open_buffer(const void *obj_buf, size_t obj_buf_sz,
const char *name);