Lines Matching refs:section

47 				 struct pt_section *section);
49 struct pt_section *section, uint64_t size);
52 struct pt_section *section) in pt_iscache_notify_map() argument
63 return pt_section_map_share(section); in pt_iscache_notify_map()
67 struct pt_section *section, uint64_t size) in pt_iscache_notify_resize() argument
81 errcode = pt_section_memsize(section, &memsize); in pt_iscache_notify_resize()
88 return pt_section_map_share(section); in pt_iscache_notify_resize()
127 struct pt_section *section; member
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()
174 offset = pt_section_offset(sfix->section); in create()
177 size = pt_section_size(sfix->section); in create()
185 sfix->section = pt_mk_section(sfix->name, 0x10ull, 0x0ull); in create_bad_offset()
186 ptu_null(sfix->section); in create_bad_offset()
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()
205 offset = pt_section_offset(sfix->section); in create_truncated()
208 size = pt_section_size(sfix->section); in create_truncated()
216 sfix->section = pt_mk_section(sfix->name, 0x0ull, 0x10ull); in create_empty()
217 ptu_null(sfix->section); in create_empty()
250 errcode = pt_section_memsize(sfix->section, NULL); in memsize_null()
292 struct pt_section section; in attach_null() local
298 errcode = pt_section_attach(&section, NULL); in attach_null()
310 struct pt_section section; in detach_null() local
316 errcode = pt_section_detach(&section, NULL); in detach_null()
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()
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()
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()
424 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in map_change()
425 ptu_ptr(sfix->section); in map_change()
429 errcode = pt_section_map(sfix->section); in map_change()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
1074 sfix->section = pt_mk_section(sfix->name, 0x1ull, 0x3ull); in stress()
1075 ptu_ptr(sfix->section); in stress()
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()
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()
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()
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()
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()
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()
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()
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()
1287 sfix->section = NULL; in sfix_init()
1308 if (sfix->section) { in sfix_fini()
1309 pt_section_put(sfix->section); in sfix_fini()
1310 sfix->section = NULL; in sfix_fini()