Home
last modified time | relevance | path

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

/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dcore_reloc.c367 struct btf *targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_local() local
372 if (!ASSERT_OK_PTR(local_btf, "local_btf") || !ASSERT_OK_PTR(targ_btf, "targ_btf")) { in setup_type_id_case_local()
374 btf__free(targ_btf); in setup_type_id_case_local()
431 btf__free(targ_btf); in setup_type_id_case_local()
437 struct btf *targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_success() local
444 targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_success()
446 exp->targ_struct = find_btf_type(targ_btf, "a_struct", BTF_KIND_STRUCT); in setup_type_id_case_success()
447 exp->targ_union = find_btf_type(targ_btf, "a_union", BTF_KIND_UNION); in setup_type_id_case_success()
448 exp->targ_enum = find_btf_type(targ_btf, "an_enum", BTF_KIND_ENUM); in setup_type_id_case_success()
449 exp->targ_int = find_btf_type(targ_btf, "int", BTF_KIND_INT); in setup_type_id_case_success()
[all …]
/Linux-v5.15/tools/lib/bpf/
Drelo_core.c303 const struct btf *targ_btf, in bpf_core_fields_are_compat() argument
310 targ_type = skip_mods_and_typedefs(targ_btf, targ_id, &targ_id); in bpf_core_fields_are_compat()
330 targ_name = btf__name_by_offset(targ_btf, targ_type->name_off); in bpf_core_fields_are_compat()
373 const struct btf *targ_btf, in bpf_core_match_member() argument
384 targ_type = skip_mods_and_typedefs(targ_btf, targ_id, &targ_id); in bpf_core_match_member()
410 targ_name = btf__name_by_offset(targ_btf, m->name_off); in bpf_core_match_member()
414 targ_btf, m->type, in bpf_core_match_member()
430 targ_btf, m->type); in bpf_core_match_member()
448 const struct btf *targ_btf, __u32 targ_id, in bpf_core_spec_match() argument
457 targ_spec->btf = targ_btf; in bpf_core_spec_match()
[all …]
Drelo_core.h97 const struct btf *targ_btf, __u32 targ_id);
Dlibbpf.c4804 const struct btf *targ_btf, in bpf_core_add_cands() argument
4815 n = btf__get_nr_types(targ_btf); in bpf_core_add_cands()
4817 t = btf__type_by_id(targ_btf, i); in bpf_core_add_cands()
4821 targ_name = btf__name_by_offset(targ_btf, t->name_off); in bpf_core_add_cands()
4842 cand->btf = targ_btf; in bpf_core_add_cands()
5023 const struct btf *targ_btf, __u32 targ_id) in bpf_core_types_are_compat() argument
5030 targ_type = btf__type_by_id(targ_btf, targ_id); in bpf_core_types_are_compat()
5040 targ_type = skip_mods_and_typedefs(targ_btf, targ_id, &targ_id); in bpf_core_types_are_compat()
5079 skip_mods_and_typedefs(targ_btf, targ_p->type, &targ_id); in bpf_core_types_are_compat()
5080 err = bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id); in bpf_core_types_are_compat()
[all …]