Lines Matching +full:0 +full:x8007
24 static const uint64_t MAGIC = 0x1122334455667788ULL;
25 static const uint64_t MAGIC2 = 0x8877665544332211ULL;
52 for (i = 0; i < ehdr->e_phnum; i++) in vdso_get_dyntab()
63 for (i = 0; dyntab[i].d_tag != DT_NULL; i++) in vdso_get_dyn()
93 __cpuid_count(SGX_CPUID, 0x0, eax, ebx, ecx, edx); in sgx2_supported()
95 return eax & 0x2; in sgx2_supported()
100 unsigned long h = 0, high; in elf_sym_hash()
104 high = h & 0xf0000000; in elf_sym_hash()
117 Elf64_Word bucketnum = symtab->elf_hashtab[0]; in vdso_symtab_get()
141 for (i = 0; i < encl->nr_segments; i++) { in encl_get_tcs_offset()
144 if (i == 0 && seg->prot == (PROT_READ | PROT_WRITE)) in encl_get_tcs_offset()
201 for (i = 0; i < encl->nr_segments; i++) { in setup_test_encl()
205 seg->prot, MAP_SHARED | MAP_FIXED, encl->fd, 0); in setup_test_encl()
228 for (i = 0; i < encl->nr_segments; i++) { in setup_test_encl()
231 TH_LOG("0x%016lx 0x%016lx 0x%02x", seg->offset, seg->size, seg->prot); in setup_test_encl()
237 maps_line[strlen(maps_line) - 1] = '\0'; in setup_test_encl()
266 ret = vdso_sgx_enter_enclave((unsigned long)(op), 0, 0, \
267 EENTER, 0, 0, (run)); \
269 ret = sgx_enter_enclave((void *)(op), NULL, 0, EENTER, NULL, NULL, \
278 TH_LOG("0x%02x 0x%02x 0x%016llx", (run)->exception_vector, \
280 } while (0)
289 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
295 EXPECT_EQ(ENCL_CALL(&put_op, &self->run, false), 0); in TEST_F()
298 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
301 get_op.value = 0; in TEST_F()
303 EXPECT_EQ(ENCL_CALL(&get_op, &self->run, false), 0); in TEST_F()
307 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
312 * bits 12-31 of the metric and @high bits 0-19 define the bits 32-51 of the
319 ((high & GENMASK_ULL(19, 0)) << 32); in sgx_calc_section_metric()
330 unsigned long total_size = 0; in get_total_epc_mem()
332 int section = 0; in get_total_epc_mem()
359 ASSERT_NE(total_mem, 0); in TEST_F()
362 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
368 EXPECT_EQ(ENCL_CALL(&put_op, &self->run, false), 0); in TEST_F()
371 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
374 get_op.value = 0; in TEST_F()
376 EXPECT_EQ(ENCL_CALL(&get_op, &self->run, false), 0); in TEST_F()
380 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
401 ASSERT_NE(total_mem, 0);
410 memset(&modt_ioc, 0, sizeof(modt_ioc));
428 memset(&self->run, 0, sizeof(self->run));
436 EXPECT_EQ(ENCL_CALL(&put_op, &self->run, false), 0);
439 EXPECT_EQ(self->run.user_data, 0);
442 get_op.value = 0;
444 EXPECT_EQ(ENCL_CALL(&get_op, &self->run, false), 0);
448 EXPECT_EQ(self->run.user_data, 0);
451 memset(&modt_ioc, 0, sizeof(modt_ioc));
460 errno_save = ret == -1 ? errno : 0;
462 EXPECT_EQ(ret, 0);
463 EXPECT_EQ(errno_save, 0);
464 EXPECT_EQ(modt_ioc.result, 0);
475 for (i = 0; i < heap->size; i += 4096) {
477 eaccept_op.ret = 0;
479 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0);
481 EXPECT_EQ(self->run.exception_vector, 0);
482 EXPECT_EQ(self->run.exception_error_code, 0);
483 EXPECT_EQ(self->run.exception_addr, 0);
484 ASSERT_EQ(eaccept_op.ret, 0);
489 memset(&remove_ioc, 0, sizeof(remove_ioc));
497 errno_save = ret == -1 ? errno : 0;
499 EXPECT_EQ(ret, 0);
500 EXPECT_EQ(errno_save, 0);
511 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
517 EXPECT_EQ(ENCL_CALL(&put_op, &self->run, true), 0); in TEST_F()
520 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
523 get_op.value = 0; in TEST_F()
525 EXPECT_EQ(ENCL_CALL(&get_op, &self->run, true), 0); in TEST_F()
529 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
535 run->user_data = 0; in test_handler()
537 return 0; in test_handler()
547 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
551 self->run.user_data = 0xdeadbeef; in TEST_F()
556 EXPECT_EQ(ENCL_CALL(&put_op, &self->run, true), 0); in TEST_F()
559 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
562 get_op.value = 0; in TEST_F()
564 EXPECT_EQ(ENCL_CALL(&get_op, &self->run, true), 0); in TEST_F()
568 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
580 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
585 EXPECT_EQ(ENCL_CALL(&op, &self->run, true), 0); in TEST_F()
588 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
589 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
590 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
595 EXPECT_EQ(ENCL_CALL(&op, &self->run, true), 0); in TEST_F()
598 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
599 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
600 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
625 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
642 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
645 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
646 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
647 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
653 get_addr_op.value = 0; in TEST_F()
657 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
661 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
662 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
663 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
678 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
681 EXPECT_EQ(self->run.exception_error_code, 0x7); in TEST_F()
684 self->run.exception_vector = 0; in TEST_F()
685 self->run.exception_error_code = 0; in TEST_F()
686 self->run.exception_addr = 0; in TEST_F()
697 EXPECT_EQ(vdso_sgx_enter_enclave((unsigned long)&put_addr_op, 0, in TEST_F()
698 0, ERESUME, 0, 0, &self->run), in TEST_F()
699 0); in TEST_F()
702 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
703 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
704 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
706 get_addr_op.value = 0; in TEST_F()
708 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
712 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
713 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
714 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
727 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
730 memset(&ioc, 0, sizeof(ioc)); in TEST_F()
738 errno_save = ret == -1 ? errno : 0; in TEST_F()
762 errno_save = ret == -1 ? errno : 0; in TEST_F()
766 EXPECT_EQ(ioc.result, 0); in TEST_F()
767 EXPECT_EQ(ioc.count, 0); in TEST_F()
790 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
797 memset(&restrict_ioc, 0, sizeof(restrict_ioc)); in TEST_F()
801 errno_save = ret == -1 ? errno : 0; in TEST_F()
838 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
841 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
842 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
843 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
849 get_addr_op.value = 0; in TEST_F()
853 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
857 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
858 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
859 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
865 memset(&restrict_ioc, 0, sizeof(restrict_ioc)); in TEST_F()
873 errno_save = ret == -1 ? errno : 0; in TEST_F()
875 EXPECT_EQ(ret, 0); in TEST_F()
876 EXPECT_EQ(errno_save, 0); in TEST_F()
877 EXPECT_EQ(restrict_ioc.result, 0); in TEST_F()
885 eaccept_op.ret = 0; in TEST_F()
888 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
891 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
892 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
893 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
894 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
902 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
906 EXPECT_EQ(self->run.exception_error_code, 0x8007); in TEST_F()
909 self->run.exception_vector = 0; in TEST_F()
910 self->run.exception_error_code = 0; in TEST_F()
911 self->run.exception_addr = 0; in TEST_F()
930 EXPECT_EQ(ENCL_CALL(&emodpe_op, &self->run, true), 0); in TEST_F()
933 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
934 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
935 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
950 EXPECT_EQ(vdso_sgx_enter_enclave((unsigned long)&put_addr_op, 0, 0, in TEST_F()
951 ERESUME, 0, 0, in TEST_F()
953 0); in TEST_F()
956 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
957 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
958 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
960 get_addr_op.value = 0; in TEST_F()
962 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
966 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
967 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
968 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
969 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
982 size_t total_size = 0; in TEST_F()
991 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
994 for (i = 0; i < self->encl.nr_segments; i++) { in TEST_F()
1017 MAP_SHARED | MAP_FIXED, self->encl.fd, 0); in TEST_F()
1020 self->run.exception_vector = 0; in TEST_F()
1021 self->run.exception_error_code = 0; in TEST_F()
1022 self->run.exception_addr = 0; in TEST_F()
1038 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
1044 if (self->run.exception_error_code == 0x6) { in TEST_F()
1049 EXPECT_EQ(self->run.exception_error_code, 0x8007); in TEST_F()
1051 self->run.exception_vector = 0; in TEST_F()
1052 self->run.exception_error_code = 0; in TEST_F()
1053 self->run.exception_addr = 0; in TEST_F()
1060 eaccept_op.ret = 0; in TEST_F()
1063 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1066 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1067 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1068 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1069 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1074 EXPECT_EQ(vdso_sgx_enter_enclave((unsigned long)&put_addr_op, 0, 0, in TEST_F()
1075 ERESUME, 0, 0, in TEST_F()
1077 0); in TEST_F()
1080 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1081 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1082 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1088 get_addr_op.value = 0; in TEST_F()
1092 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
1096 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1097 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1098 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1112 size_t total_size = 0; in TEST_F()
1121 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
1124 for (i = 0; i < self->encl.nr_segments; i++) { in TEST_F()
1148 self->encl.fd, 0); in TEST_F()
1151 self->run.exception_vector = 0; in TEST_F()
1152 self->run.exception_error_code = 0; in TEST_F()
1153 self->run.exception_addr = 0; in TEST_F()
1161 eaccept_op.ret = 0; in TEST_F()
1164 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1174 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1175 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1176 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1177 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1187 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
1190 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1191 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1192 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1198 get_addr_op.value = 0; in TEST_F()
1202 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
1206 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1207 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1208 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1235 size_t total_size = 0; in TEST_F()
1243 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
1250 memset(&modt_ioc, 0, sizeof(modt_ioc)); in TEST_F()
1273 for (i = 0; i < self->encl.nr_segments; i++) { in TEST_F()
1292 self->encl.fd, 0); in TEST_F()
1295 self->run.exception_vector = 0; in TEST_F()
1296 self->run.exception_error_code = 0; in TEST_F()
1297 self->run.exception_addr = 0; in TEST_F()
1310 eaccept_op.ret = 0; in TEST_F()
1313 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1323 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1324 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1325 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1326 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1330 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1333 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1334 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1335 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1336 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1340 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1343 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1344 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1345 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1346 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1360 EXPECT_NE(val_64, 0); in TEST_F()
1367 EXPECT_EQ(ENCL_CALL(&init_tcs_page_op, &self->run, true), 0); in TEST_F()
1370 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1371 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1372 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1375 memset(&modt_ioc, 0, sizeof(modt_ioc)); in TEST_F()
1382 errno_save = ret == -1 ? errno : 0; in TEST_F()
1384 EXPECT_EQ(ret, 0); in TEST_F()
1385 EXPECT_EQ(errno_save, 0); in TEST_F()
1386 EXPECT_EQ(modt_ioc.result, 0); in TEST_F()
1392 eaccept_op.ret = 0; in TEST_F()
1395 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1398 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1399 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1400 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1401 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1412 EXPECT_EQ(ENCL_CALL(&put_buf_op, &self->run, true), 0); in TEST_F()
1415 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1416 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1417 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1420 get_buf_op.value = 0; in TEST_F()
1422 EXPECT_EQ(ENCL_CALL(&get_buf_op, &self->run, true), 0); in TEST_F()
1426 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1427 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1428 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1438 memset(&modt_ioc, 0, sizeof(modt_ioc)); in TEST_F()
1445 errno_save = ret == -1 ? errno : 0; in TEST_F()
1447 EXPECT_EQ(ret, 0); in TEST_F()
1448 EXPECT_EQ(errno_save, 0); in TEST_F()
1449 EXPECT_EQ(modt_ioc.result, 0); in TEST_F()
1460 eaccept_op.ret = 0; in TEST_F()
1463 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1466 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1467 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1468 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1469 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1472 eaccept_op.ret = 0; in TEST_F()
1474 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1477 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1478 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1479 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1480 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1483 eaccept_op.ret = 0; in TEST_F()
1485 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1488 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1489 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1490 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1491 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1494 memset(&remove_ioc, 0, sizeof(remove_ioc)); in TEST_F()
1500 errno_save = ret == -1 ? errno : 0; in TEST_F()
1502 EXPECT_EQ(ret, 0); in TEST_F()
1503 EXPECT_EQ(errno_save, 0); in TEST_F()
1512 eaccept_op.ret = 0; in TEST_F()
1515 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1518 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1519 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1520 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1521 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1530 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
1533 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1534 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1535 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1541 get_addr_op.value = 0; in TEST_F()
1545 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
1549 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1550 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1551 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1573 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
1580 memset(&modt_ioc, 0, sizeof(modt_ioc)); in TEST_F()
1615 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
1618 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1619 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1620 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1626 get_addr_op.value = 0; in TEST_F()
1630 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
1634 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1635 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1636 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1639 memset(&modt_ioc, 0, sizeof(modt_ioc)); in TEST_F()
1646 errno_save = ret == -1 ? errno : 0; in TEST_F()
1648 EXPECT_EQ(ret, 0); in TEST_F()
1649 EXPECT_EQ(errno_save, 0); in TEST_F()
1650 EXPECT_EQ(modt_ioc.result, 0); in TEST_F()
1656 memset(&remove_ioc, 0, sizeof(remove_ioc)); in TEST_F()
1662 errno_save = ret == -1 ? errno : 0; in TEST_F()
1667 EXPECT_EQ(remove_ioc.count, 0); in TEST_F()
1684 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
1691 memset(&ioc, 0, sizeof(ioc)); in TEST_F()
1726 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
1729 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1730 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1731 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1737 get_addr_op.value = 0; in TEST_F()
1741 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
1745 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1746 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1747 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1750 memset(&ioc, 0, sizeof(ioc)); in TEST_F()
1757 errno_save = ret == -1 ? errno : 0; in TEST_F()
1759 EXPECT_EQ(ret, 0); in TEST_F()
1760 EXPECT_EQ(errno_save, 0); in TEST_F()
1761 EXPECT_EQ(ioc.result, 0); in TEST_F()
1767 get_addr_op.value = 0; in TEST_F()
1769 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
1779 EXPECT_EQ(self->run.exception_error_code, 0x8005); in TEST_F()
1799 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
1806 memset(&ioc, 0, sizeof(ioc)); in TEST_F()
1841 EXPECT_EQ(ENCL_CALL(&put_addr_op, &self->run, true), 0); in TEST_F()
1844 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1845 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1846 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1852 get_addr_op.value = 0; in TEST_F()
1856 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
1860 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1861 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1862 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1865 memset(&ioc, 0, sizeof(ioc)); in TEST_F()
1872 errno_save = ret == -1 ? errno : 0; in TEST_F()
1874 EXPECT_EQ(ret, 0); in TEST_F()
1875 EXPECT_EQ(errno_save, 0); in TEST_F()
1876 EXPECT_EQ(ioc.result, 0); in TEST_F()
1880 eaccept_op.ret = 0; in TEST_F()
1884 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1887 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1888 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1889 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1890 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1897 get_addr_op.value = 0; in TEST_F()
1899 EXPECT_EQ(ENCL_CALL(&get_addr_op, &self->run, true), 0); in TEST_F()
1909 EXPECT_EQ(self->run.exception_error_code, 0x8005); in TEST_F()
1927 memset(&modt_ioc, 0, sizeof(modt_ioc)); in TEST_F()
1945 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
1951 memset(&modt_ioc, 0, sizeof(modt_ioc)); in TEST_F()
1957 errno_save = ret == -1 ? errno : 0; in TEST_F()
1959 EXPECT_EQ(ret, 0); in TEST_F()
1960 EXPECT_EQ(errno_save, 0); in TEST_F()
1961 EXPECT_EQ(modt_ioc.result, 0); in TEST_F()
1971 eaccept_op.ret = 0; in TEST_F()
1974 EXPECT_EQ(ENCL_CALL(&eaccept_op, &self->run, true), 0); in TEST_F()
1976 EXPECT_EQ(self->run.exception_vector, 0); in TEST_F()
1977 EXPECT_EQ(self->run.exception_error_code, 0); in TEST_F()
1978 EXPECT_EQ(self->run.exception_addr, 0); in TEST_F()
1979 EXPECT_EQ(eaccept_op.ret, 0); in TEST_F()
1981 memset(&remove_ioc, 0, sizeof(remove_ioc)); in TEST_F()
1986 errno_save = ret == -1 ? errno : 0; in TEST_F()
1988 EXPECT_EQ(ret, 0); in TEST_F()
1989 EXPECT_EQ(errno_save, 0); in TEST_F()