| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
* tapset/rpc.stp: Replaced all embedded-C functions with script language.
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
This reverts commit 35f22bd95cea2fb75573a27282f2a5edea84f2d7
beause kernel_v kernel checks should not be used.
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
This commit causes the 2.6.33 probes to break
This reverts commit 3ca4e3f2f5a7a615d0aed00a242f4e30864deaa8.
|
|
|
|
|
|
|
| |
Ensured the recent additions of v4 probes and
supporting routines worked with RHEL5 U5 kernel.
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
From Lai Jiangshan <laijs@cn.fujitsu.com>
* rpc.stp (clones_from_clnt): Add CATCH_DEREF_FAULT().
(tasks_from_clnt): Ditto.
|
| |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
From Cai Fei <caifei@cn.fujitsu.com>
* rpc.stp Fix the wrong calling of returnstr($return) to
returnstr(1) or returnstr(2).
|
|
|
|
|
| |
From CaiFei <caifei@cn.fujitsu.com>
* rpc.stp Add function for probe point sunrpc.clnt.create_client.
|
| |
|
|
|
|
|
|
|
| |
* 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".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|