Shiv, S h i v wrote: > DTraceToolkit has a dtrace script (Proc/pidpersec.d) that refers to a > variable mpid as below > > profile:::tick-1sec > { > printf("%-22Y %8d %6d\n", walltimestamp, `mpid, pids); > pids = 0; > } > > Where is `mpid getting picked from (it isn't declared anywhere else)? > What does the character ` in `mpid signify? > mpid is a kernel variable which (I think) indicates the last pid created on that box. So, `mpid refers to that kernel variable. That (`) is the way to refer to a kernel variable.
- Sanjeev. > I do not see any reference to this variable in the dtrace manual/user-guide. > > -Shiv > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss@opensolaris.org > _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org