Searched refs:obj_buf_sz (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/tools/perf/tests/ |
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_buffer(obj_buf, obj_buf_sz, NULL); in test__bpf_parsing() 24 size_t obj_buf_sz __maybe_unused) in test__bpf_parsing() 140 size_t obj_buf_sz = 0; in test__llvm() local 146 ret = test_llvm__fetch_bpf_obj(&obj_buf, &obj_buf_sz, in test__llvm() 150 ret = test__bpf_parsing(obj_buf, obj_buf_sz); in test__llvm()
|
D | bpf.c | 214 prepare_bpf(void *obj_buf, size_t obj_buf_sz, const char *name) in prepare_bpf() argument 218 obj = bpf__prepare_load_buffer(obj_buf, obj_buf_sz, name); in prepare_bpf() 230 size_t obj_buf_sz; in __test__bpf() local 233 ret = test_llvm__fetch_bpf_obj(&obj_buf, &obj_buf_sz, in __test__bpf() 236 if (ret != TEST_OK || !obj_buf || !obj_buf_sz) { in __test__bpf() 245 obj = prepare_bpf(obj_buf, obj_buf_sz, in __test__bpf()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | bpf-loader.h | 56 struct bpf_object *bpf__prepare_load_buffer(void *obj_buf, size_t obj_buf_sz, 100 size_t obj_buf_sz __maybe_unused) in bpf__prepare_load_buffer()
|
D | llvm-utils.c | 435 size_t obj_buf_sz; in llvm__compile_bpf() local 538 err = read_from_pipe(template, &obj_buf, &obj_buf_sz); in llvm__compile_bpf() 561 *p_obj_buf_sz = obj_buf_sz; in llvm__compile_bpf()
|
D | bpf-loader.c | 52 bpf__prepare_load_buffer(void *obj_buf, size_t obj_buf_sz, const char *name) in bpf__prepare_load_buffer() argument 61 obj = bpf_object__open_buffer(obj_buf, obj_buf_sz, name); in bpf__prepare_load_buffer() 82 size_t obj_buf_sz; in bpf__prepare_load() local 85 err = perf_clang__compile_bpf(filename, &obj_buf, &obj_buf_sz); in bpf__prepare_load() 89 err = llvm__compile_bpf(filename, &obj_buf, &obj_buf_sz); in bpf__prepare_load() 94 obj = bpf_object__open_buffer(obj_buf, obj_buf_sz, filename); in bpf__prepare_load() 97 llvm__dump_obj(filename, obj_buf, obj_buf_sz); in bpf__prepare_load()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | libbpf.h | 103 bpf_object__open_mem(const void *obj_buf, size_t obj_buf_sz, 108 bpf_object__open_buffer(const void *obj_buf, size_t obj_buf_sz,
|
D | libbpf.c | 432 size_t obj_buf_sz; member 1032 size_t obj_buf_sz, in bpf_object__new() argument 1065 obj->efile.obj_buf_sz = obj_buf_sz; in bpf_object__new() 1102 obj->efile.obj_buf_sz = 0; in bpf_object__elf_finish() 1120 if (obj->efile.obj_buf_sz > 0) { in bpf_object__elf_init() 1126 obj->efile.obj_buf_sz); in bpf_object__elf_init() 6929 __bpf_object__open(const char *path, const void *obj_buf, size_t obj_buf_sz, in __bpf_object__open() argument 6952 (unsigned long)obj_buf_sz); in __bpf_object__open() 6959 obj = bpf_object__new(path, obj_buf, obj_buf_sz, obj_name); in __bpf_object__open() 7048 bpf_object__open_mem(const void *obj_buf, size_t obj_buf_sz, in bpf_object__open_mem() argument [all …]
|