Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
A Dcore_reloc.c365 struct btf *local_btf = btf__parse(test->bpf_obj_file, NULL); in setup_type_id_case_local() local
372 btf__free(local_btf); in setup_type_id_case_local()
384 for (i = 1; i < btf__type_cnt(local_btf); i++) in setup_type_id_case_local()
386 t = btf__type_by_id(local_btf, i); in setup_type_id_case_local()
396 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local()
400 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
403 } else if (btf_is_ptr(t) && (t = btf__type_by_id(local_btf, t->type))) { in setup_type_id_case_local()
422 exp->local_union = find_btf_type(local_btf, "a_union", BTF_KIND_UNION); in setup_type_id_case_local()
423 exp->local_enum = find_btf_type(local_btf, "an_enum", BTF_KIND_ENUM); in setup_type_id_case_local()
424 exp->local_int = find_btf_type(local_btf, "int", BTF_KIND_INT); in setup_type_id_case_local()
[all …]
/linux/tools/lib/bpf/
A Drelo_core.c301 static int bpf_core_fields_are_compat(const struct btf *local_btf, in bpf_core_fields_are_compat() argument
309 local_type = skip_mods_and_typedefs(local_btf, local_id, &local_id); in bpf_core_fields_are_compat()
328 local_name = btf__name_by_offset(local_btf, in bpf_core_fields_are_compat()
371 static int bpf_core_match_member(const struct btf *local_btf, in bpf_core_match_member() argument
391 local_type = btf__type_by_id(local_btf, local_id); in bpf_core_match_member()
393 local_name = btf__name_by_offset(local_btf, local_member->name_off); in bpf_core_match_member()
413 found = bpf_core_match_member(local_btf, local_acc, in bpf_core_match_member()
428 found = bpf_core_fields_are_compat(local_btf, in bpf_core_match_member()
1149 const struct btf *local_btf, in bpf_core_apply_relo_insn() argument
1161 local_type = btf__type_by_id(local_btf, local_id); in bpf_core_apply_relo_insn()
[all …]
A Drelo_core.h94 const struct btf *local_btf,
96 int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id,
A Dlibbpf.c5244 local_cand.btf = local_btf; in bpf_core_find_cands()
5245 local_cand.t = btf__type_by_id(local_btf, local_type_id); in bpf_core_find_cands()
5249 local_cand.name = btf__name_by_offset(local_btf, local_cand.t->name_off); in bpf_core_find_cands()
5319 local_type = btf__type_by_id(local_btf, local_id); in bpf_core_types_are_compat()
5329 local_type = skip_mods_and_typedefs(local_btf, local_id, &local_id); in bpf_core_types_are_compat()
5368 skip_mods_and_typedefs(local_btf, local_p->type, &local_id); in bpf_core_types_are_compat()
5376 skip_mods_and_typedefs(local_btf, local_type->type, &local_id); in bpf_core_types_are_compat()
5405 const struct btf *local_btf, in bpf_core_apply_relo() argument
5429 local_type = btf__type_by_id(local_btf, local_id); in bpf_core_apply_relo()
5433 local_name = btf__name_by_offset(local_btf, local_type->name_off); in bpf_core_apply_relo()
[all …]

Completed in 28 milliseconds