stapprobes.nfsd5
Systemtap nfs server side probe points
Overview
This family of probe points is used to probe NFS activities on server side. Because there is only one function, i.e., nfsd4_proc_compound in proc level for NFSv4, all the following nfsd.proc probe points except nfsd.proc.compound are only for NFSv2 and NFSv3.
It contains the following probe points:
nfsd.proc.lookup-
Fires whenever client opens/searchs file on server
Arguments:client_ip
the ip address of clientproto
transfer protocolversion
nfs versionfh
the pointer to file handler of parent dirfilename
file namefilelen
the length of file name
nfsd.proc.read-
Fires whenever client reads file on server
Arguments:client_ip
the ip address of clientproto
transfer protocolversion
nfs versionfh
the pointer to file handler of filecount,size
number of bytes to be readoffset
the offset of filevec
struct kvec ,includes buf address in kernel address
and the length of each buffervlen
number of blocks to be read
nfsd.proc.write-
Fires whenever client writes data to file on server
Arguments:client_ip
the ip address of clientproto
transfer protocolversion
nfs versionfh
the pointer to file handler of filecount,size
number of bytes to writtenoffset
the offset of filevec
struct kvec ,includes buf address in kernel address
and the length of each buffervlen
number of blocks to writtenstable
argp->stable(only for nfs.proc3.write)
nfsd.proc.commit-
Fires whenever client does a commit operation
Arguments:client_ip
the ip address of clientproto
transfer protocolversion
nfs versionfh
the pointer to file handler of filecount,size
number of bytes to writtenoffset
the offset of file
nfsd.proc.create-
Fires whenever client creates a file on server
Arguments:client_ip
the ip address of clientproto
transfer protocolversion
nfs versionfh
the pointer to file handler of parent dirfilename
file namefilelen
the length of file name
nfsd.proc.remove-
Fires whenever client removes a file on server
Arguments:client_ip
the ip address of clientproto
transfer protocolversion
nfs versionfh
the pointer to file handler of filefilename
file namefilelen
the length of file name
nfsd.proc.rename-
Fires whenever client renames a file on server
Arguments:client_ip
the ip address of clientproto
transfer protocolversion
nfs versionfh
the pointer to file handler of old pathtfh
the pointer to file handler of new pathfilename
old file nametname
new file namefilelen
the length of old file nametlen
the length of new file name
nfsd.proc.compound-
Fires whenever server receives a NFSV4 operation from client
Arguments:client_ip
the ip address of clientproto
transfer protocolversion
nfs versionnum
number of file operationop
head of operation list
nfsd.open-
Fires whenever server opens file
Arguments:fh
file handle (the first part is the length of the file handle)access
type of open (read/write/commit/readdir...)type
type of file(regular file or dir)
nfsd.read-
Fires whenever server reads file
Arguments:fh
file handle (the first part is the length of the file handle)file
argument :file, indicates if the file has been opened.count,size
number of bytes to be readoffset
the offset of filevec
struct kvec ,includes buf address in kernel address
and the length of each buffervlen
number of blocks to be read
nfsd.write-
Fires whenever server writes file
Arguments:fh
file handle (the first part is the length of the file handle)file
argument :file, indicates if the file has been opened.count,size
number of bytes to be readoffset
the offset of filevec
struct kvec ,includes buf address in kernel address
and the length of each buffervlen
number of blocks to be written
nfsd.commit-
Fires when server commits all pending writes to stable storage
Arguments:fh
file handle (the first part is the length of the file handle)count,size
number of bytes to be readoffset
the offset of file
nfsd.lookup-
Fires whenever client opens/searchs file on server
Arguments:fh
file handle (the first part is the length of the file handle)filename
file namefilelen
the length of file name
nfsd.create-
Fires when client creates a file(regular,dir,device,fifo) on
server side, sometimes nfsd will call nfsd_create_v3 instead
of this functionArguments:fh
file handle (the first part is the length of the file handle)filename
file namefilelen
the length of file nametype
file type(regular,dir,device,fifo ...)iap_valid
Attribute flagsiap_mode
file access mod
nfsd.createv3-
Fires when client creates a regular file or set file attributes on server side,only called by nfsd3_proc_create and nfsd4_open (op_claim_type is NFS4_OPEN_CLAIM_NULL)
Arguments:fh
file handle (the first part is the length of the file handle)filename
file namefilelen
the length of file nameiap_valid
Attribute flagsiap_mode
file access modecreatemode
create mode .The possible values could be:
NFS3_CREATE_EXCLUSIVE,NFS3_CREATE_UNCHECKED,NFS3_CREATE_GUARDEDtruncp
trunp arguments, indicates if the file shouldbe truncateverfier
file attributes (atime,mtime,mode).It's used to reset file
attributes for CREATE_EXCLUSIVE
nfsd.unlink-
Fires when client removes a file or a dir on server side,
Arguments:fh
file handle (the first part is the length of the file handle)filename
file namefilelen
the length of file nametype
file type(file or dir)
nfsd.rename-
Fires when clients rename a file on server side
Arguments:fh
file handler of old pathtfh
file handler of new pathfilename
old file nametname
new file nameflen
length of old file nametlen
length of new file name
nfsd.close-
Fires whenever server closes file
Arguments:filename
file name
nfsd.dispatch-
Fires whenever server receives NFS operation from client
Arguments:client_ip
the ip address of clientproto
transfer protocolversion
nfs versionxid
transmission idprog
program numberproc
procedure number
Releases
2 releases since Debian 4.0 (Etch); the text changed 1 time.