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
166 sfix_write(sfix, bytes); in create()
168 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in create()
169 ptu_ptr(sfix->section); in create()
171 name = pt_section_filename(sfix->section); in create()
172 ptu_str_eq(name, sfix->name); in create()
174 offset = pt_section_offset(sfix->section); in create()
177 size = pt_section_size(sfix->section); in create()
183 static struct ptunit_result create_bad_offset(struct section_fixture *sfix) in create_bad_offset() argument
185 sfix->section = pt_mk_section(sfix->name, 0x10ull, 0x0ull); in create_bad_offset()
186 ptu_null(sfix->section); in create_bad_offset()
191 static struct ptunit_result create_truncated(struct section_fixture *sfix) in create_truncated() argument
197 sfix_write(sfix, bytes); in create_truncated()
199 sfix->section = pt_mk_section(sfix->name, 0x1ull, UINT64_MAX); in create_truncated()
200 ptu_ptr(sfix->section); in create_truncated()
202 name = pt_section_filename(sfix->section); in create_truncated()
203 ptu_str_eq(name, sfix->name); in create_truncated()
205 offset = pt_section_offset(sfix->section); in create_truncated()
208 size = pt_section_size(sfix->section); in create_truncated()
214 static struct ptunit_result create_empty(struct section_fixture *sfix) in create_empty() argument
216 sfix->section = pt_mk_section(sfix->name, 0x0ull, 0x10ull); in create_empty()
217 ptu_null(sfix->section); in create_empty()
242 static struct ptunit_result memsize_null(struct section_fixture *sfix) in memsize_null() argument
250 errcode = pt_section_memsize(sfix->section, NULL); in memsize_null()
355 static struct ptunit_result get_overflow(struct section_fixture *sfix) in get_overflow() argument
360 sfix_write(sfix, bytes); in get_overflow()
362 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in get_overflow()
363 ptu_ptr(sfix->section); in get_overflow()
365 sfix->section->ucount = UINT16_MAX; in get_overflow()
367 errcode = pt_section_get(sfix->section); in get_overflow()
370 sfix->section->ucount = 1; in get_overflow()
375 static struct ptunit_result attach_overflow(struct section_fixture *sfix) in attach_overflow() argument
381 sfix_write(sfix, bytes); in attach_overflow()
383 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in attach_overflow()
384 ptu_ptr(sfix->section); in attach_overflow()
386 sfix->section->acount = UINT16_MAX; in attach_overflow()
388 errcode = pt_section_attach(sfix->section, &iscache); in attach_overflow()
391 sfix->section->acount = 0; in attach_overflow()
396 static struct ptunit_result attach_bad_ucount(struct section_fixture *sfix) in attach_bad_ucount() argument
402 sfix_write(sfix, bytes); in attach_bad_ucount()
404 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in attach_bad_ucount()
405 ptu_ptr(sfix->section); in attach_bad_ucount()
407 sfix->section->acount = 2; in attach_bad_ucount()
409 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_ucount()
412 sfix->section->acount = 0; in attach_bad_ucount()
417 static struct ptunit_result map_change(struct section_fixture *sfix) in map_change() argument
422 sfix_write(sfix, bytes); in map_change()
424 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in map_change()
425 ptu_ptr(sfix->section); in map_change()
427 sfix_write(sfix, bytes); in map_change()
429 errcode = pt_section_map(sfix->section); in map_change()
435 static struct ptunit_result map_put(struct section_fixture *sfix) in map_put() argument
440 sfix_write(sfix, bytes); in map_put()
442 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in map_put()
443 ptu_ptr(sfix->section); in map_put()
445 errcode = pt_section_map(sfix->section); in map_put()
448 errcode = pt_section_put(sfix->section); in map_put()
451 errcode = pt_section_unmap(sfix->section); in map_put()
457 static struct ptunit_result unmap_nomap(struct section_fixture *sfix) in unmap_nomap() argument
462 sfix_write(sfix, bytes); in unmap_nomap()
464 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in unmap_nomap()
465 ptu_ptr(sfix->section); in unmap_nomap()
467 errcode = pt_section_unmap(sfix->section); in unmap_nomap()
473 static struct ptunit_result map_overflow(struct section_fixture *sfix) in map_overflow() argument
478 sfix_write(sfix, bytes); in map_overflow()
480 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in map_overflow()
481 ptu_ptr(sfix->section); in map_overflow()
483 sfix->section->mcount = UINT16_MAX; in map_overflow()
485 errcode = pt_section_map(sfix->section); in map_overflow()
488 sfix->section->mcount = 0; in map_overflow()
493 static struct ptunit_result get_put(struct section_fixture *sfix) in get_put() argument
498 sfix_write(sfix, bytes); in get_put()
500 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in get_put()
501 ptu_ptr(sfix->section); in get_put()
503 errcode = pt_section_get(sfix->section); in get_put()
506 errcode = pt_section_get(sfix->section); in get_put()
509 errcode = pt_section_put(sfix->section); in get_put()
512 errcode = pt_section_put(sfix->section); in get_put()
518 static struct ptunit_result attach_detach(struct section_fixture *sfix) in attach_detach() argument
524 sfix_write(sfix, bytes); in attach_detach()
526 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in attach_detach()
527 ptu_ptr(sfix->section); in attach_detach()
529 sfix->section->ucount += 2; in attach_detach()
531 errcode = pt_section_attach(sfix->section, &iscache); in attach_detach()
534 errcode = pt_section_attach(sfix->section, &iscache); in attach_detach()
537 errcode = pt_section_detach(sfix->section, &iscache); in attach_detach()
540 errcode = pt_section_detach(sfix->section, &iscache); in attach_detach()
543 sfix->section->ucount -= 2; in attach_detach()
548 static struct ptunit_result attach_bad_iscache(struct section_fixture *sfix) in attach_bad_iscache() argument
554 sfix_write(sfix, bytes); in attach_bad_iscache()
556 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in attach_bad_iscache()
557 ptu_ptr(sfix->section); in attach_bad_iscache()
559 sfix->section->ucount += 2; in attach_bad_iscache()
561 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_iscache()
564 errcode = pt_section_attach(sfix->section, &bad); in attach_bad_iscache()
567 errcode = pt_section_detach(sfix->section, &iscache); in attach_bad_iscache()
570 sfix->section->ucount -= 2; in attach_bad_iscache()
575 static struct ptunit_result detach_bad_iscache(struct section_fixture *sfix) in detach_bad_iscache() argument
581 sfix_write(sfix, bytes); in detach_bad_iscache()
583 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in detach_bad_iscache()
584 ptu_ptr(sfix->section); in detach_bad_iscache()
586 errcode = pt_section_attach(sfix->section, &iscache); in detach_bad_iscache()
589 errcode = pt_section_detach(sfix->section, &bad); in detach_bad_iscache()
592 errcode = pt_section_detach(sfix->section, &iscache); in detach_bad_iscache()
598 static struct ptunit_result map_unmap(struct section_fixture *sfix) in map_unmap() argument
603 sfix_write(sfix, bytes); in map_unmap()
605 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in map_unmap()
606 ptu_ptr(sfix->section); in map_unmap()
608 errcode = pt_section_map(sfix->section); in map_unmap()
611 errcode = pt_section_map(sfix->section); in map_unmap()
614 errcode = pt_section_unmap(sfix->section); in map_unmap()
617 errcode = pt_section_unmap(sfix->section); in map_unmap()
623 static struct ptunit_result attach_map(struct section_fixture *sfix) in attach_map() argument
631 sfix_write(sfix, bytes); in attach_map()
633 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in attach_map()
634 ptu_ptr(sfix->section); in attach_map()
636 errcode = pt_section_attach(sfix->section, &iscache); in attach_map()
639 errcode = pt_section_map(sfix->section); in attach_map()
642 errcode = pt_section_map(sfix->section); in attach_map()
645 ptu_uint_eq(sfix->section->mcount, 2); in attach_map()
647 errcode = pt_section_unmap(sfix->section); in attach_map()
650 errcode = pt_section_unmap(sfix->section); in attach_map()
653 errcode = pt_section_detach(sfix->section, &iscache); in attach_map()
659 static struct ptunit_result attach_bad_map(struct section_fixture *sfix) in attach_bad_map() argument
667 sfix_write(sfix, bytes); in attach_bad_map()
669 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in attach_bad_map()
670 ptu_ptr(sfix->section); in attach_bad_map()
672 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_map()
675 errcode = pt_section_map(sfix->section); in attach_bad_map()
678 errcode = pt_section_detach(sfix->section, &iscache); in attach_bad_map()
684 static struct ptunit_result attach_map_overflow(struct section_fixture *sfix) in attach_map_overflow() argument
692 sfix_write(sfix, bytes); in attach_map_overflow()
694 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in attach_map_overflow()
695 ptu_ptr(sfix->section); in attach_map_overflow()
697 errcode = pt_section_attach(sfix->section, &iscache); in attach_map_overflow()
700 sfix->section->mcount = UINT16_MAX - 1; in attach_map_overflow()
702 errcode = pt_section_map(sfix->section); in attach_map_overflow()
705 errcode = pt_section_detach(sfix->section, &iscache); in attach_map_overflow()
711 static struct ptunit_result read(struct section_fixture *sfix) in read() argument
717 sfix_write(sfix, bytes); in read()
719 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in read()
720 ptu_ptr(sfix->section); in read()
722 status = pt_section_map(sfix->section); in read()
725 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read()
731 status = pt_section_unmap(sfix->section); in read()
737 static struct ptunit_result read_null(struct section_fixture *sfix) in read_null() argument
743 sfix_write(sfix, bytes); in read_null()
745 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in read_null()
746 ptu_ptr(sfix->section); in read_null()
748 status = pt_section_map(sfix->section); in read_null()
751 status = pt_section_read(sfix->section, NULL, 1, 0x0ull); in read_null()
759 status = pt_section_unmap(sfix->section); in read_null()
765 static struct ptunit_result read_offset(struct section_fixture *sfix) in read_offset() argument
771 sfix_write(sfix, bytes); in read_offset()
773 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in read_offset()
774 ptu_ptr(sfix->section); in read_offset()
776 status = pt_section_map(sfix->section); in read_offset()
779 status = pt_section_read(sfix->section, buffer, 2, 0x1ull); in read_offset()
785 status = pt_section_unmap(sfix->section); in read_offset()
791 static struct ptunit_result read_truncated(struct section_fixture *sfix) in read_truncated() argument
796 sfix_write(sfix, bytes); in read_truncated()
798 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in read_truncated()
799 ptu_ptr(sfix->section); in read_truncated()
801 status = pt_section_map(sfix->section); in read_truncated()
804 status = pt_section_read(sfix->section, buffer, 2, 0x2ull); in read_truncated()
809 status = pt_section_unmap(sfix->section); in read_truncated()
815 static struct ptunit_result read_from_truncated(struct section_fixture *sfix) in read_from_truncated() argument
820 sfix_write(sfix, bytes); in read_from_truncated()
822 sfix->section = pt_mk_section(sfix->name, 0x2ull, 0x10ull); in read_from_truncated()
823 ptu_ptr(sfix->section); in read_from_truncated()
825 status = pt_section_map(sfix->section); in read_from_truncated()
828 status = pt_section_read(sfix->section, buffer, 2, 0x1ull); in read_from_truncated()
833 status = pt_section_unmap(sfix->section); in read_from_truncated()
839 static struct ptunit_result read_nomem(struct section_fixture *sfix) in read_nomem() argument
844 sfix_write(sfix, bytes); in read_nomem()
846 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in read_nomem()
847 ptu_ptr(sfix->section); in read_nomem()
849 status = pt_section_map(sfix->section); in read_nomem()
852 status = pt_section_read(sfix->section, buffer, 1, 0x3ull); in read_nomem()
856 status = pt_section_unmap(sfix->section); in read_nomem()
862 static struct ptunit_result read_overflow(struct section_fixture *sfix) in read_overflow() argument
867 sfix_write(sfix, bytes); in read_overflow()
869 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in read_overflow()
870 ptu_ptr(sfix->section); in read_overflow()
872 status = pt_section_map(sfix->section); in read_overflow()
875 status = pt_section_read(sfix->section, buffer, 1, in read_overflow()
880 status = pt_section_unmap(sfix->section); in read_overflow()
886 static struct ptunit_result read_overflow_32bit(struct section_fixture *sfix) in read_overflow_32bit() argument
891 sfix_write(sfix, bytes); in read_overflow_32bit()
893 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in read_overflow_32bit()
894 ptu_ptr(sfix->section); in read_overflow_32bit()
896 status = pt_section_map(sfix->section); in read_overflow_32bit()
899 status = pt_section_read(sfix->section, buffer, 1, in read_overflow_32bit()
904 status = pt_section_unmap(sfix->section); in read_overflow_32bit()
910 static struct ptunit_result read_nomap(struct section_fixture *sfix) in read_nomap() argument
915 sfix_write(sfix, bytes); in read_nomap()
917 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in read_nomap()
918 ptu_ptr(sfix->section); in read_nomap()
920 status = pt_section_read(sfix->section, buffer, 1, 0x0ull); in read_nomap()
927 static struct ptunit_result read_unmap_map(struct section_fixture *sfix) in read_unmap_map() argument
933 sfix_write(sfix, bytes); in read_unmap_map()
935 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in read_unmap_map()
936 ptu_ptr(sfix->section); in read_unmap_map()
938 status = pt_section_map(sfix->section); in read_unmap_map()
941 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read_unmap_map()
949 status = pt_section_unmap(sfix->section); in read_unmap_map()
952 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read_unmap_map()
958 status = pt_section_map(sfix->section); in read_unmap_map()
961 status = pt_section_read(sfix->section, buffer, 2, 0x0ull); in read_unmap_map()
967 status = pt_section_unmap(sfix->section); in read_unmap_map()
975 struct section_fixture *sfix; in worker_read() local
978 sfix = arg; in worker_read()
979 if (!sfix) in worker_read()
986 errcode = pt_section_get(sfix->section); in worker_read()
990 errcode = pt_section_map(sfix->section); in worker_read()
994 read = pt_section_read(sfix->section, buffer, 2, 0x0ull); in worker_read()
1002 errcode = pt_section_unmap(sfix->section); in worker_read()
1006 errcode = pt_section_put(sfix->section); in worker_read()
1014 (void) pt_section_unmap(sfix->section); in worker_read()
1017 (void) pt_section_put(sfix->section); in worker_read()
1023 struct section_fixture *sfix; in worker_bcache() local
1026 sfix = arg; in worker_bcache()
1027 if (!sfix) in worker_bcache()
1030 errcode = pt_section_get(sfix->section); in worker_bcache()
1037 errcode = pt_section_map(sfix->section); in worker_bcache()
1041 errcode = pt_section_request_bcache(sfix->section); in worker_bcache()
1045 bcache = pt_section_bcache(sfix->section); in worker_bcache()
1051 errcode = pt_section_unmap(sfix->section); in worker_bcache()
1056 return pt_section_put(sfix->section); in worker_bcache()
1059 (void) pt_section_unmap(sfix->section); in worker_bcache()
1062 (void) pt_section_put(sfix->section); in worker_bcache()
1066 static struct ptunit_result stress(struct section_fixture *sfix, in stress() argument
1072 sfix_write(sfix, bytes); in stress()
1074 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in stress()
1075 ptu_ptr(sfix->section); in stress()
1082 ptu_test(ptunit_thrd_create, &sfix->thrd, worker, sfix); in stress()
1086 errcode = worker(sfix); in stress()
1092 static struct ptunit_result init_no_bcache(struct section_fixture *sfix) in init_no_bcache() argument
1098 sfix_write(sfix, bytes); in init_no_bcache()
1100 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in init_no_bcache()
1101 ptu_ptr(sfix->section); in init_no_bcache()
1103 errcode = pt_section_map(sfix->section); in init_no_bcache()
1106 bcache = pt_section_bcache(sfix->section); in init_no_bcache()
1109 errcode = pt_section_unmap(sfix->section); in init_no_bcache()
1115 static struct ptunit_result bcache_alloc_free(struct section_fixture *sfix) in bcache_alloc_free() argument
1121 sfix_write(sfix, bytes); in bcache_alloc_free()
1123 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in bcache_alloc_free()
1124 ptu_ptr(sfix->section); in bcache_alloc_free()
1126 errcode = pt_section_map(sfix->section); in bcache_alloc_free()
1129 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_free()
1132 bcache = pt_section_bcache(sfix->section); in bcache_alloc_free()
1134 ptu_uint_eq(bcache->nentries, sfix->section->size); in bcache_alloc_free()
1136 errcode = pt_section_unmap(sfix->section); in bcache_alloc_free()
1139 bcache = pt_section_bcache(sfix->section); in bcache_alloc_free()
1145 static struct ptunit_result bcache_alloc_twice(struct section_fixture *sfix) in bcache_alloc_twice() argument
1150 sfix_write(sfix, bytes); in bcache_alloc_twice()
1152 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in bcache_alloc_twice()
1153 ptu_ptr(sfix->section); in bcache_alloc_twice()
1155 errcode = pt_section_map(sfix->section); in bcache_alloc_twice()
1158 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_twice()
1161 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_twice()
1164 errcode = pt_section_unmap(sfix->section); in bcache_alloc_twice()
1170 static struct ptunit_result bcache_alloc_nomap(struct section_fixture *sfix) in bcache_alloc_nomap() argument
1175 sfix_write(sfix, bytes); in bcache_alloc_nomap()
1177 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in bcache_alloc_nomap()
1178 ptu_ptr(sfix->section); in bcache_alloc_nomap()
1180 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_nomap()
1186 static struct ptunit_result memsize_nomap(struct section_fixture *sfix) in memsize_nomap() argument
1192 sfix_write(sfix, bytes); in memsize_nomap()
1194 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in memsize_nomap()
1195 ptu_ptr(sfix->section); in memsize_nomap()
1197 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_nomap()
1204 static struct ptunit_result memsize_unmap(struct section_fixture *sfix) in memsize_unmap() argument
1210 sfix_write(sfix, bytes); in memsize_unmap()
1212 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in memsize_unmap()
1213 ptu_ptr(sfix->section); in memsize_unmap()
1215 errcode = pt_section_map(sfix->section); in memsize_unmap()
1218 errcode = pt_section_unmap(sfix->section); in memsize_unmap()
1221 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_unmap()
1228 static struct ptunit_result memsize_map_nobcache(struct section_fixture *sfix) in memsize_map_nobcache() argument
1234 sfix_write(sfix, bytes); in memsize_map_nobcache()
1236 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in memsize_map_nobcache()
1237 ptu_ptr(sfix->section); in memsize_map_nobcache()
1239 errcode = pt_section_map(sfix->section); in memsize_map_nobcache()
1244 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_map_nobcache()
1249 errcode = pt_section_unmap(sfix->section); in memsize_map_nobcache()
1255 static struct ptunit_result memsize_map_bcache(struct section_fixture *sfix) in memsize_map_bcache() argument
1261 sfix_write(sfix, bytes); in memsize_map_bcache()
1263 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in memsize_map_bcache()
1264 ptu_ptr(sfix->section); in memsize_map_bcache()
1266 errcode = pt_section_map(sfix->section); in memsize_map_bcache()
1269 errcode = pt_section_alloc_bcache(sfix->section); in memsize_map_bcache()
1272 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_map_bcache()
1275 sfix->section->size * sizeof(struct pt_bcache_entry)); in memsize_map_bcache()
1277 errcode = pt_section_unmap(sfix->section); in memsize_map_bcache()
1283 static struct ptunit_result sfix_init(struct section_fixture *sfix) in sfix_init() argument
1287 sfix->section = NULL; in sfix_init()
1288 sfix->file = NULL; in sfix_init()
1289 sfix->name = NULL; in sfix_init()
1291 errcode = ptunit_mkfile(&sfix->file, &sfix->name, "wb"); in sfix_init()
1294 ptu_test(ptunit_thrd_init, &sfix->thrd); in sfix_init()
1299 static struct ptunit_result sfix_fini(struct section_fixture *sfix) in sfix_fini() argument
1303 ptu_test(ptunit_thrd_fini, &sfix->thrd); in sfix_fini()
1305 for (thrd = 0; thrd < sfix->thrd.nthreads; ++thrd) in sfix_fini()
1306 ptu_int_eq(sfix->thrd.result[thrd], 0); in sfix_fini()
1308 if (sfix->section) { in sfix_fini()
1309 pt_section_put(sfix->section); in sfix_fini()
1310 sfix->section = NULL; in sfix_fini()
1313 if (sfix->file) { in sfix_fini()
1314 fclose(sfix->file); in sfix_fini()
1315 sfix->file = NULL; in sfix_fini()
1317 if (sfix->name) in sfix_fini()
1318 remove(sfix->name); in sfix_fini()
1321 if (sfix->name) { in sfix_fini()
1322 free(sfix->name); in sfix_fini()
1323 sfix->name = NULL; in sfix_fini()
1331 struct section_fixture sfix; in main() local
1334 sfix.init = sfix_init; in main()
1335 sfix.fini = sfix_fini; in main()
1339 ptu_run_f(suite, create, sfix); in main()
1340 ptu_run_f(suite, create_bad_offset, sfix); in main()
1341 ptu_run_f(suite, create_truncated, sfix); in main()
1342 ptu_run_f(suite, create_empty, sfix); in main()
1355 ptu_run_f(suite, get_overflow, sfix); in main()
1356 ptu_run_f(suite, attach_overflow, sfix); in main()
1357 ptu_run_f(suite, attach_bad_ucount, sfix); in main()
1358 ptu_run_f(suite, map_change, sfix); in main()
1359 ptu_run_f(suite, map_put, sfix); in main()
1360 ptu_run_f(suite, unmap_nomap, sfix); in main()
1361 ptu_run_f(suite, map_overflow, sfix); in main()
1362 ptu_run_f(suite, get_put, sfix); in main()
1363 ptu_run_f(suite, attach_detach, sfix); in main()
1364 ptu_run_f(suite, attach_bad_iscache, sfix); in main()
1365 ptu_run_f(suite, detach_bad_iscache, sfix); in main()
1366 ptu_run_f(suite, map_unmap, sfix); in main()
1367 ptu_run_f(suite, attach_map, sfix); in main()
1368 ptu_run_f(suite, attach_bad_map, sfix); in main()
1369 ptu_run_f(suite, attach_map_overflow, sfix); in main()
1370 ptu_run_f(suite, read, sfix); in main()
1371 ptu_run_f(suite, read_null, sfix); in main()
1372 ptu_run_f(suite, read_offset, sfix); in main()
1373 ptu_run_f(suite, read_truncated, sfix); in main()
1374 ptu_run_f(suite, read_from_truncated, sfix); in main()
1375 ptu_run_f(suite, read_nomem, sfix); in main()
1376 ptu_run_f(suite, read_overflow, sfix); in main()
1377 ptu_run_f(suite, read_overflow_32bit, sfix); in main()
1378 ptu_run_f(suite, read_nomap, sfix); in main()
1379 ptu_run_f(suite, read_unmap_map, sfix); in main()
1381 ptu_run_f(suite, init_no_bcache, sfix); in main()
1382 ptu_run_f(suite, bcache_alloc_free, sfix); in main()
1383 ptu_run_f(suite, bcache_alloc_twice, sfix); in main()
1384 ptu_run_f(suite, bcache_alloc_nomap, sfix); in main()
1386 ptu_run_f(suite, memsize_null, sfix); in main()
1387 ptu_run_f(suite, memsize_nomap, sfix); in main()
1388 ptu_run_f(suite, memsize_unmap, sfix); in main()
1389 ptu_run_f(suite, memsize_map_nobcache, sfix); in main()
1390 ptu_run_f(suite, memsize_map_bcache, sfix); in main()
1392 ptu_run_fp(suite, stress, sfix, worker_bcache); in main()
1393 ptu_run_fp(suite, stress, sfix, worker_read); in main()