io_uring: use the text representation of ops in trace
authorDylan Yudaken <dylany@fb.com>
Tue, 26 Apr 2022 08:29:07 +0000 (01:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Apr 2022 23:06:03 +0000 (17:06 -0600)
commit033b87d24f7257c45506bd043ad85ed24a9925e2
tree48fa7b4c9a21c03e2b8a69903fb07a659ae2cb19
parent1460af7de6ab33da82b8a1f03ce0f8e831a9e29e
io_uring: use the text representation of ops in trace

It is annoying to translate opcodes to textwhen tracing io_uring. Use the
io_uring_get_opcode function instead to use the text representation.

A downside here might have been that if the opcode is invalid it will not
be obvious, however the opcode is already overridden in these cases to
0 (NOP) in io_init_req(). Therefore this is a non issue.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220426082907.3600028-5-dylany@fb.com
[axboe: don't include register, those are not req opcodes]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/trace/events/io_uring.h