fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
sapatel has joined #systemtap
sapatel has quit [Client Quit]
sapatel has joined #systemtap
gilfoyle has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 268 seconds]
hpt has joined #systemtap
sapatel has quit [Remote host closed the connection]
<irker772> systemtap: fche systemtap.git:refs/heads/master * release-4.1-68-g49fa913 / buildrun.cxx runtime/linux/autoconf-stack-trace-save-regs.c runtime/stack.c: PR24904: support linux 5.2's stacktrace.c changes http://tinyurl.com/yxbwcgr3
orivej has joined #systemtap
<irker772> systemtap: fche systemtap.git:refs/heads/master * release-4.1-69-gf4f0da6 / runtime/stack.c: PR24904: support linux 5.2's stacktrace.c changes with -DDEBUG_UNWIND too http://tinyurl.com/yykvx2d2
orivej has quit [Ping timeout: 258 seconds]
sscox has joined #systemtap
irker772 has quit [Quit: transmission timeout]
orivej has joined #systemtap
yogananth has joined #systemtap
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 248 seconds]
gromero has quit [Ping timeout: 252 seconds]
gromero has joined #systemtap
orivej has joined #systemtap
orivej has quit [Ping timeout: 248 seconds]
gilfoyle has joined #systemtap
hpt has quit [Ping timeout: 272 seconds]
gilfoyle has quit [Read error: Connection reset by peer]
orivej has joined #systemtap
gilfoyle has joined #systemtap
mjw has joined #systemtap
<gilfoyle> repeating the question: is it possible to identify if a given file descriptor is a socket or some other kind within systemtap? say, a write() syscall can be called with socket, file, device, etc. How could I identify the type of FD passed in?
sscox has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #systemtap
wcohen has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 248 seconds]
<fche> gilfoyle, not as a general capability, but the pfiles.stp sample script makes kernel calls to determine
<fche> stap -i
<gilfoyle> cool :) thank you - is this pfiles.stp included in systemtap?
<fche> sample descriptors
<fche> i.e., try the interactive mode to navigate between samples - or use the web site
<fche> franks2, hey, no progress on that from me
<fche> but have you tried attaching a debugger to the php processes and intercept those same probe points?
<fche> (sorry don't recall if I advised the same already)
<franks2> Yes I did. The debugger finds it. However Im not familiar enougt with gdb to get the info from it
<gilfoyle> given centos/rhel 7 is probably lagging behind what systemtap's master has to offer, does anyone know how to get the documentation that matches the versions supplied with, e.g CentOS 7.4?
wcohen has joined #systemtap
sscox has joined #systemtap
<fche> franks2, right, does gdb -stop-, with those breakpoints enabled?
<fche> i.e., are they ever hit?
orivej has joined #systemtap
<fche> gilfoyle, documentation pdfs etc. are included within the systemtap rpms
<fche> /usr/share/doc/systemtap* ; the man pages, examples
<fche> is there something you're not finding?
tromey has joined #systemtap
<gilfoyle> fche: was looking for a more comprehensive "getting started" sort of thing. I've been using on-and-off and often gleaning from several scripts I wrote along the years to get something out but then I never fully got to grips with the language and tools ecosystem
<fche> gilfoyle, yeah, there is a lot to know / learn just by diving in and gradually learning the lot
<fche> but yeah there is a systemtap tutorial, that's old but IMHO still good at getting all the concepts across
<fche> and a longer 'beginner's guide' pdf that's included in the rpms
gregwork has quit [Ping timeout: 250 seconds]
Amy1 has quit [Ping timeout: 250 seconds]
Amy1 has joined #systemtap
gregwork has joined #systemtap
orivej has quit [Ping timeout: 244 seconds]
yogananth has quit [Quit: Leaving]
sapatel has joined #systemtap
sapatel_ has joined #systemtap
sapatel has quit [Ping timeout: 258 seconds]
lindi- has quit [Ping timeout: 250 seconds]
lindi- has joined #systemtap
<gilfoyle> thanks fche:)
sapatel__ has joined #systemtap
sapatel_ has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
gilfoyle has quit [Ping timeout: 248 seconds]
gilfoyle has joined #systemtap
gilfoyle has quit [Read error: Connection reset by peer]
khaled has joined #systemtap
gilfoyle has joined #systemtap
gilfoyle has quit [Ping timeout: 245 seconds]
gilfoyle has joined #systemtap
gilfoyle has quit [Read error: Connection reset by peer]
wcohen has quit [Ping timeout: 248 seconds]
lindi- has quit [Ping timeout: 250 seconds]
lindi- has joined #systemtap
khaled has quit [Quit: Konversation terminated!]
modem_ has joined #systemtap
<modem_> hey
<modem_> i am trying to profile a single kernel function and subroutines
<modem_> i am not sure how to identify which part is taking so many time
<modem_> does a systemtap script already exist ? I had poor result with perf, it seems the most time consuming things are the perf hook itself
<modem_> i might be doing something wront with perf
<modem_> but i am considering in using systemtap now
<modem_> thanks you
sscox has quit [Ping timeout: 246 seconds]
<modem_> il etait cool alladin
<modem_> aladin*
<fche> modem_, there are a couple of possible approaches
<fche> profiling a la random time sampling, and reversing PC addresses to source-line numbers -- that's one possibility
<fche> or actively probing each statement within a function, and then looking at relative hit counts as a proxy for time
<fche> the former case should interfere less, but get a random sampling
<fche> the latter case should interfere a ton, but get accurate counts
tromey has quit [Quit: ERC (IRC client for Emacs 26.1)]
<modem_> fche: thanks a lot
<modem_> fche: is it possible to indicate probing each subroutines ?
<fche> there are a couple of ways
<fche> the most direct is to inspect the source code and put statement probes into each of the called subroutines too
<fche> probe function("foo").statement("*@*:*") {} kind of thing
wcohen has joined #systemtap
mjw has quit [Quit: Leaving]
zodbot has quit [Read error: Connection reset by peer]
zodbot has joined #systemtap
sscox has joined #systemtap
orivej has quit [Ping timeout: 276 seconds]