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_]
hpt has joined #systemtap
NoOova has quit [Quit: WeeChat 1.5]
fche2 has joined #systemtap
fche has quit [Ping timeout: 245 seconds]
scox has joined #systemtap
ton31337 has quit [Ping timeout: 252 seconds]
ananth has joined #systemtap
ton31337 has joined #systemtap
ravi__ has joined #systemtap
hkshaw has joined #systemtap
Humble has quit [Ping timeout: 268 seconds]
hpt has quit [Quit: Lost terminal]
Humble has joined #systemtap
danield_ has joined #systemtap
pwithnall_ has joined #systemtap
gila has joined #systemtap
pwithnall_ has quit [Quit: pwithnall_]
pwithnall has joined #systemtap
mjw has joined #systemtap
hkshaw has quit [Ping timeout: 255 seconds]
scox has quit [Ping timeout: 260 seconds]
danield_ has quit [Ping timeout: 260 seconds]
danield_ has joined #systemtap
ananth has quit [Quit: Leaving]
hkshaw has joined #systemtap
danield_ has quit [Remote host closed the connection]
danield_ has joined #systemtap
danield_ has quit [Read error: Connection reset by peer]
danield_ has joined #systemtap
sona has joined #systemtap
danield_ has quit [Ping timeout: 268 seconds]
<sona> Is there any way to create array of associative array,i.e. 2 d associative array in stap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
gila has joined #systemtap
ravi__ has quit [Quit: Leaving]
danield_ has joined #systemtap
sona has quit [Ping timeout: 240 seconds]
danield_ has quit [Ping timeout: 260 seconds]
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
scox has joined #systemtap
danield_ has joined #systemtap
wcohen has quit [Ping timeout: 240 seconds]
drsmith has joined #systemtap
wcohen has joined #systemtap
sona has joined #systemtap
mjw has quit [Ping timeout: 268 seconds]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sona has quit [Ping timeout: 260 seconds]
mjw has joined #systemtap
tromey has joined #systemtap
sona has joined #systemtap
danield_ has quit [Ping timeout: 268 seconds]
rgrinberg has joined #systemtap
gila has joined #systemtap
jhg___ has joined #systemtap
zorachus has joined #systemtap
zorachus has left #systemtap [#systemtap]
<jhg___> greetings!
Humble has quit [Ping timeout: 260 seconds]
<jhg___> Is there a -DMAXSTRINGLEN for the structure unfolding in $$params$$ ?
<jhg___> for example, stap -e 'probe module("libafs").function("afs_access") {printf("%s\n", $$parms$$); exit(); }' \
<jhg___> -g --suppress-time-limits -DMAXSTRINGLEN=10000
<jhg___> only shows a small fraction of the structure elements
mjw has quit [Remote host closed the connection]
mbenitez has quit [Ping timeout: 240 seconds]
Humble has joined #systemtap
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
gila has joined #systemtap
sona has quit [Ping timeout: 240 seconds]
sona has joined #systemtap
higgins` has quit [Quit: Leaving]
mbenitez has quit [Quit: To office]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<jistone> sona, there's aren't nested arrays, but you can use multiple indexes directly, a[b,c]
<jistone> jhg_, MAXSTRINGLEN applies globally, but there's also a forced 32-arg limit to the pretty-printing format string
<jistone> ^ jhg___, rather - more underscores :)
gila has joined #systemtap
<sona> jistone, ya i know about this concept of having multiple indices but is there any way to implement multi-dimensional arrays?
<jistone> sona, no, currently the value of arrays can only be a long, string, or stats
ppetraki has joined #systemtap
higgins has joined #systemtap
<sona> jistone, i am writing a script to detect reference leakage in a project but i am struck in multi-dimensional array, can you please help
<jistone> sona, can you explain why multiple indices won't work for you?
<sona> jistone, so ya, i am probing two functions which are referencing and dereferencing pointers, so the concept here i am applying is to create an array corresponding to pointers whenever these functions are probed
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<jistone> sona, ok, so for whatever a[b][c] indexing you wanted, can't that equally be a[b,c] ?
<sona> jistone, so corresponding to each pointer there would be an array whose index are backtraces and the values are no. of occurence i.e count when the functions are probed
<jistone> sona, ok, so array[pointer, backtrace] += 1
<sona> jistone, so if i am making only one array corresponding to all the pointers and applying the concept of a[b,c], it works but the program is not efficient in terms of speed and time complexity
<jistone> sona, the associative arrays are hash tables -- why do you believe complexity is an issue here?
<sona> jistone, yep, this concept, array[pointer, backtrace] +=1 is not a good idea, as there are mutliple foreach loops for fetching and manipulating the count values, which exceeds the MAXACTION value
<jistone> sona, there's now some support for array "slicing" when iterating, e.g. array[pointer,*] -- does that help you?
<sona> jistone, can i share my script somewhere so that i can explain you in better way
<jistone> any pastebin will do, e.g. https://paste.fedoraproject.org/
<sona> jistone, okay
<jistone> sona, but the short answer is still no, stap does not have any way to do nested arrays. the only way to do multiple dimensions is with multiple indices
<sona> jistone, ya got to know that
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
hkshaw has quit [Ping timeout: 255 seconds]
sona has quit [Ping timeout: 255 seconds]
<jhg___> jistone: is there a way to explore pieces of the struct at a time? for example, if one of the $$parms$$ is avc->f, how might I show all of those submembers?
<jhg___> since I am limited to 32 elements
<jistone> jhg___, you can print something like $avc->f$$
<jhg___> jistone: I thought I'd tried that before. turns out I was running the wrong script. ~sanity =)
<fche2> too bad sona's gone again ...
<fche2> for his purposes, the foreach (VAR0 = VAR in ARRAY [INDEX1, INDEX2, ...] ) construct would work fine to iterate over slices of ARRAY
pwithnall has quit [Quit: pwithnall]
<jistone> yeah, I got busy in the short time between sona's paste and leaving... alas
Cust0sLimen has quit [Ping timeout: 255 seconds]
<jhg___> is there a way to format the $$struct$$ expansion numbers in hex rather than decimal?
<fche2> jhg___, nope, it's pretty & pretty-dumb printing :-)
<fche2> but if you know what field you want, of course you can do printf("%x", $struct->field)
Cust0sLimen has joined #systemtap
<jhg___> fche2: =)
<jhg___> If only I knew what I wanted!
<jhg___> I'll know it when I see it =)
<jhg___> (hopefully)
<fche2> Jacobellis v. Ohio
<jistone> it only knows %i/%u/%p depending on the base types
<jhg___> fche2: that's the one!
pwithnall_ has joined #systemtap
Cust0sLimen has quit [Ping timeout: 260 seconds]
Cust0sLimen has joined #systemtap
rgrinberg has quit [Remote host closed the connection]
_whitelogger_ has joined #systemtap
_whitelogger has quit [Remote host closed the connection]
* jhg___ returns 0 happily ever after
jhg___ has quit [Quit: adde parvum parvo magnus acerrus erit]
ppetraki has quit [Quit: Ex-Chat]
gila has joined #systemtap
wcohen has quit [Ping timeout: 240 seconds]
mbenitez has quit [Quit: Leaving]
scox has quit [Ping timeout: 255 seconds]
ldng_ has joined #systemtap
ldng_ has quit [Client Quit]
drsmith has left #systemtap [#systemtap]
pwithnall_ has quit [Quit: pwithnall_]
wcohen has joined #systemtap
pwithnall_ has joined #systemtap
pwithnall_ has quit [Client Quit]
pwithnall_ has joined #systemtap
pwithnall_ has quit [Client Quit]
tromey has quit [Quit: ERC (IRC client for Emacs 25.2.1)]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]