Home
last modified time | relevance | path

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

/linux/tools/bpf/bpftool/
H A Dgen.c2516 struct btf *btf_new = NULL; in btfgen_record_obj()
2522 btf_new = btf__new_empty();
2523 if (!btf_new) {
2534 /* first pass: add all marked types to btf_new and add their new ids to the ids map */ in btfgen_get_btf()
2555 err = btf__add_struct(btf_new, name, type->size); in btfgen_get_btf()
2557 err = btf__add_union(btf_new, name, type->size); in btfgen_get_btf()
2572 err = btf__add_field(btf_new, name, m->type, in btfgen_get_btf()
2579 err = btf__add_type(btf_new, info->src_btf, type); in btfgen_get_btf()
2590 for (i = 1; i < btf__type_cnt(btf_new); i++) { in btfgen_get_btf()
2591 struct btf_type *btf_type = (struct btf_type *) btf__type_by_id(btf_new, in btfgen_get_btf()
2526 struct btf *btf_new = NULL; btfgen_get_btf() local
2649 struct btf *btf_new = NULL; minimize_btf() local
[all...]
/linux/tools/lib/bpf/
H A Dbtf.c1356 static struct btf *btf_new(const void *data, __u32 size, struct btf *base_btf, bool is_mmap) in btf_new()
1417 return libbpf_ptr(btf_new(data, size, NULL, false)); in btf_find_elf_sections()
1422 return libbpf_ptr(btf_new(data, size, base_btf, false)); in btf_find_elf_sections()
1542 dist_base_btf = btf_new(secs.btf_base_data->d_buf, secs.btf_base_data->d_size, in btf_parse_elf()
1551 btf = btf_new(secs.btf_data->d_buf, secs.btf_data->d_size, in btf__parse_elf()
1669 btf = btf_new(data, sz, base_btf, false); in btf_parse()
1712 btf = btf_new(data, st.st_size, base_btf, true); in btf_load_into_kernel()
1996 btf = btf_new(ptr, btf_info.btf_size, base_btf, false); in btf_ensure_modifiable()
1300 static struct btf *btf_new(const void *data, __u32 size, struct btf *base_btf, bool is_mmap) btf_new() function