summaryrefslogtreecommitdiffstats
path: root/tapset/nfs_proc.stp
Commit message (Collapse)AuthorAgeFilesLines
* PR 9871 (partial) fix. Removed more embedded-C in nfs_proc.stp and nfs.stp.David Smith2010-04-061-42/+72
| | | | | | | | | | * tapset/nfs_proc.stp: Added script functions NFS_I(), NFS_FH(), NFS_SERVER, NFS_PROTO. Rewrote embedded-C functions __nfsv4_bitmask() and __getfh_inode() in script language. * tapset/nfs.stp: Rewrote embedded-C functions __nfsi_cache_valid(), __nfsi_rcache_time(), __nfsi_attr_time(), __nfsi_ndirty(), __nfs_server_rsize(), __nfs_version(), __nfs_server_wsize(), __nfs_rpages(), and __nfs_wpages() in script language.
* PR 9871 (partial) fix. Removed more embedded-C in nfs_proc.stp.David Smith2010-04-051-156/+92
| | | | | | | * tapset/nfs_proc.stp: Rewrote embedded-C functions stap_NFS_CLIENT(), get_ip_from_client(), get_prot_from_client(), get_ip(), and get_prot() in script language. Simplified __i2n_ip_proto() by just calling get_ip_from_client() or get_prot_from_client().
* PR 9871 (partial) fix. Removed some embedded-C in nfs_proc.stp.David Smith2010-04-051-22/+21
| | | | | * tapset/nfs_proc.stp: To avoid a deref hazard, rewrote embedded-C __i2n_ip_proto() in script language.
* PR 5150. Fixed nfs tapset by making probes optional.David Smith2009-11-181-22/+30
| | | | | | | * tapset/nfs_proc.stp: Made 'nfs.proc.read', 'nfs.proc.write', and 'nfs.proc.commit' optional for newer kernels without those functions. * testsuite/systemtap.pass1-4/buildok.exp: Expect nfs-all-probes.stp to pass.
* Tweak kernel or module resident probeWenji Huang2009-07-191-78/+78
| | | | | | * tapset/nfs_proc.stp: Change '?' notation to "!". * tapset/nfsd.stp: Ditto. * tapset/scsi.stp: Ditto.
* More gcc 4.5 'jump skips variable initialization' fixlets.Mark Wielaard2009-07-081-5/+11
| | | | | | | | | * tapset/ioblock.stp (__bio_start_sect): Declare, then initialize variables that could (through kread) take an early jump. * tapset/nfs_proc.stp (get_prot_from_client): Likewise. * tapset/scsi.stp (scsi_timer_pending): Likewise. * tapset/task.stp (task_cpu): Likewise. (task_open_file_handles): Likewise.
* Use 'static' as much as possibleJosh Stone2009-01-281-10/+10
| | | | | | | | | | This change just inserts 'static' on runtime, tapset, and generated C functions and globals, so the compiler can do a better job of optimizing. My tests with small scripts show ~10% reduction in compile time and ~20% reduction in module size. Larger scripts may show less benefit, but I expect purely positive results.
* Fix memory access error in nfs.proc.read_setup, nfs.proc.write_setup and ↵Zhaolei2008-09-011-37/+87
| | | | nfs.proc.commit_setup
* tapset cleanup: nfs kernel?,module? -> kernel!,moduleFrank Ch. Eigler2008-05-251-0/+3
|
* 2007-11-5 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-11-051-17/+19
| | | | | | From Cai Fei <caifei@cn.fujitsu.com> * nfs_proc.stp: Use kread in get_ip and get_prot to avoid kernel panic.
* 2007-11-2 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-11-021-0/+16
| | | | | | | From Cai Fei <caifei@cn.fujitsu.com> * nfsd.stp: Fix the semantic error caused by the difference of kernel versions. * nfs_proc.stp: Ditto.
* 2007-10-15 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-10-151-18/+18
| | | | | | | | | | | From Cai Fei <caifei@cn.fujitsu.com> * conversions.stp: Add a function kernel_string_n for copy non-0-terminated string with fixed length from kernel space at given address. * stapfuncs.5.in: Add kernel_string_n. * nfsd.stp: Using kernel_string_n to copy non-0-terminated string with fixed length from kernel space at given address. * nfs_proc.stp: Ditto.
* 2007-10-11 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-10-111-0/+20
| | | | | | From Cai Fei <caifei@cn.fujitsu.com> * nfs_proc.stp (__nfs_write_data_info): Add data-access code for count, valid and timestamp.
* 2007-09-27 Wenji Huang <wenji.huang@oracle.com>wenji2007-09-271-1/+2
| | | | | | * rpc.stp (clones_from_clnt, tasks_from_clnt): Fix for kernel >= 2.6.22. * nfs.stp (__nfsi_ndirty) : Ditto. * nfs_proc.stp (__nfsv4_bitmask) : Make bitmask valid according to CONFIG.
* 2007-09-26 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-261-38/+38
| | | | | From Lai Jiangshan <laijs@cn.fujitsu.com> modify field-access operator from "." to "->" in all files.
* * build fix on rhel4fche2007-09-251-1/+1
| | | | | | 2007-09-25 Frank Ch. Eigler <fche@elastic.org> * socket.stp (__i2n_ip_proto): Add a cast for 32-bit compatibility.
* 2007-08-22 Wenji Huang <wenji.huang@oracle.com>wenji2007-08-221-78/+58
| | | | | | | | | | * nfs.stp (__iov_length): Updated, Temporary here. * nfs_proc.stp (__i2n_ip_proto): Add type cast to sockaddr_in. (nfs.proc?.*): Modify evaluating count and offset. (nfs.proc?.read.return): Delete evaluating size and units. (nfs.proc?.write.return): Modify evaluating size. (nfs.proc?.create): Modify evaluating filename and filelen. (nfs.proc?.rename): Fix typo.
* 2007-02-06 Josh Stone <joshua.i.stone@intel.com>jistone2007-02-071-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* bugfix for 2.6.19 kernelguanglei2006-12-291-12/+20
|
* patch of nfs, nfs_proc, rpc tapsets for 2.6.9 kernelguanglei2006-12-111-83/+175
|
* src/lket.5.in:guanglei2006-09-121-104/+154
| | | | | | | | | | | | | | | | | | | | | document nfs trace hooks tapset/nfsd.stp, tapset/nfs_proc.stp, tapset/nfs.stp: Change NFS file identifier. Change NFS version data type from String to INT. Add version variable to nfs_open and nfs_release. LKET/iosyscall.stp: change log_iosyscall_sync() be sync with different timing methods. LKET/utils.stp: add reset_maxaction() since there are too many functions called inside "probe begin". LKET/nfsd.stp, LKET/nfs_proc.stp, LKET/nfs.stp: New trace hooks for NFS, including both NFS client and server side activities. LKET/register_event.stp: Add the register event calls for NFS trace hooks.
* vfs.stp:guanglei2006-08-231-0/+1443
New tapset from Thomas Zanussi(trz@us.ibm.com) to probe vfs layer activities. nfs.stp: New tapset from Li Xuepeng(xuepengl@cn.ibm.com) to probe nfs file operations and nfs address space operations on client side. nfs_proc.stp: New tapset from Li Xuepeng to probe some nfs RPC procedure stub functions on client side. nfsd.stp: New tapset from Li Xuepeng to probe nfs server side activities, including some RPC procedure stub functions, nfsd dispatch routine, and nfsd_* functions