fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
sanoj has joined #systemtap
sanoj has quit [Ping timeout: 255 seconds]
sanoj has joined #systemtap
sanoj has quit [Ping timeout: 256 seconds]
sanoj has joined #systemtap
orivej_ has quit [Ping timeout: 256 seconds]
sanoj_ has joined #systemtap
sanoj has quit [Ping timeout: 265 seconds]
orivej has joined #systemtap
sanoj_ has quit [Read error: Connection timed out]
nkambo has joined #systemtap
nkambo has quit [Ping timeout: 255 seconds]
orivej has quit [Ping timeout: 255 seconds]
hpt has joined #systemtap
orivej has joined #systemtap
hpt has quit [Ping timeout: 256 seconds]
hpt has joined #systemtap
slowfranklin has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
slowfranklin has quit [Quit: slowfranklin]
hpt has quit [Quit: Lost terminal]
orivej has joined #systemtap
slowfranklin has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
slowfranklin has joined #systemtap
slowfranklin has quit [Client Quit]
slowfranklin has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
lightydo has quit [Ping timeout: 248 seconds]
lightydo has joined #systemtap
lightydo has quit [Ping timeout: 255 seconds]
lightydo has joined #systemtap
lightydo has quit [Ping timeout: 256 seconds]
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
lightydo has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
slowfranklin has joined #systemtap
orivej has quit [Ping timeout: 255 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 255 seconds]
slowfranklin has quit [Quit: slowfranklin]
vibrys has joined #systemtap
<vibrys> I'm using result of ucallers(10) as key to assiociation array. Then trying to print stack with print_usyms(val), but lines like "0x7fc51028342d : 0x7fc51028342d" are printed. sprint_ubacktrace() does the job on the other hand, but I do not want to use it as key to association map. I'm running systemtap 3.1. Do You have any ideas?
<fche> hi vibrys
<fche> does sprint_ubacktrace() go back to 10 levels of callers, and give you symbol names?
<fche> long shot, but does putting a probe never { sprint_ubacktrace() } into your first program change anything?
<fche> are you running stap with the same set of -d options (to load symbol/unwind data for the executables / shared libraries of interest) ?
slowfranklin has joined #systemtap
<vibrys> fche: sprint_ubacktrace() does give me the symbol names. I'm running stap with the same set of -d options. I just compiled systemtap 3.2 and expreriencing the same bevaiour. Now checking { sprint_ubacktrace() } ...
<fche> does the 'probe never ...' help?
<vibrys> i'm now checking it ...
<fche> ok; 'stap -vv ...' or even '-vvv' may help narrow down the cause
<vibrys> { sprint_ubacktrace() } does not help
<fche> hm how about a sprint_ubacktrace() from the same place where you are collecting ucallers(10) etc. ?
<fche> hm, print_usyms ... which context are you calling that from ?
<fche> if it's from something like a 'probe end', then print_usyms won't have the right context (the current process and its symbol table etc.)
<fche> the docs do not spell this out though :&
<vibrys> yes, I'm calling it from probe end with hope to postpone heavy work away from runtime probes
<fche> aha ok that makes sense then
<fche> yeah the problem is that the heavy work requires context of the threads that generated those hex addresses
<fche> otherwise they could've come from any other random process
<fche> https://sourceware.org/bugzilla/show_bug.cgi?id=10514 <-- this is probably it, very old RFE
<vibrys> I understand. So I did the following to remember full stack traces within the body of my runtime probe: theTrace = ucallers(10); if (theTrace in stack_traces) next; stack_traces[theTrace] = sprint_ubacktrace()
<fche> aha good plan
<vibrys> fche, thank You for Your help and explanation of what's going on here
<fche> sorry I don't have a better answer :(
slowfranklin has left #systemtap [#systemtap]
<fche> but if your solution works well enough, you might want to add it as a comment to that PR, so we find it for others
<vibrys> OK, I'll do so
<fche> thanks
slowfranklin has joined #systemtap
lindi- has quit [Ping timeout: 246 seconds]
<fche> looks good, thanks!
lindi- has joined #systemtap
ema has quit [Quit: Lost terminal]
ema has joined #systemtap
ema has quit [Changing host]
ema has joined #systemtap
vibrys has quit [Ping timeout: 256 seconds]
ema has quit [Ping timeout: 256 seconds]
slowfranklin has quit [Quit: slowfranklin]
ema has joined #systemtap
ema has quit [Changing host]
ema has joined #systemtap
slowfranklin has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
vibrys has joined #systemtap
vibrys has quit [Ping timeout: 256 seconds]
slowfranklin has quit [Quit: slowfranklin]
gromero has joined #systemtap
gromero has quit [Ping timeout: 256 seconds]