This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
question on wait4time.stp sample code
- From: Ivan Novick <novickivan at gmail dot com>
- To: systemtap at sources dot redhat dot com
- Date: Mon, 11 Jan 2010 15:34:22 -0800
- Subject: question on wait4time.stp sample code
http://sourceware.org/systemtap/examples/process/wait4time.stp
Hi,
I have a few questions regarding the above linked sample code. Let me
ask the most basic question.
In this probe:
probe syscall.wait4 {
t = gettimeofday_us(); p = pid()
entry_wait4[p] = t
wait4_pid[p]=pid
}
There is a reference to pid on the last line which is not a function
call and not a global variable. What is pid actually referring to in
this case?
Cheers,
Ivan