/linux-6.1.9/tools/lib/bpf/ ! |
D | relo_core.h | 71 int __bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, 73 int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_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, 84 const struct btf *local_btf,
|
D | relo_core.c | 146 int __bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, in __bpf_core_types_are_compat() argument 153 local_type = btf_type_by_id(local_btf, local_id); in __bpf_core_types_are_compat() 163 local_type = skip_mods_and_typedefs(local_btf, local_id, &local_id); in __bpf_core_types_are_compat() 206 skip_mods_and_typedefs(local_btf, local_p->type, &local_id); in __bpf_core_types_are_compat() 208 err = __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, in __bpf_core_types_are_compat() 215 skip_mods_and_typedefs(local_btf, local_type->type, &local_id); in __bpf_core_types_are_compat() 412 static int bpf_core_fields_are_compat(const struct btf *local_btf, in bpf_core_fields_are_compat() argument 420 local_type = skip_mods_and_typedefs(local_btf, local_id, &local_id); in bpf_core_fields_are_compat() 440 local_name = btf__name_by_offset(local_btf, in bpf_core_fields_are_compat() 481 static int bpf_core_match_member(const struct btf *local_btf, in bpf_core_match_member() argument [all …]
|
D | libbpf.c | 5465 bpf_core_find_cands(struct bpf_object *obj, const struct btf *local_btf, __u32 local_type_id) in bpf_core_find_cands() argument 5475 local_cand.btf = local_btf; in bpf_core_find_cands() 5477 local_t = btf__type_by_id(local_btf, local_type_id); in bpf_core_find_cands() 5481 local_name = btf__name_by_offset(local_btf, local_t->name_off); in bpf_core_find_cands() 5544 int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, in bpf_core_types_are_compat() argument 5547 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, 32); in bpf_core_types_are_compat() 5550 int bpf_core_types_match(const struct btf *local_btf, __u32 local_id, in bpf_core_types_match() argument 5553 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, 32); in bpf_core_types_match() 5608 const struct btf *local_btf, in bpf_core_resolve_relo() argument 5621 local_type = btf__type_by_id(local_btf, local_id); in bpf_core_resolve_relo() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ ! |
D | core_reloc.c | 426 struct btf *local_btf = btf__parse(test->bpf_obj_file, NULL); in setup_type_id_case_local() local 432 if (!ASSERT_OK_PTR(local_btf, "local_btf") || !ASSERT_OK_PTR(targ_btf, "targ_btf")) { in setup_type_id_case_local() 433 btf__free(local_btf); in setup_type_id_case_local() 445 for (i = 1; i < btf__type_cnt(local_btf); i++) in setup_type_id_case_local() 447 t = btf__type_by_id(local_btf, i); in setup_type_id_case_local() 453 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local() 457 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && in setup_type_id_case_local() 461 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local() 464 } else if (btf_is_ptr(t) && (t = btf__type_by_id(local_btf, t->type))) { in setup_type_id_case_local() 465 if (btf_is_func_proto(t) && (t = btf__type_by_id(local_btf, t->type)) && in setup_type_id_case_local() [all …]
|
/linux-6.1.9/tools/bpf/bpftool/ ! |
D | gen.c | 2003 btfgen_find_cands(const struct btf *local_btf, const struct btf *targ_btf, __u32 local_id) in btfgen_find_cands() argument 2012 local_cand.btf = local_btf; in btfgen_find_cands() 2015 local_type = btf__type_by_id(local_btf, local_id); in btfgen_find_cands() 2021 local_name = btf__name_by_offset(local_btf, local_type->name_off); in btfgen_find_cands()
|
/linux-6.1.9/kernel/bpf/ ! |
D | btf.c | 7639 int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, in bpf_core_types_are_compat() argument 7642 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, in bpf_core_types_are_compat() 7648 int bpf_core_types_match(const struct btf *local_btf, u32 local_id, in bpf_core_types_match() argument 7651 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, in bpf_core_types_match() 7884 const struct btf *local_btf = ctx->btf; in bpf_core_find_cands() local 7898 local_type = btf_type_by_id(local_btf, local_type_id); in bpf_core_find_cands() 7902 name = btf_name_by_offset(local_btf, local_type->name_off); in bpf_core_find_cands()
|