History

blktrace: trace zone write plugging operations

Trace zone write plugging operations on block devices. As tracing of zoned block commands needs the upper 32bit of the widened 64bit action, only add traces to blktrace if user-space has requested version 2 of the blktrace protocol.

Johannes Thumshirn committed 1 year ago

Commit 3f672281 parent 1c164fc2 files · +44 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/blktrace_api.h+5−0
@@ -62,6 +62,8 @@ enum blktrace_act { · 61 unmodified lines
6262 __BLK_TA_REMAP, /* bio was remapped */
6363 __BLK_TA_ABORT, /* request aborted */
6464 __BLK_TA_DRV_DATA, /* driver-specific binary data */
65+ __BLK_TA_ZONE_PLUG, /* zone write plug was plugged */
66+ __BLK_TA_ZONE_UNPLUG, /* zone write plug was unplugged */
6567 __BLK_TA_CGROUP = 1 << 8, /* from a cgroup*/
6668 };
6769
@@ -99,6 +101,9 @@ enum blktrace_notify { · 31 unmodified lines
99101
100102 #define BLK_TA_ZONE_APPEND (__BLK_TA_COMPLETE |\
101103 BLK_TC_ACT(BLK_TC_ZONE_APPEND))
104+#define BLK_TA_ZONE_PLUG (__BLK_TA_ZONE_PLUG | BLK_TC_ACT(BLK_TC_QUEUE))
105+#define BLK_TA_ZONE_UNPLUG (__BLK_TA_ZONE_UNPLUG |\
106+ BLK_TC_ACT(BLK_TC_QUEUE))
102107
103108 #define BLK_TN_PROCESS (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY))
104109 #define BLK_TN_TIMESTAMP (__BLK_TN_TIMESTAMP | BLK_TC_ACT(BLK_TC_NOTIFY))