]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/lldbmacros/zonetriage.py
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tools / lldbmacros / zonetriage.py
index ef6f52dc09c278112533e84775a4ee84c38f4d78..2249533d715d4885a9303ebe0e2effa768ae21fe 100755 (executable)
@@ -82,7 +82,7 @@ def ZoneTriageMemoryLeak(cmd_args=None):
     print "(lldb) zstack_showzonesbeinglogged\n%s\n" % lldb_run_command("zstack_showzonesbeinglogged")
     for zval in kern.zones:
         if zval.zlog_btlog:
-            print '%s:' % zval.zone_name
+            print '%s:' % zval.z_name
             print "(lldb) zstack_findtop -N 5 0x%lx" % zval.zlog_btlog
             print lldb_run_command("zstack_findtop -N 5 0x%lx" % zval.zlog_btlog)
             print "(lldb) zstack_findleak 0x%lx" % zval.zlog_btlog
@@ -118,7 +118,7 @@ def FindZoneBTLog(zone):
     global kern
     for zval in kern.zones:
         if zval.zlog_btlog:
-            if zone == "%s" % zval.zone_name:
+            if zone == "%s" % zval.z_name:
                 return "0x%lx" % zval.zlog_btlog
     return None
 # EndMacro: zonetriage, zonetriage_freedelement, zonetriage_memoryleak