fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
scox_ has joined #systemtap
hpt has joined #systemtap
gmg has quit [Remote host closed the connection]
sanoj has joined #systemtap
nkambo has joined #systemtap
hkshaw has joined #systemtap
sona has joined #systemtap
nkambo has quit [Ping timeout: 252 seconds]
nkambo has joined #systemtap
<introom> printf("caller:%s", caller()) gives "caller:0x0 0x0"
<introom> what reason could it be ?
<introom> I don't bet all the callers are inline.
mjw has joined #systemtap
sona has quit [Ping timeout: 240 seconds]
sanoj has quit [Ping timeout: 260 seconds]
sanoj has joined #systemtap
pwithnall____ has joined #systemtap
sona has joined #systemtap
sona has quit [Changing host]
sona has joined #systemtap
sona has quit [Ping timeout: 268 seconds]
sona has joined #systemtap
hpt has quit [Quit: Lost terminal]
<sfix> i want to notify a userspace program when my probe is entered so it can translate the functions arguments to human readable strings, is the best way to go about that by parsing stdout from stap?
nkambo has quit [Ping timeout: 252 seconds]
<fche> sfix, you could pipe stap's stdout into another program. or have stap run system("echo FOO | c+filt")
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
pwithnall_ has joined #systemtap
pwithnall_ has quit [Ping timeout: 240 seconds]
sanoj has quit [Ping timeout: 240 seconds]
<drsmith_away> sfix: You can't run a userspace program from a probe handler and wait on the result, assuming you are using the default linux runtime. Probe handlers are run in atomic context, and can't sleep.
<drsmith_away> Post-processing the output is one way to go.
<sfix> fche: drsmith_away: yep, i don't care about the probe getting the result from the userspace program, only that the userspace program received the details from the probe. so i'll go with processing output, thanks!
<drsmith_away> For instance, that's how you can use c++filt to translate C++ mangled function names into real function names
<drsmith_away> You can also use the debugging information of the program to translate arguments. For instance, that's how python probing is done.
<fche> (one could do something desperate and run system("echo FOO | c++filt | /proc/systemtap/MODULE/somefile") and probe procfs("somefile").write { } to get some round-trip data from userspace
<fche> but that's way out there
<drsmith_away> sfix: debuginfo can go a long way to help you translate arguments. See tapset/python[23].stp for an example.
<drsmith_away> Basically you'd write a tapset for your library/program that understood those arguments. The @cast() operator is helpful here.
<sfix> my userspace program communicates with a netlink socket to translate the values from the probe, so i don't think it'll help there :)
<sfix> but thanks for the input!
brolley has joined #systemtap
sanoj has joined #systemtap
invano__ has quit [Remote host closed the connection]
hpt has joined #systemtap
tromey has joined #systemtap
scox_ has quit [Ping timeout: 260 seconds]
scox_ has joined #systemtap
zodbot has quit [Ping timeout: 240 seconds]
sanoj has quit [Ping timeout: 240 seconds]
scox_ has quit [Ping timeout: 258 seconds]
scox_ has joined #systemtap
sona has quit [Ping timeout: 268 seconds]
sona has joined #systemtap
sanoj has joined #systemtap
hkshaw has quit [Ping timeout: 252 seconds]
scox_ has quit [Ping timeout: 240 seconds]
scox_ has joined #systemtap
sona has quit [Ping timeout: 260 seconds]
hpt has quit [Ping timeout: 252 seconds]
sanoj has quit [Quit: Leaving]
gmg has joined #systemtap
tromey has quit [Ping timeout: 255 seconds]
tromey has joined #systemtap
gmg has quit [Remote host closed the connection]
pwithnall____ has quit [Quit: pwithnall____]
pwithnall_ has joined #systemtap
pwithnall_ has quit [Client Quit]
mjw has quit [Quit: Leaving]
mjw has joined #systemtap
irker582 has joined #systemtap
<irker582> systemtap: rth systemtap.git:refs/heads/rth/bpf-fix-1 * release-3.1-54-g203a150 / dwflpp.cxx dwflpp.h staptree.h: translate_final_fetch_or_store missteps part 1 http://tinyurl.com/kg4wzhk
hpt has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 26.0.50)]
brolley has left #systemtap [#systemtap]
mbenitez has quit [Quit: Leaving]
mjw has quit [Quit: Leaving]
gmg has joined #systemtap