Home
last modified time | relevance | path

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

/linux-6.12.1/tools/bpf/bpftool/
Dgen.c2433 struct btf *btf_new = NULL; in btfgen_get_btf() local
2438 btf_new = btf__new_empty(); in btfgen_get_btf()
2439 if (!btf_new) { in btfgen_get_btf()
2472 err = btf__add_struct(btf_new, name, type->size); in btfgen_get_btf()
2474 err = btf__add_union(btf_new, name, type->size); in btfgen_get_btf()
2489 err = btf__add_field(btf_new, name, m->type, in btfgen_get_btf()
2496 err = btf__add_type(btf_new, info->src_btf, type); in btfgen_get_btf()
2507 for (i = 1; i < btf__type_cnt(btf_new); i++) { in btfgen_get_btf()
2508 struct btf_type *btf_type = (struct btf_type *) btf__type_by_id(btf_new, i); in btfgen_get_btf()
2521 return btf_new; in btfgen_get_btf()
[all …]
/linux-6.12.1/tools/lib/bpf/
Dbtf.c1032 static struct btf *btf_new(const void *data, __u32 size, struct btf *base_btf) in btf_new() function
1085 return libbpf_ptr(btf_new(data, size, NULL)); in btf__new()
1090 return libbpf_ptr(btf_new(data, size, base_btf)); in btf__new_split()
1203 dist_base_btf = btf_new(secs.btf_base_data->d_buf, secs.btf_base_data->d_size, in btf_parse_elf()
1212 btf = btf_new(secs.btf_data->d_buf, secs.btf_data->d_size, in btf_parse_elf()
1330 btf = btf_new(data, sz, base_btf); in btf_parse_raw()
1613 btf = btf_new(ptr, btf_info.btf_size, base_btf); in btf_get_from_fd()