projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c45c79e
)
libbpf: Mark bpf_object__open_buffer() API deprecated
author
Christy Lee
<christylee@fb.com>
Tue, 25 Jan 2022 00:59:22 +0000
(16:59 -0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Tue, 25 Jan 2022 04:44:00 +0000
(20:44 -0800)
Deprecate bpf_object__open_buffer() API in favor of the unified
opts-based bpf_object__open_mem() API.
Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20220125005923.418339-2-christylee@fb.com
tools/lib/bpf/libbpf.h
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/libbpf.h
b/tools/lib/bpf/libbpf.h
index 94670066de629164c82319aaa284e97f8645c24e..281cb19591e593332cc452d17843c52294516971 100644
(file)
--- 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);