Lines Matching refs:tname

549 	const char *tname;  in btf_find_by_name_kind()  local
558 tname = btf_name_by_offset(btf, t->name_off); in btf_find_by_name_kind()
559 if (!strcmp(tname, name)) in btf_find_by_name_kind()
5924 bool btf_is_projection_of(const char *pname, const char *tname) in btf_is_projection_of() argument
5926 if (strcmp(pname, "__sk_buff") == 0 && strcmp(tname, "sk_buff") == 0) in btf_is_projection_of()
5928 if (strcmp(pname, "xdp_md") == 0 && strcmp(tname, "xdp_buff") == 0) in btf_is_projection_of()
5938 const char *tname, *ctx_tname; in btf_is_prog_ctx_type() local
5950 tname = btf_name_by_offset(btf, t->name_off); in btf_is_prog_ctx_type()
5951 if (tname && strcmp(tname, "bpf_user_pt_regs_t") == 0) in btf_is_prog_ctx_type()
5966 tname = btf_name_by_offset(btf, t->name_off); in btf_is_prog_ctx_type()
5967 if (!tname) { in btf_is_prog_ctx_type()
5995 if (btf_is_projection_of(ctx_tname, tname)) in btf_is_prog_ctx_type()
5997 if (strcmp(ctx_tname, tname)) { in btf_is_prog_ctx_type()
6025 const char *tname, *ctx_tname; in btf_validate_prog_ctx_type() local
6039 tname = btf_name_by_offset(btf, t->name_off); in btf_validate_prog_ctx_type()
6040 if (tname && strcmp(tname, "bpf_user_pt_regs_t") == 0) in btf_validate_prog_ctx_type()
6053 tname = btf_name_by_offset(btf, t->name_off); in btf_validate_prog_ctx_type()
6054 if (str_is_empty(tname)) { in btf_validate_prog_ctx_type()
6062 if (__btf_type_is_struct(t) && strcmp(tname, "pt_regs") == 0) in btf_validate_prog_ctx_type()
6067 __btf_type_is_struct(t) && strcmp(tname, "pt_regs") == 0) in btf_validate_prog_ctx_type()
6070 __btf_type_is_struct(t) && strcmp(tname, "user_pt_regs") == 0) in btf_validate_prog_ctx_type()
6073 __btf_type_is_struct(t) && strcmp(tname, "user_regs_struct") == 0) in btf_validate_prog_ctx_type()
6087 strcmp(tname, "bpf_raw_tracepoint_args") == 0) in btf_validate_prog_ctx_type()
6096 strncmp(tname, "bpf_iter__", sizeof("bpf_iter__") - 1) == 0) in btf_validate_prog_ctx_type()
6145 if (!__btf_type_is_struct(t) || strcmp(ctx_tname, tname) != 0) { in btf_validate_prog_ctx_type()
6661 const char *tname = prog->aux->attach_func_name; in btf_ctx_access() local
6671 tname, off); in btf_ctx_access()
6688 tname, arg + 1); in btf_ctx_access()
6734 tname, arg + 1); in btf_ctx_access()
6753 tname, arg, in btf_ctx_access()
6761 tname, size); in btf_ctx_access()
6817 const char *tname; in btf_ctx_access() local
6823 tname = btf_name_by_offset(btf, t->name_off); in btf_ctx_access()
6824 if (!tname) in btf_ctx_access()
6827 tname += sizeof("btf_trace_") - 1; in btf_ctx_access()
6830 if (strcmp(tname, raw_tp_null_args[i].func)) in btf_ctx_access()
6885 tname, arg, btf_type_str(t)); in btf_ctx_access()
6889 tname, arg, info->btf_id, btf_type_str(t), in btf_ctx_access()
6919 const char *tname, *mname, *tag_value; in btf_struct_walk() local
6925 tname = __btf_name_by_offset(btf, t->name_off); in btf_struct_walk()
6927 bpf_log(log, "Type '%s' is not a struct\n", tname); in btf_struct_walk()
6978 tname, off, size); in btf_struct_walk()
7122 mname, moff, tname, off, size); in btf_struct_walk()
7160 mname, mtrue_end, tname, off, size); in btf_struct_walk()
7166 bpf_log(log, "struct %s doesn't have field at offset %d\n", tname, off); in btf_struct_walk()
7336 const char *tname, in btf_distill_func_proto() argument
7362 tname, nargs); in btf_distill_func_proto()
7369 tname, btf_type_str(t)); in btf_distill_func_proto()
7379 tname); in btf_distill_func_proto()
7388 tname, i, btf_type_str(t)); in btf_distill_func_proto()
7394 tname); in btf_distill_func_proto()
7659 const char *tname; in btf_prepare_func_args() local
7686 tname = btf_name_by_offset(btf, fn_t->name_off); in btf_prepare_func_args()
7689 bpf_log(log, "Verifier bug in function %s()\n", tname); in btf_prepare_func_args()
7697 bpf_log(log, "Invalid type of function %s()\n", tname); in btf_prepare_func_args()
7706 tname, nargs, MAX_BPF_FUNC_REG_ARGS); in btf_prepare_func_args()
7718 tname); in btf_prepare_func_args()
7849 i, btf_type_str(t), tname); in btf_prepare_func_args()
9304 const char *tname; in btf_nested_type_is_trusted() local
9314 tname = btf_name_by_offset(btf, walk_type->name_off); in btf_nested_type_is_trusted()
9316 ret = snprintf(safe_tname, sizeof(safe_tname), "%s%s", tname, suffix); in btf_nested_type_is_trusted()