fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
gromero has quit [Ping timeout: 255 seconds]
hpt has joined #systemtap
dmalcolm_ has joined #systemtap
amerey_ has joined #systemtap
dmalcolm has quit [Ping timeout: 260 seconds]
amerey has quit [Ping timeout: 260 seconds]
tonyj has quit [Ping timeout: 260 seconds]
higgins has joined #systemtap
higgins has quit [Ping timeout: 260 seconds]
ema_ has joined #systemtap
higgins` has joined #systemtap
tonyj has joined #systemtap
ema has quit [Ping timeout: 260 seconds]
higgins has quit [Ping timeout: 260 seconds]
gila has quit [Ping timeout: 240 seconds]
sfix has quit [Ping timeout: 240 seconds]
scox has quit [Ping timeout: 240 seconds]
sfix has joined #systemtap
gila has joined #systemtap
slowfranklin has joined #systemtap
hchiramm__ has joined #systemtap
humblec has quit [Ping timeout: 255 seconds]
sanoj has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
scox has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
gila has joined #systemtap
hpt has quit [Quit: Lost terminal]
zodbot has quit [Remote host closed the connection]
zodbot has joined #systemtap
sanoj has quit [*.net *.split]
gila has quit [Ping timeout: 240 seconds]
gila has joined #systemtap
sanoj has joined #systemtap
gromero has joined #systemtap
gromero has quit [Quit: Leaving]
gromero has joined #systemtap
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
rgrinberg has quit [*.net *.split]
rgrinberg has joined #systemtap
gila has quit [Ping timeout: 260 seconds]
gila has joined #systemtap
sanoj has quit [Ping timeout: 276 seconds]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
drsmith_away is now known as drsmith
drsmith has left #systemtap [#systemtap]
drsmith has joined #systemtap
drsmith has left #systemtap [#systemtap]
drsmith has joined #systemtap
drsmith has left #systemtap [#systemtap]
drsmith has joined #systemtap
drsmith has left #systemtap [#systemtap]
drsmith has joined #systemtap
mbenitez has quit [Quit: To office]
wcohen has quit [Ping timeout: 240 seconds]
gila has joined #systemtap
dmalcolm_ is now known as dmalcolm
irker173 has joined #systemtap
<irker173>
systemtap: dsmith systemtap.git:refs/heads/master * release-3.1-215-g01f3028 / : For rawhide, fix casting issues in the nd_syscall tapset. http://tinyurl.com/yas54mwq
ema_ is now known as ema
przemoc has quit [Ping timeout: 260 seconds]
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
mbenitez_ has joined #systemtap
mbenitez has quit [Ping timeout: 255 seconds]
brolley has joined #systemtap
tromey has joined #systemtap
Humble has joined #systemtap
hchiramm__ has quit [Ping timeout: 255 seconds]
wcohen has joined #systemtap
<irker173>
systemtap: dsmith systemtap.git:refs/heads/master * release-3.1-216-gcc7ae02 / testsuite/systemtap.base/perf.exp: Make small improvements to systemtap.base/perf.exp. http://tinyurl.com/y8axosj6
<irker173>
systemtap: dsmith systemtap.git:refs/heads/master * release-3.1-217-gd7f4bef / testsuite/systemtap.syscall/nd_syscall.exp testsuite/systemtap.syscall/syscall.exp: Fix PR21802 by improving the syscall test cases. http://tinyurl.com/y879tkuo
apoz has joined #systemtap
<apoz>
Hi
<drsmith>
apoz: Hi.
<apoz>
just a quick question, I’ve been looking but I cant find in the doc
<drsmith>
go ahead - I'll try to have an answer
<apoz>
cool, thx! I’m trying to print in my script the stack that called my kernel probe
<apoz>
I was trying with sprint_stack()
<apoz>
but it seems not right
<drsmith>
One issue can be that the compiler can inline (most) functions, which can make it look like function calls are missing.
<drsmith>
Can you show us a stack trace and tell us what doesn't seem right?
<apoz>
actually, the thing is that the sprint_backtrace functions
<apoz>
gives me this error
<apoz>
if (attr->address == (unsigned long) mod->symtab)
<apoz>
^
<apoz>
mod->num_symtab * sizeof(mod->symtab[0]);
<apoz>
^
<apoz>
mod->num_symtab * sizeof(mod->symtab[0]);
<apoz>
my be I have to include some kernel .h file?
<apoz>
Pass 1: parsed user script and 111 library script(s) using 112276virt/44008res/6388shr/37824data kb, in 100usr/10sys/110real ms.
<apoz>
Pass 2: analyzed script: 2 probe(s), 18 function(s), 4 embed(s), 2 global(s) using 163052virt/96152res/7716shr/88600data kb, in 840usr/190sys/1030real ms.
<apoz>
Pass 3: translated to C into "/tmp/stapSQNnJj/stap_cfbd54f1dc8e4895bdb9d9118f67655a_10499_src.c" using 163052virt/96280res/7844shr/88600data kb, in 410usr/90sys/497real ms.
<apoz>
In file included from /usr/share/systemtap/runtime/transport/control.c:14:0,
<apoz>
from /usr/share/systemtap/runtime/transport/transport.c:76,
<apoz>
from /usr/share/systemtap/runtime/linux/print.c:17,
<apoz>
from /usr/share/systemtap/runtime/print.c:17,
<apoz>
from /usr/share/systemtap/runtime/runtime_context.h:22,
<apoz>
from /tmp/stapSQNnJj/stap_cfbd54f1dc8e4895bdb9d9118f67655a_10499_src.c:379:
<apoz>
if (attr->address == (unsigned long) mod->symtab)
<apoz>
^
<apoz>
mod->num_symtab * sizeof(mod->symtab[0]);
<apoz>
^
<apoz>
mod->num_symtab * sizeof(mod->symtab[0]);
<apoz>
^
<apoz>
^Cscripts/Makefile.build:258: fallo en las instrucciones para el objetivo '/tmp/stapSQNnJj/stap_cfbd54f1dc8e4895bdb9d9118f67655a_10499_src.o'
<drsmith>
Ah, there's your problem. systemtap 2.9 doesn't work with a 4.4 kernel
<drsmith>
you'll either need to update your distro copy or build from source
<apoz>
which version should I pick?
<drsmith>
if building from source, pick 3.1
<drsmith>
(2.9 was released back in 2015)
<apoz>
yep, it’s an Ubuntu box and they spend ages to update the packages :S
<apoz>
thank you very much!
<drsmith>
no problem
<apoz>
I’ll compile 3.1
<apoz>
may I ask another quick one? about my script?
<drsmith>
sure, go ahead
<apoz>
to read the content from a pointer (so not the address, but where it’s pointing) I should use the kernel_long() (if the data is long ofc), right?
<drsmith>
nope
<drsmith>
off = kernel_long($offset)
<drsmith>
well it depends
<drsmith>
the above line will take the value in $offset and treat it as a long, and put it in off
<drsmith>
if depends on what $offset represents
<apoz>
ok, and if offset is a pointer and I want to check its value?
<apoz>
I’m debugging a weird network problem where my packets are discarded there
<apoz>
and I’d need to print what’s the value pointed by offset
<drsmith>
Gotcha
<drsmith>
int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
<drsmith>
int target, unsigned short *fragoff, int *flags)
<drsmith>
So, in this case offset is a pointer, not the actual offset
<apoz>
yeo
<apoz>
*yep
mbenitez_ is now known as mbenitez
mbenitez has quit [Changing host]
mbenitez has joined #systemtap
<apoz>
no worries, I’ll find the way to do it
<apoz>
may thanks for your help!
<drsmith>
apoz: hold on, I'm looking for the best way to print that value
<apoz>
awesome, thanks
<drsmith>
This is trickier that it seems. If offset was a pointer to a structure, you could do "$offset->struct_field", but it isn't
<apoz>
yep, I saw the example in the documentation
<apoz>
I thought of including some c code in some function to do it
<apoz>
(but I did not try yet)
<drsmith>
yeah, that would be possible, but I think something like the following would work:
<drsmith>
kernel_long(&$offset)
<apoz>
& does not get the address actually?
<drsmith>
sigh
<apoz>
(so the opposite of what we’re trying to do?)
<drsmith>
never mind all the above
<drsmith>
kernel_long($offset) should work fine
<drsmith>
that's what it is for
<apoz>
ok, great, I’ll try that
<apoz>
many thanks!
slowfranklin has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
drsmith is now known as drsmith_away
drsmith_away is now known as drsmith
slowfranklin has joined #systemtap
higgins` has quit [Quit: Leaving]
bendlas has quit [Remote host closed the connection]
pwithnall[m] has quit [Read error: Connection reset by peer]
higgins has joined #systemtap
bendlas has joined #systemtap
apoz has quit [Quit: apoz]
<irker173>
systemtap: dsmith systemtap.git:refs/heads/master * release-3.1-218-g6755d60 / httpd/backends.cxx: Make a small improvement in the http server "docker" backend. http://tinyurl.com/ya82u3ax
pwithnall[m] has joined #systemtap
wcohen has quit [Ping timeout: 255 seconds]
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
pwithnall[m] has quit [Read error: Connection reset by peer]
bendlas has quit [Read error: Connection reset by peer]
bendlas has joined #systemtap
pwithnall_ has joined #systemtap
wcohen has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
pwithnall[m] has joined #systemtap
drsmith is now known as drsmith_away
scox has quit [Ping timeout: 240 seconds]
tromey has quit [Quit: ERC (IRC client for Emacs 26.0.50)]
mbenitez has quit [Quit: Leaving]
hpt has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]