[PATCH] trace: replace WB_REASON_FOREIGN_FLUSH with a string
From: brookxu
Date: Sat May 01 2021 - 19:54:27 EST
From: Chunguang Xu <brookxu@xxxxxxxxxxx>
Now WB_REASON_FOREIGN_FLUSH is displayed as a number, maybe a
string is better.
Signed-off-by: Chunguang Xu <brookxu@xxxxxxxxxxx>
---
include/trace/events/writeback.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h
index 1efa463..7c78c04 100644
--- a/include/trace/events/writeback.h
+++ b/include/trace/events/writeback.h
@@ -36,7 +36,8 @@
EM( WB_REASON_PERIODIC, "periodic") \
EM( WB_REASON_LAPTOP_TIMER, "laptop_timer") \
EM( WB_REASON_FS_FREE_SPACE, "fs_free_space") \
- EMe(WB_REASON_FORKER_THREAD, "forker_thread")
+ EM( WB_REASON_FORKER_THREAD, "forker_thread") \
+ EMe(WB_REASON_FOREIGN_FLUSH, "foreign_flush")
WB_WORK_REASON
--
1.8.3.1