[RFC PATCH 08/36] cifs: Add an enum to hold a trace value for the command/subcommand
From: David Howells
Date: Tue May 19 2026 - 06:27:38 EST
---
fs/smb/client/trace.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fs/smb/client/trace.h b/fs/smb/client/trace.h
index b99ec5a417fa..ede61d8a192c 100644
--- a/fs/smb/client/trace.h
+++ b/fs/smb/client/trace.h
@@ -20,6 +20,9 @@
/*
* Specify enums for tracing information.
*/
+#define smb_command_traces \
+ E_(smb_unknown_command, "unknown-command")
+
#define smb_eio_traces \
EM(smb_eio_trace_compress_copy, "compress_copy") \
EM(smb_eio_trace_copychunk_inv_rsp, "copychunk_inv_rsp") \
@@ -211,6 +214,7 @@
#define EM(a, b) a,
#define E_(a, b) a
+enum smb_command_trace { smb_command_traces } __mode(byte);
enum smb_eio_trace { smb_eio_traces } __mode(byte);
enum smb3_rw_credits_trace { smb3_rw_credits_traces } __mode(byte);
enum smb3_tcon_ref_trace { smb3_tcon_ref_traces } __mode(byte);
@@ -225,6 +229,7 @@ enum smb3_tcon_ref_trace { smb3_tcon_ref_traces } __mode(byte);
#define EM(a, b) TRACE_DEFINE_ENUM(a);
#define E_(a, b) TRACE_DEFINE_ENUM(a);
+smb_command_traces;
smb_eio_traces;
smb3_rw_credits_traces;
smb3_tcon_ref_traces;