fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
pwithnall____ has quit [Quit: pwithnall____]
scox has joined #systemtap
tromey` has quit [Quit: ERC (IRC client for Emacs 26.0.50)]
baotiao has joined #systemtap
baotiao has quit [Read error: Connection reset by peer]
groleo has joined #systemtap
groleo has left #systemtap [#systemtap]
ravi has joined #systemtap
sanoj has joined #systemtap
orivej has joined #systemtap
hkshaw has joined #systemtap
mjw has joined #systemtap
orivej has quit [Read error: Connection reset by peer]
mjw has quit [Quit: Leaving]
sanoj has quit [Ping timeout: 246 seconds]
sanoj has joined #systemtap
gila has joined #systemtap
nkambo has quit [Ping timeout: 240 seconds]
sanoj has quit [Quit: Leaving]
sanoj has joined #systemtap
pwithnall__ has joined #systemtap
nkambo has joined #systemtap
pwithnall__ has quit [Client Quit]
pwithnall____ has joined #systemtap
orivej has joined #systemtap
scox has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 255 seconds]
orivej has joined #systemtap
roboman has joined #systemtap
<roboman>
Hello. I was trying to add a "probe procfs("test").read {" and I seem to be getting an error message about being unable to dereference a pointer of incomplete type in the function "_stp_mkdir_proc_module"(that is inside systemtap/runtime/procfs.c). Is there any header file I should be including? I'm on systemtap version 1.7.
<invano>
Hello everyone. I'm debugging a weird behavior and I just reached stapiu_mmap_found and the mmap_callback. At this point I can go to have a look at task_finder.c and task_finder2.c. May I ask you guys what is the difference between the two?
mjw has joined #systemtap
hkshaw has quit [Quit: Leaving.]
gromero_ has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
hpt has joined #systemtap
gila has joined #systemtap
hkshaw has joined #systemtap
orivej has quit [Ping timeout: 258 seconds]
ravi has quit [Quit: Leaving]
orivej has joined #systemtap
wcohen has quit [Ping timeout: 246 seconds]
roboman has quit [Ping timeout: 260 seconds]
mbenitez has joined #systemtap
<fche>
hi invano
<invano>
hi fche
<fche>
task_finder2.c is used on relatively modern kernels (3.5+ IIRC)
<fche>
task_finder.c is for older ones
<fche>
see the top part of task_finder.c for the selection algorithm
<invano>
yes at the end I started looking at task_finder2
<invano>
my problem is that uprobes in 1 lib are not found in any process in stapiu_probe_prehandler. apparently it's added in target->processes stapiu_change_plus and maybe removed somehow immediately after..and that's why my probe_handler is not triggered. so now I was going up to mmap and now task_finder2
<fche>
maybe the shlib file name is not a match? or is of a different version than the buildid found at stap translate time?
<fche>
I'd be surprised if a bug of such a fundamental nature existed in the runtime
<invano>
filename is a match. even better, if I do a staprun without -c (so system-wide) I can see the probes working perfectly over systemd.
<invano>
and apparently the probes are working only there
<invano>
they reach UPROBE_HANDLER_REMOVE in the probe_prehandler in other execs
<fche>
what is your stap script, and your invocation command line?
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<invano>
very simple
scox has joined #systemtap
<invano>
probe process("/opt/glibc/lib/libc-2.19.so").mark("memcmp") { /*a simple print over $$name*/}
<invano>
invoked as 'staprun -v mod.ko -c /a.out AAAAA'
<invano>
in the same stp file I also have 'probe process("/opt/glibc/lib/ld-2.19.so").mark("memcmp") { /*a simple print over $$name*/}'
<fche>
(isn't that the same thing?)
<invano>
ld and libc have basically the same memcmp function but the probes are two
<fche>
ah libc vs ld
<invano>
yes but one over ld and the other over libc
<fche>
ok, so systemwide it works, but -c ... doesn't ?
<invano>
debugging the kernel I see that with '-c' probe for ld is found correctly whereas probe for libc gets UPROBE_HANDLER_REMOVE *even if* it goes through stapiu_change_plus in a first moment
<invano>
if I go systemwide I see it working correctly over the systemd process
<fche>
though systemd shouldn't be loading /opt/glibc/... I'd assume
<invano>
sorry it's systemd-journal
<fche>
can you strace ./a.out for mmap etc. to see exactly which libraries it loads (& unloads!)
<fche>
sure, but I wouldn't expect to see /opt/glibc/ non-system copies of libc to be used by system copies of systemd/+journal/anything
<invano>
a.out just has a memcmp. already did strace and gdb work and it correctly resolve the right shlib
<invano>
(yeah that's because I was doing someexperiments and I put this custom libc systemwide)
gila has joined #systemtap
<invano>
from gdb I can also see the nop instr converted to break. and to me, at first impact, it seems that kernel/events/uprobes.c and arch/mips/kernel/uprobes.c is handling the stuff correctly
<invano>
I can put somewhere some printks taken during the execution of the staprun
<invano>
maybe it's easier to read the printks than explain here
<fche>
yeah probably - there's a little conditional-debug tracing widget in the runtime too
* fche
must head away a bit
wcohen has joined #systemtap
wcohen has quit [Remote host closed the connection]
<invano>
you can see the target process for the probe on ld is always found .e.g line 1152, but never found for the probe on libc e.g. ~line 1447
drsmith_away is now known as drsmith
hpt has quit [Quit: Lost terminal]
tromey has joined #systemtap
brolley has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
pwithnall____ has quit [Quit: pwithnall____]
pwithnall____ has joined #systemtap
nkambo has quit [Ping timeout: 240 seconds]
gila has joined #systemtap
nkambo has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mjw has quit [Quit: Leaving]
nkambo has quit [Ping timeout: 240 seconds]
irker763 has joined #systemtap
<irker763>
systemtap: dsmith systemtap.git:refs/heads/master * release-3.1-86-gda23dba / httpd/client.py httpd/main.cxx httpd/server.cxx httpd/server.h: The httpd server now support downloading the built module. http://tinyurl.com/y9tdkemk
gila has joined #systemtap
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…]
pwithnall____ has quit [Quit: pwithnall____]
pwithnall__ has joined #systemtap
pwithnall__ has quit [Client Quit]
<irker763>
systemtap: dsmith systemtap.git:refs/heads/master * release-3.1-87-g4fb34c4 / httpd/Makefile.am httpd/Makefile.in httpd/api.cxx httpd/api.h httpd/main.cxx httpd/server.cxx httpd/server.h: Performed some code rearranging in the httpd server code. http://tinyurl.com/y73oz8bo
hkshaw has quit [Ping timeout: 240 seconds]
gila has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
drsmith is now known as drsmith_away
drsmith_away is now known as drsmith
gila has joined #systemtap
<irker763>
systemtap: dsmith systemtap.git:refs/heads/master * release-3.1-88-ge34298d / httpd/README: Add httpd/README describing the web api. http://tinyurl.com/ybkwuy7q
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
gila has joined #systemtap
orivej has quit [Ping timeout: 255 seconds]
wcohen has quit [Ping timeout: 240 seconds]
mbenitez has quit [Quit: Leaving]
pwithnall__ has joined #systemtap
sanoj has quit [Remote host closed the connection]