X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/4d15aeb193b2c68f1d38666c317f8d3734f5f083..5ba3f43ea354af8ad55bea84372a2bc834d8757c:/tools/lldbmacros/ntstat.py diff --git a/tools/lldbmacros/ntstat.py b/tools/lldbmacros/ntstat.py new file mode 100755 index 000000000..9cbc378d2 --- /dev/null +++ b/tools/lldbmacros/ntstat.py @@ -0,0 +1,175 @@ +""" Please make sure you read the README COMPLETELY BEFORE reading anything below. + It is very critical that you read coding guidelines in Section E in README file. +""" + +from xnu import * +from utils import * +from string import * +from socket import * + +import xnudefines +from netdefines import * +from routedefines import * + +def ShowNstatTUShadow(inshadow): + """ Display summary for an nstat_tu_shadow struct + params: + inshadow : cvalue object which points to 'struct nstat_tu_shadow *' + """ + shad = Cast(inshadow, 'struct nstat_tu_shadow *') + procdetails = shad.shad_procdetails + out_string = "" + if shad : + format_string = "nstat_tu_shadow {0: