stpd kernel event filtering
Mao, Bibo
bibo.mao@intel.com
Mon Apr 3 09:40:00 GMT 2006
Sometimes when tracing kernel system call like sys_read()/sys_write(),
user maybe wants to filter kernel events generated by stapd. So in
tapset one function need be added:
function stpd:long () %{
THIS->__retvalue = _stp_pid;
%}
And in the script comparison sentence need be hard-code in the script
If (pid() != stpd())
.......
I do not know whether there should be one additional option in stap. If
this option is on, all probepoint related with stpd will be discarded;
else user will get all real raw data including stpd process.
bibo,mao
More information about the Systemtap
mailing list