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
<fche> % stap -L tcp.setsockopt
<fche> tcp.setsockopt name:string sock:long family:long level:long optname:long optstr:string optlen:long $sk:struct sock* $level:int $optname:int $optval:char* $optlen:unsigned int
ppetraki has joined #systemtap
<fche> the tapsets don't usually try to gather up very indirect information
<fche> but ... there is inet_get_lock_port()
<fche> so inet_get_local_port($sk) has a chance of getting the info you're after
<fche> (that's in the linux/inet_sock.stp tapset)
<fche> ^^^ ericlee
<fche> % man -k port.number
<fche> function::inet_get_local_port (3stap) - Provide local port number for a kernel socket
<fche> so discoverability is not -that- bad :)
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
<fche> we should have a gajillion see-also xref links in the docs
ppetraki has quit [Ping timeout: 240 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
irker815 has quit [Quit: transmission timeout]
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
ananth has joined #systemtap
ppetraki has quit [Ping timeout: 240 seconds]
ego_ has joined #systemtap
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 260 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 265 seconds]
ppetraki has joined #systemtap
ravi has joined #systemtap
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
ego_ has quit [Ping timeout: 264 seconds]
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 264 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 258 seconds]
ppetraki has joined #systemtap
srikar_away is now known as srikar
ego_ has joined #systemtap
ppetraki has quit [Ping timeout: 265 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 260 seconds]
hkshaw has quit [Ping timeout: 250 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
hkshaw has joined #systemtap
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 260 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 258 seconds]
<ericlee> Hi fche
<ericlee> fche, sorry I missed ur message
<ericlee> inet_get_local_port($sk) gives 0 if using %d
ppetraki has joined #systemtap
<ericlee> inet_get_local_port:long(sock:long) only accepts long type.
eichiro has quit [Ping timeout: 240 seconds]
eichiro has joined #systemtap
gila has joined #systemtap
ppetraki has quit [Ping timeout: 252 seconds]
pwithnall has joined #systemtap
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 252 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 250 seconds]
hkshaw1 has joined #systemtap
hkshaw has quit [Ping timeout: 276 seconds]
ppetraki has joined #systemtap
hkshaw has joined #systemtap
ppetraki has quit [Ping timeout: 258 seconds]
hkshaw1 has quit [Ping timeout: 258 seconds]
ppetraki has joined #systemtap
hpt has quit [Ping timeout: 264 seconds]
ppetraki has quit [Ping timeout: 258 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 265 seconds]
hkshaw has quit [Quit: Leaving.]
ppetraki has joined #systemtap
hkshaw has joined #systemtap
ppetraki has quit [Ping timeout: 264 seconds]
ppetraki 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
scox has quit [Ping timeout: 252 seconds]
ppetraki has quit [Ping timeout: 258 seconds]
ppetraki has joined #systemtap
<fche> if you pass a valid $sk value (it's a pointer, ergo 'long'), it should get a usable port number
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
ananth has quit [Quit: Leaving]
hkshaw has quit [Ping timeout: 258 seconds]
ravi has quit [Remote host closed the connection]
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
hpt has joined #systemtap
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
ego_ has quit [Ping timeout: 258 seconds]
wcohen has quit [Ping timeout: 244 seconds]
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
Empyrium has quit [Ping timeout: 250 seconds]
Meths has quit [Ping timeout: 250 seconds]
Meths has joined #systemtap
hpt has quit [Quit: Lost terminal]
Empyrium has joined #systemtap
mbenitez has joined #systemtap
ppetraki has quit [Ping timeout: 260 seconds]
ppetraki has joined #systemtap
hkshaw has joined #systemtap
ppetraki has quit [Ping timeout: 264 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 276 seconds]
ppetraki has joined #systemtap
srikar is now known as srikar_away
ppetraki has quit [Ping timeout: 276 seconds]
scox has joined #systemtap
ppetraki has joined #systemtap
wcohen has joined #systemtap
drsmith has joined #systemtap
drsmith is now known as drsmith_away
drsmith_away is now known as drsmith
ppetraki has quit [Ping timeout: 265 seconds]
ppetraki has joined #systemtap
brolley has joined #systemtap
ppetraki has quit [Ping timeout: 265 seconds]
irker627 has joined #systemtap
<irker627> systemtap: ravi.bangoria systemtap.git:refs/heads/master * release-3.0-226-gb0cfcdb / tapsets.cxx: ppc64le: Store correct function entry address in symbol_table http://tinyurl.com/z4o7l8p
<irker627> systemtap: ravi.bangoria systemtap.git:refs/heads/master * release-3.0-227-gc3d8c09 / tapsets.cxx: ppc64le: Fix LEP usage for probing http://tinyurl.com/zsof9fu
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 260 seconds]
ppetraki has joined #systemtap
mbenitez has quit [Quit: To office]
ppetraki has quit [Ping timeout: 260 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 260 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 244 seconds]
mbenitez has joined #systemtap
ppetraki has joined #systemtap
ravi_ has joined #systemtap
ppetraki has quit [Ping timeout: 244 seconds]
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 244 seconds]
hkshaw has quit [Quit: Leaving.]
hkshaw has joined #systemtap
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 265 seconds]
ppetraki has joined #systemtap
ericlee has quit [Ping timeout: 250 seconds]
ppetraki has quit [Ping timeout: 240 seconds]
ppetraki has joined #systemtap
hkshaw has quit [Quit: Leaving.]
hkshaw has joined #systemtap
ppetraki has quit [Ping timeout: 265 seconds]
ppetraki has joined #systemtap
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]
pwithnall has quit [Quit: pwithnall]
scox has joined #systemtap