Lines Matching refs:this
8 * Version 2.0 (the 'License'). You may not use this file except in
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
36 * Permission to use, copy, modify and distribute this software and its
38 * notice and this permission notice appear in all copies of the
46 * Carnegie Mellon requests users of this software to return to
321 * When enabled, this code keeps a log to track allocations to a particular zone that have not
322 * yet been freed. Examining this log will reveal the source of a zone leak. The log is allocated
333 * is most likely the problem zone, so set zlog in boot-args to this zone name, reboot and re-run the test. The
334 * next time it panics with this message, examine the log using the kgmacros zstack, findoldest and countpcs.
355 * The number of records in the log is configurable via the zrecs parameter in boot-args. Set this to
359 * records since going much larger than this tends to make the system unresponsive and unbootable on small
404 * Decide if we want to log this zone by doing a string compare between a zone name and the name
445 * Test if we want to log this zalloc/zfree event. We log if this is the zone we're interested in and
560 * Check if we should be logging this zone. If so, remember the zone pointer.
580 * We got the memory for the log. Zero it out since the code needs this to identify unused records.
581 * At this point, everything is set up and we're ready to start logging this zone.
655 * lock a complex lock does not help in this
659 * threads might try to do this at once, don't
877 * If zone logging is turned on and this is the zone we're tracking, grab a backtrace.
899 * Someone is allocating memory for this zone.
1028 * See if we should be logging allocations in this zone. Logging is rarely done except when a leak is
1029 * suspected, so this code rarely executes. We need to do this code while still holding the zone lock
1036 * Look for a place to record this new allocation. We implement two different logging strategies
1042 * element can be inspected. So in this case, we treat the log as a circular buffer and overwrite the
1074 * Save a record of this allocation
1180 /* Keep this FALSE by default. Large memory machine run orders of magnitude
1199 * If zone logging is turned on and this is the zone we're tracking, grab a backtrace.
1229 * See if we're doing logging on this zone. There are two styles of logging used depending on
1239 * We're logging to catch a corruption. Add a record of this zfree operation
1264 * We're logging to catch a leak. Remove any record we might have for this
1302 vm_offset_t this;
1306 for (this = zone->free_elements;
1307 this != 0;
1308 this = * (vm_offset_t *) this)
1309 if (!pmap_kernel_va(this) || this == elem)