diff options
author | Chang S. Bae <[email protected]> | 2019-05-08 03:02:26 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-06-22 11:38:54 +0200 |
commit | 79e1932fa3cedd731ddbd6af111fe4db8ca109ae (patch) | |
tree | 320046bbb343f2e9313a47c41c1a1dfe3587e2a2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1d07316b1363a004ed548c3759584f8e8b1e24e3 (diff) |
x86/entry/64: Introduce the FIND_PERCPU_BASE macro
GSBASE is used to find per-CPU data in the kernel. But when GSBASE is
unknown, the per-CPU base can be found from the per_cpu_offset table with a
CPU NR. The CPU NR is extracted from the limit field of the CPUNODE entry
in GDT, or by the RDPID instruction. This is a prerequisite for using
FSGSBASE in the low level entry code.
Also, add the GAS-compatible RDPID macro as binutils 2.21 do not support
it. Support is added in version 2.27.
[ tglx: Massaged changelog ]
Suggested-by: H. Peter Anvin <[email protected]>
Signed-off-by: Chang S. Bae <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ravi Shankar <[email protected]>
Cc: Dave Hansen <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions