aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2024-10-01 16:24:59 +0200
committerPeter Zijlstra <[email protected]>2024-10-07 09:28:45 +0200
commit7a166094bd2b1c084fd215747f9cd05a853d66c9 (patch)
tree01da11ab3a925931f2ba3ebd3a7eed3498903853 /tools/perf/scripts/python/syscall-counts.py
parentc16e2fdd746c78f5b2ce3c2ab8a26a61b6ed09e5 (diff)
uprobes: kill xol_area->slot_count
Add the new helper, xol_get_slot_nr() which does find_first_zero_bit() + test_and_set_bit(). xol_take_insn_slot() can wait for the "xol_get_slot_nr() < UINSNS_PER_PAGE" event instead of "area->slot_count < UINSNS_PER_PAGE". So we can kill area->slot_count and avoid atomic_inc() + atomic_dec(), this simplifies the code and can slightly improve the performance. Signed-off-by: Oleg Nesterov <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions