summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-10-14 18:10:17 +0300
committerJens Axboe <axboe@kernel.dk>2021-10-19 14:49:55 +0300
commit51aac424aef980a6238d4907a5bb5a411fa926eb (patch)
tree3f7fe1dc3ae21c9a6561dfcf171f736f24261185 /tools/perf/scripts/python/flamegraph.py
parentc88598a92a587109d915b4d97831bcea774c8b6f (diff)
downloadlinux-51aac424aef980a6238d4907a5bb5a411fa926eb.tar.xz
io_uring: optimise io_import_iovec nonblock passing
First, change IO_URING_F_NONBLOCK to take sign bit of the int, so checking for it can be turned into test + sign-based-jump, makes the binary smaller and may be faster. Then, instead of passing need_lock boolean into io_import_iovec() just give it issue_flags, which is already stored somewhere. Saves some space on stack, a couple of test + cmov operations and other conversions. note: we still leave force_nonblock = issue_flags & IO_URING_F_NONBLOCK variable, but it's optimised out by the compiler into testing issue_flags directly. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/ee96547e692f6c975c229cd82fc721679571a734.1634144845.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions