Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H A Drelo_core.h72 const struct btf *targ_btf, __u32 targ_id, int level);
74 const struct btf *targ_btf, __u32 targ_id);
75 int __bpf_core_types_match(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf,
77 int bpf_core_types_match(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf,
H A Dlibbpf_internal.h719 const struct btf *targ_btf,
H A Dlibbpf.c5755 const struct btf *targ_btf, in load_module_btfs()
5769 n = btf__type_cnt(targ_btf); in load_module_btfs()
5771 t = btf__type_by_id(targ_btf, i); in load_module_btfs()
5775 targ_name = btf__name_by_offset(targ_btf, t->name_off); in load_module_btfs()
5796 cand->btf = targ_btf; in load_module_btfs()
5983 const struct btf *targ_btf, __u32 targ_id) in bpf_core_resolve_relo()
5985 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, 32); in bpf_core_resolve_relo()
5989 const struct btf *targ_btf, __u32 targ_id) in bpf_core_resolve_relo()
5991 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, 32); in bpf_core_resolve_relo()
5701 bpf_core_add_cands(struct bpf_core_cand * local_cand,size_t local_essent_len,const struct btf * targ_btf,const char * targ_btf_name,int targ_start_id,struct bpf_core_cand_list * cands) bpf_core_add_cands() argument
5928 bpf_core_types_are_compat(const struct btf * local_btf,__u32 local_id,const struct btf * targ_btf,__u32 targ_id) bpf_core_types_are_compat() argument
5934 bpf_core_types_match(const struct btf * local_btf,__u32 local_id,const struct btf * targ_btf,__u32 targ_id) bpf_core_types_match() argument
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcore_reloc.c429 struct btf *targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_local()
434 if (!ASSERT_OK_PTR(local_btf, "local_btf") || !ASSERT_OK_PTR(targ_btf, "targ_btf")) { in setup_type_id_case_local()
436 btf__free(targ_btf); in setup_type_id_case_local()
493 btf__free(targ_btf); in setup_type_id_case_local()
499 struct btf *targ_btf; in setup_type_id_case_success()
506 targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_success()
508 exp->targ_struct = find_btf_type(targ_btf, "a_struct", BTF_KIND_STRUCT); in setup_type_id_case_success()
509 exp->targ_union = find_btf_type(targ_btf, "a_union", BTF_KIND_UNION); in setup_type_id_case_success()
510 exp->targ_enum = find_btf_type(targ_btf, "an_enu in setup_type_id_case_success()
428 struct btf *targ_btf = btf__parse(test->btf_src_file, NULL); setup_type_id_case_local() local
498 struct btf *targ_btf; setup_type_id_case_success() local
[all...]
/linux/kernel/bpf/
H A Dbtf.c9180 const struct btf *targ_btf, __u32 targ_id) in bpf_core_types_are_compat() argument
9182 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, in bpf_core_types_are_compat()
9189 const struct btf *targ_btf, u32 targ_id) in bpf_core_types_match() argument
9191 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, in bpf_core_types_match()
9359 bpf_core_add_cands(struct bpf_cand_cache *cands, const struct btf *targ_btf, in bpf_core_add_cands() argument
9368 n = btf_nr_types(targ_btf); in bpf_core_add_cands()
9370 t = btf_type_by_id(targ_btf, i); in bpf_core_add_cands()
9374 targ_name = btf_name_by_offset(targ_btf, t->name_off); in bpf_core_add_cands()
9400 cands->cands[cands->cnt].btf = targ_btf; in bpf_core_add_cands()