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]

Re: Another Newbie question about measuring time in a sys call


David A Sperry ??:


I'm guessing the syscall tapsets may have changed and the associative array
may be getting confused between a call and it's return (lseek vs
lseek.return)


I greped in /usr/local/share/systemtap/tapsets/syscall.stp, and found for the return of syscalls, in some places, it set name to syscallname, while in other places it set name to syscall.return, e.g.:


probe kernel.syscall.chdir.return =
   kernel.function("sys_chdir").return {
      name = "chdir.return"
}

probe syscall.accept.return = kernel.function("sys_accept").return {
  name = "accept"
  returnp = 1 /*seem to use returnp=1 to mark this as a return probe*/
}

so we need to make the name consistent.


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