All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@kernel.org>
To: Chuck Lever <cel@kernel.org>, NeilBrown <neil@brown.name>,
	Olga Kornievskaia <okorniev@redhat.com>,
	Dai Ngo <dai.ngo@oracle.com>, Tom Talpey <tom@talpey.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH] NFSD: Resolve the recall-any mask names in the trace format
Date: Wed, 19 Aug 2026 06:56:05 -0400	[thread overview]
Message-ID: <f658b824d4d1a09119725a985e411ea2d28baefa.camel@kernel.org> (raw)
In-Reply-To: <20260818184151.31180-1-cel@kernel.org>

On Tue, 2026-08-18 at 14:41 -0400, Chuck Lever wrote:
> RCA4_TYPE_MASK_* are enum constants, so the preprocessor cannot fold
> them into the print format that show_rca_mask() builds for the
> nfsd_cb_recall_any event. Nothing declares an eval map for them
> either, so trace_event_eval_update() has no substitution to apply at
> module load, and the event's format file ships the enumerator names
> verbatim. trace-cmd and perf cannot decode the bmval0 field.
> 
> Declare the eval maps for the nine mask bits show_rca_mask() decodes.
> The format then carries the shift counts as integers, the same shape
> the SUNRPC trace points already emit from their BIT() flag decoders.
> 
> Fixes: 638593be55c0 ("NFSD: add CB_RECALL_ANY tracepoints")
> Signed-off-by: Chuck Lever <cel@kernel.org>
> ---
>  fs/nfsd/trace.h | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/fs/nfsd/trace.h b/fs/nfsd/trace.h
> index 3fa4d63cd30f..4fb1f32a3787 100644
> --- a/fs/nfsd/trace.h
> +++ b/fs/nfsd/trace.h
> @@ -1946,6 +1946,16 @@ TRACE_EVENT(nfsd_cb_offload,
>  		__entry->fh_hash, __entry->count, __entry->status)
>  );
>  
> +TRACE_DEFINE_ENUM(RCA4_TYPE_MASK_RDATA_DLG);
> +TRACE_DEFINE_ENUM(RCA4_TYPE_MASK_WDATA_DLG);
> +TRACE_DEFINE_ENUM(RCA4_TYPE_MASK_DIR_DLG);
> +TRACE_DEFINE_ENUM(RCA4_TYPE_MASK_FILE_LAYOUT);
> +TRACE_DEFINE_ENUM(RCA4_TYPE_MASK_BLK_LAYOUT);
> +TRACE_DEFINE_ENUM(RCA4_TYPE_MASK_OBJ_LAYOUT_MIN);
> +TRACE_DEFINE_ENUM(RCA4_TYPE_MASK_OBJ_LAYOUT_MAX);
> +TRACE_DEFINE_ENUM(RCA4_TYPE_MASK_OTHER_LAYOUT_MIN);
> +TRACE_DEFINE_ENUM(RCA4_TYPE_MASK_OTHER_LAYOUT_MAX);
> +
>  #define show_rca_mask(x) \
>  	__print_flags(x, "|", \
>  		{ BIT(RCA4_TYPE_MASK_RDATA_DLG),	"RDATA_DLG" }, \

Reviewed-by: Jeff Layton <jlayton@kernel.org>

      parent reply	other threads:[~2026-08-19 10:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-18 18:41 [PATCH] NFSD: Resolve the recall-any mask names in the trace format Chuck Lever
2026-08-19  6:05 ` Christoph Hellwig
2026-08-19 10:56 ` Jeff Layton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f658b824d4d1a09119725a985e411ea2d28baefa.camel@kernel.org \
    --to=jlayton@kernel.org \
    --cc=cel@kernel.org \
    --cc=dai.ngo@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neil@brown.name \
    --cc=okorniev@redhat.com \
    --cc=tom@talpey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.