summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMateusz Guzik <mjguzik@gmail.com>2025-03-05 13:36:43 +0100
committerChristian Brauner <brauner@kernel.org>2025-03-05 18:31:23 +0100
commita914bd93f3edfedcdd59deb615e8dd1b3643cac5 (patch)
tree086e2fe315a62b168d7d33831f933c85327f15fa /tools/perf/scripts/python/exported-sql-viewer.py
parent3e46a92a27c2927fcef996ba06cbe299da629c28 (diff)
fs: use fput_close() in filp_close()
When tracing a kernel build over refcounts seen this is a wash: @[kprobe:filp_close]: [0] 32195 |@@@@@@@@@@ | [1] 164567 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| I verified vast majority of the skew comes from do_close_on_exec() which could be changed to use a different variant instead. Even without changing that, the 19.5% of calls which got here still can save the extra atomic. Calls here are borderline non-existent compared to fput (over 3.2 mln!), so they should not negatively affect scalability. Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://lore.kernel.org/r/20250305123644.554845-4-mjguzik@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions