]> git.ipfire.org Git - people/ms/linux.git/commit
io_uring: move io_uring_get_opcode out of TP_printk
authorDylan Yudaken <dylany@fb.com>
Thu, 23 Jun 2022 08:37:43 +0000 (01:37 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Jun 2022 14:40:36 +0000 (08:40 -0600)
commite70b64a3f28b9f54602ae3e706b1dc1338de3df7
tree679c2d20502de79938b38d9af175c01388f3d6de
parentc0737fa9a5a5cf5a053bcc983f72d58919b997c6
io_uring: move io_uring_get_opcode out of TP_printk

The TP_printk macro's are not supposed to use custom code ([1]) or else
tools such as perf cannot use these events.

Convert the opcode string representation to use the __string wiring that
the event framework provides ([2]).

[1]: https://lwn.net/Articles/379903/
[2]: https://lwn.net/Articles/381064/

Fixes: 033b87d24f72 ("io_uring: use the text representation of ops in trace")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220623083743.2648321-1-dylany@fb.com
[axboe: fixup spurious removal of sq_thread assignment]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/trace/events/io_uring.h