Searched refs:src_btf (Results 1 – 5 of 5) sorted by relevance
/linux/tools/bpf/bpftool/ |
H A D | gen.c | 1963 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, typ in btfgen_get_btf() 2553 minimize_btf(const char * src_btf,const char * dst_btf,const char * objspaths[]) minimize_btf() argument [all...] |
/linux/tools/lib/bpf/ |
H A D | btf.h | 113 * *src_btf* and its base BTF. The new base BTF will only contain the types 129 LIBBPF_API int btf__distill_base(const struct btf *src_btf, struct btf **new_base_btf, 176 LIBBPF_API int btf__add_type(struct btf *btf, const struct btf *src_btf, 179 * @brief **btf__add_btf()** appends all the BTF types from *src_btf* into *btf* 181 * @param src_btf BTF object which all BTF types and referenced strings are copied from 188 * if there were some unused strings in *src_btf*, those won't be copied over, 196 * *src_btf* has to be non-split BTF, as of now copying types from split BTF 199 LIBBPF_API int btf__add_btf(struct btf *btf, const struct btf *src_btf);
|
H A D | btf.c | 1929 int btf__add_type(struct btf *btf, const struct btf *src_btf, const struct btf_type *src_type) in btf__add_type() argument 1931 struct btf_pipe p = { .src = src_btf, .dst = btf }; in btf__add_type() 1939 int btf__add_btf(struct btf *btf, const struct btf *src_btf) in btf__add_btf() argument 1941 struct btf_pipe p = { .src = src_btf, .dst = btf }; in btf__add_btf() 1947 if (src_btf->base_btf) in btf__add_btf() 1959 data_sz = src_btf->hdr->type_len; in btf__add_btf() 1960 cnt = btf__type_cnt(src_btf) - 1; in btf__add_btf() 1978 memcpy(t, src_btf->types_data, data_sz); in btf__add_btf() 5712 int btf__distill_base(const struct btf *src_btf, struct btf **new_base_btf, in btf__distill_base() argument 5717 unsigned int n = btf__type_cnt(src_btf); in btf__distill_base() [all …]
|
H A D | linker.c | 1928 struct btf *src_btf, int src_id) in complete_extern_btf_info() argument 1931 struct btf_type *src_t = btf_type_by_id(src_btf, src_id); in complete_extern_btf_info() 1947 src_t = btf_type_by_id(src_btf, src_t->type); in complete_extern_btf_info() 1967 /* src_btf has more complete info, so add name to dst_btf */ in complete_extern_btf_info() 1968 s = btf__str_by_offset(src_btf, src_p->name_off); in complete_extern_btf_info()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | core_reloc.c | 986 static int run_btfgen(const char *src_btf, const char *dst_btf, const char *objpath) in run_btfgen() 993 src_btf, dst_btf, objpath); in run_btfgen() 984 run_btfgen(const char * src_btf,const char * dst_btf,const char * objpath) run_btfgen() argument
|