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 [Ping timeout: 255 seconds]
hpt has joined #systemtap
scox_ has joined #systemtap
Jackson_Xing has quit [Quit: Jackson_Xing]
nkambo has joined #systemtap
sanoj has joined #systemtap
ravi_ has joined #systemtap
nkambo has quit [Ping timeout: 252 seconds]
nkambo has joined #systemtap
hkshaw has joined #systemtap
sanoj has quit [Ping timeout: 268 seconds]
sanoj has joined #systemtap
sanoj has quit [Ping timeout: 240 seconds]
sanoj has joined #systemtap
vtq has joined #systemtap
pwithnall____ has joined #systemtap
<vtq>
Hi, I'm just starting to mess around with this. I'm trying to adapt the callgraph example to my needs. ppfunc() is nice, but it doesn't give me the classname. Is there any function that will give me C++ class names?
hpt has quit [Quit: Lost terminal]
scox_ has quit [Ping timeout: 240 seconds]
hkshaw has quit [Quit: Leaving.]
mjw has joined #systemtap
hkshaw has joined #systemtap
sanoj has quit [Quit: Leaving]
<fche>
hi vtq
<fche>
I don't think there's a great solution right now. One could pass the output through c++filt to demangle afterwards.
ravi_ has quit [Remote host closed the connection]
pwithnall_ has joined #systemtap
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
scox_ has joined #systemtap
pwithnall_ has quit [Ping timeout: 260 seconds]
hpt has joined #systemtap
<vtq>
fche: hmm, ok. I can make do with pp instead, but is there something that returns just the function, source file and line number? I can strip the process name but it seems like a waste of resources
<fche>
see usymfile usymfileline etc.
<fche>
those are functions that are given userspace PC addresses and map to source files/line
<fche>
pp() will just parse/return the probe-point string, which can also work, but is a startup-time computation rather than run-time one
<drsmith_away>
I wonder if we shouldn't file a enhancement request for this. Perhaps we should have a ppfunc() variant that includes the class name.
<fche>
sure
<fche>
hope that doesn't require a demangler in the runtime
<fche>
(implementations I've seen are not tuned to run safely in kernel space)
<mjw>
:)
<mjw>
and after 2 days, 14 hrs, 10 min, 1 sec the fuzzer actually found another crasher... It is a 33K string consting of mainly FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (encoding a function returning a function returning a function returning a function...)
<drsmith_away>
I was just thinking of taking the ppfunc() approach and search the pp() string - do we include the class name there?
<mjw>
guess who handles that by recursively resolving a function type... after doing that 33K times stack overflow... :{
<fche>
drsmith_away, only in mangled form
<vtq>
Hmm... so how does ppfunc work, actually? It's C++ code, so there has to be a demangling step somewhere, or it'd be giving me the mangled version