This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]