aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2020-07-08 15:15:26 -0600
committerJens Axboe <[email protected]>2020-07-08 15:15:26 -0600
commit5acbbc8ed3a9aef71c6eb5f19ba24f7321200220 (patch)
tree49c2ee71d9449bcfdcffd6c5670ac0dd6edd7073 /tools/perf/scripts/python
parentaa340845ae6f019e0a12321a1741c14679bb0664 (diff)
io_uring: only call kfree() for a non-zero pointer
It's safe to call kfree() with a NULL pointer, but it's also pointless. Most of the time we don't have any data to free, and at millions of requests per second, the redundant function call adds noticeable overhead (about 1.3% of the runtime). Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions