fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
hpt has joined #systemtap
ananth has joined #systemtap
ravi has joined #systemtap
ego_ has joined #systemtap
srikar_away is now known as srikar
hkshaw has joined #systemtap
ravi has quit [Quit: Leaving]
ravi has joined #systemtap
ravi has quit [Remote host closed the connection]
ravi has joined #systemtap
hkshaw has quit [Ping timeout: 240 seconds]
hchiramm has joined #systemtap
hkshaw has joined #systemtap
ego_ has quit [Ping timeout: 265 seconds]
ego_ has joined #systemtap
nkambo has joined #systemtap
ego_ has quit [Ping timeout: 264 seconds]
dtatulea_ has quit [Quit: Lost terminal]
ravi has quit [Ping timeout: 260 seconds]
djellemah has joined #systemtap
ravi_ has joined #systemtap
dtatulea has joined #systemtap
ego_ has joined #systemtap
ravi_ has quit [Ping timeout: 260 seconds]
ph7 has joined #systemtap
ravi_ has joined #systemtap
hpt has quit [Quit: Lost terminal]
ego_ has quit [Ping timeout: 260 seconds]
ego_ has joined #systemtap
ananth has quit [Quit: Leaving]
wcohen has quit [Ping timeout: 258 seconds]
ego_ has quit [Quit: Leaving]
ego_ has joined #systemtap
jemarch has quit [Ping timeout: 258 seconds]
ph7 has quit [Quit: Leaving.]
ph7 has joined #systemtap
ph7 has quit [Client Quit]
ph7 has joined #systemtap
ravi_ has quit [Quit: Leaving]
ph7 has quit [Quit: Leaving.]
scox has joined #systemtap
srikar is now known as srikar_away
hkshaw has quit [Quit: Leaving.]
wcohen has joined #systemtap
ph7 has joined #systemtap
tromey has joined #systemtap
drsmith has joined #systemtap
drsmith is now known as drsmith_away
drsmith_away is now known as drsmith
<lorddoskias2> semantic error: 'struct ipoib_cb' is being accessed instead of a member: operator '@cast' at ipoib.stp:90:7
<lorddoskias2> source: cb = @cast($skb->cb, "ipoib_cb");
<lorddoskias2> does that mean that my source line is not really casting $skb->cb to ipoib_cb struct but something else?
hchiramm has quit [Remote host closed the connection]
hchiramm has joined #systemtap
DuncanT has quit [Read error: Connection reset by peer]
ggherdov` has quit [Read error: Connection reset by peer]
<fche> skb->cb must be a struct
<fche> hey build stap out of git - it just improved that error message yesterday :)
<lorddoskias2> i might,
<lorddoskias2> well skb->cb is just a char array
DuncanT has joined #systemtap
ggherdov` has joined #systemtap
ggherdov` has quit [Excess Flood]
ggherdov` has joined #systemtap
ggherdov` has quit [Excess Flood]
ggherdov` has joined #systemtap
hpt has joined #systemtap
<lorddoskias2> fche: how does string comparison work in ssytemtap, do i first do kernel_string and then ordinary == or is there a cmp function ( I cannot find any in the tapset reference)
<fche> kernel_string first
<fche> then you get a script level string object, that you can process with == or =~ or some functions
<lorddoskias2> i see
<lorddoskias2> thanks
hkshaw has joined #systemtap
<lorddoskias2> fche: how does the 3rd argument of the @cast function work when i'm probing a kernel function, but the definition i'm using comes from a module?
<lorddoskias2> string_start = @cast($skb->cb, "ipoib_cb", )->hwaddr + 4; in this case ipoib_cb comes from the ib_ipoib module
<lorddoskias2> hm, just adding the module seems to hav edone it
<fche> yeah, it identifies which object (or header file) to search for dwarf info
<fche> btw ipoib_cb is definitely a struct here
<fche> struct ipoib_cb {
<fche> struct qdisc_skb_cb qdisc_cb;
<fche> u8 hwaddr[INFINIBAND_ALEN];
<fche> };
<fche> so stap's error message was correct.
<lorddoskias2> um, so ipoib_cb is a struct
<fche> you might want to use a hex-dump of hwaddr to get embedded \0 bytes
<lorddoskias2> @cast($skb->cb, "ipoib_cb");
<lorddoskias2> but in this case $skb->cb is just an array, wich i want to cast to ipoib_cb
<lorddoskias2> eventually i did @cast($skb->cb, "ipoib_cb")->hwaddr
<fche> that may work ok as a stap integral variable (char[] cast into a pointer)
hpt has quit [Ping timeout: 258 seconds]
<lorddoskias2> how do i test for an empty string from format_ipaddr. I tried "" and " " but i still see empty string printed
<lorddoskias2> (aren't i annoying :D)
<fche> nah, you're a treasured user :-)
<fche> "" should compare to an empty string fine.
<fche> re. format_ipaddr, can you share the larger script?
<lorddoskias2> with this code i see this printed: interpolated string is :
<lorddoskias2> oops
<lorddoskias2> hang on a minute :D
<fche> haha
<lorddoskias2> ah, extra ... printf at the beginning
<lorddoskias2> silly me :(
drsmith is now known as drsmith_away
hkshaw has quit [Ping timeout: 244 seconds]
hkshaw has joined #systemtap
drsmith_away is now known as drsmith
hkshaw has quit [Quit: Leaving.]
hchiramm has quit [Ping timeout: 276 seconds]
ego_ has quit [Ping timeout: 240 seconds]
ph7 has quit [Read error: Connection timed out]
ph7 has joined #systemtap
ph7 has quit [Client Quit]
zorachus has joined #systemtap
zorachus has left #systemtap [#systemtap]
nkambo has quit [Read error: No route to host]
nkambo1 has joined #systemtap
ph7 has joined #systemtap
ph7 has quit [Quit: Leaving.]
djellemah_ has joined #systemtap
djellemah has quit [Ping timeout: 240 seconds]
djellemah_ is now known as djellemah
wcohen has quit [Remote host closed the connection]
wcohen has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
wcohen has quit [Ping timeout: 244 seconds]
dtatulea has quit [Ping timeout: 264 seconds]
wcohen has joined #systemtap