• Home
  • Raw
  • Download

Lines Matching refs:name_off

181 #define BTF_STR_OFFSET_VALID(name_off) ((name_off) <= BTF_MAX_NAME_OFFSET)  argument
531 tname = btf_name_by_offset(btf, t->name_off); in btf_find_by_name_kind()
938 member = btf_name_by_offset(show->btf, m->name_off); in btf_show_name()
982 t->name_off); in btf_show_name()
1015 name = btf_name_by_offset(show->btf, t->name_off); in btf_show_name()
1419 __btf_name_by_offset(btf, t->name_off), in __btf_verifier_log_type()
1474 __btf_name_by_offset(btf, member->name_off), in btf_verifier_log_member()
1480 __btf_name_by_offset(btf, member->name_off), in btf_verifier_log_member()
2497 if (!t->name_off || in btf_ref_type_check_meta()
2498 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_ref_type_check_meta()
2503 value = btf_name_by_offset(env->btf, t->name_off); in btf_ref_type_check_meta()
2509 if (t->name_off) { in btf_ref_type_check_meta()
2744 if (!t->name_off || in btf_fwd_check_meta()
2745 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_fwd_check_meta()
2814 if (t->name_off) { in btf_array_check_meta()
3067 if (t->name_off && in btf_struct_check_meta()
3068 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_struct_check_meta()
3077 if (!btf_name_offset_valid(btf, member->name_off)) { in btf_struct_check_meta()
3080 member->name_off); in btf_struct_check_meta()
3085 if (member->name_off && in btf_struct_check_meta()
3086 !btf_name_valid_identifier(btf, member->name_off)) { in btf_struct_check_meta()
3248 if (!strcmp("kptr", __btf_name_by_offset(btf, t->name_off))) in btf_find_kptr()
3250 else if (!strcmp("kptr_ref", __btf_name_by_offset(btf, t->name_off))) in btf_find_kptr()
3281 if (name && strcmp(__btf_name_by_offset(btf, member_type->name_off), name)) in btf_find_struct_field()
3335 if (name && strcmp(__btf_name_by_offset(btf, var_type->name_off), name)) in btf_find_datasec_var()
3461 id = bpf_find_btf_id(__btf_name_by_offset(btf, t->name_off), BTF_INFO_KIND(t->info), in btf_parse_kptrs()
3504 dtor_func_name = __btf_name_by_offset(kernel_btf, dtor_func->name_off); in btf_parse_kptrs()
3711 if (t->name_off && in btf_enum_check_meta()
3712 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_enum_check_meta()
3720 if (!btf_name_offset_valid(btf, enums[i].name_off)) { in btf_enum_check_meta()
3722 enums[i].name_off); in btf_enum_check_meta()
3727 if (!enums[i].name_off || in btf_enum_check_meta()
3728 !btf_name_valid_identifier(btf, enums[i].name_off)) { in btf_enum_check_meta()
3737 __btf_name_by_offset(btf, enums[i].name_off), in btf_enum_check_meta()
3771 enums[i].name_off)); in btf_enum_show()
3819 if (t->name_off && in btf_enum64_check_meta()
3820 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_enum64_check_meta()
3828 if (!btf_name_offset_valid(btf, enums[i].name_off)) { in btf_enum64_check_meta()
3830 enums[i].name_off); in btf_enum64_check_meta()
3835 if (!enums[i].name_off || in btf_enum64_check_meta()
3836 !btf_name_valid_identifier(btf, enums[i].name_off)) { in btf_enum64_check_meta()
3846 __btf_name_by_offset(btf, enums[i].name_off), in btf_enum64_check_meta()
3874 enums[i].name_off)); in btf_enum64_show()
3909 if (t->name_off) { in btf_func_proto_check_meta()
3944 args[0].name_off)); in btf_func_proto_log()
3948 args[i].name_off)); in btf_func_proto_log()
3956 last_arg->name_off)); in btf_func_proto_log()
3987 if (!t->name_off || in btf_func_check_meta()
3988 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_func_check_meta()
4056 if (!t->name_off || in btf_var_check_meta()
4057 !__btf_name_valid(env->btf, t->name_off)) { in btf_var_check_meta()
4122 if (!t->name_off || in btf_datasec_check_meta()
4123 !btf_name_valid_section(env->btf, t->name_off)) { in btf_datasec_check_meta()
4228 __btf_name_by_offset(btf, t->name_off)); in btf_datasec_show()
4339 value = btf_name_by_offset(env->btf, t->name_off); in btf_decl_tag_check_meta()
4474 if (args[nr_args - 1].name_off) { in btf_func_proto_check()
4500 if (args[i].name_off && in btf_func_proto_check()
4501 (!btf_name_offset_valid(btf, args[i].name_off) || in btf_func_proto_check()
4502 !btf_name_valid_identifier(btf, args[i].name_off))) { in btf_func_proto_check()
4545 if (!args[i].name_off && args[i].type) { in btf_func_check()
4603 if (!btf_name_offset_valid(env->btf, t->name_off)) { in btf_check_meta()
4605 env->log_type_id, t->name_off); in btf_check_meta()
5131 tname = btf_name_by_offset(btf, t->name_off); in btf_get_prog_ctx_type()
5146 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_struct->name_off); in btf_get_prog_ctx_type()
5476 __btf_name_by_offset(btf, t->name_off), in btf_ctx_access()
5546 tag_value = __btf_name_by_offset(btf, t->name_off); in btf_ctx_access()
5566 __btf_name_by_offset(btf, t->name_off)); in btf_ctx_access()
5588 tname = __btf_name_by_offset(btf, t->name_off); in btf_struct_walk()
5680 mname = __btf_name_by_offset(btf, member->name_off); in btf_struct_walk()
5782 tag_value = __btf_name_by_offset(btf, t->name_off); in btf_struct_walk()
6023 fn1 = btf_name_by_offset(btf1, t1->name_off); in btf_check_func_type_match()
6024 fn2 = btf_name_by_offset(btf2, t2->name_off); in btf_check_func_type_match()
6113 s1 = btf_name_by_offset(btf1, t1->name_off); in btf_check_func_type_match()
6114 s2 = btf_name_by_offset(btf2, t2->name_off); in btf_check_func_type_match()
6210 param_name = btf_name_by_offset(btf, arg->name_off); in is_kfunc_arg_mem_size()
6236 param_name = btf_name_by_offset(btf, arg->name_off); in btf_is_kfunc_arg_mem_size()
6275 func_name = btf_name_by_offset(btf, t->name_off); in btf_check_func_arg_match()
6369 ref_tname = btf_name_by_offset(btf, ref_t->name_off); in btf_check_func_arg_match()
6420 ref_tname = btf_name_by_offset(btf, ref_t->name_off); in btf_check_func_arg_match()
6469 reg_ref_t->name_off); in btf_check_func_arg_match()
6720 tname = btf_name_by_offset(btf, t->name_off); in btf_prepare_func_args()
6780 i, btf_type_str(t), btf_name_by_offset(btf, t->name_off), in btf_prepare_func_args()
7864 targ_name = btf_name_by_offset(targ_btf, t->name_off); in bpf_core_add_cands()
7919 name = btf_name_by_offset(local_btf, local_type->name_off); in bpf_core_find_cands()