Lines Matching refs:sfix

144 static struct ptunit_result sfix_write_aux(struct section_fixture *sfix,  in sfix_write_aux()  argument
149 written = fwrite(buffer, 1, size, sfix->file); in sfix_write_aux()
152 fflush(sfix->file); in sfix_write_aux()
157 #define sfix_write(sfix, buffer) \ argument
158 ptu_check(sfix_write_aux, sfix, buffer, sizeof(buffer))
160 static struct ptunit_result create(struct section_fixture *sfix) in create() argument
167 sfix_write(sfix, bytes); in create()
169 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in create()
171 ptu_ptr(sfix->section); in create()
173 name = pt_section_filename(sfix->section); in create()
174 ptu_str_eq(name, sfix->name); in create()
176 offset = pt_section_offset(sfix->section); in create()
179 size = pt_section_size(sfix->section); in create()
185 static struct ptunit_result create_bad_offset(struct section_fixture *sfix) in create_bad_offset() argument
189 errcode = pt_mk_section(&sfix->section, sfix->name, 0x10ull, 0x0ull); in create_bad_offset()
195 static struct ptunit_result create_truncated(struct section_fixture *sfix) in create_truncated() argument
202 sfix_write(sfix, bytes); in create_truncated()
204 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, UINT64_MAX); in create_truncated()
206 ptu_ptr(sfix->section); in create_truncated()
208 name = pt_section_filename(sfix->section); in create_truncated()
209 ptu_str_eq(name, sfix->name); in create_truncated()
211 offset = pt_section_offset(sfix->section); in create_truncated()
214 size = pt_section_size(sfix->section); in create_truncated()
220 static struct ptunit_result create_empty(struct section_fixture *sfix) in create_empty() argument
224 errcode = pt_mk_section(&sfix->section, sfix->name, 0x0ull, 0x10ull); in create_empty()
226 ptu_null(sfix->section); in create_empty()
251 static struct ptunit_result memsize_null(struct section_fixture *sfix) in memsize_null() argument
259 errcode = pt_section_memsize(sfix->section, NULL); in memsize_null()
364 static struct ptunit_result get_overflow(struct section_fixture *sfix) in get_overflow() argument
369 sfix_write(sfix, bytes); in get_overflow()
371 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in get_overflow()
373 ptu_ptr(sfix->section); in get_overflow()
375 sfix->section->ucount = UINT16_MAX; in get_overflow()
377 errcode = pt_section_get(sfix->section); in get_overflow()
380 sfix->section->ucount = 1; in get_overflow()
385 static struct ptunit_result attach_overflow(struct section_fixture *sfix) in attach_overflow() argument
391 sfix_write(sfix, bytes); in attach_overflow()
393 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_overflow()
395 ptu_ptr(sfix->section); in attach_overflow()
397 sfix->section->acount = UINT16_MAX; in attach_overflow()
399 errcode = pt_section_attach(sfix->section, &iscache); in attach_overflow()
402 sfix->section->acount = 0; in attach_overflow()
407 static struct ptunit_result attach_bad_ucount(struct section_fixture *sfix) in attach_bad_ucount() argument
413 sfix_write(sfix, bytes); in attach_bad_ucount()
415 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_bad_ucount()
417 ptu_ptr(sfix->section); in attach_bad_ucount()
419 sfix->section->acount = 2; in attach_bad_ucount()
421 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_ucount()
424 sfix->section->acount = 0; in attach_bad_ucount()
429 static struct ptunit_result map_change(struct section_fixture *sfix) in map_change() argument
434 sfix_write(sfix, bytes); in map_change()
436 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_change()
438 ptu_ptr(sfix->section); in map_change()
440 sfix_write(sfix, bytes); in map_change()
442 errcode = pt_section_map(sfix->section); in map_change()
448 static struct ptunit_result map_put(struct section_fixture *sfix) in map_put() argument
453 sfix_write(sfix, bytes); in map_put()
455 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_put()
457 ptu_ptr(sfix->section); in map_put()
459 errcode = pt_section_map(sfix->section); in map_put()
462 errcode = pt_section_put(sfix->section); in map_put()
465 errcode = pt_section_unmap(sfix->section); in map_put()
471 static struct ptunit_result unmap_nomap(struct section_fixture *sfix) in unmap_nomap() argument
476 sfix_write(sfix, bytes); in unmap_nomap()
478 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in unmap_nomap()
480 ptu_ptr(sfix->section); in unmap_nomap()
482 errcode = pt_section_unmap(sfix->section); in unmap_nomap()
488 static struct ptunit_result map_overflow(struct section_fixture *sfix) in map_overflow() argument
493 sfix_write(sfix, bytes); in map_overflow()
495 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_overflow()
497 ptu_ptr(sfix->section); in map_overflow()
499 sfix->section->mcount = UINT16_MAX; in map_overflow()
501 errcode = pt_section_map(sfix->section); in map_overflow()
504 sfix->section->mcount = 0; in map_overflow()
509 static struct ptunit_result get_put(struct section_fixture *sfix) in get_put() argument
514 sfix_write(sfix, bytes); in get_put()
516 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in get_put()
518 ptu_ptr(sfix->section); in get_put()
520 errcode = pt_section_get(sfix->section); in get_put()
523 errcode = pt_section_get(sfix->section); in get_put()
526 errcode = pt_section_put(sfix->section); in get_put()
529 errcode = pt_section_put(sfix->section); in get_put()
535 static struct ptunit_result attach_detach(struct section_fixture *sfix) in attach_detach() argument
541 sfix_write(sfix, bytes); in attach_detach()
543 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_detach()
545 ptu_ptr(sfix->section); in attach_detach()
547 sfix->section->ucount += 2; in attach_detach()
549 errcode = pt_section_attach(sfix->section, &iscache); in attach_detach()
552 errcode = pt_section_attach(sfix->section, &iscache); in attach_detach()
555 errcode = pt_section_detach(sfix->section, &iscache); in attach_detach()
558 errcode = pt_section_detach(sfix->section, &iscache); in attach_detach()
561 sfix->section->ucount -= 2; in attach_detach()
566 static struct ptunit_result attach_bad_iscache(struct section_fixture *sfix) in attach_bad_iscache() argument
572 sfix_write(sfix, bytes); in attach_bad_iscache()
574 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_bad_iscache()
576 ptu_ptr(sfix->section); in attach_bad_iscache()
578 sfix->section->ucount += 2; in attach_bad_iscache()
580 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_iscache()
583 errcode = pt_section_attach(sfix->section, &bad); in attach_bad_iscache()
586 errcode = pt_section_detach(sfix->section, &iscache); in attach_bad_iscache()
589 sfix->section->ucount -= 2; in attach_bad_iscache()
594 static struct ptunit_result detach_bad_iscache(struct section_fixture *sfix) in detach_bad_iscache() argument
600 sfix_write(sfix, bytes); in detach_bad_iscache()
602 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in detach_bad_iscache()
604 ptu_ptr(sfix->section); in detach_bad_iscache()
606 errcode = pt_section_attach(sfix->section, &iscache); in detach_bad_iscache()
609 errcode = pt_section_detach(sfix->section, &bad); in detach_bad_iscache()
612 errcode = pt_section_detach(sfix->section, &iscache); in detach_bad_iscache()
618 static struct ptunit_result map_unmap(struct section_fixture *sfix) in map_unmap() argument
623 sfix_write(sfix, bytes); in map_unmap()
625 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_unmap()
627 ptu_ptr(sfix->section); in map_unmap()
629 errcode = pt_section_map(sfix->section); in map_unmap()
632 errcode = pt_section_map(sfix->section); in map_unmap()
635 errcode = pt_section_unmap(sfix->section); in map_unmap()
638 errcode = pt_section_unmap(sfix->section); in map_unmap()
644 static struct ptunit_result attach_map(struct section_fixture *sfix) in attach_map() argument
652 sfix_write(sfix, bytes); in attach_map()
654 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_map()
656 ptu_ptr(sfix->section); in attach_map()
658 errcode = pt_section_attach(sfix->section, &iscache); in attach_map()
661 errcode = pt_section_map(sfix->section); in attach_map()
664 errcode = pt_section_map(sfix->section); in attach_map()
667 ptu_uint_eq(sfix->section->mcount, 2); in attach_map()
669 errcode = pt_section_unmap(sfix->section); in attach_map()
672 errcode = pt_section_unmap(sfix->section); in attach_map()
675 errcode = pt_section_detach(sfix->section, &iscache); in attach_map()
681 static struct ptunit_result attach_bad_map(struct section_fixture *sfix) in attach_bad_map() argument
689 sfix_write(sfix, bytes); in attach_bad_map()
691 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_bad_map()
693 ptu_ptr(sfix->section); in attach_bad_map()
695 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_map()
698 errcode = pt_section_map(sfix->section); in attach_bad_map()
701 errcode = pt_section_detach(sfix->section, &iscache); in attach_bad_map()
707 static struct ptunit_result attach_map_overflow(struct section_fixture *sfix) in attach_map_overflow() argument
715 sfix_write(sfix, bytes); in attach_map_overflow()
717 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_map_overflow()
719 ptu_ptr(sfix->section); in attach_map_overflow()
721 errcode = pt_section_attach(sfix->section, &iscache); in attach_map_overflow()
724 sfix->section->mcount = UINT16_MAX - 1; in attach_map_overflow()
726 errcode = pt_section_map(sfix->section); in attach_map_overflow()
729 errcode = pt_section_detach(sfix->section, &iscache); in attach_map_overflow()
735 static struct ptunit_result read(struct section_fixture *sfix) in read() argument
741 sfix_write(sfix, bytes); in read()
743 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read()
745 ptu_ptr(sfix->section); in read()
747 status = pt_section_map(sfix->section); in read()
750 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read()
756 status = pt_section_unmap(sfix->section); in read()
762 static struct ptunit_result read_null(struct section_fixture *sfix) in read_null() argument
768 sfix_write(sfix, bytes); in read_null()
770 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_null()
772 ptu_ptr(sfix->section); in read_null()
774 status = pt_section_map(sfix->section); in read_null()
777 status = pt_section_read(sfix->section, NULL, 1, 0x0ull); in read_null()
785 status = pt_section_unmap(sfix->section); in read_null()
791 static struct ptunit_result read_offset(struct section_fixture *sfix) in read_offset() argument
797 sfix_write(sfix, bytes); in read_offset()
799 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_offset()
801 ptu_ptr(sfix->section); in read_offset()
803 status = pt_section_map(sfix->section); in read_offset()
806 status = pt_section_read(sfix->section, buffer, 2, 0x1ull); in read_offset()
812 status = pt_section_unmap(sfix->section); in read_offset()
818 static struct ptunit_result read_truncated(struct section_fixture *sfix) in read_truncated() argument
823 sfix_write(sfix, bytes); in read_truncated()
825 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_truncated()
827 ptu_ptr(sfix->section); in read_truncated()
829 status = pt_section_map(sfix->section); in read_truncated()
832 status = pt_section_read(sfix->section, buffer, 2, 0x2ull); in read_truncated()
837 status = pt_section_unmap(sfix->section); in read_truncated()
843 static struct ptunit_result read_from_truncated(struct section_fixture *sfix) in read_from_truncated() argument
848 sfix_write(sfix, bytes); in read_from_truncated()
850 status = pt_mk_section(&sfix->section, sfix->name, 0x2ull, 0x10ull); in read_from_truncated()
852 ptu_ptr(sfix->section); in read_from_truncated()
854 status = pt_section_map(sfix->section); in read_from_truncated()
857 status = pt_section_read(sfix->section, buffer, 2, 0x1ull); in read_from_truncated()
862 status = pt_section_unmap(sfix->section); in read_from_truncated()
868 static struct ptunit_result read_nomem(struct section_fixture *sfix) in read_nomem() argument
873 sfix_write(sfix, bytes); in read_nomem()
875 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_nomem()
877 ptu_ptr(sfix->section); in read_nomem()
879 status = pt_section_map(sfix->section); in read_nomem()
882 status = pt_section_read(sfix->section, buffer, 1, 0x3ull); in read_nomem()
886 status = pt_section_unmap(sfix->section); in read_nomem()
892 static struct ptunit_result read_overflow(struct section_fixture *sfix) in read_overflow() argument
897 sfix_write(sfix, bytes); in read_overflow()
899 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_overflow()
901 ptu_ptr(sfix->section); in read_overflow()
903 status = pt_section_map(sfix->section); in read_overflow()
906 status = pt_section_read(sfix->section, buffer, 1, in read_overflow()
911 status = pt_section_unmap(sfix->section); in read_overflow()
917 static struct ptunit_result read_overflow_32bit(struct section_fixture *sfix) in read_overflow_32bit() argument
922 sfix_write(sfix, bytes); in read_overflow_32bit()
924 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_overflow_32bit()
926 ptu_ptr(sfix->section); in read_overflow_32bit()
928 status = pt_section_map(sfix->section); in read_overflow_32bit()
931 status = pt_section_read(sfix->section, buffer, 1, in read_overflow_32bit()
936 status = pt_section_unmap(sfix->section); in read_overflow_32bit()
942 static struct ptunit_result read_nomap(struct section_fixture *sfix) in read_nomap() argument
947 sfix_write(sfix, bytes); in read_nomap()
949 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_nomap()
951 ptu_ptr(sfix->section); in read_nomap()
953 status = pt_section_read(sfix->section, buffer, 1, 0x0ull); in read_nomap()
960 static struct ptunit_result read_unmap_map(struct section_fixture *sfix) in read_unmap_map() argument
966 sfix_write(sfix, bytes); in read_unmap_map()
968 status = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in read_unmap_map()
970 ptu_ptr(sfix->section); in read_unmap_map()
972 status = pt_section_map(sfix->section); in read_unmap_map()
975 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read_unmap_map()
983 status = pt_section_unmap(sfix->section); in read_unmap_map()
986 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read_unmap_map()
992 status = pt_section_map(sfix->section); in read_unmap_map()
995 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read_unmap_map()
1001 status = pt_section_unmap(sfix->section); in read_unmap_map()
1009 struct section_fixture *sfix; in worker_read() local
1012 sfix = arg; in worker_read()
1013 if (!sfix) in worker_read()
1020 errcode = pt_section_get(sfix->section); in worker_read()
1024 errcode = pt_section_map(sfix->section); in worker_read()
1028 read = pt_section_read(sfix->section, buffer, 2, 0x0ull); in worker_read()
1036 errcode = pt_section_unmap(sfix->section); in worker_read()
1040 errcode = pt_section_put(sfix->section); in worker_read()
1048 (void) pt_section_unmap(sfix->section); in worker_read()
1051 (void) pt_section_put(sfix->section); in worker_read()
1057 struct section_fixture *sfix; in worker_bcache() local
1060 sfix = arg; in worker_bcache()
1061 if (!sfix) in worker_bcache()
1064 errcode = pt_section_get(sfix->section); in worker_bcache()
1071 errcode = pt_section_map(sfix->section); in worker_bcache()
1075 errcode = pt_section_request_bcache(sfix->section); in worker_bcache()
1079 bcache = pt_section_bcache(sfix->section); in worker_bcache()
1085 errcode = pt_section_unmap(sfix->section); in worker_bcache()
1090 return pt_section_put(sfix->section); in worker_bcache()
1093 (void) pt_section_unmap(sfix->section); in worker_bcache()
1096 (void) pt_section_put(sfix->section); in worker_bcache()
1100 static struct ptunit_result stress(struct section_fixture *sfix, in stress() argument
1106 sfix_write(sfix, bytes); in stress()
1108 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in stress()
1110 ptu_ptr(sfix->section); in stress()
1117 ptu_test(ptunit_thrd_create, &sfix->thrd, worker, sfix); in stress()
1121 errcode = worker(sfix); in stress()
1127 static struct ptunit_result init_no_bcache(struct section_fixture *sfix) in init_no_bcache() argument
1133 sfix_write(sfix, bytes); in init_no_bcache()
1135 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in init_no_bcache()
1137 ptu_ptr(sfix->section); in init_no_bcache()
1139 errcode = pt_section_map(sfix->section); in init_no_bcache()
1142 bcache = pt_section_bcache(sfix->section); in init_no_bcache()
1145 errcode = pt_section_unmap(sfix->section); in init_no_bcache()
1151 static struct ptunit_result bcache_alloc_free(struct section_fixture *sfix) in bcache_alloc_free() argument
1157 sfix_write(sfix, bytes); in bcache_alloc_free()
1159 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in bcache_alloc_free()
1161 ptu_ptr(sfix->section); in bcache_alloc_free()
1163 errcode = pt_section_map(sfix->section); in bcache_alloc_free()
1166 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_free()
1169 bcache = pt_section_bcache(sfix->section); in bcache_alloc_free()
1171 ptu_uint_eq(bcache->nentries, sfix->section->size); in bcache_alloc_free()
1173 errcode = pt_section_unmap(sfix->section); in bcache_alloc_free()
1176 bcache = pt_section_bcache(sfix->section); in bcache_alloc_free()
1182 static struct ptunit_result bcache_alloc_twice(struct section_fixture *sfix) in bcache_alloc_twice() argument
1187 sfix_write(sfix, bytes); in bcache_alloc_twice()
1189 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in bcache_alloc_twice()
1191 ptu_ptr(sfix->section); in bcache_alloc_twice()
1193 errcode = pt_section_map(sfix->section); in bcache_alloc_twice()
1196 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_twice()
1199 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_twice()
1202 errcode = pt_section_unmap(sfix->section); in bcache_alloc_twice()
1208 static struct ptunit_result bcache_alloc_nomap(struct section_fixture *sfix) in bcache_alloc_nomap() argument
1213 sfix_write(sfix, bytes); in bcache_alloc_nomap()
1215 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in bcache_alloc_nomap()
1217 ptu_ptr(sfix->section); in bcache_alloc_nomap()
1219 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_nomap()
1225 static struct ptunit_result memsize_nomap(struct section_fixture *sfix) in memsize_nomap() argument
1231 sfix_write(sfix, bytes); in memsize_nomap()
1233 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_nomap()
1235 ptu_ptr(sfix->section); in memsize_nomap()
1237 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_nomap()
1244 static struct ptunit_result memsize_unmap(struct section_fixture *sfix) in memsize_unmap() argument
1250 sfix_write(sfix, bytes); in memsize_unmap()
1252 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_unmap()
1254 ptu_ptr(sfix->section); in memsize_unmap()
1256 errcode = pt_section_map(sfix->section); in memsize_unmap()
1259 errcode = pt_section_unmap(sfix->section); in memsize_unmap()
1262 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_unmap()
1269 static struct ptunit_result memsize_map_nobcache(struct section_fixture *sfix) in memsize_map_nobcache() argument
1275 sfix_write(sfix, bytes); in memsize_map_nobcache()
1277 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_map_nobcache()
1279 ptu_ptr(sfix->section); in memsize_map_nobcache()
1281 errcode = pt_section_map(sfix->section); in memsize_map_nobcache()
1286 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_map_nobcache()
1291 errcode = pt_section_unmap(sfix->section); in memsize_map_nobcache()
1297 static struct ptunit_result memsize_map_bcache(struct section_fixture *sfix) in memsize_map_bcache() argument
1303 sfix_write(sfix, bytes); in memsize_map_bcache()
1305 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_map_bcache()
1307 ptu_ptr(sfix->section); in memsize_map_bcache()
1309 errcode = pt_section_map(sfix->section); in memsize_map_bcache()
1312 errcode = pt_section_alloc_bcache(sfix->section); in memsize_map_bcache()
1315 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_map_bcache()
1318 sfix->section->size * sizeof(struct pt_bcache_entry)); in memsize_map_bcache()
1320 errcode = pt_section_unmap(sfix->section); in memsize_map_bcache()
1326 static struct ptunit_result sfix_init(struct section_fixture *sfix) in sfix_init() argument
1330 sfix->section = NULL; in sfix_init()
1331 sfix->file = NULL; in sfix_init()
1332 sfix->name = NULL; in sfix_init()
1334 errcode = ptunit_mkfile(&sfix->file, &sfix->name, "wb"); in sfix_init()
1337 ptu_test(ptunit_thrd_init, &sfix->thrd); in sfix_init()
1342 static struct ptunit_result sfix_fini(struct section_fixture *sfix) in sfix_fini() argument
1348 ptu_test(ptunit_thrd_fini, &sfix->thrd); in sfix_fini()
1350 if (sfix->section) { in sfix_fini()
1351 pt_section_put(sfix->section); in sfix_fini()
1352 sfix->section = NULL; in sfix_fini()
1355 filename = sfix->name; in sfix_fini()
1356 file = sfix->file; in sfix_fini()
1357 sfix->name = NULL; in sfix_fini()
1358 sfix->file = NULL; in sfix_fini()
1390 for (thrd = 0; thrd < sfix->thrd.nthreads; ++thrd) in sfix_fini()
1391 ptu_int_eq(sfix->thrd.result[thrd], 0); in sfix_fini()
1398 struct section_fixture sfix; in main() local
1401 sfix.init = sfix_init; in main()
1402 sfix.fini = sfix_fini; in main()
1406 ptu_run_f(suite, create, sfix); in main()
1407 ptu_run_f(suite, create_bad_offset, sfix); in main()
1408 ptu_run_f(suite, create_truncated, sfix); in main()
1409 ptu_run_f(suite, create_empty, sfix); in main()
1422 ptu_run_f(suite, get_overflow, sfix); in main()
1423 ptu_run_f(suite, attach_overflow, sfix); in main()
1424 ptu_run_f(suite, attach_bad_ucount, sfix); in main()
1425 ptu_run_f(suite, map_change, sfix); in main()
1426 ptu_run_f(suite, map_put, sfix); in main()
1427 ptu_run_f(suite, unmap_nomap, sfix); in main()
1428 ptu_run_f(suite, map_overflow, sfix); in main()
1429 ptu_run_f(suite, get_put, sfix); in main()
1430 ptu_run_f(suite, attach_detach, sfix); in main()
1431 ptu_run_f(suite, attach_bad_iscache, sfix); in main()
1432 ptu_run_f(suite, detach_bad_iscache, sfix); in main()
1433 ptu_run_f(suite, map_unmap, sfix); in main()
1434 ptu_run_f(suite, attach_map, sfix); in main()
1435 ptu_run_f(suite, attach_bad_map, sfix); in main()
1436 ptu_run_f(suite, attach_map_overflow, sfix); in main()
1437 ptu_run_f(suite, read, sfix); in main()
1438 ptu_run_f(suite, read_null, sfix); in main()
1439 ptu_run_f(suite, read_offset, sfix); in main()
1440 ptu_run_f(suite, read_truncated, sfix); in main()
1441 ptu_run_f(suite, read_from_truncated, sfix); in main()
1442 ptu_run_f(suite, read_nomem, sfix); in main()
1443 ptu_run_f(suite, read_overflow, sfix); in main()
1444 ptu_run_f(suite, read_overflow_32bit, sfix); in main()
1445 ptu_run_f(suite, read_nomap, sfix); in main()
1446 ptu_run_f(suite, read_unmap_map, sfix); in main()
1448 ptu_run_f(suite, init_no_bcache, sfix); in main()
1449 ptu_run_f(suite, bcache_alloc_free, sfix); in main()
1450 ptu_run_f(suite, bcache_alloc_twice, sfix); in main()
1451 ptu_run_f(suite, bcache_alloc_nomap, sfix); in main()
1453 ptu_run_f(suite, memsize_null, sfix); in main()
1454 ptu_run_f(suite, memsize_nomap, sfix); in main()
1455 ptu_run_f(suite, memsize_unmap, sfix); in main()
1456 ptu_run_f(suite, memsize_map_nobcache, sfix); in main()
1457 ptu_run_f(suite, memsize_map_bcache, sfix); in main()
1459 ptu_run_fp(suite, stress, sfix, worker_bcache); in main()
1460 ptu_run_fp(suite, stress, sfix, worker_read); in main()