I'm wanting to generate output similar to the 'lslk' command (found on
Linux for example, and in Solaris too once upon a time I believe) using
mdb.

::lminfo is great, but it truncates the path name at the end.

I know you can walk the lock_graph and spit out the l_vnode that way,
but I'd like to generate something that includes all the information
from lminfo as well.

When I pipe the output of lock_graph to ::print lock_descriptor_t
however, I haven't found a way to format output or even print more than
one item at a time.  I'm quite new to mdb, so I'm not even sure if this
is possible -- from reading through the manual and a howto from
solarisinternals it doesn't sound like it.

My next thought is to generate a bunch of calls to mdb -k from the
shell and format everything together using awk, perl, or python.  Won't
be fast, will be kind of hacky, but probably will work.

Is there a better way to approach this?

Thanks!
Ray

Reply via email to