Home
last modified time | relevance | path

Searched refs:type_len (Results 1 – 7 of 7) 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.c184 h->type_len = bswap_32(h->type_len); in btf_bswap_hdr()
224 if ((long long)hdr->type_off + hdr->type_len > hdr->str_off) { in btf_parse_hdr()
226 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr()
363 void *end_type = next_type + hdr->type_len; in btf_parse_type_sec()
1171 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
1182 memcpy(p, btf->types_data, hdr->type_len); in btf_get_raw_data()
1195 p += hdr->type_len; in btf_get_raw_data()
1422 types = malloc(btf->hdr->type_len); in btf_ensure_modifiable()
1428 memcpy(types, btf->types_data, btf->hdr->type_len); in btf_ensure_modifiable()
1454 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/
Dtest_verifier.c547 .type_len = sizeof(btf_raw_types), in load_btf()
559 memcpy(ptr, btf_raw_types, hdr.type_len); in load_btf()
560 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.c3637 ret_hdr->type_len = type_sec_size; in btf_raw_create()