diff mbox series

[RFC,06/18] blktrace: add iopriority mask

Message ID 20190501042831.5313-7-chaitanya.kulkarni@wdc.com (mailing list archive)
State New, archived
Headers show
Series blktrace: add blktrace extension support | expand

Commit Message

Chaitanya Kulkarni May 1, 2019, 4:28 a.m. UTC
Update the actual trace structure to actually store the priority and
IOCTL structure to hold the priority mask just like the action mask
from the userspace.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
---
 include/uapi/linux/blktrace_api.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/uapi/linux/blktrace_api.h b/include/uapi/linux/blktrace_api.h
index c34cf752a9a1..143bf81c088d 100644
--- a/include/uapi/linux/blktrace_api.h
+++ b/include/uapi/linux/blktrace_api.h
@@ -123,6 +123,7 @@  struct blk_io_trace {
 
 #ifdef CONFIG_BLKTRACE_EXT
 	__u64 action;		/* what happened */
+	__u32 ioprio;		/* ioprio */
 #else
 	__u32 action;		/* what happened */
 #endif /* CONFIG_BLKTRACE_EXT */
@@ -158,6 +159,7 @@  struct blk_user_trace_setup {
 	char name[BLKTRACE_BDEV_SIZE];	/* output */
 #ifdef CONFIG_BLKTRACE_EXT
 	__u64 act_mask;			/* input */
+	__u32 prio_mask;		/* input */
 #else
 	__u16 act_mask;			/* input */
 #endif /* CONFIG_BLKTRACE_EXT */