io_uring/trace: rename io_uring_queue_async_work event "rw" field

The io_uring_queue_async_work tracepoint event stores an int rw field
that represents whether the work item is hashed. Rename it to "hashed"
and change its type to bool to more accurately reflect its value.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by Caleb Sander Mateos and committed by Jens Axboe f345be75 34c78b86

Changed files
+6 -6
include
trace
events
+6 -6
include/trace/events/io_uring.h
··· 133 133 * io_uring_queue_async_work - called before submitting a new async work 134 134 * 135 135 * @req: pointer to a submitted request 136 - * @rw: type of workqueue, hashed or normal 136 + * @hashed: whether async work is hashed 137 137 * 138 138 * Allows to trace asynchronous work submission. 139 139 */ 140 140 TRACE_EVENT(io_uring_queue_async_work, 141 141 142 - TP_PROTO(struct io_kiocb *req, int rw), 142 + TP_PROTO(struct io_kiocb *req, bool hashed), 143 143 144 - TP_ARGS(req, rw), 144 + TP_ARGS(req, hashed), 145 145 146 146 TP_STRUCT__entry ( 147 147 __field( void *, ctx ) ··· 150 150 __field( u8, opcode ) 151 151 __field( unsigned long long, flags ) 152 152 __field( struct io_wq_work *, work ) 153 - __field( int, rw ) 153 + __field( bool, hashed ) 154 154 155 155 __string( op_str, io_uring_get_opcode(req->opcode) ) 156 156 ), ··· 162 162 __entry->flags = (__force unsigned long long) req->flags; 163 163 __entry->opcode = req->opcode; 164 164 __entry->work = &req->work; 165 - __entry->rw = rw; 165 + __entry->hashed = hashed; 166 166 167 167 __assign_str(op_str); 168 168 ), ··· 170 170 TP_printk("ring %p, request %p, user_data 0x%llx, opcode %s, flags 0x%llx, %s queue, work %p", 171 171 __entry->ctx, __entry->req, __entry->user_data, 172 172 __get_str(op_str), __entry->flags, 173 - __entry->rw ? "hashed" : "normal", __entry->work) 173 + __entry->hashed ? "hashed" : "normal", __entry->work) 174 174 ); 175 175 176 176 /**