aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-18 09:50:26 -0700
committerJens Axboe <axboe@kernel.dk>2020-01-20 17:03:59 -0700
commitd3656344fea0339fb0365c8df4d2beba4e0089cd (patch)
tree088de11b0e4b91c33ed3f449def3278a827b4a01 /tools/perf/scripts/python/exported-sql-viewer.py
parentadd7b6b85a4dfa89283834d181e87ea2144b9028 (diff)
io_uring: add lookup table for various opcode needs
We currently have various switch statements that check if an opcode needs a file, mm, etc. These are hard to keep in sync as opcodes are added. Add a struct io_op_def that holds all of this information, so we have just one spot to update when opcodes are added. This also enables us to NOT allocate req->io if a deferred command doesn't need it, and corrects some mistakes we had in terms of what commands need mm context. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions