summaryrefslogtreecommitdiffstats
path: root/tapset/vfs.stp
Commit message (Collapse)AuthorAgeFilesLines
* PR 9871 (partial) fix. Removed some embedded-C in ioblock.stp/vfs.stp.David Smith2010-03-301-15/+1
| | | | | | | | | * tapset/dev.stp: Added a bdevname() script function. * tapset/ioblock.stp: Rewrote the embedded-C devname function to just use bdevname() script function. * tapset/vfs.stp: Removed embedded-C __bdevname() C function. Calls bdevname() script function instead. * tapset/string.stp: Added isdigit() function.
* PR 11338 (partial): Used '@defined()' in tty, scheduler, and vfs tapsets.David Smith2010-03-081-45/+21
| | | | | | | | | | * tapset/tty.stp: Used '@defined()' to remove kernel version checks. * tapset/scheduler.stp: Ditto. * tapset/vfs.stp: Used '@defined()' to remove kernel version checks. Also made several probe points optional instead of using kernel version checks to know when to include them. * testsuite/buildok/vfs_testcase.stp: Removed stap '-u' (unoptimized mode) switch, since '@defined()' doesn't work in unoptimized mode.
* Merge sequential casts in the vfs tapsetJosh Stone2009-03-101-35/+19
| | | | | | | | | A few places in this tapset were using a pattern like this: i_sb = @cast(foo, "inode")->i_sb return @cast(foo, "super_block")->bar The type of i_sb is already known, so I just merged this to: return @cast(foo, "inode")->i_sb->bar
* PR9871: use @cast in tapsetWenji Huang2009-03-061-119/+89
| | | | | | | | 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>
* Add inode variable, ino.William Cohen2008-10-301-0/+4
|
* PR6972. Fixed vfs tapset.David Smith2008-10-281-9/+21
| | | | | | | | | | | | | | | | | | 2008-10-28 David Smith <dsmith@redhat.com> PR6972 * vfs.stp (generic.fop.aio_read): Works under 2.6.18 kernels, such as RHEL5. (generic.fop.aio_read.return): Ditto. (vfs.__set_page_dirty_buffers): Fixed small bug. (_vfs.block_write_begin): Only use for kernels >= 2.6.24. (_vfs.block_write_begin.return): Ditto. (_vfs.block_write_end): Ditto. (_vfs.block_write_end.return): Ditto. 2008-10-28 David Smith <dsmith@redhat.com> * buildok/vfs_testcase.stp: Fixes for updated vfs tapset.
* Provide dev and devname in vfs.read and vfs.write. Use them in disktop.stp.William Cohen2008-10-271-0/+8
|
* Fix 2.6.27 detection.Mark Wielaard2008-09-151-2/+2
|
* Correct several tests for 2.6.27Wenji Huang2008-08-031-0/+9
|
* Correct access to the mapping field in vfs::__address_inode().Josh Stone2008-07-101-2/+1
|
* Make _vfs.generic_commit_write only for kernel<=2.6.25Wenji Huang2008-07-011-0/+2
|
* This commit makes changes to the VFS tapset. The changes include deprecation ofroot2008-06-271-6/+297
| | | | | | | some old probe points to older versions of kernel, adding new helper C functions and probe points for the VFS subsystem. A new testcase is created for the VFS tapset which performs a compile test (i.e. up4) on the probe points to verify sanity. These details can also be found in the ChangeLog.
* PR6538: tapset changesFrank Ch. Eigler2008-05-201-10/+4
|
* Specified explicit types for __find_bdevname() parameters and return value. ↵mmason2007-09-261-12/+22
| | | | | | | | The types could not be determined correctly when __find_bdevname() was used in nfs.stp Added __page_index() to work around problem dereferencing unions in stap language. Made generic.fop.sendfile conditional on kernel <= 2.6.22. generic_file_sendfile() was removed in 2.6.23.
* 2007-08-30 Wenji Huang <wenji.huang@oracle.com>wenji2007-08-301-22/+34
| | | | | | | | | | | * nfs.stp (__iov_length): Update. (nfs.fop.aio_read, nfs.fop.aio_write): Update calling __iov_length. * vfs.stp (generic.fop.aio_read, generic.fop.aio_write): Modify evaluating count,buf. (generic.fop.readv*, generic.fop.writev*, generic.fop.splice_read*, generic.fop.splice_write*, generic.fop.read*, generic.fop.write*): Make optional. (vfs.__set_page_dirty_buffers.return): Add condition. (vfs.remove_from_page_cache.return): Fix typo. (vfs.block_sync_page.return): Remove size and units.
* * applying kernel drift patchesfche2007-03-201-14/+24
| | | | | | | | | | | | | | | | | | | | 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-72/+60
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-01-26 Josh Stone <joshua.i.stone@intel.com>jistone2007-01-271-2/+1
| | | | * vfs.stp (ppos_pos): Change deref() to kread() so i686 passes.
* bugfix for 2.6.19 kernelguanglei2006-12-291-42/+109
|
* 2006-12-18 Frank Ch. Eigler <fche@elastic.org>fche2006-12-181-1/+6
| | | | | | | | | | | PR 3079 * loc2c-runtime.h (deref, store_deref): Fork x86 and x86-64 variants. Remove dysfunctional 64-bit ops from x86. 2006-12-18 Frank Ch. Eigler <fche@elastic.org> * vfs.stp (ppos_pos): Protect contents with deref(), though this blocks operation on i686 due to bug #3079.
* scheduler.stp, vfs.stp: made idle_balance and buffer_migrate_page optinal.guanglei2006-11-291-2/+2
|
* bug fix and more error checking for nfs tapsetsguanglei2006-08-251-9/+11
|
* vfs.stp:guanglei2006-08-231-0/+592
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