diff options
| author | K Prateek Nayak <kprateek.nayak@amd.com> | 2026-07-28 05:25:38 +0000 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-07-29 13:17:52 +0200 |
| commit | cf0de88094a7b4df18008b6efb1290f4efed731f (patch) | |
| tree | f2f5a998e06be746f293616ba2dbf4afbf8e5844 /tools/perf/scripts/python/flamegraph.py | |
| parent | e412c77541c7926ff61baec712616837a2c6887f (diff) | |
s390/runtime-const: Introduce runtime_const_mask_32()
Futex hash computation requires a mask operation with read-only after
init data that will be converted to a runtime constant in the subsequent
commit.
Introduce runtime_const_mask_32 to further optimize the mask operation
in the futex hash computation hot path.
GCC generates a:
nilf %r1,<imm32>
to tackle arbitrary 32-bit masks and the same is implemented here.
Immediate patching pattern for __runtime_fixup_mask() has been adopted
from __runtime_fixup_ptr().
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://patch.msgid.link/20260728052540.4728-7-kprateek.nayak@amd.com
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
