Lines Matching refs:format

58             t = t.GetValueForExpressionPath('.{}'.format(cmd_args[1]))
76 return "{:s}{:s}".format(names[int(zone_security.z_kheap_id)], zone.z_name)
95 print("{:<30s} {: >10d}".format(key, value))
97 print("{:<30s} {: >10.2f}".format(key, value))
99 print("{:<30s} {: >10s}".format(key, value))
231 with O.table("Element {:4d}: {:<#20x} ({:<s})".format(i, mo.elem_addr, mo.zone.name)):
244 print("{:<20s}: {:<d}".format("slots", slots))
245 print("{:<20s}: {:<d}".format("slots_used", slots - avail - quarantine))
246 print("{:<20s}: {:<d}".format("slots_avail", avail))
247 print("{:<20s}: {:<d}".format("quarantine", quarantine))
248 print("{:<20s}: {:<d}".format("sampling", kern.GetGlobalVariable("pgz_sample_rate")))
249 print("{:<20s}: {:<d}".format("guard pages", guards))
270 @header("{:18s} {:32s} {:>8s} {:>6s} {:>6s} {:>6s} {:>6s} {:>6s} {:>7s} {:<s}".format(
302 cpu_info = "total: {:d}, avg: {:.1f}, full: {:d}, emtpy: {:d}".format(
309 print(O.format(format_string, ZoneName(zone, zone_security),
452 …>11s} {:>8s} {:>7s} {:>7s} {:>6s} {:>6s} {:>8s} {:>6s} {:>5s} {:>7s} {:<22s} {:<20s}").format(
493 out_string += format_string.format(zone=zone_val, zd=zone,
500 out_string += " (max: {:d})".format(zone["page_count_max"] * pagesize)
503 out_string += " (sequester: {:d})".format(zone["sequester_page_count"])
579 print(O.format(format_string, name="TOTALS", filler="", stats=stats))
633 print(' {0: <24s} {1: <40s} {2: <50s} {3: <20s} {4: <20s}'.format(
647 .format(ktv_cur, typename, GetBelongingKext(ktv_cur),
671 print(' {0: <24s} {1: <40s} {2: <50s} {3: <10s}'.format(
683 print(' {0: <#24x} {1: <40s} {2: <50s} {3: <10s}'.format(
738 raise ArgumentError("Invalid zone {:s}".format(zone_arg))
757 raise ArgumentError("Invalid size {:s}".format(cmd_options['-S']))
765 raise ArgumentError("Invalid kalloc type view {:s}".format(ktv_arg))
789 @header("{: <20s} {: <20s} {: <20s} {: <10s} {: <8s} {: <4s} {: >9s}".format(
822 return O.format(format_string, zone=zone, meta=meta,
832 with O.table("{:>5s} {:<20s} {:<10s}".format("#", "Element", "State"), indent=indent):
842 print(O.format("{:5d} {:<#20x} {:10s}", i, e, status))
935 hdr = "{:<12s} {:<12s} {:<12s} {:>3s} {:>5s} {:<20s}".format(
937 hdr2 = hdr + " {:<20s}".format("smr seq")
939 with O.table("{:<20s} {:>6s} {:>6s}".format("hash", "idx", "slot")):
952 print(O.format("{:#20x} {:6d} {:6d}", arr, i, j))
960 err = O.format(" {VT.DarkRed}wrong slot{VT.Default}")
962 err += O.format(" {VT.DarkRed}wrong bucket{VT.Default}")
964 print(O.format(
981 print(O.format(
993 @header("{:<20s} {:<6s} {:>9s}".format("btlog", "type", "count"))
1007 print(O.format("{0.address:<#20x} {0.btl_type:<6s} {0.btl_count:>9d}", btl))
1033 with O.table("{:<10s} {:<20s} {:>3s} {:<10s}".format("idx", "element", "OP", "backtrace")):
1037 print(O.format("{0.index:<10d} {0.address:<#20x} {0.op:>3d} {0.ref:#010x}", record))
1049 with O.table("{:<20s} {:<20s} {:<6s} {:s}".format("zone", "btlog", "type", "name")):
1054 print(O.format("{0:<#20x} {1.address:<#20x} {1.btl_type:<6s} {2:s}",
1057 @header("{:<8s} {:10s} {:>10s}".format("op", "btref", "count"))
1065 print(O.format("{:<8s} {:#010x} {:10d}", ZSTACK_OPS[op], ref, count))
1121 @header("{:<8s} {:10s}".format("op", "btref"))
1148 print(O.format("{:<8s} {:#010x}", ZSTACK_OPS[op], ref))
1200 raise ArgumentError("Invalid cpu {}".format(cpu))
1201 … print(O.format(fmt, cpu=cpu, type=v.GetType().GetDisplayTypeName(), addr=v.GetLoadAddress(), v=v))
1204 … print(O.format(fmt, cpu=cpu, type=v.GetType().GetDisplayTypeName(), addr=v.GetLoadAddress(), v=v))
1214 …print("Instance allocation = {0: <#0x} = {1: d}K".format(kern.globals.debug_ivars_size, kern.glob…
1215 …print("Container allocation = {0: <#0x} = {1: d}K".format(kern.globals.debug_container_malloc_size…
1216 …print("IOMalloc allocation = {0: <#0x} = {1: d}K".format(kern.globals.debug_iomalloc_size, kern.g…
1217 …print("Container allocation = {0: <#0x} = {1: d}K".format(kern.globals.debug_iomallocpageable_size…
1239 raise ArgumentError("Invalid waitq set address: {:s}".format(cmd_options["-S"]))
1242 print("{:18s} {:10s} {:s}".format('Task', 'Thread ID', 'Select Mem (bytes)'))
1257 …print("FOUND: {:#x} in thread: {:#x} ({:#x})".format(opt_wqs, unsigned(th), unsigned(th.thread_id)…
1259 print("{:<#18x} {:<#10x} {:d}".format(unsigned(t), unsigned(th.thread_id), thmem))
1262 print("Total: {:d} bytes ({:d} kbytes)".format(selmem, selmem // 1024))
1369 return entry_format.format(s=self)
1409 raise ArgumentError('Invalid sorting key \'{}\' provided to -S'.format(cmd_options['-S']))
1420 …print(hdr_format.format('#ents', 'wired', 'vsize', 'rsize', 'NEW RSIZE', 'max rsize', 'internal', …
1421 …print(hdr_format.format('', '(pages)', '(pages)', '(pages)', '(pages)', '(pages)', '(pages)', '(pa…
1469 print(total_format.format('TOTAL', '', s=vmstats_totals))
1564 print('Found {} btrefs in the kernel object\n'.format(len(btrefs)))
1566 print('{}'.format('*' * 80))
1567 print('btref: {:#08x}, count: {}\n'.format(ref, count))
1575 print('ref: {:#08x}, count: {}'.format(ref, count))
1604 @header("{0: <20s} {1: <20s} {2: <20s} {3: >5s} {4: >5s} {5: <20s} {6: <20s} {7: <7s}".format("vm_m…
1613 …out_string += format_string.format(vmmap, vmmap.pmap, vm_size, vmmap.hdr.nentries, resident_pages,…
1617 @header("{0: <20s} {1: <20s} {2: <5s} {3: >7s} {4: <20s} {5: <20s} {6: <4s}".format("entry", "start…
1631 out_string += format_string.format(vme, vme.links.start, vme_protection, vme_max_protection,
1636 @header("{0: <20s} {1: <20s} {2: <20s} {3: <20s}".format("range", "min_address", "max_address", "si…
1649 out_string += format_string.format(range_name, min_address, max_address, range_size)
1663 …s} {3: <12s} {4: <12s} {5: <12s} {6: >6s} {7: <30s} {8: <35s} {9: <30s}".format('volume(mp)', 'mnt…
1669 …"{vfs.f_mntonname: <30s} {vfs.f_mntfromname: <35s} {iomode: <30s}").format(mnt=mount, vfs=mount.mn…
1748 vnodedev_output += "Device Info:\n\t vnode:\t\t{:#x}".format(vnode)
1754 vnodedev_output += "\n\t name:\t\t{:<s}".format(vnode.v_name)
1755 vnodedev_output += "\n\t major, minor:\t{:d},{:d}".format(devnode_major, devnode_minor)
1756 vnodedev_output += "\n\t mode\t\t0{:o}".format(unsigned(devnode.dn_mode))
1757 vnodedev_output += "\n\t owner (u,g):\t{:d} {:d}".format(devnode.dn_uid, devnode.dn_gid)
1795 vnodedev_output += "{:#x} is not a device".format(vnode)
1825 vnode_lock_output += ("{: <8s}").format('flock')
1827 vnode_lock_output += ("{: <8s}").format('posix')
1829 vnode_lock_output += ("{: <8s}").format('prov')
1831 vnode_lock_output += ("{: <4s}").format('W')
1833 vnode_lock_output += ("{: <8s}").format('ofd')
1835 vnode_lock_output += ("{: <4s}").format('.')
1840 vnode_lock_output += ("PID {: <18d}").format(GetProcPID(lockf_proc))
1842 vnode_lock_output += ("ID {: <#019x}").format(int(lockf.lf_id))
1846 vnode_lock_output += ("{: <12s}").format('shared')
1849 vnode_lock_output += ("{: <12s}").format('exclusive')
1852 vnode_lock_output += ("{: <12s}").format('unlock')
1854 vnode_lock_output += ("{: <12s}").format('unknown')
1857 vnode_lock_output += ("{: #018x} ..").format(lockf.lf_start)
1858 vnode_lock_output += ("{: #018x}\n").format(lockf.lf_end)
1861 @header("{0: <3s} {1: <7s} {2: <3s} {3: <21s} {4: <11s} {5: ^19s} {6: ^17s}".format('*', 'type', 'W…
1871 out_str += ("{: <4s}").format('H')
1875 out_str += ("{: <4s}").format('>')
1931 out_str += ("\n( fd {:d}, name ").format(fd)
1935 out_str += "{:s} )\n".format(name)
1938 print("\n{0: d} total locks for {1: #018x}".format(seen, proc))
1944 … {:<8s} {:<15s} {:<15s} {:<15s} {:<20s} {:<10s} {:<15s} {:<40s} {:>50s}".format("vnode", "ro_addr"…
1973 cdhash += "{:02x}".format(cs_blob.csb_cdhash[i])
1980 …return format_str.format(vnode, ro_addr, base_offset, start_offset, end_offset, mem_size, mem_offs…
2055 print("Total unmanaged memory usage {:.0f}K".format(sum(blob_usages)/1024))
2056 …print("Average blob size: {:.0f} +- {:.0f} bytes".format(meanof(blob_usages), pstddev(blob_usages)…
2074 … >9s} {3: >8s} {4: <20s} {5: <6s} {6: <20s} {7: <6s} {8: <6s} {9: <35s}".format('vnode', 'usecount…
2105 csblob_version = '{: <6d}'.format(vnode.v_un.vu_ubcinfo.cs_add_gen)
2111 …out_str += format_string.format(vnode, usecount, kusecount, iocount, v_data_ptr, vtype_str, parent…
2224 …print('{0: <25s}\n{1: <s}\n{2: <s}'.format('Current Working Directory:', GetVnodeSummary.header, G…
2226 …print('{0: <25s}\n{1: <s}\n{2: <s}'.format('Current Root Directory:', GetVnodeSummary.header, GetV…
2227 …print('\n' + '{0: <5s} {1: <7s} {2: <20s} '.format('fd', 'flags', 'fileglob') + GetVnodeSummary.he…
2247 … print('{0: <5d} {1: <7s} {2: <#020x} '.format(fd, flags, fglob) + GetVnodeSummary(fgdata))
2256 print('{:<s}'.format("=" * 106))
2297 out_str += "*** Tagged as DESTROYED ({:#x}) ***\n".format(mtx.lck_mtx_state)
2298 out_str += "Number of Waiters : {mtx.lck_mtx_waiters:#d}\n".format(mtx=mtx)
2299 out_str += "ILocked : {mtx.lck_mtx_ilocked:#d}\n".format(mtx=mtx)
2300 out_str += "MLocked : {mtx.lck_mtx_mlocked:#d}\n".format(mtx=mtx)
2301 out_str += "Pri : {mtx.lck_mtx_pri:#d}\n".format(mtx=mtx)
2302 out_str += "Spin : {mtx.lck_mtx_spin:#d}\n".format(mtx=mtx)
2303 out_str += "Profiling : {mtx.lck_mtx_profile:#d}\n".format(mtx=mtx)
2304 out_str += "Group : {grp.lck_grp_name:s} ({grp:#x})\n".format(grp=grp)
2305 … out_str += "Owner Thread : {:#x}\n".format(getThreadFromCtidInternal(mtx.lck_mtx_owner))
2310 out_str += "ILocked : {mtx.lck_mtx.ilocked:#d}\n".format(mtx=mtx)
2311 out_str += "Spin : {mtx.lck_mtx.spin_mode:#d}\n".format(mtx=mtx)
2312 out_str += "Needs Wakeup : {mtx.lck_mtx.needs_wakeup:#d}\n".format(mtx=mtx)
2313 out_str += "Profiling : {mtx.lck_mtx.profile:#d}\n".format(mtx=mtx)
2314 out_str += "Group : {grp.lck_grp_name:s} ({grp:#x})\n".format(grp=grp)
2315 … out_str += "Owner Thread : {:#x}\n".format(getThreadFromCtidInternal(mtx.lck_mtx.owner))
2316 … out_str += "Turnstile : {:#x}\n".format(getTurnstileFromCtidInternal(mtx.lck_mtx_tsid))
2343 out_str += "Adapt. spin tail : {mtx.lck_mtx.as_tail:d}\n".format(mtx=mtx)
2345 out_str += " CPU {:2d}, thread {:#x}, node {:d}\n".format(
2359 out_str += "Interlock tail : {mtx.lck_mtx.ilk_tail:d}\n".format(mtx=mtx)
2361 out_str += " CPU {:2d}, thread {:#x}, node {:d}\n".format(
2382 out_str += "Current Ticket\t\t: {:#x}\n".format(tu.cticket)
2383 out_str += "Next Ticket\t\t: {:#x}\n".format(tu.nticket)
2411 out_str += "{:#x}\n".format(getThreadFromCtidInternal(tlock.lck_ticket_owner))
2429 out_str += "Interlock\t\t: {:#x}\n".format(spinlock.interlock)
2443 out_str += "{:#x}\n".format(lock_data & ~0x1)
2471 out_str += "Interlock\t\t: {:#x}\n".format(lock_word.interlock)
2484 out_str += "Write owner\t\t: {:#x}\n".format(getThreadFromCtidInternal(rwlock.lck_rw_owner))
2487 out_str += "{:#d}\n".format(lock_word.shared_count)
2546 out = "{:<19s} {:>19s} \n".format("Thread", "rwlock_count")
2547 out += "{:<#19x} ".format(thread)
2548 out += "{:>19d} ".format(thread.rwlock_count)
2556 …out = "{:<19s} {:>19s} {:>19s} {:>29s}\n".format("Thread", "rwlock_count", "rwlock_acquired", "RW_…
2557 out += "{:<#19x} ".format(thread)
2558 out += "{:>19d} ".format(thread.rwlock_count)
2559 out += "{:>19d} ".format(rw_locks_held.rwld_locks_acquired)
2562 out += "{:>29s}\n".format("TRUE")
2564 out += "{:>29s}\n".format("FALSE")
2571 …out += "{:>10s} {:<19s} {:>10s} {:>10s} {:>10s} {:<19s}\n".format(" ", "Lock", "Write", "Read", " …
2575 out += "{:>10s} ".format(" ")
2577 out += "{:<#19x} ".format(entry.rwlde_lock)
2584 out += "{:>10d} ".format(write)
2585 out += "{:>10d} ".format(read)
2586 out += "{:>10s} ".format(" ")
2588 out += "{:<#19x}\n".format(caller)
2734 print("Thread pointer {:#x}".format(thread))
2749 print("Turnstile pointer {:#x}".format(ts))
2767 summary += "Owner ctid \t: \t{reflock.kern_apfs_rl_owner:#d} ".format(reflock=reflock)
2770 summary += "(thread_t {:#x})\n".format(thread)
2773 summary += "Waiters \t: \t{reflock.kern_apfs_rl_waiters:#d}\n".format(reflock=reflock)
2774 summary += "Delayed Free \t: \t{reflock.kern_apfs_rl_delayed_free:#d}\n".format(reflock=reflock)
2775 summary += "Wake \t\t: \t{reflock.kern_apfs_rl_wake:#d}\n".format(reflock=reflock)
2776 summary += "Allocated \t: \t{reflock.kern_apfs_rl_allocated:#d}\n".format(reflock=reflock)
2777 summary += "Allow Force \t: \t{reflock.kern_apfs_rl_allow_force:#d}\n".format(reflock=reflock)
2778 summary += "RefCount \t: \t{reflock.kern_apfs_rl_count:#d}\n".format(reflock=reflock)
2818 …out_string += "{0: <12s} {1: <19s} {2: <19s} {3: <19s} {4: <10s}\n".format("Type", "Physical Start…
2825 out_string += "{0: <12s}".format(memtype_dict[mtype])
2827 out_string += "{0: <12s}".format("UNKNOWN")
2830 …out_string += "{0: #019x} {1: #019x} {2: <19s} {3: #019x}\n".format(mptr.PhysicalStart, mptr.Numbe…
2832 …out_string += "{0: #019x} {1: #019x} {2: #019x} {3: #019x}\n".format(mptr.PhysicalStart, mptr.Numb…
2868 …print('purgeable_nonvolatile_queue:{: <#018x} purgeable_volatile_count:{:d}\n'.format(kern.GetLoa…
2871 …{:>6s} {:>16s} {:>10s} {:>10s} {:>10s} {:>3s} {:18s} {:>6s} {:<20s}\n'.format("#","#","object","…
2876 …irtual:{:<10d} resident:{:<10d} wired:{:<10d} compressed:{:<10d} ]\n".format(nonvolatile_total.…
2877 …irtual:{:<10d} resident:{:<10d} wired:{:<10d} compressed:{:<10d} ]\n".format(nonvolatile_total.…
2904 …6d} {:>16d} {:>10d} {:>10d} {:>10d} {:>3d} {: <#018x} {:>6d} {:<20s}\n".format(idx,queue_len,obje…
2944 …irtual:{:<10d} resident:{:<10d} wired:{:<10d} compressed:{:<10d} ]\n".format(volatile_total.dis…
2945 …irtual:{:<10d} resident:{:<10d} wired:{:<10d} compressed:{:<10d} ]\n".format(volatile_total.obj…
2952 …ount: resident:{:<10d} wired:{:<10d} {:s}\n".format(purgeable_count, p…
2978 …{:>6s} {:>16s} {:>10s} {:>10s} {:>10s} {:>3s} {:18s} {:>6s} {:<20s}\n".format("#","object","P","…
3010 …d} {:>16d} {:>10d} {:>10d} {:>10d} {:>3d} {: <#018x} {:>6d} {:<20s}\n".format(idx,object,purgabl…
3178 @header("{:>20s} {:>15s} {:>15s} {:>15s} {:>20s} {:>20s} {:>20s} {:>20s} {:>20s} {:>15s}".format(
3200 raise ArgumentError("Unknown arguments: {:s}".format(cmd_args[0]))
3209 print("No valid object: {:s}".format(m_object_val))
3216 …print("{:>#20x} {:>15d} {:>15d} {:>15d} {:>20d} {:>#20x} {:>#20x} {:>#20x} {:>20d} {:>15d}".format(
3320 …pager_string = pager_string + "phys_contig {:#018x}:{:#018x} ".format(unsigned(object.vo_un2.vou_s…
3324 …pager_string = pager_string + "-> compressed:{:d} ({:#018x})".format(GetCompressedPagesForObject(o…
3329 …pager_string = pager_string + "-> {:s}:{: <#018x}".format(pager.mo_pager_ops.memory_object_pager_n…
3330 …d} ts:{:1d} strat:{:1s} purg:{:1s} {:s} wtag:{:d} ({:d} {:d} {:d}) {:s}".format(depth,offset,offse…
3341 …print("{:<18s} {:<18s} {:<18s} {:>10s} {:>18s} {:>18s}:{:<18s} {:<7s}".format("vm_map","pmap","siz…
3342 …print("{: <#018x} {: <#018x} {:#018x} {:>10d} {:>18d} {:#018x}:{:#018x} {:>7d}".format(map,map.pma…
3346 …print("{:<18s} {:<18s} {:<18s} {:>10s} {:>18s} {:>18s}:{:<18s} {:<7s}".format("vm_map_copy","offse…
3347 …print("{: <#018x} {:#018x} {:#018x} {:>10d} {:>18d} {:#018x}:{:#018x} {:>7d}".format(mapcopy,mapco…
3360 …print("{:<18s} {:>18s}:{:<18s} {:>10s} {:<8s} {:<16s} {:<18s} {:<18s}".format("entry","start","end…
3372 print("... skipped {:d} entries ...".format(skipped_entries))
3377 …print("{:18s} {:#018x}:{:#018x} {:>10d}".format("------------------",last_end,vme.links.start,(uns…
3382 object_str = "{: <#018x}".format(object)
3411 … object_str = "ZALLOC:{:s}".format(GetEnumName('zone_submap_idx_t', i, 'Z_SUBMAP_IDX_'))
3414 object_str = "submap:{: <#018x}".format(object)
3423 object_str = "{: <#018x}".format(object)
3475 tagstr = ".{:<3d}".format(xsite.loadTag)
3478 …rb_info = "l={: <#018x} r={: <#018x} p={: <#018x}".format(vme.store.entry.rbe_left, vme.store.entr…
3479 …{:#018x} {:>10d} {:>3d}{:<4s} {:3s}/{:3s}/{:<8s} {:<18s} {:<#18x} {:s}".format(vme,vme.links.star…
3488 …print("{:18s} {:#018x}:{:#018x} {:>10d}".format("------------------",last_end,maphdr.links.end,(un…
3529 return "{:<50s}".format(kmod.name)
3582 return ("{:<50s}".format(str(Cast(cstr, 'char *'))), "")
3586 tagstr = ".{:<3d}".format(xsite.loadTag)
3597 return "{} ({}{})".format(s.strip(), tag, tagstr)
3599 return "{} ({})".format(s.strip(), tag)
3686 print(" vm_allocation_tag_highest: {:<7d} ".format(nsites - 1))
3687 print(" {:<7s} {:>7s} {:>7s} {:<50s}".format("tag.kmod", "size", "mapped", "name"))
3691 …print(" {:>3d}{:<4s} {:>7d}K {:>7d}K {:<50s}".format(tag["tag"], tag["tagstr"], tag["size"] // …
3698 …print(" {:>7s} {:>7d}K {:s} {:>3d}{:<4s} {:<50s}".format(" ", sub["amount"] // 1024, kind_s…
3700 print("Total: {:>7d}K {:>7d}K".format(total // 1024, totalmapped // 1024))
3759 print(print_format.format(load_addr, end_addr,
3762 @header("{0: <20s} {1: <20s} {2: <20s}".format("vm_page_t", "offset", "object"))
3784 print(format_string.format(page, pg_t.vmp_offset, _vm_page_unpack_ptr(pg_t.vmp_object)))
3910 with O.table("{:<8s} {:<s}".format("Index", "Address")):
3913 print(O.format("{:>8d} {:#x}", i, elem))
3936 @header("{0: >26s}{1: >20s}{2: >10s}{3: >20s}{4: >20s}{5: >16s}".format("vm_pages_index/zone", "vm_…
4027 raise ArgumentError("Unknown bitfield: {0:>20s}".format(bitfield))
4040 … raise ArgumentError("Index range out of bound. vm_pages_count: {0:d}".format(vm_pages_count))
4047 …print("Scanning vm_pages[{0:d} to {1:d}] for {2:d} matching attribute(s)......".format(start_index…
4055 …print(format_string.format(str(i), addressof(page), page.vmp_q_state, _vm_page_unpack_ptr(page.vmp…
4063 … print("Scanning vm.pages zone for {0:d} matching attribute(s)......".format(attribute_count))
4075 …print(format_string.format("vm_pages zone", elem, page.vmp_q_state, vm_object, page.vmp_offset, ph…
4079 …1:d} in array, {2:d} in zone) matching the requested {3:d} attribute(s)".format(total, found_in_ar…
4085 … {2: <20s} {3: <20s} {4: <20s} {5: <10s} {6: <5s}\t{7: <28s}\t{8: <50s}".format("index", "total", …
4171 …out_string += format_string.format(page_count, res_page_count, vmp, vmp.vmp_offset, _vm_page_unpac…
4172 …out_string += first_bitfield_format_string.format(vmp.vmp_q_state, vmp.vmp_on_specialq, vmp.vmp_go…
4179 …out_string += second_bitfield_format_string.format(vmp.vmp_busy, vmp.vmp_wanted, vmp.vmp_tabled, v…
4187 …print(out_string + "cycle detected! we've seen vm_page_t: " + "{0: <#020x}".format(unsigned(vmp)) …
4191 … + " vm_page_t: " + "{0: <#020x}".format(unsigned(vmp)) + " points to different vm_object_t: " + …
4196 print("vm_page_t: " + "{0: <#020x}".format(unsigned(vmp)) + "\n")
4201 …print(out_string + " unused bits not zero for vm_page_t: " + "{0: <#020x}".format(unsigned(vmp)) +…
4206 …print(out_string + " unused bits not zero for vm_page_t: " + "{0: <#020x}".format(unsigned(vmp)) +…
4225 …print(out_string + "unable to find page: " + "{0: <#020x}".format(unsigned(vmp)) + " from object i…
4272 …} {:>5s} {:>5s} {:>6s} {:>6s} {:<18s} {:<18s} {:<18s} {:<18s} {:<18s}\n".format("#", "#", "pager",…
4304 …18x} end:{:#018x} ops:{: <#018x} refs:{:<d}>\n\tvnode:{: <#018x} {:s}\n".format(idx, qcnt, pager, …
4312 …print("{:>3s} {:<3s} {:<18s} {:>5s} {:>5s} {:>6s} {:<18s} {:<18s} {:<18s} {:<18s}\n".format("#", "…
4348 …{:>6d} {: <#018x} {:#018x} {:#018x} {:#018x}\n\tvnode:{: <#018x} {:s}\n".format(idx, qcnt, pager, …
4365 @header("{:>3s} {:<3s} {:<18s} {:>5s} {:>5s} {:>6s} {:<18s} {:<18s} {:<18s}\n".format("#", "#", "pa…
4387 …print("{:>3d}/{:<3d} {: <#018x} {:>5d} {:>5d} {:>6d} {: <#018x} {:#018x} {:#018x}".format(idx, qcn…
4389 print("\tvnode:{: <#018x} {:s}\n".format(vnode_pager.vnode_handle, filename))
4396 …print("\t\t{:>3s}/{:<3s} {:<18s} {:<18s} {:<18s}".format("#", "#", "file_offset", "address", "size…
4398 …print("\t\t{:>3d}/{:<3d} {: <#018x} {: <#018x} {: <#018x}".format(idx + 1, pager.dyld_num_range, p…
4405 …ngth = {:<5d} used = {:<5d} read_ptr = {:#018x} write_ptr = {:#018x}".format(addressof(cr), cr.…
4409 pending_data.append("{:c}".format(cr.buffer[idx]))
4423 print("Jetsam zprint snapshot jzs_trigger_band: {:2d}\n".format(jzs_trigger_band))
4427 print("Jetsam zprint snapshot jzs_trigger_band: {:2d}\n".format(jzs_trigger_band))
4434 …r {:3d} zones when jetsam last hit band: {:2d}, jzs_gencount: {:6d}\n\n".format(count, jzs_trigger…
4435 print(info_hdr.format("", "", "elem", "cur", "max", "cur", "max", "cur", "alloc"))
4436 print(info_hdr.format("#", "name", "size", "size", "size", "#elts", "#elts", "inuse", "size"))
4442 print(info_fmt.format(idx, jzs_names[idx].mzn_name, info.mzi_elem_size, \
4452 …d memory info when jetsam last hit band: {:2d}, jzs_gencount: {:6d}\n\n".format(jzs_trigger_band, …
4453 print(" {:<7s} {:>7s} {:>7s} {:<50s}".format("tag.kmod", "peak", "size", "name"))
4463 … print(" {:>3d}{:<4s} {:>7d}K {:>7d}K {:<50s}".format(tag, tagstr, peak, size, sitestr))
4499 print("{:s}".format(valid_count))
4500 print("{:s}".format(max_count))
4516 …print(hdr_format.format('command', 'index', 'pri', 'cid', 'pid', 'starttime', 'killtime', 'idletim…
4517 …print(hdr_format.format('', '', '', '', '', '(abs)', '(abs)', '(abs)', 'cause', '', '', 'Count', '…
4519 …print(hdr_format.format('command', 'index', 'pri', 'cid', 'pid', 'starttime', 'killtime', 'idletim…
4520 …print(hdr_format.format('', '', '', '', '', '(abs)', '(abs)', '(abs)', 'cause', '', '', 'Count', '…
4543 print(entry_format.format(index=idx, e=current_entry))
4603 out_str = initial.format(int(buf)) + " {\n " + joined_strs + "\n}\n\n"
4618 print("Blocklist for vnode {}:".format(cmd_args[0]))
4624 print("---->\nblock {}: ".format(i) + _GetBufSummary(buf))
4655 print("vaddr {:#018x} in map {: <#018x}".format(vaddr, map))
4668 … entry {: <#018x} [{:#018x}:{:#018x}] object {: <#018x} offset {:#018x}".format(offset_in_vme, vme…
4672 print("vaddr {:#018x} in map {: <#018x}".format(offset_in_object, obj_or_submap))
4687 print("offset {:#018x} in object {: <#018x}".format(offset, object))
4694 print(" offset {:#018x} in VM object {: <#018x}".format(offset, object))
4705 print(" resident page {: <#018x} phys {:#010x}".format(m, _vm_page_get_phys_page(m)))
4710 …print(" offset {:#018x} in external '{:s}' {: <#018x}".format(offset_in_pager, object.pager.mo_…
4733 print("offset {:#018x} in compressor pager {: <#018x}".format(offset, pager))
4741 …compressor_pager({: <#018x},{:#018x}): page_num {:#x} > num_slots {:#x}".format(pager, offset, pag…
4750 slot_str = "islots[{:d}][{:d}]".format(chunk_idx, slot_idx)
4754 slot_str = "dslots[{:d}]".format(slot_idx)
4758 slot_str = "eslots[{:d}]".format(slot_idx)
4759 …print(" offset {:#018x} in compressor pager {: <#018x} {:s} slot {: <#018x}".format(offset, p…
4763 print(" value {:#010x}".format(slot_value))
4776 print("compressor slot {: <#018x}".format(slot))
4786 …print("compressor slot {: <#018x} -> {:#010x} cseg {:d} cindx {:d}".format(unsigned(slot_ptr), uns…
4791 …print("single value[{:#d}]: ref {:d} value {:#010x}".format(slot.s_cindx, sv[slot.s_cindx].c_sv_he…
4794 …print("*** ERROR: s_cseg {:d} is out of bounds (1 - {:d})".format(slot.s_cseg, unsigned(kern.globa…
4832 …print("c_segments[{:d}] {: <#018x} c_seg {: <#018x} c_state {:#x}={:s}".format(slot.s_cseg-1, c_se…
4847 …} c_offset {:#x} c_size {:#x} c_packed_ptr {:#x} (unpacked: {: <#018x})".format(cs, cs.c_offset, c…
4849 … compressor slot {: <#018x} points back to {: <#018x} instead of itself".format(slot_ptr, c_slot_u…
4853 cmd = "memory read {: <#018x} {: <#018x} --force".format(c_data, c_data + c_size)
4885 print("{:d}/{:d}...\n".format(i,vm_pages_count))
4934 print("weird page vm_pages[{:d}]?\n".format(i))
4944 print("vm_pages_count = {:d}\n".format(vm_pages_count))
4946 print("wired_count = {:d}\n".format(wired_count))
4947 print("throttled_count = {:d}\n".format(throttled_count))
4948 print("active_count = {:d}\n".format(active_count))
4949 print("local_active_count = {:d}\n".format(local_active_count))
4950 print("inactive_count = {:d}\n".format(inactive_count))
4951 print("speculative_count = {:d}\n".format(speculative_count))
4952 print("free_count = {:d}\n".format(free_count))
4953 print("local_free_count = {:d}\n".format(local_free_count))
4954 print("compressor_count = {:d}\n".format(compressor_count))
4956 print("pageable_internal_count = {:d}\n".format(pageable_internal_count))
4957 print("pageable_external_count = {:d}\n".format(pageable_external_count))
4958 print("secluded_count = {:d}\n".format(secluded_count))
4959 print("secluded_free_count = {:d}\n".format(secluded_free_count))
4960 print("secluded_inuse_count = {:d}\n".format(secluded_inuse_count))
5030 extra_str += " port={:#016x}".format(port)
5031 …acking={: <#018x} offset={:#016x} dataoffset={:#016x} size={:#016x}{:s}".format(idx,entry,entry.pr…
5135 …} {:>6s} {:>16s} {:>10s} {:>10s} {:>10s} {:>2s} {:18s} {:>6s} {:<20s}\n'.format("#","#","object","…
5138 …irtual:{:<10d} resident:{:<10d} wired:{:<10d} compressed:{:<10d} ]\n".format(taskobjq_total.obj…
5165 …>6d} {:>16d} {:>10d} {:>10d} {:>10d} {:>2d} {: <#018x} {:>6d} {:<20s}\n".format(idx,queue_len,obje…
5189 …y {:#08x} ref:{:d} offset:{:#08x} size:{:#08x} prot{:d} backing {:#08x}".format(mem_entry, mem_ent…
5204 return "{0: >7,.2f}MB".format(size / (1 << 20))
5206 return "{0: >7,.2f}KB".format(size / (1 << 10))
5207 return "{0: >7,.2f}B".format(float(size))
5209 return "{0: >9d}B".format(size )
5211 @header("{: >8s} {: >14s} {: >14s} {: >10s} {: >14s} {: >10s} {: >10s} {: <32s}".format(
5285 out_str += format_string.format(