diff options
author | Uros Bizjak <[email protected]> | 2023-10-17 18:27:34 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2023-10-20 12:19:51 +0200 |
commit | 59bec00ace28d565ae0a68b23063ef3b961d82d5 (patch) | |
tree | bfe2316d321a1703e7508c438d5290fd9ab30065 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | aa47f90cd4331e1809d56c72fcbdbbe0a85e5992 (diff) |
x86/percpu: Introduce %rip-relative addressing to PER_CPU_VAR()
Introduce x86_64 %rip-relative addressing to the PER_CPU_VAR() macro.
Instructions using %rip-relative address operand are one byte shorter
than their absolute address counterparts and are also compatible with
position independent executable (-fpie) builds. The patch reduces
code size of a test kernel build by 150 bytes.
The PER_CPU_VAR() macro is intended to be applied to a symbol and should
not be used with register operands. Introduce the new __percpu macro and
use it in cmpxchg{8,16}b_emu.S instead.
Also add a missing function comment to this_cpu_cmpxchg8b_emu().
No functional changes intended.
Signed-off-by: Uros Bizjak <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: [email protected]
Cc: Brian Gerst <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions