summaryrefslogtreecommitdiffstats
path: root/tapset/tcp.stp
Commit message (Collapse)AuthorAgeFilesLines
* PR 9871/11338 fix in tcpmib.stp by removing embedded-C and using @defined.David Smith2010-03-261-22/+32
| | | | | | | | | | | | | | | | * tapset/tcpmib.stp (tcpmib_get_state): Changed from embedded-C to script code. (tcpmib_local_addr): Instead of an embedded-C function, now calls function from ip.stp/tcp.stp. (tcpmib_remote_addr): Ditto. (tcpmib_local_port): Ditto. (tcpmib_remote_port): Ditto. (tcpmib.OutRsts.A): Used '@defined' instead of a kernel version check. * tapset/ip.stp (__ip_sock_saddr): Used '@defined' instead of a kernel version check. Added RHEL4 support. (__ip_sock_daddr): Ditto. * tapset/tcp.stp (__tcp_sock_dport): Ditto. (__tcp_sock_sport): Ditto.
* Update tapset related to struct inet_sock for 2.6.33Wenji Huang2009-12-221-0/+8
| | | | | | | * tapset/inet_sock.stp : Add prefix "inet_" to field. * tapset/ip.stp : Ditto. * tapset/tcp.stp : Ditto. * tapset/tcpmib.stp : Ditto.
* Add new TCP and IP functionsAndre Detsch2009-04-141-0/+94
| | | | | | | | | | | | | | | | | | | This patch adds some basic functions to the IP and TCP tapsets. Mainly, it's possible to get the iphdr and tcphdr from a sk_buff structure. As a consequence, a TCP probe called tcp.receive() was created and is probed every time a TCP packet is received, and a lot of useful fields is available, as the TCP flags. Also a small example that works like tcpdump for received TCP packets was created. This patch was tested on x86 and ppc machines, on 2.6.18 kernel and also on mainline one. Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com> Signed-off-by: Andre Detsch <adetsch@br.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* Added functions to grab IP source and destination from a socket, andBreno Leitao2009-03-201-0/+34
| | | | | | | functions to grab TCP source and destination port from a socket. Also, used this function inside some TCP probe functions, as recvmsg, to provide a richer set of fields.
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+3
| | | | tapsetdescription for man page generator (in development)
* Add ioscheduler, socket, tcp, and upd to tapset reference.William Cohen2008-11-251-97/+70
|
* PR6466: broad side-effect free statement elisionFrank Ch. Eigler2008-04-291-31/+34
|
* 2007-10-02 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-10-021-8/+34
| | | | | * tcp.stp: Add name argument for all probes. * tcp.stp (tcp.setsockopt.return): Add comment.
* 2007-09-27 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-271-2/+4
| | | | | * tcp.stp (sendmsg.return): Fix description of size variable. * tcp.stp (recvmsg.return): Ditto.
* Add /* pure */ to embedded-C functions.fche2007-09-241-5/+5
|
* 2007-08-28 Wenji Huang <wenji.huang@oracle.com>wenji2007-08-291-2/+2
| | | | * tcp.stp (sockstate): Fix typo.
* 2007-08-27 Martin Hunt <hunt@redhat.com>hunt2007-08-271-0/+4
| | | | | | | * context.stp (module_name): New. Returns the current module name. * tcp.stp (tcp_sendmsg): For 2.6.23, parameters change.
* 2007-07-11 Eugene Teo <eteo@redhat.com>eteo2007-07-111-0/+66
| | | | | | * tcp.stp (tcp_sockstate_str, tcp_sockopt_str, tcp_setsockopt): New. Also added sockopt and sockstate lookup tables.
* 2007-02-06 Josh Stone <joshua.i.stone@intel.com>jistone2007-02-071-23/+25
| | | | | | | | | | | | | | | | | | | | | | | | | * aux_syscalls.stp, inet_sock.stp, ioblock.stp, ioscheduler.stp, nfs.stp, nfs_proc.stp, nfsd.stp, rpc.stp, scsi.stp, signal.stp, socket.stp, task.stp, tcp.stp, vfs.stp: Protect pointer dereferences with kread wherever possible. Some places still have hazards, as marked with FIXMEs. * errno.stp (returnstr): Don't use return in tapset C functions. * aux_syscalls.stp (__uget_timex_m): Ditto. * nfsd.stp (__get_fh): Ditto. * nfs.stp, vfs.stp (<many functions>): Ditto. * string.stp (substr): Ditto. Also make sure start index is valid. * syscalls.stp (syscall.execve): Change __string to kernel_string. LKET/ * nfs.stp, nfs_proc.stp, nfsd.stp, process.stp, tskdispatch.stp: Protect pointer dereferences with kread wherever possible. Some places still have hazards, as marked with FIXMEs. * aio.stp (log_io_getevents): Don't use return in tapset C functions. * timestamp.stp (set_timing_method): Ditto. * utils.stp (filter_by_pid): Ditto.
* Use instead of retval()hien2006-07-111-4/+2
|
* Fix problem with rhel4u4 kernelhien2006-07-101-5/+22
|
* Added UDP tapset and common inet_sock functions. Added more descriptions totpnguyen2006-06-241-96/+98
| | | | TCP tapset.
* Added new TCP tapset (from Hien Nguyen - IBM)tpnguyen2006-06-221-0/+173