Skip to content

nfsd: observability improvements

[email protected] linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest18 patches 4 repliesIn review

Changes in v4 from the cover letter

- Replace usage of __array/memcpy for capturing sockaddrs
- Add NFSD_TRACE_PROC_CALL macros instead of re-using SVC_RQST_ENDPOINT
- Const-ify tracepoint pointer arguments
- Rename nfsd_setattr and nfsd_lookup_dentry tracepoints to include _vfs_
- Restructure the new READDIR tracepoint to capture the "count" argument
- Add non-empty patch descriptions to silence checkpatch.pl
- Link to v3: https://lore.kernel.org/r/[email protected]

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18NFSD: Use sockaddr instead of a generic arrayfs/nfsd/trace.h+15 -141 reply
2/18NFSD: Add a Call equivalent to the NFSD_TRACE_PROC_RES macrosfs/nfsd/trace.h+17 -01 reply
3/18nfsd: add a tracepoint for nfsd_setattrfs/nfsd/trace.h fs/nfsd/vfs.c include/trace/misc/fs.h+62 -00 replies
4/18nfsd: add a tracepoint to nfsd_lookup_dentryfs/nfsd/trace.h fs/nfsd/vfs.c+24 -10 replies
5/18nfsd: add nfsd_vfs_create tracepointsfs/nfsd/nfs3proc.c fs/nfsd/trace.h fs/nfsd/vfs.c+32 -00 replies
6/18nfsd: add tracepoint to nfsd_symlinkfs/nfsd/trace.h fs/nfsd/vfs.c+29 -00 replies
7/18nfsd: add tracepoint to nfsd_link()fs/nfsd/trace.h fs/nfsd/vfs.c+29 -01 reply
8/18nfsd: add tracepoints for unlink eventsfs/nfsd/trace.h fs/nfsd/vfs.c+26 -00 replies
9/18nfsd: add tracepoint to nfsd_renamefs/nfsd/trace.h fs/nfsd/vfs.c+33 -00 replies
10/18nfsd: add tracepoint to nfsd_readdirfs/nfsd/nfs3proc.c fs/nfsd/nfs4proc.c fs/nfsd/nfsproc.c +1 more+33 -00 replies
11/18nfsd: add tracepoint for getattr and statfs eventsfs/nfsd/nfs3proc.c fs/nfsd/nfs4proc.c fs/nfsd/nfsproc.c +2 more+38 -00 replies
12/18nfsd: remove old v2/3 create path dprintksfs/nfsd/nfs3proc.c fs/nfsd/nfsproc.c+0 -200 replies
13/18nfsd: remove old v2/3 SYMLINK dprintksfs/nfsd/nfs3proc.c fs/nfsd/nfsproc.c+0 -90 replies
14/18nfsd: remove old LINK dprintksfs/nfsd/nfs3proc.c fs/nfsd/nfsproc.c+0 -140 replies
15/18nfsd: remove REMOVE/RMDIR dprintksfs/nfsd/nfs3proc.c fs/nfsd/nfsproc.c+0 -150 replies
16/18nfsd: remove dprintks for v2/3 RENAME eventsfs/nfsd/nfs3proc.c fs/nfsd/nfsproc.c+0 -140 replies
17/18nfsd: remove legacy READDIR dprintksfs/nfsd/nfs3proc.c fs/nfsd/nfsproc.c+0 -90 replies
18/18nfsd: remove legacy dprintks from GETATTR and STATFS codepathsfs/nfsd/nfs3proc.c fs/nfsd/nfsproc.c+0 -100 replies

Reviews trailers per patch

2 of 18 patches have a Reviewed-by or Acked-by.

PatchJeff Layton
1/18R-b
2/18R-b
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18
16/18
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/18] nfsd: observability improvements

From: Chuck Lever <[email protected]>

These needed enough cosmetic changes that a v4 posting is warranted.

Some of these could add a few more arguments, but the basic infrastructure is solid enough to run with.

Changes in v4:
- Replace usage of __array/memcpy for capturing sockaddrs
- Add NFSD_TRACE_PROC_CALL macros instead of re-using SVC_RQST_ENDPOINT
- Const-ify tracepoint pointer arguments
- Rename nfsd_setattr and nfsd_lookup_dentry tracepoints to include _vfs_
- Restructure the new READDIR tracepoint to capture the "count" argument
- Add non-empty patch descriptions to silence checkpatch.pl
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- move most of the tracepoints into non-version specific nfsd/vfs.c calls
- rename them with a nfsd_vfs_* prefix
- remove the dprintks in separate patches
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Break tracepoints out into multiple patches
- Flesh out the tracepoints in these locations to display the same info
as legacy dprintks.
- have all the tracepoints SVC_XPRT_ENDPOINT_* info
- update svc_xprt_dequeue tracepoint to show how long xprt was on queue
- Link to v1: https://lore.kernel.org/r/[email protected]

Chuck Lever (2):
NFSD: Use sockaddr instead of a generic array
NFSD: Add a Call equivalent to the NFSD_TRACE_PROC_RES macros

Jeff Layton (16):
nfsd: add a tracepoint for nfsd_setattr
nfsd: add a tracepoint to nfsd_lookup_dentry
nfsd: add nfsd_vfs_create tracepoints
nfsd: add tracepoint to nfsd_symlink
nfsd: add tracepoint to nfsd_link()
nfsd: add tracepoints for unlink events
nfsd: add tracepoint to nfsd_rename
nfsd: add tracepoint to nfsd_readdir
nfsd: add tracepoint for getattr and statfs events
nfsd: remove old v2/3 create path dprintks
nfsd: remove old v2/3 SYMLINK dprintks
nfsd: remove old LINK dprintks
nfsd: remove REMOVE/RMDIR dprintks
nfsd: remove dprintks for v2/3 RENAME events
nfsd: remove legacy READDIR dprintks
nfsd: remove legacy dprintks from GETATTR and STATFS codepaths

 fs/nfsd/nfs3proc.c      |  63 +--------
 fs/nfsd/nfs4proc.c      |   5 +
 fs/nfsd/nfsproc.c       |  35 +----
 fs/nfsd/trace.h         | 300 ++++++++++++++++++++++++++++++++++++++--
 fs/nfsd/vfs.c           |  16 ++-
 include/trace/misc/fs.h |  21 +++
 6 files changed, 336 insertions(+), 104 deletions(-)
Signature · 1 line
2.49.0