• Home
  • Raw
  • Download

Lines Matching refs:info

110 static int child(struct shared_info *info)  in child()  argument
117 ret = wait_parent(&info->child_sync); in child()
139 info->amr |= 3ul << pkeyshift(pkey1) | 2ul << pkeyshift(pkey2); in child()
142 info->iamr |= 1ul << pkeyshift(pkey1); in child()
144 info->iamr &= ~(1ul << pkeyshift(pkey1)); in child()
146 info->iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(pkey3)); in child()
148 info->uamor |= 3ul << pkeyshift(pkey1) | 3ul << pkeyshift(pkey2); in child()
151 user_write, info->amr, pkey1, pkey2, pkey3); in child()
153 set_amr(info->amr); in child()
161 info->core_time = time(NULL); in child()
174 static off_t try_core_file(const char *filename, struct shared_info *info, in try_core_file() argument
185 return buf.st_mtime >= info->core_time ? buf.st_size : TEST_FAIL; in try_core_file()
195 static int check_core_file(struct shared_info *info, Elf64_Ehdr *ehdr, in check_core_file() argument
249 FAIL_IF(regs[0] != info->amr); in check_core_file()
250 FAIL_IF(regs[1] != info->iamr); in check_core_file()
251 FAIL_IF(regs[2] != info->uamor); in check_core_file()
256 static int parent(struct shared_info *info, pid_t pid) in parent() argument
269 PARENT_SKIP_IF_UNSUPPORTED(ret, &info->child_sync); in parent()
270 PARENT_FAIL_IF(ret, &info->child_sync); in parent()
272 info->amr = regs[0]; in parent()
273 info->iamr = regs[1]; in parent()
274 info->uamor = regs[2]; in parent()
277 ret = prod_child(&info->child_sync); in parent()
278 PARENT_FAIL_IF(ret, &info->child_sync); in parent()
312 core_size = try_core_file(filename[i], info, pid); in parent()
337 ret = check_core_file(info, core, core_size); in parent()
419 struct shared_info *info; in core_pkey() local
428 shm_id = shmget(IPC_PRIVATE, sizeof(*info), 0777 | IPC_CREAT); in core_pkey()
429 info = shmat(shm_id, NULL, 0); in core_pkey()
431 ret = init_child_sync(&info->child_sync); in core_pkey()
440 ret = child(info); in core_pkey()
442 ret = parent(info, pid); in core_pkey()
444 shmdt(info); in core_pkey()
447 destroy_child_sync(&info->child_sync); in core_pkey()