summaryrefslogtreecommitdiffstats
path: root/tapset/rpc.stp
Commit message (Collapse)AuthorAgeFilesLines
* PR 9871 (partial) fix. Removed all embedded-C in rpc.stp.David Smith2010-04-071-94/+69
| | | | * tapset/rpc.stp: Replaced all embedded-C functions with script language.
* The rpc buildok test suite probe breaks with new kernelsSteve Dickson2010-03-161-2/+21
| | | | | | | | | | | With newer kernels the rpc_release_task() routine is not defined because it becomes inline since its only called once. Plus the task allocation routines have changed so the arguments no longer match up with previous routines. So this patch uses the kernel_v clauses to allow the original functionality with older kernels and not to break on new kernels. Signed-off-by: Steve Dickson <steved@redhat.com>
* Backport recently added probes to RHEL5(U5)Steve Dickson2010-03-161-1/+6
| | | | | | | | Ensured the recent additions of v4 probes and supporting routines worked or at least don't break with RHEL5 U5 kernels (this time without kernel version checks). Signed-off-by: Steve Dickson <steved@redhat.com>
* Revert "Backport recently added probes to RHEL5(U5)"Steve Dickson2010-03-161-6/+1
| | | | | | | This reverts commit 35f22bd95cea2fb75573a27282f2a5edea84f2d7 beause kernel_v kernel checks should not be used. Signed-off-by: Steve Dickson <steved@redhat.com>
* Backport recently added probes to RHEL5(U5)Steve Dickson2010-03-161-1/+6
| | | | | | | Ensured the recent additions of v4 probes and supporting routines worked or at least don't break with RHEL5 U5 kernel. Signed-off-by: Steve Dickson <steved@redhat.com>
* Revert "Backport recent changes to RHEL5 (U5)"Steve Dickson2010-03-161-6/+1
| | | | | | This commit causes the 2.6.33 probes to break This reverts commit 3ca4e3f2f5a7a615d0aed00a242f4e30864deaa8.
* Backport recent changes to RHEL5 (U5)Steve Dickson2010-03-161-1/+6
| | | | | | | Ensured the recent additions of v4 probes and supporting routines worked with RHEL5 U5 kernel. Signed-off-by: Steve Dickson <steved@redhat.com>
* Allow better filtering with IP address and File handleSteve Dickson2010-03-161-0/+24
| | | | | | | | | | | | | | | To allow filtering by the client's IP address, the addr_from_rqst_str() function was added which extracts the IP address from incoming procedures and converts them into a character string. Calls to addr_from_rqst_str() were added to the top of each probe so callers of the probes can use the IP addresses as a filter. Calls to __svc_fh() were also sprinkled were needed so callers can also filter on file handles Signed-off-by: Steve Dickson <steved@redhat.com>
* PR9932: use @cast module search pathJosh Stone2009-03-101-27/+14
| | | | | | | | | The nfs, rpc, and scsi tapsets use @cast on types that may be compiled into a kernel module or into the main kernel binary. The @cast search path separated with colons lets us search both the kernel and the module. For a couple of cases, I also merged sequential @casts that work just fine as a single cast with a multiple-level dereference.
* PR9871: use @cast in tapsetWenji Huang2009-03-061-52/+42
| | | | | | | | Rewrite some functions using type casting to get rid of embedded C code in nfs, scsi, signal, socket, rpc, task and vfs tapset. Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
* rpc tapset cleanupFrank Ch. Eigler2008-05-251-81/+86
|
* 2007-11-8 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-11-081-6/+6
| | | | | | | | From Lai Jiangshan <laijs@cn.fujitsu.com> * rpc.stp (clones_from_clnt): Use deref to check, then use atomic_read to read an atomic_t to avoid compilation error of type matching. (tasks_from_clnt): Ditto.
* 2007-11-6 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-11-061-1/+4
| | | | | | | From Cai Fei <caifei@cn.fujitsu.com> * rpc.stp (sunrpc.clnt.call_sync): Define procname only for kernel>=2.6.17. (sunrpc.clnt.call_async): Ditto.
* 2007-11-1 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-11-011-0/+2
| | | | | | From Lai Jiangshan <laijs@cn.fujitsu.com> * rpc.stp (clones_from_clnt): Add CATCH_DEREF_FAULT(). (tasks_from_clnt): Ditto.
* rpc.stp: Replaced atomic_read()'s with kread()'smmason2007-10-091-2/+2
|
* 2007-09-27 Wenji Huang <wenji.huang@oracle.com>wenji2007-09-271-0/+8
| | | | | | * 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-27 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-271-2/+3
| | | | | | | From Cai Fei <caifei@cn.fujitsu.com> * rpc.stp (sunrpc.clnt.shutdown_client): Add argument progname's definition for probe sunrpc.clnt.shutdown_client, because it is in the man page but not defined in tapset.
* 2007-09-27 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-271-2/+2
| | | | | | | From Cai Fei <caifei@cn.fujitsu.com> * rpc.stp (sunrpc.clnt.call_sync, sunrpc.clnt.call_async): Fix the output format of flags in argstr from hex to decimal just to make it same as other probes.
* 2007-09-25 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-251-12/+14
| | | | | | From Cai Fei <caifei@cn.fujitsu.com> * rpc.stp Fix the wrong calling of returnstr($return) to returnstr(1) or returnstr(2).
* 2007-09-25 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-251-11/+39
| | | | | From CaiFei <caifei@cn.fujitsu.com> * rpc.stp Add function for probe point sunrpc.clnt.create_client.
* Add /* pure */ to embedded-C functions.fche2007-09-241-10/+10
|
* 2007-08-23 Wenji Huang <wenji.huang@oracle.com>wenji2007-08-231-21/+32
| | | | | | | * rpc.stp (sunrpc.svc.process, sunrpc.svc.recv): Modify evaluating sv_name,sv_prog,sv_nrthreads in kernel>=2.6.19. (sunrpc.sched.delay,sunrpc.sched.delay): Fix typo. (sunrpc.*.return): Change name by adding "return".
* * applying kernel drift patchesfche2007-03-201-7/+28
| | | | | | | | | | | | | | | | | | | | 2007-03-09 Pierre Peiffer <pierre.peiffer@bull.net> * nfsd.stp (nfsd.dispatch): Change initialization of variable client_ip with a call to addr_from_rqst. * rpc.stp (addr_from_rqst): - update with changes in struct svc_rqst - __rpc_execute returns void now. struct rpc_xprt modified since kernel 2.6.19. * nfs.stp, vfs.stp: Local variables f_dentry renamed, because conflicting with a new #define in kernel header linux/fs.h in 2.6.20. 2007-03-09 Pierre Peiffer <pierre.peiffer@bull.net> * nfs.stp: Local variables f_dentry renamed, because conflicting with a new #define in kernel header linux/fs.h in 2.6.20. * rpc.stp (_addevent.sunrpc.sched.execute.return): update with __rpc_execute which returns void since kernel 2.6.21.
* 2007-02-06 Josh Stone <joshua.i.stone@intel.com>jistone2007-02-071-22/+54
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-2/+18
|
* patch of nfs, nfs_proc, rpc tapsets for 2.6.9 kernelguanglei2006-12-111-1/+9
|
* From Gui Jian <guijian@cn.ibm.com>:guanglei2006-09-191-174/+348
| | | | | | | | | | | | | | tapset/rpc.stp: Some changes and more comments of RPC tapset tapset/LKET/rpc.stp: New trace hooks for RPC activities on client, server and scheduler sides tapset/LKET/register_event.stp: Add the register_sys_event() calls for new RPC trace hooks tapset/LKET/hookid_defs.stp: Add the definitions of RPC trace hooks
* Added RPC tapsetsguanglei2006-09-111-0/+702