Home
last modified time | relevance | path

Searched refs:src_btf (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/tools/bpf/bpftool/
Dgen.c1963 struct btf *src_btf; member
1982 btf__free(info->src_btf); in btfgen_free_info()
1998 info->src_btf = btf__parse(targ_btf_path, NULL); in btfgen_new_info()
1999 if (!info->src_btf) { in btfgen_new_info()
2033 const struct btf_type *btf_type = btf__type_by_id(info->src_btf, type_id); in btfgen_mark_type()
2107 struct btf *btf = info->src_btf; in btfgen_record_field_relo()
2170 struct btf *btf = info->src_btf; in btfgen_mark_type_match()
2392 cands = btfgen_find_cands(btf, info->src_btf, relo->type_id); in btfgen_record_obj()
2461 type = btf__type_by_id(info->src_btf, i); in btfgen_get_btf()
2469 name = btf__str_by_offset(info->src_btf, type->name_off); in btfgen_get_btf()
[all …]
/linux-6.12.1/tools/lib/bpf/
Dbtf.h129 LIBBPF_API int btf__distill_base(const struct btf *src_btf, struct btf **new_base_btf,
173 LIBBPF_API int btf__add_type(struct btf *btf, const struct btf *src_btf,
196 LIBBPF_API int btf__add_btf(struct btf *btf, const struct btf *src_btf);
Dbtf.c1860 int btf__add_type(struct btf *btf, const struct btf *src_btf, const struct btf_type *src_type) in btf__add_type() argument
1862 struct btf_pipe p = { .src = src_btf, .dst = btf }; in btf__add_type()
1870 int btf__add_btf(struct btf *btf, const struct btf *src_btf) in btf__add_btf() argument
1872 struct btf_pipe p = { .src = src_btf, .dst = btf }; in btf__add_btf()
1878 if (src_btf->base_btf) in btf__add_btf()
1890 data_sz = src_btf->hdr->type_len; in btf__add_btf()
1891 cnt = btf__type_cnt(src_btf) - 1; in btf__add_btf()
1909 memcpy(t, src_btf->types_data, data_sz); in btf__add_btf()
5380 int btf__distill_base(const struct btf *src_btf, struct btf **new_base_btf, in btf__distill_base() argument
5385 unsigned int n = btf__type_cnt(src_btf); in btf__distill_base()
[all …]
Dlinker.c1776 struct btf *src_btf, int src_id) in complete_extern_btf_info() argument
1779 struct btf_type *src_t = btf_type_by_id(src_btf, src_id); in complete_extern_btf_info()
1795 src_t = btf_type_by_id(src_btf, src_t->type); in complete_extern_btf_info()
1816 s = btf__str_by_offset(src_btf, src_p->name_off); in complete_extern_btf_info()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dcore_reloc.c984 static int run_btfgen(const char *src_btf, const char *dst_btf, const char *objpath) in run_btfgen() argument
991 src_btf, dst_btf, objpath); in run_btfgen()