Searched refs:data_sz (Results 1 – 12 of 12) sorted by relevance
/tools/lib/bpf/ |
D | bpf_prog_linfo.c | 104 __u64 data_sz; in bpf_prog_linfo__new() local 126 data_sz = (__u64)nr_linfo * prog_linfo->rec_size; in bpf_prog_linfo__new() 127 prog_linfo->raw_linfo = malloc(data_sz); in bpf_prog_linfo__new() 130 memcpy(prog_linfo->raw_linfo, (void *)(long)info->line_info, data_sz); in bpf_prog_linfo__new() 146 data_sz = (__u64)nr_linfo * prog_linfo->jited_rec_size; in bpf_prog_linfo__new() 147 prog_linfo->raw_jited_linfo = malloc(data_sz); in bpf_prog_linfo__new() 151 (void *)(long)info->jited_line_info, data_sz); in bpf_prog_linfo__new()
|
D | skel_internal.h | 45 __u32 data_sz; member 69 opts->data_sz, 1, 0); in bpf_load_and_run()
|
D | btf.c | 1271 __u32 data_sz; in btf_get_raw_data() local 1280 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data() 1281 data = calloc(1, data_sz); in btf_get_raw_data() 1309 *size = data_sz; in btf_get_raw_data() 1319 __u32 data_sz; in btf__get_raw_data() local 1322 data = btf_get_raw_data(btf, &data_sz, btf->swapped_endian); in btf__get_raw_data() 1326 btf->raw_size = data_sz; in btf__get_raw_data() 1331 *size = data_sz; in btf__get_raw_data() 1645 static int btf_commit_type(struct btf *btf, int data_sz) in btf_commit_type() argument 1653 btf->hdr->type_len += data_sz; in btf_commit_type() [all …]
|
D | libbpf.h | 858 size_t data_sz; member 883 __u32 data_sz; member
|
D | btf.h | 209 const void *data, size_t data_sz,
|
D | btf_dump.c | 1750 static bool ptr_is_aligned(const void *data, int data_sz) in ptr_is_aligned() argument 1752 return ((uintptr_t)data) % data_sz == 0; in ptr_is_aligned() 2380 const void *data, size_t data_sz, in btf_dump__dump_type_data() argument 2395 d->typed_dump->data_end = data + data_sz; in btf_dump__dump_type_data()
|
D | gen_loader.c | 338 opts->data_sz = gen->data_cur - gen->data_start; in bpf_gen__finish()
|
D | libbpf.c | 1426 int sec_idx, void *data, size_t data_sz) in bpf_object__init_internal_map() argument 1448 def->value_size = data_sz; in bpf_object__init_internal_map() 1469 memcpy(map->mmaped, data, data_sz); in bpf_object__init_internal_map() 10695 obj = bpf_object__open_mem(s->data, s->data_sz, &skel_opts); in bpf_object__open_skeleton()
|
/tools/bpf/bpftool/ |
D | gen.c | 278 static void print_hex(const char *data, int data_sz) in print_hex() argument 282 for (i = 0, len = 0; i < data_sz; i++) { in print_hex() 479 obj_name, opts.data_sz); in gen_trace() 526 obj_name, opts.data_sz); in gen_trace() 527 print_hex(opts.data, opts.data_sz); in gen_trace()
|
D | prog.c | 1698 opts.data_sz = gen->data_sz; in try_loader()
|
/tools/bpf/runqslower/ |
D | runqslower.c | 101 void handle_event(void *ctx, int cpu, void *data, __u32 data_sz) in handle_event() argument
|
/tools/testing/selftests/bpf/prog_tests/ |
D | btf_dump.c | 774 void *data, size_t data_sz) in test_btf_datasec() argument 791 ret = btf_dump__dump_type_data(d, type_id, data, data_sz, &opts); in test_btf_datasec()
|