diff options
author | Marco Elver <[email protected]> | 2022-08-29 14:47:11 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-08-30 10:56:22 +0200 |
commit | be3f152568cc7f5f573d21d5f86a2c4f3cc047ab (patch) | |
tree | 9f5c1c891387d7fc348507d23fd8b89f3d883cec /tools/perf/scripts/python/syscall-counts.py | |
parent | db5f6f853194c5e02d8551425b5e86b7e0b81806 (diff) |
perf/hw_breakpoint: Optimize constant number of breakpoint slots
Optimize internal hw_breakpoint state if the architecture's number of
breakpoint slots is constant. This avoids several kmalloc() calls and
potentially unnecessary failures if the allocations fail, as well as
subtly improves code generation and cache locality.
The protocol is that if an architecture defines hw_breakpoint_slots via
the preprocessor, it must be constant and the same for all types.
Signed-off-by: Marco Elver <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Dmitry Vyukov <[email protected]>
Acked-by: Ian Rogers <[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