Thank seanmcg and dmick very much!
By the former poor research, I know the whole concept about Dtrace . The
Dtrace can trace the important entries (enter & exit ) for functions and some
struct informations.
About the sysylog.conf as dmick talked , I have some puzzles to do
actions on facility.level pairs .
From some material , the facility field contains 16 values(kern . user.
mail . daemon. auth . syslog. lpr . cron . local0-7 ). My kernal module named
vhba is belong to kern or local0-7 facility ?
The other problem about level occurs,If vhba module's facility belongs to
the kern. In Solaris kernal, we use cmn_err() to record debug messages to
/var/adm/message , the cmn_err() restrict the level's scope.
After study the cmm_err() implement ,we maybe can use cprintf() to instead the
cmn_err() which cmn_err() also uses. Is that right?
if can i use the vop_create() to create logfile and vop_write() to write
msgbuf to the logfile .
thanks!
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code