io_uring: remove 'loops' argument from trace_io_uring_task_work_run()
We no longer loop in task_work handling, hence delete the argument from the tracepoint as it's always 1 and hence not very informative. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
592b480543
commit
4c98b89175
@ -602,29 +602,25 @@ TRACE_EVENT(io_uring_cqe_overflow,
|
|||||||
*
|
*
|
||||||
* @tctx: pointer to a io_uring_task
|
* @tctx: pointer to a io_uring_task
|
||||||
* @count: how many functions it ran
|
* @count: how many functions it ran
|
||||||
* @loops: how many loops it ran
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
TRACE_EVENT(io_uring_task_work_run,
|
TRACE_EVENT(io_uring_task_work_run,
|
||||||
|
|
||||||
TP_PROTO(void *tctx, unsigned int count, unsigned int loops),
|
TP_PROTO(void *tctx, unsigned int count),
|
||||||
|
|
||||||
TP_ARGS(tctx, count, loops),
|
TP_ARGS(tctx, count),
|
||||||
|
|
||||||
TP_STRUCT__entry (
|
TP_STRUCT__entry (
|
||||||
__field( void *, tctx )
|
__field( void *, tctx )
|
||||||
__field( unsigned int, count )
|
__field( unsigned int, count )
|
||||||
__field( unsigned int, loops )
|
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_fast_assign(
|
TP_fast_assign(
|
||||||
__entry->tctx = tctx;
|
__entry->tctx = tctx;
|
||||||
__entry->count = count;
|
__entry->count = count;
|
||||||
__entry->loops = loops;
|
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_printk("tctx %p, count %u, loops %u",
|
TP_printk("tctx %p, count %u", __entry->tctx, __entry->count)
|
||||||
__entry->tctx, __entry->count, __entry->loops)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
TRACE_EVENT(io_uring_short_write,
|
TRACE_EVENT(io_uring_short_write,
|
||||||
|
@ -1274,7 +1274,7 @@ void tctx_task_work(struct callback_head *cb)
|
|||||||
if (unlikely(atomic_read(&tctx->in_cancel)))
|
if (unlikely(atomic_read(&tctx->in_cancel)))
|
||||||
io_uring_drop_tctx_refs(current);
|
io_uring_drop_tctx_refs(current);
|
||||||
|
|
||||||
trace_io_uring_task_work_run(tctx, count, 1);
|
trace_io_uring_task_work_run(tctx, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void io_req_local_work_add(struct io_kiocb *req, unsigned flags)
|
static inline void io_req_local_work_add(struct io_kiocb *req, unsigned flags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user