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
<drsmith_away> ah, gotcha
<fche> % stap -L 'process.function("*")' -c /bin/stap
<mjw> who wants a demangler! It is (mostly) crash free now :)
<fche> the stap translator does some demangling under some circumstances
drsmith_away has left #systemtap [#systemtap]
<vtq> in what circumstances, and can it be turned off?
drsmith_away has joined #systemtap
drsmith_away has left #systemtap [#systemtap]
<fche> I don't know off the top of my head
sona has joined #systemtap
<sona> how to use MAXMAPENTERIES and MAXSTRINGLEN options smartly , given that need array large in no. say, 1 lac.
<fche> see also the '%' flag on global array decls; it lets stap quietly reuse old map entries when the table gets full
<fche> storing numbers rather than strings in indexes or values naturally shrinks memory needs
tromey has joined #systemtap
<sona> fche, i am storing strings in associative arrays without overriding them
<sona> fche, so what's the maximum no. of blocks/size to which we can increase the array limit
<fche> ok. then you indeed will need to be careful with those MAX*'s. check dmesg for the script's self-assessment of memory usage at startup
<fche> you can make it as big as you like, but it's eating into kernel memory, which may be scarce
sanoj has joined #systemtap
<sona> fche,so i didn't get how associative arrays are allocated memory (reference- https://sourceware.org/ml/systemtap/2015-q1/msg00033.html )
<fche> it basically preallocates #-of-entries * size-of-rows (sum of index tuple + value size)
<fche> apprx. no dynamic allocation at script run time - too dangerous
<sona> fche, oh
<fche> but you shouldn't have to worry about it. make your -DMAX... numbers as high as you need them; stap will let you know if it's unachievable
<sona> fche, yep, thanks
drsmith_away has joined #systemtap
sona has quit [Ping timeout: 260 seconds]
brolley has joined #systemtap
gmg has joined #systemtap
drsmith_away is now known as drsmith_foo
drsmith_foo is now known as drsmith_away
hpt has quit [Ping timeout: 240 seconds]
gmg has quit [Remote host closed the connection]
gmg has joined #systemtap
hkshaw has quit [Ping timeout: 252 seconds]
gmg has quit [Client Quit]
sanoj has quit [Ping timeout: 252 seconds]
mjw has quit [Quit: Leaving]
pwithnall____ has quit [Ping timeout: 255 seconds]
tromey has quit [Ping timeout: 260 seconds]
mbenitez has quit [Quit: To office]
mjw has joined #systemtap
sona has joined #systemtap
gmg has joined #systemtap
sona has quit [Ping timeout: 260 seconds]
mbenitez has joined #systemtap
drsmith_away is now known as drsmith
tromey has joined #systemtap
nkambo has quit [Read error: Connection reset by peer]
nkambo has joined #systemtap
nkambo has quit [Ping timeout: 252 seconds]
drsmith is now known as drsmith_away
drsmith_away is now known as drsmith
scox_ has quit [Ping timeout: 252 seconds]
scox_ has joined #systemtap
scox_ has quit [Ping timeout: 252 seconds]
mbenitez has quit [Quit: Leaving]
tromey has quit [Quit: ERC (IRC client for Emacs 26.0.50)]
mjw has quit [Quit: Leaving]
pwithnall_ has joined #systemtap
drsmith is now known as drsmith_away
brolley has left #systemtap [#systemtap]
hpt has joined #systemtap
hpt has quit [Quit: Lost terminal]
pwithnall_ has quit [Quit: pwithnall_]