Lines Matching refs:obj_buf
652 const void *obj_buf; member
1460 const void *obj_buf, in bpf_object__new() argument
1491 obj->efile.obj_buf = obj_buf; in bpf_object__new()
1515 obj->efile.obj_buf = NULL; in bpf_object__elf_finish()
1532 elf = elf_memory((char *)obj->efile.obj_buf, obj->efile.obj_buf_sz); in bpf_object__elf_init()
7907 static struct bpf_object *bpf_object_open(const char *path, const void *obj_buf, size_t obj_buf_sz, in bpf_object_open() argument
7918 if (obj_buf && !obj_name) in bpf_object_open()
7931 if (obj_buf) { in bpf_object_open()
7956 obj = bpf_object__new(path, obj_buf, obj_buf_sz, obj_name); in bpf_object_open()
8028 bpf_object__open_mem(const void *obj_buf, size_t obj_buf_sz, in bpf_object__open_mem() argument
8033 if (!obj_buf || obj_buf_sz == 0) in bpf_object__open_mem()
8037 snprintf(tmp_name, sizeof(tmp_name), "%lx-%zx", (unsigned long)obj_buf, obj_buf_sz); in bpf_object__open_mem()
8039 return libbpf_ptr(bpf_object_open(NULL, obj_buf, obj_buf_sz, tmp_name, opts)); in bpf_object__open_mem()