Lines Matching refs:obj_buf_sz
653 size_t obj_buf_sz; member
1461 size_t obj_buf_sz, in bpf_object__new() argument
1492 obj->efile.obj_buf_sz = obj_buf_sz; in bpf_object__new()
1516 obj->efile.obj_buf_sz = 0; in bpf_object__elf_finish()
1530 if (obj->efile.obj_buf_sz > 0) { in bpf_object__elf_init()
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
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()