Lines Matching refs:name_off

186 #define BTF_STR_OFFSET_VALID(name_off) ((name_off) <= BTF_MAX_NAME_OFFSET)  argument
563 tname = btf_name_by_offset(btf, t->name_off); in btf_find_by_name_kind()
981 member = btf_name_by_offset(show->btf, m->name_off); in btf_show_name()
1025 t->name_off); in btf_show_name()
1058 name = btf_name_by_offset(show->btf, t->name_off); in btf_show_name()
1462 __btf_name_by_offset(btf, t->name_off), in __btf_verifier_log_type()
1517 __btf_name_by_offset(btf, member->name_off), in btf_verifier_log_member()
1523 __btf_name_by_offset(btf, member->name_off), in btf_verifier_log_member()
2597 if (!t->name_off || in btf_ref_type_check_meta()
2598 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_ref_type_check_meta()
2603 value = btf_name_by_offset(env->btf, t->name_off); in btf_ref_type_check_meta()
2609 if (t->name_off) { in btf_ref_type_check_meta()
2844 if (!t->name_off || in btf_fwd_check_meta()
2845 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_fwd_check_meta()
2914 if (t->name_off) { in btf_array_check_meta()
3167 if (t->name_off && in btf_struct_check_meta()
3168 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_struct_check_meta()
3177 if (!btf_name_offset_valid(btf, member->name_off)) { in btf_struct_check_meta()
3180 member->name_off); in btf_struct_check_meta()
3185 if (member->name_off && in btf_struct_check_meta()
3186 !btf_name_valid_identifier(btf, member->name_off)) { in btf_struct_check_meta()
3355 if (!strcmp("kptr_untrusted", __btf_name_by_offset(btf, t->name_off))) in btf_find_kptr()
3357 else if (!strcmp("kptr", __btf_name_by_offset(btf, t->name_off))) in btf_find_kptr()
3359 else if (!strcmp("percpu_kptr", __btf_name_by_offset(btf, t->name_off))) in btf_find_kptr()
3361 else if (!strcmp("uptr", __btf_name_by_offset(btf, t->name_off))) in btf_find_kptr()
3396 if (strncmp(__btf_name_by_offset(btf, t->name_off), tag_key, len)) in btf_find_next_decl_tag()
3416 value = __btf_name_by_offset(btf, t->name_off) + len; in btf_find_decl_tag_value()
3474 const char *name = __btf_name_by_offset(btf, var_type->name_off); in btf_get_field_type()
3789 id = bpf_find_btf_id(__btf_name_by_offset(btf, t->name_off), BTF_INFO_KIND(t->info), in btf_parse_kptr()
3842 dtor_func_name = __btf_name_by_offset(kptr_btf, dtor_func->name_off); in btf_parse_kptr()
3881 __btf_name_by_offset(btf, member->name_off))) in btf_parse_graph_root()
3889 if (strcmp(node_type_name, __btf_name_by_offset(btf, n->name_off))) in btf_parse_graph_root()
4313 if (t->name_off && in btf_enum_check_meta()
4314 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_enum_check_meta()
4322 if (!btf_name_offset_valid(btf, enums[i].name_off)) { in btf_enum_check_meta()
4324 enums[i].name_off); in btf_enum_check_meta()
4329 if (!enums[i].name_off || in btf_enum_check_meta()
4330 !btf_name_valid_identifier(btf, enums[i].name_off)) { in btf_enum_check_meta()
4339 __btf_name_by_offset(btf, enums[i].name_off), in btf_enum_check_meta()
4373 enums[i].name_off)); in btf_enum_show()
4421 if (t->name_off && in btf_enum64_check_meta()
4422 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_enum64_check_meta()
4430 if (!btf_name_offset_valid(btf, enums[i].name_off)) { in btf_enum64_check_meta()
4432 enums[i].name_off); in btf_enum64_check_meta()
4437 if (!enums[i].name_off || in btf_enum64_check_meta()
4438 !btf_name_valid_identifier(btf, enums[i].name_off)) { in btf_enum64_check_meta()
4448 __btf_name_by_offset(btf, enums[i].name_off), in btf_enum64_check_meta()
4476 enums[i].name_off)); in btf_enum64_show()
4511 if (t->name_off) { in btf_func_proto_check_meta()
4546 args[0].name_off)); in btf_func_proto_log()
4550 args[i].name_off)); in btf_func_proto_log()
4558 last_arg->name_off)); in btf_func_proto_log()
4589 if (!t->name_off || in btf_func_check_meta()
4590 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_func_check_meta()
4658 if (!t->name_off || in btf_var_check_meta()
4659 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_var_check_meta()
4724 if (!t->name_off || in btf_datasec_check_meta()
4725 !btf_name_valid_section(env->btf, t->name_off)) { in btf_datasec_check_meta()
4830 __btf_name_by_offset(btf, t->name_off)); in btf_datasec_show()
4941 value = btf_name_by_offset(env->btf, t->name_off); in btf_decl_tag_check_meta()
5076 if (args[nr_args - 1].name_off) { in btf_func_proto_check()
5100 if (args[i].name_off && in btf_func_proto_check()
5101 (!btf_name_offset_valid(btf, args[i].name_off) || in btf_func_proto_check()
5102 !btf_name_valid_identifier(btf, args[i].name_off))) { in btf_func_proto_check()
5143 if (!args[i].name_off && args[i].type) { in btf_func_check()
5201 if (!btf_name_offset_valid(env->btf, t->name_off)) { in btf_check_meta()
5203 env->log_type_id, t->name_off); in btf_check_meta()
5934 tname = btf_name_by_offset(btf, t->name_off); in btf_is_prog_ctx_type()
5950 tname = btf_name_by_offset(btf, t->name_off); in btf_is_prog_ctx_type()
5963 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); in btf_is_prog_ctx_type()
6023 tname = btf_name_by_offset(btf, t->name_off); in btf_validate_prog_ctx_type()
6037 tname = btf_name_by_offset(btf, t->name_off); in btf_validate_prog_ctx_type()
6128 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); in btf_validate_prog_ctx_type()
6637 __btf_name_by_offset(btf, t->name_off), in btf_ctx_access()
6705 tname = btf_name_by_offset(btf, t->name_off); in btf_ctx_access()
6752 tag_value = __btf_name_by_offset(btf, t->name_off); in btf_ctx_access()
6772 __btf_name_by_offset(btf, t->name_off)); in btf_ctx_access()
6807 tname = __btf_name_by_offset(btf, t->name_off); in btf_struct_walk()
6909 mname = __btf_name_by_offset(btf, member->name_off); in btf_struct_walk()
7011 tag_value = __btf_name_by_offset(btf, t->name_off); in btf_struct_walk()
7302 fn1 = btf_name_by_offset(btf1, t1->name_off); in btf_check_func_type_match()
7303 fn2 = btf_name_by_offset(btf2, t2->name_off); in btf_check_func_type_match()
7392 s1 = btf_name_by_offset(btf1, t1->name_off); in btf_check_func_type_match()
7393 s2 = btf_name_by_offset(btf2, t2->name_off); in btf_check_func_type_match()
7440 name = btf_str_by_offset(btf, t->name_off); in btf_is_dynptr_ptr()
7487 arg_idx, btf_type_str(t), __btf_name_by_offset(btf, t->name_off), in btf_get_ptr_to_btf_id()
7493 arg_idx, btf_type_str(t), __btf_name_by_offset(btf, t->name_off), in btf_get_ptr_to_btf_id()
7500 arg_idx, btf_type_str(t), __btf_name_by_offset(btf, t->name_off)); in btf_get_ptr_to_btf_id()
7568 tname = btf_name_by_offset(btf, fn_t->name_off); in btf_prepare_func_args()
7615 const char *tag = __btf_name_by_offset(btf, tag_t->name_off) + 4; in btf_prepare_func_args()
7707 i, btf_type_str(t), btf_name_by_offset(btf, t->name_off), in btf_prepare_func_args()
8281 name = btf_name_by_offset(btf, t->name_off); in BTF_ID_LIST_GLOBAL()
8321 iter_name = btf_name_by_offset(btf, t->name_off) + sizeof(ITER_PREFIX) - 1; in btf_check_iter_kfuncs()
8366 func_name = btf_name_by_offset(btf, func->name_off); in btf_check_kfunc_protos()
8996 targ_name = btf_name_by_offset(targ_btf, t->name_off); in bpf_core_add_cands()
9051 name = btf_name_by_offset(local_btf, local_type->name_off); in bpf_core_find_cands()
9211 tname = btf_name_by_offset(btf, walk_type->name_off); in btf_nested_type_is_trusted()
9226 const char *m_name = __btf_name_by_offset(btf, member->name_off); in btf_nested_type_is_trusted()
9259 reg_name = btf_name_by_offset(reg_btf, reg_type->name_off); in btf_type_ids_nocast_alias()
9260 arg_name = btf_name_by_offset(arg_btf, arg_type->name_off); in btf_type_ids_nocast_alias()
9425 param_name = btf_name_by_offset(btf, arg->name_off); in btf_param_match_suffix()