fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
efiop_ has quit [Quit: Leaving]
efiop has quit [Quit: Leaving]
hpt has joined #systemtap
sanoj has joined #systemtap
hkshaw has joined #systemtap
Humble has joined #systemtap
ravi has joined #systemtap
hkshaw has quit [Quit: Leaving.]
hkshaw has joined #systemtap
nkambo_ has quit [Ping timeout: 240 seconds]
nkambo has joined #systemtap
pwithnall____ has joined #systemtap
sona has joined #systemtap
<sona>
are there any built in sorting functions ?
lorddoskias has left #systemtap [#systemtap]
mjw has joined #systemtap
hpt has quit [Quit: Lost terminal]
<sona>
fche, is there any buit in function to sort associative arrays on the basis of keys, rather than their values
hkshaw1 has joined #systemtap
hkshaw has quit [Ping timeout: 240 seconds]
<fche>
sona, you can iterate based on sorted keys:
<fche>
foo[4]="hi" foo[3]="lo" foreach (x+ in foo) { prrintln(x) } will print 3 4
<sona>
fche, here keys are pointers
<sona>
so the above apporach is not working
<fche>
the approach would sort based upon pointer value
<fche>
you want sorting based on dereferenced pointer value?
<sona>
yes
<fche>
can you have an auxiliary lookup table that stores the dereferenced values ?
<sona>
as far as the approach is optimal, i can use anything
hkshaw1 has quit [Quit: Leaving.]
hkshaw has joined #systemtap
ravi has quit [Quit: Leaving]
hkshaw has quit [Quit: Leaving.]
<sona>
fche, can you tell me stap sorts internally using +/-. Maybe then i could figure out why its not working to sort pointers
<fche>
It is sorting pointers
<fche>
But it cannot sort on some -function- of a pointer value, such as its kernel_int($ptr) e.g.
<fche>
it will sort on whatever number or string key you identify in the foreach() statement
<sona>
This is free software; see the source for copying conditions.
<sona>
Copyright (C) 2005-2017 Red Hat, Inc. and others
<sona>
fche, nope
<sona>
it didn't i think
<fche>
ok, it should have
<sona>
fche, ran again the same, it is giving warning
<sona>
fche, i didnt realized those warnings
<sona>
fche, tysm for looking into
<fche>
np, glad things are actually working :)
<fche>
you shouldn't use global FOO unless you need those variables to survive a probe, so no 'global i, global t'
<fche>
would've probably helped you catch the problems earlier
<sona>
fche, yep
hpt has joined #systemtap
wcohen has joined #systemtap
hpt has quit [Ping timeout: 240 seconds]
tromey has joined #systemtap
lindi- has quit [Ping timeout: 260 seconds]
sanoj has quit [Ping timeout: 240 seconds]
pwithnall___ has joined #systemtap
pwithnall____ has quit [Ping timeout: 255 seconds]
brolley has joined #systemtap
rth has joined #systemtap
sona has quit [Ping timeout: 240 seconds]
lindi- has joined #systemtap
lindi- has joined #systemtap
lindi- has quit [Changing host]
sjas_ has joined #systemtap
sjas has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 255 seconds]
orivej has joined #systemtap
bendlas has quit [Remote host closed the connection]
bendlas has joined #systemtap
mjw has quit [Quit: Leaving]
nkambo has joined #systemtap
sona has joined #systemtap
pwithnall___ has quit [Quit: pwithnall___]
hkshaw has quit [Ping timeout: 246 seconds]
csanting has quit [Ping timeout: 268 seconds]
irker688 has joined #systemtap
<irker688>
systemtap: dsmith systemtap.git:refs/heads/rth/bpf * release-3.1-66-g696a4ac / systemtap.spec: Add support for the httpd code to systemtap.spec, defaulting to "off". http://tinyurl.com/n3mtkjb
<irker688>
systemtap: dsmith systemtap.git:refs/heads/rth/bpf * release-3.1-67-g90f2c8d / systemtap.spec: Fix my typo in systemtap.spec. http://tinyurl.com/lvwrxoo