Lines Matching refs:btf

341 static bool btf_type_is_char_ptr(struct btf *btf, const struct btf_type *type)  in btf_type_is_char_ptr()  argument
347 real_type = btf_type_skip_modifiers(btf, type->type, &tid); in btf_type_is_char_ptr()
359 static bool btf_type_is_char_array(struct btf *btf, const struct btf_type *type) in btf_type_is_char_array() argument
371 real_type = btf_type_skip_modifiers(btf, array->type, &tid); in btf_type_is_char_array()
382 struct btf *btf = ctx->btf; in check_prepare_btf_string_fetch() local
384 if (!btf || !ctx->last_type) in check_prepare_btf_string_fetch()
388 if (btf_type_is_char_array(btf, ctx->last_type)) in check_prepare_btf_string_fetch()
392 if (btf_type_is_char_ptr(btf, ctx->last_type)) { in check_prepare_btf_string_fetch()
412 static const char *fetch_type_from_btf_type(struct btf *btf, in fetch_type_from_btf_type() argument
470 struct btf *btf; in query_btf_context() local
473 if (ctx->btf) in query_btf_context()
479 type = btf_find_func_proto(ctx->funcname, &btf); in query_btf_context()
483 ctx->btf = btf; in query_btf_context()
510 if (ctx->btf) { in clear_btf_context()
511 btf_put(ctx->btf); in clear_btf_context()
512 ctx->btf = NULL; in clear_btf_context()
567 type = btf_type_skip_modifiers(ctx->btf, type->type, &tid); in parse_btf_field()
582 field = btf_find_struct_member(ctx->btf, type, fieldname, in parse_btf_field()
604 type = btf_type_skip_modifiers(ctx->btf, field->type, &tid); in parse_btf_field()
674 if (!ctx->btf) { in parse_btf_arg()
684 const char *name = btf_name_by_offset(ctx->btf, params[i].name_off); in parse_btf_arg()
710 type = btf_type_skip_modifiers(ctx->btf, tid, &tid); in parse_btf_arg()
729 struct btf *btf = ctx->btf; in find_fetch_type_from_btf_type() local
732 if (btf && ctx->last_type) in find_fetch_type_from_btf_type()
733 typestr = fetch_type_from_btf_type(btf, ctx->last_type, ctx); in find_fetch_type_from_btf_type()
763 ctx->btf = NULL; in clear_btf_context()
1708 name = btf_name_by_offset(ctx->btf, ctx->params[idx].name_off); in sprint_nth_btf_arg()