summaryrefslogtreecommitdiffstats
path: root/sys/modules/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-04-10 04:04:16 +0000
committergrog <grog@FreeBSD.org>1999-04-10 04:04:16 +0000
commitc3355422b5130c0601e21eadccfba52cf5ba0b19 (patch)
tree06d98bce018e557a42811350440e9b10126876f9 /sys/modules/vinum
parentbc183ba3bb4129c938cf017470cf5f741af13f62 (diff)
downloadFreeBSD-src-c3355422b5130c0601e21eadccfba52cf5ba0b19.zip
FreeBSD-src-c3355422b5130c0601e21eadccfba52cf5ba0b19.tar.gz
Add kldstat macro, which basically does the same thing as kldstat(8)
Diffstat (limited to 'sys/modules/vinum')
-rw-r--r--sys/modules/vinum/.gdbinit.kernel16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/modules/vinum/.gdbinit.kernel b/sys/modules/vinum/.gdbinit.kernel
index 3dbda9e..1502d9f 100644
--- a/sys/modules/vinum/.gdbinit.kernel
+++ b/sys/modules/vinum/.gdbinit.kernel
@@ -611,3 +611,19 @@ end
define y
echo Check your .gdbinit, it contains a y command\n
end
+define kldstat
+ set $file = files.tqh_first
+ printf "Id Refs Address Size Name\n"
+ while ($file != 0)
+ printf "%2d %4d 0x%8x %8x %s\n", \
+ $file->id, \
+ $file->refs, \
+ $file->address, \
+ $file->size, \
+ $file->filename
+ set $file = $file->link.tqe_next
+ end
+end
+document kldstat
+Equivalent of the kldstat(9) command, without options.
+end
OpenPOWER on IntegriCloud