libbpf: Remove deprecated bpf_object__find_map_by_offset
PATCH v2 1/1 libbpf: Remove deprecated bpf_object__find_map_by_offset
Removing bpf_object__find_map_by_offset as part of the effort to move towards a v1.0 for libbpf: https://github.com/libbpf/libbpf/issues/302.
Signed-off-by Tal Lossos <[email protected]>
--- tools/lib/bpf/libbpf.c | 6 ------ tools/lib/bpf/libbpf.h | 7 ------- 2 files changed, 13 deletions(-)
tools/lib/bpf/libbpf.c +0 -6
@@ -9956,12 +9956,6 @@ bpf_object__find_map_fd_by_name(const struct bpf_object *obj, const char *name)return bpf_map__fd (bpf_object__find_map_by_name (obj, name)); } -struct bpf_map * -bpf_object__find_map_by_offset (struct bpf_object *obj,size_t offset) -{ -return libbpf_err_ptr (-ENOTSUP ); -} -long libbpf_get_error (const void *ptr) {if (!IS_ERR_OR_NULL (ptr))
tools/lib/bpf/libbpf.h +0 -7
@@ -422,13 +422,6 @@ bpf_object__find_map_by_name(const struct bpf_object *obj, const char *name); LIBBPF_API intbpf_object__find_map_fd_by_name (const struct bpf_object *obj,const char *name); -/* -* Get bpf_map through the offset of corresponding struct bpf_map_def -* in the BPF object file. -*/ -LIBBPF_API struct bpf_map * -bpf_object__find_map_by_offset (struct bpf_object *obj,size_t offset); - LIBBPF_API struct bpf_map *bpf_map__next (const struct bpf_map *map,const struct bpf_object *obj);#define bpf_object__for_each_map (pos, obj) \
Signature · 1 line
2.27.0
Quoted 6 lines · Tal Lossos
Removing
bpf_object__find_map_by_offsetas part of the effort to move towards a v1.0 for libbpf: https://github.com/libbpf/libbpf/issues/302.Signed-off-by Tal Lossos <[email protected]>---
As explained before, I can't apply this just yet. We'll start removing APIs right before 1.0 release. I'll update the issue mentioning this.
Quoted 4 lines
tools/lib/bpf/libbpf.c | 6 ------ tools/lib/bpf/libbpf.h | 7 ------- 2 files changed, 13 deletions(-)
[...]