Skip to content

Commit f345be7

Browse files
calebsanderaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 34c78b8 commit f345be7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/trace/events/io_uring.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ TRACE_EVENT(io_uring_file_get,
133133
* io_uring_queue_async_work - called before submitting a new async work
134134
*
135135
* @req: pointer to a submitted request
136-
* @rw: type of workqueue, hashed or normal
136+
* @hashed: whether async work is hashed
137137
*
138138
* Allows to trace asynchronous work submission.
139139
*/
140140
TRACE_EVENT(io_uring_queue_async_work,
141141

142-
TP_PROTO(struct io_kiocb *req, int rw),
142+
TP_PROTO(struct io_kiocb *req, bool hashed),
143143

144-
TP_ARGS(req, rw),
144+
TP_ARGS(req, hashed),
145145

146146
TP_STRUCT__entry (
147147
__field( void *, ctx )
@@ -150,7 +150,7 @@ TRACE_EVENT(io_uring_queue_async_work,
150150
__field( u8, opcode )
151151
__field( unsigned long long, flags )
152152
__field( struct io_wq_work *, work )
153-
__field( int, rw )
153+
__field( bool, hashed )
154154

155155
__string( op_str, io_uring_get_opcode(req->opcode) )
156156
),
@@ -162,15 +162,15 @@ TRACE_EVENT(io_uring_queue_async_work,
162162
__entry->flags = (__force unsigned long long) req->flags;
163163
__entry->opcode = req->opcode;
164164
__entry->work = &req->work;
165-
__entry->rw = rw;
165+
__entry->hashed = hashed;
166166

167167
__assign_str(op_str);
168168
),
169169

170170
TP_printk("ring %p, request %p, user_data 0x%llx, opcode %s, flags 0x%llx, %s queue, work %p",
171171
__entry->ctx, __entry->req, __entry->user_data,
172172
__get_str(op_str), __entry->flags,
173-
__entry->rw ? "hashed" : "normal", __entry->work)
173+
__entry->hashed ? "hashed" : "normal", __entry->work)
174174
);
175175

176176
/**

0 commit comments

Comments
 (0)