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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -62,6 +62,8 @@ enum blktrace_act { · 61 unmodified lines | ||
| 62 | 62 | __BLK_TA_REMAP, /* bio was remapped */ |
| 63 | 63 | __BLK_TA_ABORT, /* request aborted */ |
| 64 | 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 | 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 | 102 | #define BLK_TA_ZONE_APPEND (__BLK_TA_COMPLETE |\ |
| 101 | 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 | 108 | #define BLK_TN_PROCESS (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY)) |
| 104 | 109 | #define BLK_TN_TIMESTAMP (__BLK_TN_TIMESTAMP | BLK_TC_ACT(BLK_TC_NOTIFY)) |