Lines Matching +full:0 +full:xcc
57 if (iscache->map <= 0) in pt_iscache_notify_map()
61 iscache->map = 0; in pt_iscache_notify_map()
75 if (iscache->map <= 0) in pt_iscache_notify_resize()
79 iscache->map = 0; in pt_iscache_notify_resize()
82 if (errcode < 0) in pt_iscache_notify_resize()
141 num_work = 0x4000
163 uint8_t bytes[] = { 0xcc, 0xcc, 0xcc, 0xcc, 0xcc }; in create()
169 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in create()
170 ptu_int_eq(errcode, 0); in create()
177 ptu_uint_eq(offset, 0x1ull); in create()
180 ptu_uint_eq(size, 0x3ull); in create()
189 errcode = pt_mk_section(&sfix->section, sfix->name, 0x10ull, 0x0ull); in create_bad_offset()
198 uint8_t bytes[] = { 0xcc, 0xcc, 0xcc, 0xcc, 0xcc }; in create_truncated()
204 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, UINT64_MAX); in create_truncated()
205 ptu_int_eq(errcode, 0); in create_truncated()
212 ptu_uint_eq(offset, 0x1ull); in create_truncated()
224 errcode = pt_mk_section(&sfix->section, sfix->name, 0x0ull, 0x10ull); in create_empty()
246 ptu_uint_eq(size, 0ull); in size_null()
273 ptu_uint_eq(offset, 0ull); in offset_null()
366 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in get_overflow()
371 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in get_overflow()
372 ptu_int_eq(errcode, 0); in get_overflow()
388 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_overflow()
393 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_overflow()
394 ptu_int_eq(errcode, 0); in attach_overflow()
402 sfix->section->acount = 0; in attach_overflow()
410 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_bad_ucount()
415 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_bad_ucount()
416 ptu_int_eq(errcode, 0); in attach_bad_ucount()
424 sfix->section->acount = 0; in attach_bad_ucount()
431 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in map_change()
436 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_change()
437 ptu_int_eq(errcode, 0); in map_change()
450 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in map_put()
455 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_put()
456 ptu_int_eq(errcode, 0); in map_put()
460 ptu_int_eq(errcode, 0); in map_put()
466 ptu_int_eq(errcode, 0); in map_put()
473 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in unmap_nomap()
478 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in unmap_nomap()
479 ptu_int_eq(errcode, 0); in unmap_nomap()
490 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in map_overflow()
495 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_overflow()
496 ptu_int_eq(errcode, 0); in map_overflow()
504 sfix->section->mcount = 0; in map_overflow()
511 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in get_put()
516 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in get_put()
517 ptu_int_eq(errcode, 0); in get_put()
521 ptu_int_eq(errcode, 0); in get_put()
524 ptu_int_eq(errcode, 0); in get_put()
527 ptu_int_eq(errcode, 0); in get_put()
530 ptu_int_eq(errcode, 0); in get_put()
538 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_detach()
543 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_detach()
544 ptu_int_eq(errcode, 0); in attach_detach()
550 ptu_int_eq(errcode, 0); in attach_detach()
553 ptu_int_eq(errcode, 0); in attach_detach()
556 ptu_int_eq(errcode, 0); in attach_detach()
559 ptu_int_eq(errcode, 0); in attach_detach()
569 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_bad_iscache()
574 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_bad_iscache()
575 ptu_int_eq(errcode, 0); in attach_bad_iscache()
581 ptu_int_eq(errcode, 0); in attach_bad_iscache()
587 ptu_int_eq(errcode, 0); in attach_bad_iscache()
597 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in detach_bad_iscache()
602 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in detach_bad_iscache()
603 ptu_int_eq(errcode, 0); in detach_bad_iscache()
607 ptu_int_eq(errcode, 0); in detach_bad_iscache()
613 ptu_int_eq(errcode, 0); in detach_bad_iscache()
620 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in map_unmap()
625 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_unmap()
626 ptu_int_eq(errcode, 0); in map_unmap()
630 ptu_int_eq(errcode, 0); in map_unmap()
633 ptu_int_eq(errcode, 0); in map_unmap()
636 ptu_int_eq(errcode, 0); in map_unmap()
639 ptu_int_eq(errcode, 0); in map_unmap()
647 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_map()
650 iscache.map = 0; in attach_map()
654 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_map()
655 ptu_int_eq(errcode, 0); in attach_map()
659 ptu_int_eq(errcode, 0); in attach_map()
662 ptu_int_eq(errcode, 0); in attach_map()
665 ptu_int_eq(errcode, 0); in attach_map()
670 ptu_int_eq(errcode, 0); in attach_map()
673 ptu_int_eq(errcode, 0); in attach_map()
676 ptu_int_eq(errcode, 0); in attach_map()
684 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_bad_map()
691 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_bad_map()
692 ptu_int_eq(errcode, 0); in attach_bad_map()
696 ptu_int_eq(errcode, 0); in attach_bad_map()
702 ptu_int_eq(errcode, 0); in attach_bad_map()
710 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_map_overflow()
717 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_map_overflow()
718 ptu_int_eq(errcode, 0); in attach_map_overflow()
722 ptu_int_eq(errcode, 0); in attach_map_overflow()
730 ptu_int_eq(errcode, 0); in attach_map_overflow()
737 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in read()
738 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; in read()
743 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read()
744 ptu_int_eq(status, 0); in read()
748 ptu_int_eq(status, 0); in read()
750 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read()
752 ptu_uint_eq(buffer[0], bytes[1]); in read()
754 ptu_uint_eq(buffer[2], 0xcc); in read()
757 ptu_int_eq(status, 0); in read()
764 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in read_null()
765 uint8_t buffer[] = { 0xcc }; in read_null()
770 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_null()
771 ptu_int_eq(status, 0); in read_null()
775 ptu_int_eq(status, 0); in read_null()
777 status = pt_section_read(sfix->section, NULL, 1, 0x0ull); in read_null()
779 ptu_uint_eq(buffer[0], 0xcc); in read_null()
781 status = pt_section_read(NULL, buffer, 1, 0x0ull); in read_null()
783 ptu_uint_eq(buffer[0], 0xcc); in read_null()
786 ptu_int_eq(status, 0); in read_null()
793 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in read_offset()
794 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; in read_offset()
799 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_offset()
800 ptu_int_eq(status, 0); in read_offset()
804 ptu_int_eq(status, 0); in read_offset()
806 status = pt_section_read(sfix->section, buffer, 2, 0x1ull); in read_offset()
808 ptu_uint_eq(buffer[0], bytes[2]); in read_offset()
810 ptu_uint_eq(buffer[2], 0xcc); in read_offset()
813 ptu_int_eq(status, 0); in read_offset()
820 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }, buffer[] = { 0xcc, 0xcc }; in read_truncated()
825 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_truncated()
826 ptu_int_eq(status, 0); in read_truncated()
830 ptu_int_eq(status, 0); in read_truncated()
832 status = pt_section_read(sfix->section, buffer, 2, 0x2ull); in read_truncated()
834 ptu_uint_eq(buffer[0], bytes[3]); in read_truncated()
835 ptu_uint_eq(buffer[1], 0xcc); in read_truncated()
838 ptu_int_eq(status, 0); in read_truncated()
845 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }, buffer[] = { 0xcc, 0xcc }; in read_from_truncated()
850 status = pt_mk_section(&sfix->section, sfix->name, 0x2ull, 0x10ull); in read_from_truncated()
851 ptu_int_eq(status, 0); in read_from_truncated()
855 ptu_int_eq(status, 0); in read_from_truncated()
857 status = pt_section_read(sfix->section, buffer, 2, 0x1ull); in read_from_truncated()
859 ptu_uint_eq(buffer[0], bytes[3]); in read_from_truncated()
860 ptu_uint_eq(buffer[1], 0xcc); in read_from_truncated()
863 ptu_int_eq(status, 0); in read_from_truncated()
870 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }, buffer[] = { 0xcc }; in read_nomem()
875 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_nomem()
876 ptu_int_eq(status, 0); in read_nomem()
880 ptu_int_eq(status, 0); in read_nomem()
882 status = pt_section_read(sfix->section, buffer, 1, 0x3ull); in read_nomem()
884 ptu_uint_eq(buffer[0], 0xcc); in read_nomem()
887 ptu_int_eq(status, 0); in read_nomem()
894 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }, buffer[] = { 0xcc }; in read_overflow()
899 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_overflow()
900 ptu_int_eq(status, 0); in read_overflow()
904 ptu_int_eq(status, 0); in read_overflow()
907 0xffffffffffff0000ull); in read_overflow()
909 ptu_uint_eq(buffer[0], 0xcc); in read_overflow()
912 ptu_int_eq(status, 0); in read_overflow()
919 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }, buffer[] = { 0xcc }; in read_overflow_32bit()
924 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_overflow_32bit()
925 ptu_int_eq(status, 0); in read_overflow_32bit()
929 ptu_int_eq(status, 0); in read_overflow_32bit()
932 0xff00000000ull); in read_overflow_32bit()
934 ptu_uint_eq(buffer[0], 0xcc); in read_overflow_32bit()
937 ptu_int_eq(status, 0); in read_overflow_32bit()
944 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }, buffer[] = { 0xcc }; in read_nomap()
949 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_nomap()
950 ptu_int_eq(status, 0); in read_nomap()
953 status = pt_section_read(sfix->section, buffer, 1, 0x0ull); in read_nomap()
955 ptu_uint_eq(buffer[0], 0xcc); in read_nomap()
962 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in read_unmap_map()
963 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; in read_unmap_map()
968 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_unmap_map()
969 ptu_int_eq(status, 0); in read_unmap_map()
973 ptu_int_eq(status, 0); in read_unmap_map()
975 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read_unmap_map()
977 ptu_uint_eq(buffer[0], bytes[1]); in read_unmap_map()
979 ptu_uint_eq(buffer[2], 0xcc); in read_unmap_map()
981 memset(buffer, 0xcc, sizeof(buffer)); in read_unmap_map()
984 ptu_int_eq(status, 0); in read_unmap_map()
986 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read_unmap_map()
988 ptu_uint_eq(buffer[0], 0xcc); in read_unmap_map()
989 ptu_uint_eq(buffer[1], 0xcc); in read_unmap_map()
990 ptu_uint_eq(buffer[2], 0xcc); in read_unmap_map()
993 ptu_int_eq(status, 0); in read_unmap_map()
995 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read_unmap_map()
997 ptu_uint_eq(buffer[0], bytes[1]); in read_unmap_map()
999 ptu_uint_eq(buffer[2], 0xcc); in read_unmap_map()
1002 ptu_int_eq(status, 0); in read_unmap_map()
1016 for (it = 0; it < num_work; ++it) { in worker_read()
1017 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; in worker_read()
1021 if (errcode < 0) in worker_read()
1025 if (errcode < 0) in worker_read()
1028 read = pt_section_read(sfix->section, buffer, 2, 0x0ull); in worker_read()
1029 if (read < 0) in worker_read()
1033 if ((read != 2) || (buffer[0] != 0x2) || (buffer[1] != 0x4)) in worker_read()
1037 if (errcode < 0) in worker_read()
1041 if (errcode < 0) in worker_read()
1045 return 0; in worker_read()
1065 if (errcode < 0) in worker_bcache()
1068 for (it = 0; it < num_work; ++it) { in worker_bcache()
1072 if (errcode < 0) in worker_bcache()
1076 if (errcode < 0) in worker_bcache()
1086 if (errcode < 0) in worker_bcache()
1103 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in stress()
1108 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in stress()
1109 ptu_int_eq(errcode, 0); in stress()
1116 for (thrd = 0; thrd < num_threads; ++thrd) in stress()
1122 ptu_int_eq(errcode, 0); in stress()
1129 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in init_no_bcache()
1135 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in init_no_bcache()
1136 ptu_int_eq(errcode, 0); in init_no_bcache()
1140 ptu_int_eq(errcode, 0); in init_no_bcache()
1146 ptu_int_eq(errcode, 0); in init_no_bcache()
1153 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in bcache_alloc_free()
1159 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in bcache_alloc_free()
1160 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1164 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1167 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1174 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1184 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in bcache_alloc_twice()
1189 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in bcache_alloc_twice()
1190 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1194 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1197 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1200 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1203 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1210 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in bcache_alloc_nomap()
1215 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in bcache_alloc_nomap()
1216 ptu_int_eq(errcode, 0); in bcache_alloc_nomap()
1228 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in memsize_nomap()
1233 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_nomap()
1234 ptu_int_eq(errcode, 0); in memsize_nomap()
1238 ptu_int_eq(errcode, 0); in memsize_nomap()
1239 ptu_uint_eq(memsize, 0ull); in memsize_nomap()
1247 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in memsize_unmap()
1252 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_unmap()
1253 ptu_int_eq(errcode, 0); in memsize_unmap()
1257 ptu_int_eq(errcode, 0); in memsize_unmap()
1260 ptu_int_eq(errcode, 0); in memsize_unmap()
1263 ptu_int_eq(errcode, 0); in memsize_unmap()
1264 ptu_uint_eq(memsize, 0ull); in memsize_unmap()
1272 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in memsize_map_nobcache()
1277 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_map_nobcache()
1278 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1282 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1284 memsize = 0xfefefefefefefefeull; in memsize_map_nobcache()
1287 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1288 ptu_uint_ge(memsize, 0ull); in memsize_map_nobcache()
1289 ptu_uint_le(memsize, 0x2000ull); in memsize_map_nobcache()
1292 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1300 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in memsize_map_bcache()
1305 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_map_bcache()
1306 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1310 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1313 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1316 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1321 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1335 ptu_int_eq(errcode, 0); in sfix_init()
1390 for (thrd = 0; thrd < sfix->thrd.nthreads; ++thrd) in sfix_fini()
1391 ptu_int_eq(sfix->thrd.result[thrd], 0); in sfix_fini()