fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
scox has joined #systemtap
ppetraki has quit [Ping timeout: 276 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 265 seconds]
ppetraki has joined #systemtap
hpt has joined #systemtap
ppetraki has quit [Ping timeout: 265 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 276 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 252 seconds]
ppetraki has joined #systemtap
<ericlee>
Hi, how can I get socket port number if I'm using tcp.setsockopt probe?
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 250 seconds]
<fche>
hey ericlee
<fche>
There isn't a direct method, though the $sk (struct sock*) variable may help
ravi_ has quit [Remote host closed the connection]
ppetraki has quit [Ping timeout: 260 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 276 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 252 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 264 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 252 seconds]
ppetraki has joined #systemtap
zw01 has quit [Read error: Connection timed out]
zw01 has joined #systemtap
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
pwithnall has quit [Ping timeout: 244 seconds]
detter has joined #systemtap
ppetraki has quit [Ping timeout: 264 seconds]
ppetraki has joined #systemtap
hchiramm has quit [Ping timeout: 250 seconds]
ppetraki has quit [Ping timeout: 244 seconds]
hchiramm has joined #systemtap
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 260 seconds]
ppetraki has joined #systemtap
mjw has quit [Quit: Leaving]
ppetraki has quit [Ping timeout: 265 seconds]
pwithnall has joined #systemtap
ppetraki has joined #systemtap
mjw has joined #systemtap
ppetraki has quit [Ping timeout: 258 seconds]
ppetraki has joined #systemtap
irker627 has quit [Quit: transmission timeout]
<detter>
ex
detter has quit [Quit: Leaving]
ppetraki has quit [Ping timeout: 244 seconds]
ericlee_ has joined #systemtap
<ericlee_>
Hi fche
<fche>
yo
<ericlee_>
yoyo, sorry I missed your message last night.
<fche>
seems like you tried out inet_get_local_port but did not get satisfaction
<ericlee_>
yeah, I got 0
<fche>
"you can't get no satisfaction"
<ericlee_>
hehe
<fche>
"you can't always get what you want"
<fche>
frankly it's a miracle the Stones haven't died of sadness
<fche>
but anyway
<fche>
this is kernel net/ internals, which is not our specialty by any means ... but it could be that your setsockopt call being trapped may simply occur before the port -has- a local port# assigned?
<ericlee_>
eh.. how this happens?
<fche>
not sure; do you have an strace of your program?
ericli has joined #systemtap
ericlee_ has quit [Quit: Page closed]
<ericli>
fche, not yet.
<ericli>
I guess I can go though the strace and track the timestamp when the socket created
<ericli>
then compare what I recorded in stap script.
<fche>
the stap script can of course do the strace too
<ericli>
right, I just need to track listen() one that would be fine.
<fche>
so other stuff you could do is get a dump / pretty-print of that $sk structure
<fche>
like
<fche>
println(@cast($sk,"inet_sock")$)
<fche>
(assuming $sk is in fact a tcp socket not some other sort of thing)
<ericli>
oh that would be useful.
<ericli>
thanks fche
scox has quit [Ping timeout: 258 seconds]
wcohen has quit [Ping timeout: 244 seconds]
mbenitez has quit [Quit: Leaving]
drsmith has left #systemtap [#systemtap]
brolley has left #systemtap [#systemtap]
wcohen has joined #systemtap
mjw has quit [Quit: Leaving]
ericli has quit [Quit: This computer has gone to sleep]