• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /xnu-2422.115.4/tools/lldbmacros/

Lines Matching refs:zone

129 @lldb_type_summary(['zone','zone_t'])
132 def GetZoneSummary(zone):
133 """ Summarize a zone with important information. See help zprint for description of each field
135 zone: value - obj representing a zone in kernel
137 str - summary of the zone
143 free_elements = (zone.cur_size / zone.elem_size) - zone.count
144 free_size = free_elements * zone.elem_size
146 alloc_count = zone.alloc_size / zone.elem_size
147 alloc_pages = zone.alloc_size / pagesize
148 alloc_slack = zone.alloc_size % zone.elem_size
169 if zone.__getattr__(mark[0]) :
173 out_string += format_string.format(zone, zone.cur_size, zone.page_count,
174 zone.count, free_elements, free_size,
175 zone.elem_size, zone.alloc_size, alloc_count,
176 alloc_pages, alloc_slack, name = zone.zone_name, markings=markings)
178 if zone.exhaustible :
179 out_string += "(max: {:d})".format(zone.max_size)
194 M - gzalloc will avoid monitoring this zone
196 O - does not allow refill callout to fill zone on noblock allocation
197 N - zone requires alignment (avoids padding this zone for debugging)
200 L - zone is being monitored by zleaks
231 def ShowZfreeListHeader(zone):
232 """ Helper routine to print a header for zone freelist.
235 zone:zone_t - Zone object to print header info
242 zone.elem_size, zone.count, kern.globals.zp_nopoison_cookie, kern.globals.zp_poisoned_cookie, zone.zp_count, kern.globals.zp_factor)
247 def ShowZfreeListChain(zone, zfirst, zlimit):
248 """ Helper routine to print a zone free list chain
250 zone: zone_t - Zone object
260 backup_ptr = kern.GetValueFromAddress((unsigned(Cast(current, 'vm_offset_t')) + unsigned(zone.elem_size) - sizeof('vm_offset_t')), 'vm_offset_t *')
281 """ Walk the freelist for a zone, printing out the primary and backup next pointers, the poisoning cookies, and the poisoning status of each element.
282 Usage: showzfreelist <zone> [iterations]
292 zone = kern.GetValueFromAddress(cmd_args[0], 'struct zone *')
296 ShowZfreeListHeader(zone)
298 if unsigned(zone.use_page_list) == 1:
299 if unsigned(zone.allows_foreign) == 1:
300 for free_page_meta in IterateQueue(zone.pages.any_free_foreign, 'struct zone_page_metadata *', 'pages'):
305 ShowZfreeListChain(zone, zfirst, zlimit)
306 for free_page_meta in IterateQueue(zone.pages.intermediate, 'struct zone_page_metadata *', 'pages'):
311 ShowZfreeListChain(zone, zfirst, zlimit)
312 for free_page_meta in IterateQueue(zone.pages.all_free, 'struct zone_page_metadata *', 'pages'):
317 ShowZfreeListChain(zone, zfirst, zlimit)
319 zfirst = Cast(zone.free_elements, 'void *')
321 ShowZfreeListChain(zone, zfirst, zlimit)
349 print "Zone logging not enabled. Add 'zlog=<zone name>' to boot-args."
352 print "Zone logging enabled, but zone has not been initialized yet."
382 print "Zone logging enabled, but zone has not been initialized yet."
409 print "Zone logging not enabled. Add 'zlog=<zone name>' to boot-args."
412 print "Zone logging enabled, but zone has not been initialized yet."
440 refer to the given zone element.
443 When the kernel panics due to a corrupted zone element, get the
452 print "Zone logging not enabled. Add 'zlog=<zone name>' to boot-args."
455 print "Zone logging enabled, but zone has not been initialized yet."
747 """ Prints the zone leak detection stats