X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/813fb2f63a553c957e917ede5f119b021d6ce391..0a7de7458d150b5d4dffc935ba399be265ef0a1a:/tools/lldbmacros/ktrace.py diff --git a/tools/lldbmacros/ktrace.py b/tools/lldbmacros/ktrace.py old mode 100644 new mode 100755 index 05f538e3d..ac6ddbe34 --- a/tools/lldbmacros/ktrace.py +++ b/tools/lldbmacros/ktrace.py @@ -72,7 +72,7 @@ def GetKdebugTypefilter(typefilter): if print_class: subclasses[j] = element - # if any of the bits were set in a class, print the entire class + ## if any of the bits were set in a class, print the entire class if print_class: out_str += '{:<20s}'.format(GetKdebugClassName(i)) for element in subclasses: @@ -119,7 +119,7 @@ def GetKdebugStatus(): kdebug_flags = kern.globals.kd_ctrl_page.kdebug_flags out += 'kdebug flags: {}\n'.format(xnudefines.GetStateString(xnudefines.kdebug_flags_strings, kdebug_flags)) events = kern.globals.nkdbufs - buf_mb = events * (64 if kern.arch == 'x86_64' or kern.arch == 'arm64' else 32) / 1000000 + buf_mb = events * (64 if kern.arch == 'x86_64' or kern.arch.startswith('arm64') else 32) / 1000000 out += 'events allocated: {: