fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
wyang123 has joined #systemtap
mjw has joined #systemtap
sscox has quit [Ping timeout: 260 seconds]
wyang123 has quit [Quit: wyang123]
pwithnall has joined #systemtap
wyang123 has joined #systemtap
sscox has joined #systemtap
wyang123 has quit [Ping timeout: 268 seconds]
wyang123 has joined #systemtap
brolley has joined #systemtap
wyang123 has quit [Quit: wyang123]
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #systemtap
lollipopman has joined #systemtap
<lollipopman> I am trying to add a probe on syscall.wait4 an inspect the rusage_uaddr struct
<lollipopman> but the value of rusage_uaddr is always 0
<lollipopman> anybody know why?
<fche> lollipopman, hm good question
<fche> is your userspace program passing a non-null pointer to wait4() ?
<lollipopman> well I kicked off an explicit `time sleep 10` which uses rusage, but it was still 0 in the systemtap output
<fche> sudo stap -e 'probe syscall.wait4 { println(execname(), " ", rusage_uaddr) }' -c '/bin/time sleep 1'
<fche> time 140727935699176
<fche> note that the rusage will only be filled in after wait4.return
<lollipopman> awesome that worked @fche, looks like the problem was using bash's builtin time, which evidently does not use rusage
<lollipopman> thanks for the help, very much appreciated!
<fche> np
drsmith has quit [Quit: ZNC 1.6.5 - http://znc.in]
drsmith has joined #systemtap
drsmith has quit [Quit: ZNC 1.6.6 - http://znc.in]
drsmith has joined #systemtap
sscox has quit [Ping timeout: 240 seconds]
brolley has left #systemtap [#systemtap]
pwithnall has quit [Ping timeout: 252 seconds]
lollipopman has quit [Ping timeout: 256 seconds]