> On Sun, Jan 28, 2007 at 05:21:46AM -0800, max at bruningsystems.com wrote:
> 
> > I want to be able to use ::print some_type_in_kernel with the raw disk 
> > as a target. Has anyone already done this, or do I need to write code? 
> 
> In an ideal world, you could do:
> 
> # mdb /dev/dsk/c1t1d0s0
> > ::load -g amd64/mdb_ks.so
> > ::load -g amd64/ufs.so
> > ::print DMOD`ufs`ufs_owner_type
> 
> But the DMOD syntax is only supported by kmdb, and the rawfile target doesn't
> implement ->t_name_to_ctf(). If you want to play around, you could try looking
> at the DMOD code hanging off kmt_name_to_ctf(), and implement it in
> mdb_ctf.c:name_to_type() (before we call mdb_tgt_name_to_ctf()). Not positive
> that'll work, but it's worth a go.
> 
> regards,
> john

Yes, the model should be that in order to use it with the rawfile target
you have to manually load some CTF container, either a stand-alone file
or from an ELF file like the kernel or whatever.  Fundamentally this should
be a common service at the target layer, since even when you are using
proc or whatever you may want to manually load something to supplement
some missing types.

-Mike

-- 
Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/

Reply via email to