Home
last modified time | relevance | path

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

/linux-6.1.9/tools/bpf/bpftool/
Dgen.c2143 struct btf *btf_new = NULL; in btfgen_get_btf() local
2148 btf_new = btf__new_empty(); in btfgen_get_btf()
2149 if (!btf_new) { in btfgen_get_btf()
2182 err = btf__add_struct(btf_new, name, type->size); in btfgen_get_btf()
2184 err = btf__add_union(btf_new, name, type->size); in btfgen_get_btf()
2199 err = btf__add_field(btf_new, name, m->type, in btfgen_get_btf()
2206 err = btf__add_type(btf_new, info->src_btf, type); in btfgen_get_btf()
2217 for (i = 1; i < btf__type_cnt(btf_new); i++) { in btfgen_get_btf()
2218 struct btf_type *btf_type = (struct btf_type *) btf__type_by_id(btf_new, i); in btfgen_get_btf()
2226 return btf_new; in btfgen_get_btf()
[all …]
/linux-6.1.9/tools/lib/bpf/
Dbtf.c854 static struct btf *btf_new(const void *data, __u32 size, struct btf *base_btf) in btf_new() function
906 return libbpf_ptr(btf_new(data, size, NULL)); in btf__new()
996 btf = btf_new(btf_data->d_buf, btf_data->d_size, base_btf); in btf_parse_elf()
1100 btf = btf_new(data, sz, base_btf); in btf_parse_raw()
1377 btf = btf_new(ptr, btf_info.btf_size, base_btf); in btf_get_from_fd()