public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Why probe nfsd.proc.read and probe nfsd.read are not executed ?
@ 2016-09-09  5:12 FOPA Leon constantin
  2016-09-09 18:18 ` David Smith
  0 siblings, 1 reply; 2+ messages in thread
From: FOPA Leon constantin @ 2016-09-09  5:12 UTC (permalink / raw)
  To: Systemtap

Hi

I have setup a simple nfs server for only one client and I am 
interested about logging all operations (performed by the client) 
executed by the nfs daemon (nfsd in the server side).

So I used the systemtap nfsd tapset 
(https://sourceware.org/systemtap/man/tapset::nfsd.3stap.html) as shown 
in the code (see below).

The problem is that when I run this systemtap code and perform file 
operation in the nfs mount point in the client,
every probe are execute but NOT the probe nfsd.proc.read and probe 
nfsd.read.

Is there a reason for this ? Am I missing something ?

Best regards,

Fopa Léon Constantin


probe begin{
       printf("Let play with nfsd ...\n")
}

probe nfsd.dispatch {
   printf("hello nfsd.dispatch occured\n")
}

probe nfsd.proc.write {
   printf("hello nfsd.proc.write occured\n")
}

probe nfsd.proc.read {
   printf("hello nfsd.proc.read occured\n")
}

probe nfsd.proc.rename {
   printf("hello nfsd.proc.rename occured\n")
}

probe nfsd.proc.remove {
   printf("hello nfsd.proc.remove occured\n")
}

probe nfsd.unlink {
   printf("hello nfsd.unlink occured\n")
}

probe nfsd.read {
   printf("hello nfsd.read occured\n")
}

probe end{
       printf("That was fun ...\n")
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Why probe nfsd.proc.read and probe nfsd.read are not executed ?
  2016-09-09  5:12 Why probe nfsd.proc.read and probe nfsd.read are not executed ? FOPA Leon constantin
@ 2016-09-09 18:18 ` David Smith
  0 siblings, 0 replies; 2+ messages in thread
From: David Smith @ 2016-09-09 18:18 UTC (permalink / raw)
  To: FOPA Leon constantin, Systemtap

On 09/09/2016 12:12 AM, FOPA Leon constantin wrote:
> Hi
> 
> I have setup a simple nfs server for only one client and I am interested
> about logging all operations (performed by the client) executed by the
> nfs daemon (nfsd in the server side).
> 
> So I used the systemtap nfsd tapset
> (https://sourceware.org/systemtap/man/tapset::nfsd.3stap.html) as shown
> in the code (see below).
> 
> The problem is that when I run this systemtap code and perform file
> operation in the nfs mount point in the client,
> every probe are execute but NOT the probe nfsd.proc.read and probe
> nfsd.read.
> 
> Is there a reason for this ? Am I missing something ?
> 
> Best regards,
> 
> Fopa Léon Constantin
> 
> 
> probe begin{
>       printf("Let play with nfsd ...\n")
> }
> 
> probe nfsd.dispatch {
>   printf("hello nfsd.dispatch occured\n")
> }
> 
> probe nfsd.proc.write {
>   printf("hello nfsd.proc.write occured\n")
> }
> 
> probe nfsd.proc.read {
>   printf("hello nfsd.proc.read occured\n")
> }
> 
> probe nfsd.proc.rename {
>   printf("hello nfsd.proc.rename occured\n")
> }
> 
> probe nfsd.proc.remove {
>   printf("hello nfsd.proc.remove occured\n")
> }
> 
> probe nfsd.unlink {
>   printf("hello nfsd.unlink occured\n")
> }
> 
> probe nfsd.read {
>   printf("hello nfsd.read occured\n")
> }
> 
> probe end{
>       printf("That was fun ...\n")
> }

Here's what I see when I run the following on the nfs server system:

# stap -e 'probe nfsd.entries, nfsd.proc.entries { printf("%s
occurred\n", name) }'
nfsd.open occurred
nfsd.open occurred
nfsd.proc4.read occurred
nfsd.open occurred
nfsd.proc4.read occurred

On the client system I did an 'ls', followed by using 'cat' to display 2
different files on an NFS partition mounted from the NFS server that
systemtap is running on.

Try my script and see what you get doing similar operations.

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-09 18:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-09  5:12 Why probe nfsd.proc.read and probe nfsd.read are not executed ? FOPA Leon constantin
2016-09-09 18:18 ` David Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).