diff options
Diffstat (limited to 'tools/lib/bpf/libbpf.h')
-rw-r--r-- | tools/lib/bpf/libbpf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h index 12db2822c8e7..c5ff00515ce7 100644 --- a/tools/lib/bpf/libbpf.h +++ b/tools/lib/bpf/libbpf.h | |||
@@ -75,6 +75,10 @@ struct bpf_object *__bpf_object__open_xattr(struct bpf_object_open_attr *attr, | |||
75 | LIBBPF_API struct bpf_object *bpf_object__open_buffer(void *obj_buf, | 75 | LIBBPF_API struct bpf_object *bpf_object__open_buffer(void *obj_buf, |
76 | size_t obj_buf_sz, | 76 | size_t obj_buf_sz, |
77 | const char *name); | 77 | const char *name); |
78 | int bpf_object__section_size(const struct bpf_object *obj, const char *name, | ||
79 | __u32 *size); | ||
80 | int bpf_object__variable_offset(const struct bpf_object *obj, const char *name, | ||
81 | __u32 *off); | ||
78 | LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path); | 82 | LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path); |
79 | LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj, | 83 | LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj, |
80 | const char *path); | 84 | const char *path); |