This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to get socket information for the socket tapset ?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I found the API documentation:

	file:///usr/share/doc/systemtap-client-2.4/index.html

to be quite useful.

I have a question, however.

Chapter 14. Socket Tapset --> within the socket.routines() how do I access the
socket ?

Specifically, within socket.receive() and socket.send() I want to know the
source and destination addresses. If I can know the socket variable name, then
I can get the addresses out of the socket header (ipmib_remote_addr /
ipmib_local_addr, etc.)

Specifically, I am looking for the following:

	for each incoming / outgoing packet:

		source address
		destination address
		size
		local executable name

- From the examples directory:

	/usr/share/doc/systemtap-client-2.4/examples/network/socktop

provides what I am looking for, minus the source/destination addresses (and uses
the socket tapset library.

I have looked at the socket tapset code:

	/usr/share/systemtap/tapset/linux/socket.stp

which lays on top of the 3 read/write routines, with the unfortunate situation
that the socket variable is not the same for all 3 of the read (and
similarily, write) routines.

Might there be an easy way around this ?

All the best, and thanks,

- -Greg Hosler

- -- 
+---------------------------------------------------------------------+

Please also check the log file at "/dev/null" for additional information.
                (from /var/log/Xorg.setup.log)

| Greg Hosler                                   ghosler@redhat.com    |
+---------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlLg00IACgkQ404fl/0CV/QFrwCgufmG5Oj3pUhkRCPbP/eBa+2o
GyEAnR/P0DuVW6MO7sRPxX9JtSw/s+Hp
=JDpv
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]