Searched refs:obj_buf_sz (Results 1 – 7 of 7) sorted by relevance
/linux-6.3-rc2/tools/perf/tests/ |
A D | llvm.c | 12 static int test__bpf_parsing(void *obj_buf, size_t obj_buf_sz) in test__bpf_parsing() argument 16 obj = bpf_object__open_mem(obj_buf, obj_buf_sz, NULL); in test__bpf_parsing() 131 size_t obj_buf_sz = 0; in test__llvm() local 137 ret = test_llvm__fetch_bpf_obj(&obj_buf, &obj_buf_sz, in test__llvm() 141 ret = test__bpf_parsing(obj_buf, obj_buf_sz); in test__llvm()
|
A D | bpf.c | 208 prepare_bpf(void *obj_buf, size_t obj_buf_sz, const char *name) in prepare_bpf() argument 212 obj = bpf__prepare_load_buffer(obj_buf, obj_buf_sz, name); in prepare_bpf() 224 size_t obj_buf_sz; in __test__bpf() local 227 ret = test_llvm__fetch_bpf_obj(&obj_buf, &obj_buf_sz, in __test__bpf() 230 if (ret != TEST_OK || !obj_buf || !obj_buf_sz) { in __test__bpf() 239 obj = prepare_bpf(obj_buf, obj_buf_sz, in __test__bpf()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | bpf-loader.h | 59 struct bpf_object *bpf__prepare_load_buffer(void *obj_buf, size_t obj_buf_sz, 103 size_t obj_buf_sz __maybe_unused) in bpf__prepare_load_buffer()
|
A D | llvm-utils.c | 452 size_t obj_buf_sz; in llvm__compile_bpf() local 567 err = read_from_pipe(template, &obj_buf, &obj_buf_sz); in llvm__compile_bpf() 590 *p_obj_buf_sz = obj_buf_sz; in llvm__compile_bpf()
|
A D | bpf-loader.c | 199 bpf__prepare_load_buffer(void *obj_buf, size_t obj_buf_sz, const char *name) in bpf__prepare_load_buffer() argument 209 obj = bpf_object__open_mem(obj_buf, obj_buf_sz, &opts); in bpf__prepare_load_buffer() 242 size_t obj_buf_sz; in bpf__prepare_load() local 245 err = perf_clang__compile_bpf(filename, &obj_buf, &obj_buf_sz); in bpf__prepare_load() 249 err = llvm__compile_bpf(filename, &obj_buf, &obj_buf_sz); in bpf__prepare_load() 254 obj = bpf_object__open_mem(obj_buf, obj_buf_sz, &opts); in bpf__prepare_load() 257 llvm__dump_obj(filename, obj_buf, obj_buf_sz); in bpf__prepare_load()
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | libbpf.c | 593 size_t obj_buf_sz; member 1216 size_t obj_buf_sz, in bpf_object__new() argument 1247 obj->efile.obj_buf_sz = obj_buf_sz; in bpf_object__new() 1272 obj->efile.obj_buf_sz = 0; in bpf_object__elf_finish() 1286 if (obj->efile.obj_buf_sz > 0) { in bpf_object__elf_init() 1288 elf = elf_memory((char *)obj->efile.obj_buf, obj->efile.obj_buf_sz); in bpf_object__elf_init() 7204 (unsigned long)obj_buf_sz); in bpf_object_open() 7219 obj = bpf_object__new(path, obj_buf, obj_buf_sz, obj_name); in bpf_object_open() 7285 bpf_object__open_mem(const void *obj_buf, size_t obj_buf_sz, in bpf_object__open_mem() argument 7288 if (!obj_buf || obj_buf_sz == 0) in bpf_object__open_mem() [all …]
|
A D | libbpf.h | 217 bpf_object__open_mem(const void *obj_buf, size_t obj_buf_sz,
|
Completed in 38 milliseconds