Home
last modified time | relevance | path

Searched refs:base_size (Results 1 – 2 of 2) sorted by relevance

/tools/lib/bpf/
Dbtf.c143 int base_size = sizeof(struct btf_type); in btf_type_size() local
154 return base_size; in btf_type_size()
156 return base_size + sizeof(__u32); in btf_type_size()
158 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
160 return base_size + sizeof(struct btf_array); in btf_type_size()
163 return base_size + vlen * sizeof(struct btf_member); in btf_type_size()
165 return base_size + vlen * sizeof(struct btf_param); in btf_type_size()
167 return base_size + sizeof(struct btf_var); in btf_type_size()
169 return base_size + vlen * sizeof(struct btf_var_secinfo); in btf_type_size()
/tools/testing/selftests/bpf/
Dtest_btf.c6702 int base_size = sizeof(struct btf_type); in btf_type_size() local
6714 return base_size; in btf_type_size()
6716 return base_size + sizeof(__u32); in btf_type_size()
6718 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
6720 return base_size + sizeof(struct btf_array); in btf_type_size()
6723 return base_size + vlen * sizeof(struct btf_member); in btf_type_size()
6725 return base_size + vlen * sizeof(struct btf_param); in btf_type_size()
6727 return base_size + sizeof(struct btf_var); in btf_type_size()
6729 return base_size + vlen * sizeof(struct btf_var_secinfo); in btf_type_size()