Home
last modified time | relevance | path

Searched refs:type_len (Results 1 – 8 of 8) sorted by relevance

/tools/lib/traceevent/
Dkbuffer-parse.c350 unsigned int type_len; in translate_data() local
355 type_len = type_len4host(kbuf, type_len_ts); in translate_data()
358 switch (type_len) { in translate_data()
379 *length = type_len * 4; in translate_data()
385 return type_len; in translate_data()
391 unsigned int type_len; in update_pointers() local
395 type_len = translate_data(kbuf, ptr, &ptr, &delta, &length); in update_pointers()
397 if (type_len == KBUFFER_TYPE_TIME_STAMP) in update_pointers()
405 return type_len; in update_pointers()
422 int type_len; in kbuffer_translate_data() local
[all …]
/tools/lib/bpf/
Dlibbpf_probes.c153 .type_len = types_len, in libbpf__load_raw_btf()
160 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf()
166 memcpy(raw_btf + hdr.hdr_len, raw_types, hdr.type_len); in libbpf__load_raw_btf()
167 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
Dbtf.c210 h->type_len = bswap_32(h->type_len); in btf_bswap_hdr()
250 if ((long long)hdr->type_off + hdr->type_len > hdr->str_off) { in btf_parse_hdr()
252 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr()
395 void *end_type = next_type + hdr->type_len; in btf_parse_type_sec()
1280 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
1291 memcpy(p, btf->types_data, hdr->type_len); in btf_get_raw_data()
1304 p += hdr->type_len; in btf_get_raw_data()
1540 types = malloc(btf->hdr->type_len); in btf_ensure_modifiable()
1545 memcpy(types, btf->types_data, btf->hdr->type_len); in btf_ensure_modifiable()
1557 btf->types_data_cap = btf->hdr->type_len; in btf_ensure_modifiable()
[all …]
/tools/include/uapi/linux/
Dbtf.h19 __u32 type_len; /* length of type section */ member
/tools/testing/selftests/bpf/progs/
Dsyscall.c41 .type_len = sizeof(__u32) * 8, in btf_load()
/tools/testing/selftests/bpf/
Dtest_verifier.c630 .type_len = sizeof(btf_raw_types), in load_btf()
642 memcpy(ptr, btf_raw_types, hdr.type_len); in load_btf()
643 ptr += hdr.type_len; in load_btf()
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c131 .type_len = sizeof(btf_raw_types), in load_btf()
/tools/testing/selftests/bpf/prog_tests/
Dbtf.c3788 ret_hdr->type_len = type_sec_size; in btf_raw_create()