diff options
| author | Christy Lee <[email protected]> | 2022-01-25 00:59:22 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-01-25 04:44:00 +0000 |
| commit | 9f45f70ab21eb2d3f4fcb41e4785abe380d406c5 (patch) | |
| tree | cc10be376a2e44fe1d4489749b2896eedbc63e9b /tools/lib/bpf/libbpf.h | |
| parent | Merge branch 'Add bpf_copy_from_user_task helper and sleepable bpf iterator p... (diff) | |
| download | kernel-9f45f70ab21eb2d3f4fcb41e4785abe380d406c5.tar.gz kernel-9f45f70ab21eb2d3f4fcb41e4785abe380d406c5.zip | |
libbpf: Mark bpf_object__open_buffer() API deprecated
Deprecate bpf_object__open_buffer() API in favor of the unified
opts-based bpf_object__open_mem() API.
Signed-off-by: Christy Lee <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.h')
| -rw-r--r-- | tools/lib/bpf/libbpf.h | 1 |
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); |
