summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2025-04-09 16:55:10 +0100
committerChristian Brauner <brauner@kernel.org>2025-04-11 15:56:54 +0200
commit5730609ffd7e558e1e3305d0c6839044e8f6591b (patch)
tree2ecbaebf30a6897549255c49b0cf884d7d6b733a /tools/perf/scripts/python/export-to-postgresql.py
parentf1745496d3fba34a2e16ef47d78903d7208c1214 (diff)
select: do_pollfd: add unlikely branch hint return path
Adding an unlikely() hint on the fd < 0 comparison return path improves run-time performance of the poll() system call. gcov based coverage analysis based on running stress-ng and a kernel build shows that this path return path is highly unlikely. Benchmarking on an Debian based Intel(R) Core(TM) Ultra 9 285K with a 6.15-rc1 kernel and a poll of 1024 file descriptors with zero timeout shows an call reduction from 32818 ns down to 32635 ns, which is a ~0.5% performance improvement. Results based on running 25 tests with turbo disabled (to reduce clock freq turbo changes), with 30 second run per test and comparing the number of poll() calls per second. The % standard deviation of the 25 tests was 0.08%, so results are reliable. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/20250409155510.577490-1-colin.i.king@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions