mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 00:56:20 +01:00
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. Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
1c164fcc1b
commit
3f6722816a
2 changed files with 44 additions and 0 deletions
|
|
@ -62,6 +62,8 @@ enum blktrace_act {
|
|||
__BLK_TA_REMAP, /* bio was remapped */
|
||||
__BLK_TA_ABORT, /* request aborted */
|
||||
__BLK_TA_DRV_DATA, /* driver-specific binary data */
|
||||
__BLK_TA_ZONE_PLUG, /* zone write plug was plugged */
|
||||
__BLK_TA_ZONE_UNPLUG, /* zone write plug was unplugged */
|
||||
__BLK_TA_CGROUP = 1 << 8, /* from a cgroup*/
|
||||
};
|
||||
|
||||
|
|
@ -99,6 +101,9 @@ enum blktrace_notify {
|
|||
|
||||
#define BLK_TA_ZONE_APPEND (__BLK_TA_COMPLETE |\
|
||||
BLK_TC_ACT(BLK_TC_ZONE_APPEND))
|
||||
#define BLK_TA_ZONE_PLUG (__BLK_TA_ZONE_PLUG | BLK_TC_ACT(BLK_TC_QUEUE))
|
||||
#define BLK_TA_ZONE_UNPLUG (__BLK_TA_ZONE_UNPLUG |\
|
||||
BLK_TC_ACT(BLK_TC_QUEUE))
|
||||
|
||||
#define BLK_TN_PROCESS (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY))
|
||||
#define BLK_TN_TIMESTAMP (__BLK_TN_TIMESTAMP | BLK_TC_ACT(BLK_TC_NOTIFY))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue