stapprobes.nfs5
Systemtap nfs client side probe points
Overview
This family of probe points is used to probe NFS activities on client side. It contains the following probe points:
nfs.fop.llseek-
Fires whenever doing a llseek operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on servermaxbyte
Maximum size of the filesoffset
the offset of file to be repositionedorigin
the original position. The possible value could be:
SEEK_SET
The offset is set to offset bytes.
SEEK_CUR
The offset is set to its current location
plus offset bytes.
SEEK_END
The offset is set to the size of the file
plus offset bytes.
nfs.fop.llseek.return-
Fires whenever nfs llseek operation is done
Arguments:retstr
resulting offset location
nfs.fop.read-
Fires whenever doing a read operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on serverlen,size
number of bytes to be readpos
current file offsetbuf
the buf address
nfs.fop.read.return-
Fires whenever nfs read operation is done
Arguments:size
number of bytes read
nfs.fop.write-
Fires whenever doing a write operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on serverlen,size
number of bytes to writtenpos
current file offsetbuf
the buf address
nfs.fop.write.return-
Fires whenever nfs write operation is done
Arguments:size
number of bytes written
nfs.fop.aio_read-
Fires whenever doing an aio_read operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on servercount,size
number of bytes to be readpos
current file offsetbuf
the buf addressparent_name
parent dir namefile_name
file namecache_valid
cache related bit mask flagcache_time
when we started read-caching this inodeattrtimeo
how long the cached information is assumed to be valid.The cached attrs for this inode needed to be revalidated if
jiffies - read_cache_jiffies > attrtime
nfs.fop.aio_read.return-
Fires whenever nfs aio_read operation is done
Arguments:size
number of bytes read
nfs.fop.aio_write-
Fires whenever doing an aio_write operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on servercount,size
number of bytes to writtenpos
current file offsetbuf
the buf addressparent_name
parent dir namefile_name
file name
nfs.fop.aio_write.return-
Fires whenever nfs aio_write operation is done
Arguments:size
number of bytes written
nfs.fop.mmap-
Fires whenever doing an mmap operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on servervm_start
start address within vm_mmvm_end
the first byte after end address within vm_mmvm_flag
vm flagsparent_name
parent dir namefile_name
file namecache_valid
cache related bit mask flagcache_time
when we started read-caching this inodeattrtimeo
how long the cached information is assumed to be valid.The cached attrs for this inode needed to be revalidated if
jiffies - read_cache_jiffies > attrtime
nfs.fop.open-
Fires whenever doing an open operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on serverfile_name
file nameflag
file flagi_size
file length in bytes
nfs.fop.flush-
Fires whenever doing an flush operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on servermode
file modendirty
number of dirty page to be flushed
nfs.fop.release-
Fires whenever doing a release page operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on servermode
file mode
nfs.fop.fsync-
Fires whenever doing a fsync operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on serverndirty
number of dirty page to be flushed
nfs.fop.lock-
Fires whenever doing a file lock operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on serveri_mode
file type and access rightscmd
cmd argumentsfl_type
lock typefl_flag
lock flagsfl_start
starting offset of locked regionfl_end
ending offset of locked region
nfs.fop.sendfile-
Fires whenever doing a send file operation on nfs client side
Arguments:dev
device identifierino
inode numbers_id
the pointer to s_iddevname
the combination of server ip and the name of block device
on servercount,size
number of bytes to sentppos
current file offsetcache_valid
cache related bit mask flagcache_time
when we started read-caching this inodeattrtimeo
how long the cached information is assumed to be valid.The cached attrs for this inode needed to be revalidated if
jiffies - read_cache_jiffies > attrtime
nfs.fop.sendfile.return-
Fires whenever nfs sendfile operation is done
Arguments:size
number of bytes sent
nfs.fop.check_flags-
Fires whenever doing a check flag operation on nfs client side
Arguments:flags
file flag
nfs.aop.readpage-
Fires when a previous async read operation failed
Arguments:__page
the address of pagedev
device identifierino
inode numberi_flag
file flagsi_size
file length in bytessb_flag
super block flagsfile
file argumentpage_index
offset within mappingrsize
read size (in bytes)
nfs.aop.readpages-
Fies when in readahead way,read several pages once
Arguments:dev
device identifierino
inode numbernr_pages ,size
number of pages attempted to read in this executionfile
filp argumentrpages
read size (in pages)rsize
read size (in bytes)
nfs.aop.readpages.return-
Fies whenever a nfs read pages operation is done
Arguments:size
number of pages read
nfs.aop.set_page_dirty-
Fies whenever set page dirty on nfs client side
Arguments:__page
the address of pagepage_flag
page flags
nfs.aop.writepage-
Fies whenever writing an mapped page to the server from nfs client side
Arguments:__page
the address of pagedev
device identifierino
inode numberfor_reclaim
a flag of writeback_control, indicates if it's invoked from the page allocatorfor_kupdate
a flag of writeback_control, indicates if it's a kupdate writeback
The priority of wb is decided by above two flagsi_flag
file flagsi_size
file length in bytesi_state
inode state flagssb_flag
super block flagspage_index
offset within mappingwsize
write size
nfs.aop.writepages-
Fies whenever writing several dirty pages to the server from nfs client sides
Arguments:dev
device identifierino
inode numberfor_reclaim
a flag of writeback_control, indicates if it's invoked from the page allocatorfor_kupdate
a flag of writeback_control, indicates if it's a kupdate writeback
The priority of wb is decided by above two flagswpages
write size (in pages)wsize
write sizenr_to_write ,size
number of pages attempted to be written in this execution
nfs.aop.prepare_write-
Fies whenever prepare a page for writting on nfs client sides
Arguments:__page
the address of pagedev
device identifierino
inode numberoffset
start address of this write operationto
end address of this write operationpage_index
offset within mappingsize
read bytes
nfs.aop.commit_write-
Fies often after prepare write operation
Arguments:__page
the address of pagedev
device identifierino
inode numberoffset
start address of this write operationto
end address of this write operationi_flag
file flagsi_size
file length in bytessb_flag
super block flagpage_index
offset within mappingsize
read bytes
nfs.aop.release_page-
Arguments:__page
the address of pagedev
device identifierino
inode numberpage_index
offset within mapping
nfs.proc.lookup-
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionfilename
the name of file which client opens/searchs on servername_len
the length of file namebitmask0, bitmask1
V4 bitmask representing the set of attributes
supported on this filesystem (only in probe nfs.proc4.lookup)
nfs.proc.read-
Fires when client synchronously reads file from server
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionflags
used to set task->tk_flags in rpc_init_task functionsize,count
number of bytes to be read in this executionoffset
the file offset
nfs.proc.read.return-
Fires when synchronously reading file from server is done
Arguments:size
number of bytes read
nfs.proc.write-
Fires when client synchronously writes file to server
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionflags
used to set task->tk_flags in rpc_init_task functionsize,count
number of bytes to be written in this executionoffset
the file offsetbitmask0, bitmask1
V4 bitmask representing the set of attributes
supported on this filesystem (only in probe nfs.proc4.lookup)
nfs.proc.write.return-
Fires when synchronously writting file from server is done
Arguments:size
number of bytes written
nfs.proc.commit-
Fires when client writes the buffered data to disk,the buffered data is asynchronously written by client before(not exist in NFSV2)
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionsize,count
number of bytes to be written in this executionoffset
the file offsetbitmask0, bitmask1
V4 bitmask representing the set of attributes
supported on this filesystem (only in probe nfs.proc4.lookup)
nfs.proc.commit.return-
Fires when committing operation is done
Arguments:size
number of bytes written
nfs.proc.read_setup-
Fires when client asynchronously reads file from server, this function is used to setup a read rpc task,not do a real read operation.
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionsize,count
number of bytes to be read in this executionoffset
the file offset
nfs.proc.read_done-
Fires when a read reply is received or some read error occur (timeout or socket shutdown)
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionstatus
result of last async read operationcount
number of bytes readtimestamp
time stamp ,which is used for lease renewal (only
in nfs.proc4.read_done)
nfs.proc.write_setup-
Fires when client asynchronously write data to server, this function is used to setup a write rpc task,not do a write read operation.
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionsize,count
number of bytes to be written in this executionoffset
the file offsethow
used to set args.stable,The possible value could be:
NFS_UNSTABLE,
NFS_DATA_SYNC,
NFS_FILE_SYNC
(only in nfs.proc3.write_setup and nfs.proc4.write_setup)bitmask0, bitmask1
V4 bitmask representing the set of attributes supported
on this filesystem (only in probe nfs.proc4.write_setup)
nfs.proc.write_done-
Fires when a write reply is received or some write error occur (timeout or socket shutdown)
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionstatus
result of last async write operationvalid
fattr->valid ,indicates which fields are validcount
number of bytes writtentimestamp
time stamp ,which is used for lease renewal (only
in nfs.proc4.read_done)
nfs.proc.commit_setup-
Fires when client asynchronously do a commit operation, this function is used to setup a commit rpc task,not do a commit read operation.
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionsize,count
number of bytes to be written in this executionoffset
the file offsetbitmask0, bitmask1
V4 bitmask representing the set of attributes supported
on this filesystem (only in probe nfs.proc4.commit_setup)
nfs.proc.commit_done-
Fires when a commit reply is received or some commit error occur (timeout or socket shutdown)
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionstatus
result of last async write operationvalid
fattr->valid ,indicates which fields are validcount
number of bytes writtentimestamp
time stamp ,which is used for lease renewal (only
in nfs.proc4.read_done)
nfs.proc.open-
Fires whenever doing a open operation on nfs client side, the nfs_open function is used to allocate file read/write context information
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionfilename
file nameflag
file flagmode
file mode
nfs.proc.release-
Fires whenever doing a release operation on nfs client side,
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionfilename
file nameflag
file flagmode
file mode
nfs.proc4.handle_exception-
Fires whenever doing the error handling, only exist in NFSV4
errorcode
error code
nfs.proc.create-
Fires whenever nfs client creates a file on server
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionfh
file handler of parent dirfilename
file namefilelen
length of file nameflag
indicates create mode(only for NFSV3 and NFSV4)
nfs.proc.remove-
Fires whenever nfs client removes a file from server
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionfh
file handler of parent dirfilename
file namefilelen
length of file name
nfs.proc.rename-
Fires whenever nfs client renames a file on server
Arguments:server_ip
ip address of serverprot
transfer protocolversion
nfs versionold_fh
file handler of old parent dirold_name
old file nameold_filelen
length of old file namenew_fh
file handler of new parent dirnew_name
new file namenew_filelen
length of new file name
Releases
2 releases since Debian 4.0 (Etch); the text changed 1 time.