This is a module for MDB that modifies the behavior of the ::lminfo command to not truncate the locked vnode's pathname during output. In addition, we also add three columns for whence, start and len for those interested in seeing range locking statistics when you have multiple occurrences of the same vnode in your lock table.
To build, you'll need to to have the SUNWmdbdm package installed, along with a C compiler (or one should be available in your path). You'll also need to have the mdb_ks.h header file from the MDB sources which you can pull from OpenSolaris via Mercury (hg).
$ cd ~/src $ cp -r /usr/demo/mdb .
$ cd ~/src/mdb/common $ cp ~/lminfo2.c . $ cp ~/mdb_ks.h .$ cd ..
MODULES = example1.so example2.so lminfo2.so
$ make
# mdb -k > ::load /path/to/your/mdb/sparcv9/lminfo2.so > ::lminfo2
Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
lminfo2.c | 19-Jul-2011 20:03 | 3.1K | ||