fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
_whitelogger has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
hpt has joined #systemtap
spacewander has joined #systemtap
orivej has joined #systemtap
orivej has quit [Ping timeout: 268 seconds]
slowfranklin has joined #systemtap
orivej has joined #systemtap
_whitelogger has joined #systemtap
yustin has joined #systemtap
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #systemtap
yustin has quit [Ping timeout: 246 seconds]
hpt has quit [Ping timeout: 245 seconds]
scox_ has quit [Ping timeout: 240 seconds]
wcohen has quit [Ping timeout: 246 seconds]
mjw has joined #systemtap
spacewander has quit [Quit: Leaving]
yustin has joined #systemtap
scox_ has joined #systemtap
wcohen has joined #systemtap
misha354 has joined #systemtap
tromey has joined #systemtap
yustin has quit [Ping timeout: 240 seconds]
yustin has joined #systemtap
yustin has quit [Ping timeout: 245 seconds]
misha354 has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
misha354 has joined #systemtap
misha354_ has joined #systemtap
<misha354_> hi, was wondering if anyone here has used perf_events for tasks similar to systemtap. I'm on a systemtap that doesn't have systemtap, trying to figure out why an application is blocking. I've generated an off-cpu kernel flame graph, but the stack traces end and glibc low level thread lock functions, without links to the actual application code
<misha354_> *on a system*
<fche> can you get deeper backtraces?
<misha354_> I'm not sure how do that
<misha354_> perf record -e sched:sched_stat_sleep -e sched:sched_switch -e sched:sched_process_exit -a -g --call-graph dwarf -o perf.data.raw --pid $(pgrep named | head -n 1) -- sleep 10
<misha354_> here is what I am using to generate the backtraces
<fche> might need to bump up the stack-size that's being recorded, or might try the --call-graph=lbr mode
<fche> (btw that svg gives me just a single stop icon kind of thing)
<misha354_> how about this?
<misha354_> it's surprisingly hard to find free hosting for svg images
<fche> it's just a file :) put it anywhere
<fche> yeah not sure why you're seeing only that little info. what tool created the svg?
<misha354_> flamegraph.pl from https://github.com/brendangregg/FlameGraph
<misha354_> here is my script that generated it
<fche> so I wonder if that stack-collapse widget may be omitting certain levels
<fche> am not familiar with this widgetry TBH - too many parts.
<fche> Hm, I'm surprised we haven't created a stap script that generates such svg directly. (I understand that wouldn't help you on that particular machine.)
<misha354_> Thanks for your help!
<misha354_> It appears to be a perf issue. Here is a sample stack trace before the widget
<misha354_> I'm going to explore raising the stack depth of the perf record as you suggested
<fche> yeah, or using the lbr data
<fche> it is also possible that the userspace app that calls into libpthread has been stripped of its unwinding data, so perf couldn't go much farther back
<fche> worth a look
<misha354_> the main limitation to using systemtrace on that machine is that I can't install debug symbols for the kernel
<misha354_> is there a way around that limitation?
<misha354_> *to using systemtap*
<misha354_> Also, FWIW, other stack traces from the userland application are complete. It's only these libpthread that don't go down into userland
<misha354_> Anyway, I appreciate your time! Thank you
orivej has quit [Ping timeout: 245 seconds]
<fche> kernel debuginfo is not required just to collect userspace backtraces
<fche> or to do many other systemtappy things
<fche> and indeed you don't have to process debuginfo on the same machine as where you want to run the stap script
<fche> (see [man stap] -p4, stap --remote=HOST, etc.)
<misha354_> Thank you, I will look into those options, and probably be back
<misha354_> :)
<fche> okie dokie
orivej has joined #systemtap
KDr2 has quit [Quit: Connection closed for inactivity]
slowfranklin has quit [Quit: slowfranklin]
misha354 has quit [Ping timeout: 256 seconds]
yustin has joined #systemtap
slowfranklin has joined #systemtap
tonyj has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
tonyj has quit [Client Quit]
tonyj has joined #systemtap
tonyj has quit [Quit: leaving]
tonyj has joined #systemtap
tonyj has quit [Quit: leaving]
tonyj has joined #systemtap
misha354_ has quit [Quit: Page closed]
tonyj has quit [Quit: leaving]
misha354 has joined #systemtap
mjw has quit [Quit: Leaving]
scox_ has quit [Ping timeout: 246 seconds]
misha354 has quit [Ping timeout: 256 seconds]
tromey has quit [Quit: ERC (IRC client for Emacs 26.1.90)]
wcohen has quit [Ping timeout: 250 seconds]
tonyj has joined #systemtap
yustin has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej_ has joined #systemtap