[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175798065022.350149.2732961108727368747.stgit@frogsfrogsfrogs>
Date: Mon, 15 Sep 2025 17:04:48 -0700
From: "Darrick J. Wong" <djwong@...nel.org>
To: tytso@....edu
Cc: linux-ext4@...r.kernel.org
Subject: [PATCH 5/5] fuse2fs: record thread id in debug trace data
From: Darrick J. Wong <djwong@...nel.org>
Record the thread ID in the debug trace data so that we can trace
operations going through the fuse server more easily.
Signed-off-by: "Darrick J. Wong" <djwong@...nel.org>
---
misc/fuse2fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index feef9a1709f6cd..6173d6f51892a9 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -148,7 +148,7 @@ static inline uint64_t round_down(uint64_t b, unsigned int align)
#define dbg_printf(fuse2fs, format, ...) \
while ((fuse2fs)->debug) { \
- printf("FUSE2FS (%s): " format, (fuse2fs)->shortdev, ##__VA_ARGS__); \
+ printf("FUSE2FS (%s): tid=%d " format, (fuse2fs)->shortdev, gettid(), ##__VA_ARGS__); \
fflush(stdout); \
break; \
}
Powered by blists - more mailing lists