Lines Matching refs:btf
26 static void check_ctx_arg_type(const struct btf *btf, const struct btf_param *p) in check_ctx_arg_type() argument
31 t = btf__type_by_id(btf, p->type); in check_ctx_arg_type()
35 s = btf_type_raw_dump(btf, t->type); in check_ctx_arg_type()
47 struct btf *btf = NULL; in subtest_ctx_arg_rewrite() local
50 struct btf *kern_btf = NULL; in subtest_ctx_arg_rewrite()
87 btf = btf__load_from_kernel_by_id(info.btf_id); in subtest_ctx_arg_rewrite()
88 if (!ASSERT_OK_PTR(btf, "obj_kern_btf")) in subtest_ctx_arg_rewrite()
99 fn_t = btf__type_by_id(btf, rec->type_id); in subtest_ctx_arg_rewrite()
104 proto_t = btf__type_by_id(btf, fn_t->type); in subtest_ctx_arg_rewrite()
108 name = btf__name_by_offset(btf, fn_t->name_off); in subtest_ctx_arg_rewrite()
115 check_ctx_arg_type(btf, &btf_params(proto_t)[0]); in subtest_ctx_arg_rewrite()
125 check_ctx_arg_type(btf, &btf_params(proto_t)[0]); in subtest_ctx_arg_rewrite()
127 check_ctx_arg_type(btf, &btf_params(proto_t)[2]); in subtest_ctx_arg_rewrite()
135 btf__free(btf); in subtest_ctx_arg_rewrite()