fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
hpt has joined #systemtap
jistone has joined #systemtap
nkambo__ has joined #systemtap
nkambo_ has quit [Ping timeout: 258 seconds]
lkthomas has joined #systemtap
<lkthomas> folks, is there have an example to see why a program is consuming all the CPU cycles ?
<lkthomas> or in specific, is it possible to find out which function call causing that consumption ?
naveen_ has joined #systemtap
naveen_ has quit [Quit: WeeChat 1.9]
sanoj has joined #systemtap
nkambo_ has joined #systemtap
nkambo__ has quit [Ping timeout: 240 seconds]
gila has joined #systemtap
naveen_ has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
slowfranklin has joined #systemtap
gila has joined #systemtap
mjw has joined #systemtap
naveen_ has quit [Quit: WeeChat 1.9]
scox has quit [Ping timeout: 260 seconds]
hpt has quit [Quit: Lost terminal]
naveen_ has joined #systemtap
naveen_ has quit [Quit: WeeChat 1.9]
<sj0rz> i'm trying to log the return value of execve, but "probe nd_syscall.*.return" only hits for execve when it failed and on "probe nd_syscall.*" the return value is not set yet
<sj0rz> if i hook both then every execve call will produce two log entries
<sj0rz> and i can never know if execve is going to return or not in the "probe nd_syscall.*"
<sj0rz> any advice?
<sj0rz> https://sourceware.org/systemtap/examples/process/strace.stp this currently only logs failed execve calls
<sj0rz> it does not "see" successful ones at all since execve is not in the syscalls_nonreturn list, but adding it there would produce two entries for every execve
<sj0rz> one containing only the retval, since it has then already run "delete thread_argstr[tid()]"
<sj0rz> *produce two entries for every failed execve
<fche> lkthomas, yeah, the pf* series of scripts can help with that:
<fche> it's based on time-based sampling of backtraces
<fche> execve doesn't return when it succeeds - that's a definition of its operation
<fche> just like exit doesn't return
<sj0rz> i know that
<sj0rz> i just meant that the strace.stp script currently does not log execve at all when it succeeds
<sj0rz> only when it fails
<sj0rz> could've worded that more clearly ;p
<sj0rz> i want to fix it, but i can't come up with a better way that logging the return value in a separate log entry
<fche> aha. that'd be a script bug
<fche> yeah I'd put execve into _nonreturn
<fche> or make a new _mayreturn group
<fche> just _nonreturn alone should do actually
<sj0rz> indeed
<sj0rz> this is what a failed call looks like then:
<sj0rz> Mon Jul 24 11:15:52 2017.165488 python@b773ecf9[823] execve("/usr/bin/sh", ["sh", "-c", "/tmp/execve.sh"], ["LANGUAGE=en_US:en", "HOME=/root", "LOGNAME=root", "PATH=/usr/bin:/bin", "LANG=en_US.UTF-8", "SHELL=/bin/sh", "PWD=/root"]) =
<sj0rz> Thu Jan 1 00:00:00 1970.000000 python@b773ecf9[823] execve() = -2 (ENOENT)
<sj0rz> and success looks like:
<sj0rz> Mon Jul 24 11:15:52 2017.165582 python@b773ecf9[823] execve("/bin/sh", ["sh", "-c", "/tmp/execve.sh"], ["LANGUAGE=en_US:en", "HOME=/root", "LOGNAME=root", "PATH=/usr/bin:/bin", "LANG=en_US.UTF-8", "SHELL=/bin/sh", "PWD=/root"]) =
<sj0rz> i guess i could fix report() to check if the thread_argstr[pid] has already been deleted and then print only the return value, and a newline otherwise
<fche> the thing that looks odd in that report to me is the equal sign for a nonreturn syscall
<fche> maybe report() could be sensitive to nonreturn-ness; that could be enough
<sj0rz> fair point
scox has joined #systemtap
gromero has joined #systemtap
sanoj has quit [Ping timeout: 240 seconds]
drsmith_away is now known as drsmith
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
brolley has joined #systemtap
sanoj has joined #systemtap
naveen has joined #systemtap
naveen has quit [Ping timeout: 276 seconds]
naveen has joined #systemtap
sanoj has quit [Ping timeout: 240 seconds]
irker306 has joined #systemtap
<irker306> systemtap: fche systemtap.git:refs/heads/rth/merge * release-3.1-186-g7cc81e9 / runtime/stack.c tapset/linux/nfs.stp: fix _stp_lookup_bad_addr arg-3 type http://tinyurl.com/yajehcqt
<irker306> systemtap: fche systemtap.git:refs/heads/rth/merge * release-3.1-187-g5d08eac / elaborate.cxx tapsets.cxx: autocast support: bring back early manual functionall->synth-decl referent http://tinyurl.com/y9ge5ug5
<irker306> systemtap: fche systemtap.git:refs/heads/rth/merge * release-3.1-188-g657c517 / runtime/stack.c tapset/linux/nfs.stp: Revert "fix _stp_lookup_bad_addr arg-3 type" http://tinyurl.com/y76wa67r
<irker306> systemtap: amerey systemtap.git:refs/heads/master * release-3.1-142-g31acf77 / testsuite/systemtap.examples/general/eventcount.meta testsuite/systemtap.examples/general/eventcount.txt: examples eventcount.meta/.txt: replace "eventcount_interactive" with "eventcount". http://tinyurl.com/y9vgzzdm
CME has quit [Ping timeout: 258 seconds]
CME has joined #systemtap
wcohen has quit [Ping timeout: 255 seconds]
naveen_ has joined #systemtap
naveen has quit [Ping timeout: 246 seconds]
drsmith is now known as drsmith_away
drsmith_away is now known as drsmith
drsmith is now known as drsmith_away
naveen_ has quit [Ping timeout: 255 seconds]
drsmith_away is now known as drsmith
wcohen has joined #systemtap
naveen has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tromey has joined #systemtap
gila has joined #systemtap
slowfranklin has joined #systemtap
mjw has quit [Quit: Leaving]
slowfranklin has quit [Quit: slowfranklin]
naveen has quit [Quit: WeeChat 1.9]
slowfranklin has joined #systemtap
<irker306> systemtap: fche systemtap.git:refs/heads/rth/bpf * release-3.1-186-g7cc81e9 / runtime/stack.c tapset/linux/nfs.stp: fix _stp_lookup_bad_addr arg-3 type http://tinyurl.com/yajehcqt
<irker306> systemtap: fche systemtap.git:refs/heads/rth/bpf * release-3.1-187-g5d08eac / elaborate.cxx tapsets.cxx: autocast support: bring back early manual functionall->synth-decl referent http://tinyurl.com/y9ge5ug5
<irker306> systemtap: fche systemtap.git:refs/heads/rth/bpf * release-3.1-188-g657c517 / runtime/stack.c tapset/linux/nfs.stp: Revert "fix _stp_lookup_bad_addr arg-3 type" http://tinyurl.com/y76wa67r
<irker306> systemtap: rth systemtap.git:refs/heads/rth/bpf * release-3.1-189-gcb5415f / dwflpp.cxx: Handle implicit_pointer within translate_base_ref http://tinyurl.com/y6vl9ly6
<irker306> systemtap: rth systemtap.git:refs/heads/rth/bpf * release-3.1-190-gbfa5273 / loc2stap.cxx: Handle implicit_pointer within translate_array http://tinyurl.com/yag89yh2
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
scox has quit [Ping timeout: 240 seconds]
brolley has left #systemtap [#systemtap]
wcohen has quit [Remote host closed the connection]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
drsmith is now known as drsmith_away
gila has joined #systemtap
mbenitez has quit [Quit: Leaving]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
gila has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
scox has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 26.0.50)]
wcohen has joined #systemtap