You can use ::nm -f obj,name For example:
> ::nm -f obj,name ! grep dsl_prop_set_sync zfs |dsl_prop_set_sync See ::help nm for all nm options. alex. On 03/19/09 09:12, Sambit Nayak wrote: > Hi all, > > Say I have a symbol name, and I want to find out which kernel module loaded > in memory has that symbol. > > Whats the best way to achieve that? > > I can do mdb -k, and grep for the symbol in ::nm output, but that does not > tell me which kernel module has the symbol. I am not sure, but there might a > way to use the address of the symbol and map it to the kernel module. How to > do that? Is there a better way? > > Thanks & Regards, > Sambit