adb macros for 4.2 kernel debugging

Joe Kelsey joe at fluke.UUCP
Thu Aug 23 09:01:21 AEST 1984


Here are some adb macros I came up with while chasing through some
recent crash dumps.  They are for looking at various mba structures
(mbadev and mbahd) and also a correct one for looking at fs structures
(the filsys macro doesn't work!)  Enjoy!

/usr/lib/adb/mbadev:
./"driver"16t"unit"8t"mbanum"8t"drive"8t"dk"8t"alive"8t"type"nX6x
+/"mi_tab"n"flags"nXn"forw"16t"back"16t"av_forw"16t"av_back"n4X"bcount"16t"bufsize"16t"error"8t"major"8t"minor"nDDdbbn"addr"16t"blkno"16t"resid"16t"proc"nXDDX"iodone"16t"pfcent"npXn
+/"forw"16t"mba"16t"drv"16t"hd"n4Xn

/usr/lib/adb/mbahd:
./"active"8t"ndrive"8t"mba"16t"physmba"n2x2Xn"mbip"n8Xn"actf"16t"actl"n2X
+,<9-1$<mbahd

/usr/lib/adb/fs:
./"link"16t"rlink"n2Xn"sblkno"16t"cblkno"16t"iblkno"16t"dblkno"n4D"cgoffset"16t"cgmask"nDX
+/"time"16tYn
+/"size"16t"dsize"16t"ncg"n3Dn"bsize"16t"fsize"16t"frag"n3Dn"minfree"16t"rotdelay"16t"rps"n3D
+/"bmask"16t"fmask"16t"bshift"16t"fshift"n2X2Dn"maxcontig"16t"maxbpg"n2Dn"fragshift"16t"fsbtodb"16t"sbsize"n3D
+/"csmask"16t"csshift"nXDn"nindir"16t"inopb"16t"nspf"n3D24+
+/"csaddr"16t"cssize"16t"cgsize"n3Dn"ntrak"16t"nsect"16t"spc"n3D
+/"ncyl"16t"cpg"16t"ipg"16t"fpg"n4D
+/"cstotal"n"ndir"16t"nbfree"16t"nifree"16t"nffree"n4D
+/"fmod"8t"clean"8t"ronly"8t"flags"n4bn"fsmnt"n512c
+/"cgrotor"nDn"csp"n32Xn"cpc"nDn"postbl"n256xn
+/"magic"nX



More information about the Comp.unix.wizards mailing list