Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
Dcore_reloc.c337 struct btf *targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_local() local
343 CHECK(IS_ERR(targ_btf), "targ_btf", "failed: %ld\n", PTR_ERR(targ_btf))) { in setup_type_id_case_local()
345 btf__free(targ_btf); in setup_type_id_case_local()
402 btf__free(targ_btf); in setup_type_id_case_local()
408 struct btf *targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_success() local
415 targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_success()
417 exp->targ_struct = find_btf_type(targ_btf, "a_struct", BTF_KIND_STRUCT); in setup_type_id_case_success()
418 exp->targ_union = find_btf_type(targ_btf, "a_union", BTF_KIND_UNION); in setup_type_id_case_success()
419 exp->targ_enum = find_btf_type(targ_btf, "an_enum", BTF_KIND_ENUM); in setup_type_id_case_success()
420 exp->targ_int = find_btf_type(targ_btf, "int", BTF_KIND_INT); in setup_type_id_case_success()
[all …]
/tools/lib/bpf/
Dlibbpf.c4682 const struct btf *targ_btf) in bpf_core_find_cands() argument
4704 n = btf__get_nr_types(targ_btf); in bpf_core_find_cands()
4706 t = btf__type_by_id(targ_btf, i); in bpf_core_find_cands()
4710 targ_name = btf__name_by_offset(targ_btf, t->name_off); in bpf_core_find_cands()
4757 const struct btf *targ_btf, in bpf_core_fields_are_compat() argument
4764 targ_type = skip_mods_and_typedefs(targ_btf, targ_id, &targ_id); in bpf_core_fields_are_compat()
4783 targ_name = btf__name_by_offset(targ_btf, targ_type->name_off); in bpf_core_fields_are_compat()
4826 const struct btf *targ_btf, in bpf_core_match_member() argument
4837 targ_type = skip_mods_and_typedefs(targ_btf, targ_id, &targ_id); in bpf_core_match_member()
4863 targ_name = btf__name_by_offset(targ_btf, m->name_off); in bpf_core_match_member()
[all …]