1TAPSET::NFSD(3stap)                                        TAPSET::NFSD(3stap)
2
3
4

NAME

6       tapset::nfsd - systemtap NFS server side probe points
7
8
9

DESCRIPTION

11       This  family  of probe points is used to probe NFS activities on server
12       side.  Because there is only one function, i.e., nfsd4_proc_compound in
13       proc  level  for NFSv4, all the following nfsd.proc probe points except
14       nfsd.proc.compound are only for NFSv2 and NFSv3.
15
16       It contains the following probe points:
17
18
19       nfsd.proc.lookup
20
21              Fires whenever client opens/searches file on server
22
23              Arguments:
24
25              client_ip
26                the ip address of client
27
28              proto
29                transfer protocol
30
31              version
32                nfs version
33
34              fh
35                the pointer to file handler of parent dir
36
37              filename
38                file name
39
40              filelen
41                the length of file name
42
43
44       nfsd.proc.read
45
46              Fires whenever client reads file on server
47
48              Arguments:
49
50              client_ip
51                the ip address of client
52
53              proto
54                transfer protocol
55
56              version
57                nfs version
58
59              fh
60                the pointer to file handler of file
61
62              count,size
63                number of bytes to be read
64
65              offset
66                the offset of file
67
68              vec
69                struct kvec, includes buf address in kernel address
70                and the length of each buffer
71
72              vlen
73                number of blocks to be read
74
75
76       nfsd.proc.write
77
78              Fires whenever client writes data to file on server
79
80              Arguments:
81
82              client_ip
83                the ip address of client
84
85              proto
86                transfer protocol
87
88              version
89                nfs version
90
91              fh
92                the pointer to file handler of file
93
94              count,size
95                number of bytes to written
96
97              offset
98                the offset of file
99
100              vec
101                struct kvec, includes buf address in kernel address
102                and the length of each buffer
103
104              vlen
105                number of blocks to written
106
107              stable
108                 argp->stable(only for nfs.proc3.write)
109
110
111       nfsd.proc.commit
112
113              Fires whenever client does a commit operation
114
115              Arguments:
116
117              client_ip
118                the ip address of client
119
120              proto
121                transfer protocol
122
123              version
124                nfs version
125
126              fh
127                the pointer to file handler of file
128
129              count,size
130                number of bytes to written
131
132              offset
133                the offset of file
134
135
136       nfsd.proc.create
137
138              Fires whenever client creates a file on server
139
140              Arguments:
141
142              client_ip
143                the ip address of client
144
145              proto
146                transfer protocol
147
148              version
149                nfs version
150
151              fh
152                the pointer to file handler of parent dir
153
154              filename
155                file name
156
157              filelen
158                the length of file name
159
160
161       nfsd.proc.remove
162
163              Fires whenever client removes a file on server
164
165              Arguments:
166
167              client_ip
168                the ip address of client
169
170              proto
171                transfer protocol
172
173              version
174                nfs version
175
176              fh
177                the pointer to file handler of file
178
179              filename
180                file name
181
182              filelen
183                the length of file name
184
185
186       nfsd.proc.rename
187
188              Fires whenever client renames a file on server
189
190              Arguments:
191
192              client_ip
193                the ip address of client
194
195              proto
196                transfer protocol
197
198              version
199                nfs version
200
201              fh
202                the pointer to file handler of old path
203
204              tfh
205                the pointer to file handler of new path
206
207              filename
208                old file name
209
210              tname
211                new file name
212
213              filelen
214                the length of old file name
215
216              tlen
217                the length of new file name
218
219
220       nfsd.proc.compound
221
222              Fires whenever server receives a NFSV4 operation from client
223
224              Arguments:
225
226              client_ip
227                the ip address of client
228
229              proto
230                transfer protocol
231
232              version
233                nfs version
234
235              num
236                number of file operation
237
238              op
239                head of operation list
240
241
242       nfsd.open
243
244              Fires whenever server opens file
245
246              Arguments:
247
248              fh
249                 file handle (the first part is the length of the file handle)
250
251              access
252                type of open (read/write/commit/readdir...)
253
254              type
255                type of file(regular file or dir)
256
257
258       nfsd.read
259
260              Fires whenever server reads file
261
262              Arguments:
263
264              fh
265                 file handle (the first part is the length of the file handle)
266
267              file
268                 argument :file, indicates if the file has been opened.
269
270              count,size
271                number of bytes to be read
272
273              offset
274                the offset of file
275
276              vec
277                struct kvec, includes buf address in kernel address
278                and the length of each buffer
279
280              vlen
281                number of blocks to be read
282
283
284       nfsd.write
285
286              Fires whenever server writes file
287
288              Arguments:
289
290              fh
291                 file handle (the first part is the length of the file handle)
292
293              file
294                 argument :file, indicates if the file has been opened.
295
296              count,size
297                number of bytes to be read
298
299              offset
300                the offset of file
301
302              vec
303                struct kvec, includes buf address in kernel address
304                and the length of each buffer
305
306              vlen
307                number of blocks to be written
308
309
310       nfsd.commit
311
312              Fires when server commits all pending writes to stable storage
313
314              Arguments:
315
316              fh
317                file handle (the first part is the length of the file handle)
318
319              count,size
320                number of bytes to be read
321
322              offset
323                the offset of file
324
325
326       nfsd.lookup
327
328              Fires whenever client opens/searches file on server
329
330              Arguments:
331
332              fh
333                file handle (the first part is the length of the file handle)
334
335              filename
336                file name
337
338              filelen
339                the length of file name
340
341
342       nfsd.create
343
344               Fires when client creates a file(regular,dir,device,fifo) on
345               server side, sometimes nfsd will call nfsd_create_v3 instead
346               of this function
347
348              Arguments:
349
350              fh
351                file handle (the first part is the length of the file handle)
352
353              filename
354                file name
355
356              filelen
357                the length of file name
358
359              type
360                file type(regular,dir,device,fifo ...)
361
362              iap_valid
363                Attribute flags
364
365              iap_mode
366                file access mod
367
368
369       nfsd.createv3
370
371              Fires when client creates a regular file or set file  attributes
372              on  server side, only called by nfsd3_proc_create and nfsd4_open
373              (op_claim_type is NFS4_OPEN_CLAIM_NULL)
374
375              Arguments:
376
377              fh
378                file handle (the first part is the length of the file handle)
379
380              filename
381                file name
382
383              filelen
384                the length of file name
385
386              iap_valid
387                Attribute flags
388
389              iap_mode
390                file access mode
391
392              createmode
393                create mode. The possible values could be:
394                  NFS3_CREATE_EXCLUSIVE,NFS3_CREATE_UNCHECKED,NFS3_CRE‐
395              ATE_GUARDED
396
397              truncp
398                trunp arguments, indicates if the file should be truncated
399
400              verfier
401                file attributes (atime,mtime,mode). It's used to reset file
402                attributes for CREATE_EXCLUSIVE
403
404
405       nfsd.unlink
406
407              Fires when client removes a file or a dir  on server side,
408
409              Arguments:
410
411              fh
412                file handle (the first part is the length of the file handle)
413
414              filename
415                file name
416
417              filelen
418                the length of file name
419
420              type
421                file type(file or dir)
422
423
424       nfsd.rename
425              Fires when clients rename a file on server side
426
427              Arguments:
428
429              fh
430                file handler of old path
431
432              tfh
433                file handler of new path
434
435              filename
436                old file name
437
438              tname
439                new file name
440
441              flen
442                length of old file name
443
444              tlen
445                length of new file name
446
447
448       nfsd.close
449
450              Fires whenever server closes file
451
452              Arguments:
453
454              filename
455                file name
456
457
458       nfsd.dispatch
459
460              Fires whenever server receives NFS operation from client
461
462              Arguments:
463
464              client_ip
465                the ip address of client
466
467              proto
468                transfer protocol
469
470              version
471                nfs version
472
473              xid
474                transmission id
475
476              prog
477                program number
478
479              proc
480                procedure number
481
482

SEE ALSO

484       stap(1), stapprobes(3stap)
485
486
487
488
489IBM                                                        TAPSET::NFSD(3stap)
Impressum