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
62 __BLK_TA_REMAP, /* bio was remapped */62 __BLK_TA_REMAP, /* bio was remapped */
63 __BLK_TA_ABORT, /* request aborted */63 __BLK_TA_ABORT, /* request aborted */
64 __BLK_TA_DRV_DATA, /* driver-specific binary data */64 __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 */
65 __BLK_TA_CGROUP = 1 << 8, /* from a cgroup*/67 __BLK_TA_CGROUP = 1 << 8, /* from a cgroup*/
66};68};
67 69
@@ -99,6 +101,9 @@ enum blktrace_notify { · 31 unmodified lines
99 101
100#define BLK_TA_ZONE_APPEND (__BLK_TA_COMPLETE |\102#define BLK_TA_ZONE_APPEND (__BLK_TA_COMPLETE |\
101 BLK_TC_ACT(BLK_TC_ZONE_APPEND))103 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))
102 107
103#define BLK_TN_PROCESS (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY))108#define BLK_TN_PROCESS (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY))
104#define BLK_TN_TIMESTAMP (__BLK_TN_TIMESTAMP | BLK_TC_ACT(BLK_TC_NOTIFY))109#define BLK_TN_TIMESTAMP (__BLK_TN_TIMESTAMP | BLK_TC_ACT(BLK_TC_NOTIFY))