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(); }' \
<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>
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
<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?