public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] erofs: update print symbols for various flags in trace
@ 2023-02-08 11:29 Jingbo Xu
  2023-02-08 11:29 ` [PATCH v2 2/2] erofs: remove unused EROFS_GET_BLOCKS_RAW flag Jingbo Xu
  2023-02-09  2:29 ` [PATCH v2 1/2] erofs: update print symbols for various flags in trace Gao Xiang
  0 siblings, 2 replies; 4+ messages in thread
From: Jingbo Xu @ 2023-02-08 11:29 UTC (permalink / raw)
  To: xiang, chao, linux-erofs, huyue2; +Cc: linux-kernel

As new flags introduced, the corresponding print symbols for trace are
not added accordingly.  Add these missing print symbols for these flags.

Also remove the print symbol for EROFS_GET_BLOCKS_RAW as it is going to
be removed soon.

Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
---
v2: remove print symbol for EROFS_GET_BLOCKS_RAW
---
 include/trace/events/erofs.h | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/include/trace/events/erofs.h b/include/trace/events/erofs.h
index e095d36db939..cf4a0d28b178 100644
--- a/include/trace/events/erofs.h
+++ b/include/trace/events/erofs.h
@@ -19,12 +19,17 @@ struct erofs_map_blocks;
 		{ 1,		"DIR" })
 
 #define show_map_flags(flags) __print_flags(flags, "|",	\
-	{ EROFS_GET_BLOCKS_RAW,	"RAW" })
+	{ EROFS_GET_BLOCKS_FIEMAP,	"FIEMAP" },	\
+	{ EROFS_GET_BLOCKS_READMORE,	"READMORE" },	\
+	{ EROFS_GET_BLOCKS_FINDTAIL,	"FINDTAIL" })
 
 #define show_mflags(flags) __print_flags(flags, "",	\
-	{ EROFS_MAP_MAPPED,	"M" },			\
-	{ EROFS_MAP_META,	"I" },			\
-	{ EROFS_MAP_ENCODED,	"E" })
+	{ EROFS_MAP_MAPPED,		"M" },		\
+	{ EROFS_MAP_META,		"I" },		\
+	{ EROFS_MAP_ENCODED,		"E" },		\
+	{ EROFS_MAP_FULL_MAPPED,	"F" },		\
+	{ EROFS_MAP_FRAGMENT,		"R" },		\
+	{ EROFS_MAP_PARTIAL_REF,	"P" })
 
 TRACE_EVENT(erofs_lookup,
 
-- 
2.19.1.6.gb485710b


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

end of thread, other threads:[~2023-02-09  2:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 11:29 [PATCH v2 1/2] erofs: update print symbols for various flags in trace Jingbo Xu
2023-02-08 11:29 ` [PATCH v2 2/2] erofs: remove unused EROFS_GET_BLOCKS_RAW flag Jingbo Xu
2023-02-09  2:29 ` [PATCH v2 1/2] erofs: update print symbols for various flags in trace Gao Xiang
2023-02-09  2:30   ` Jingbo Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox