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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 include/uapi/linux/blktrace_api.h | 2 ++
 1 file changed, 2 insertions(+)

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 */
-- 
2.19.1




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux