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 <[email protected]>
---
 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

Reply via email to