fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
scox has quit [Ping timeout: 252 seconds]
introom has joined #systemtap
RustJason has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RustJason has joined #systemtap
mjw has joined #systemtap
pwithnall____ has joined #systemtap
RustJason has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #systemtap
pwithnall____ has quit [Ping timeout: 240 seconds]
nkambo has joined #systemtap
nkambo has quit [Ping timeout: 240 seconds]
hpt has joined #systemtap
hpt has quit [Quit: Lost terminal]
scox has joined #systemtap
wcohen has quit [Ping timeout: 240 seconds]
drsmith_away is now known as drsmith
__positron has joined #systemtap
<__positron>
I have built and installed a custom kernel based on v4.8.4 on my Ubuntu 14.04. I would like to inspect skb inside the function __netif_receive_skb_core. I probed this function during call and printed out $skb$$. The fields are filled with the address of $skb. I have also tried by printing it with $params$$. Do you have any suggestions on what could have gone wrong?
<fche>
__positron, could you fpaste.org your script and its output ?
<fche>
and also stap -V ?
<__positron>
fche: version 3.2/0.158, commit release-3.1-59-g35c6bf4e9242
<fche>
ok, so that seems to be working appropriately
<fche>
pointers inside these structures won't be followed for pretty-printing purposes, only nested structs
<fche>
which part of $skb are you interested in?
<__positron>
Ah. I see. If that's the case, printing with $skb->member should work. Right? I am interested in skb->protocol for now. I am debugging a custom network driver in which the packets are dropped during reception. So, I am more or less interested in all the interesting fields that would shed light on why the packet might get dropped.
<fche>
just checking: is that structure supposed to be initialized at function call entry time?
<fche>
yeah, must be
<fche>
see also kernel tracepoint ways of getting at closely related events
<__positron>
I guess it should be. To cross check I tried using the same probe function on a different machine with 4.4.0-75-generic and version 2.9/0.165, Debian version 2.9-2ubuntu2 (xenial). It gives me sane result.
<fche>
probe kernel.trace("netif_rx") { println ($skb->len) } e.g.
<__positron>
Surprisingly, probing the tracepoint doesn't print any result on v4.8.4 kernel. I checked with -v flag, it compiles and runs fine. But no result.