snow wrote:
Thanks.But I don't know how to start kmdb


This is much more risky than the alternatives
(dtrace, a printf in your module, deducing the execution
of your module because it must have been written to do
something useful).

man kmdb

will provide the details.

the summary is:

as root utter:
mdb -K
(you will get the kmdb prompt)
your_module_symbol:b
:c

you now have a breakpoint set at your_module_symbol.
When the instruction at that that address is executed,
kmdb will be re-entered with a message indicating that
you hit the breakpoint.

You can remove the breakpoint by uttering

your_module_symbol:d
:c

which will remove the breakpoint and continue.

-sarito


This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to