Lines Matching full:user

40 	struct pt_asid user;  in from_user_null()  local
43 pt_asid_init(&user); in from_user_null()
48 errcode = pt_asid_from_user(NULL, &user); in from_user_null()
70 struct pt_asid asid, user; in from_user_small() local
73 user.size = sizeof(user.size); in from_user_small()
75 errcode = pt_asid_from_user(&asid, &user); in from_user_small()
86 struct pt_asid asid, user; in from_user_big() local
89 user.size = sizeof(user) + 4; in from_user_big()
90 user.cr3 = 0x4200ull; in from_user_big()
91 user.vmcs = 0x23000ull; in from_user_big()
93 errcode = pt_asid_from_user(&asid, &user); in from_user_big()
104 struct pt_asid asid, user; in from_user() local
107 user.size = sizeof(user); in from_user()
108 user.cr3 = 0x4200ull; in from_user()
109 user.vmcs = 0x23000ull; in from_user()
111 errcode = pt_asid_from_user(&asid, &user); in from_user()
122 struct pt_asid asid, user; in from_user_cr3() local
125 user.size = offsetof(struct pt_asid, vmcs); in from_user_cr3()
126 user.cr3 = 0x4200ull; in from_user_cr3()
127 user.vmcs = 0x23000ull; in from_user_cr3()
129 errcode = pt_asid_from_user(&asid, &user); in from_user_cr3()
156 struct pt_asid asid, user; in to_user_too_small() local
161 errcode = pt_asid_to_user(&user, &asid, 0); in to_user_too_small()
164 errcode = pt_asid_to_user(&user, &asid, sizeof(user.size) - 1); in to_user_too_small()
172 struct pt_asid asid, user; in to_user_small() local
175 memset(&user, 0xcc, sizeof(user)); in to_user_small()
178 errcode = pt_asid_to_user(&user, &asid, sizeof(user.size)); in to_user_small()
180 ptu_uint_eq(user.size, sizeof(user.size)); in to_user_small()
181 ptu_uint_eq(user.cr3, 0xccccccccccccccccull); in to_user_small()
182 ptu_uint_eq(user.vmcs, 0xccccccccccccccccull); in to_user_small()
189 struct pt_asid asid, user; in to_user_big() local
192 memset(&user, 0xcc, sizeof(user)); in to_user_big()
197 errcode = pt_asid_to_user(&user, &asid, sizeof(user) + 8); in to_user_big()
199 ptu_uint_eq(user.size, sizeof(asid)); in to_user_big()
200 ptu_uint_eq(user.cr3, 0x4200ull); in to_user_big()
201 ptu_uint_eq(user.vmcs, 0x23000ull); in to_user_big()
208 struct pt_asid asid, user; in to_user() local
211 memset(&user, 0xcc, sizeof(user)); in to_user()
216 errcode = pt_asid_to_user(&user, &asid, sizeof(user)); in to_user()
218 ptu_uint_eq(user.size, sizeof(asid)); in to_user()
219 ptu_uint_eq(user.cr3, 0x4200ull); in to_user()
220 ptu_uint_eq(user.vmcs, 0x23000ull); in to_user()
227 struct pt_asid asid, user; in to_user_cr3() local
230 memset(&user, 0xcc, sizeof(user)); in to_user_cr3()
234 errcode = pt_asid_to_user(&user, &asid, offsetof(struct pt_asid, vmcs)); in to_user_cr3()
236 ptu_uint_eq(user.size, offsetof(struct pt_asid, vmcs)); in to_user_cr3()
237 ptu_uint_eq(user.cr3, 0x4200ull); in to_user_cr3()
238 ptu_uint_eq(user.vmcs, 0xccccccccccccccccull); in to_user_cr3()