/kernel/linux/linux-5.10/tools/perf/arch/x86/tests/ |
H A D | regs_load.S | 19 #define GS 15 * 8 define 52 movq $0, GS(%rdi) 89 movl $0, GS(%edi)
|
/kernel/linux/linux-6.6/tools/perf/arch/x86/tests/ |
H A D | regs_load.S | 19 #define GS 15 * 8 define 52 movq $0, GS(%rdi) 89 movl $0, GS(%edi)
|
/kernel/linux/linux-5.10/tools/testing/selftests/x86/ |
H A D | fsgsbase.c | 117 enum which_base { FS, GS }; enumerator 169 base = read_base(GS); in check_gs_value() 203 base = read_base(GS); in mov_0_gs() 219 * ARCH_SET_FS/GS(0) may or may not program a selector of zero. HARD_ZERO 250 * Sets GS != 0 and GSBASE != 0 but arranges for the kernel to think in load_gs() 329 printf("[FAIL]\tAfter switch, GS = 0x%hx and GSBASE = 0x%lx\n", in test_wrbase() 347 * On AMD chips, this causes GSBASE != 0, GS == 0, and in threadproc() 384 if (read_base(GS) != local) { in set_gs_and_switch_to() 392 local = read_base(GS); in set_gs_and_switch_to() 410 base = read_base(GS); in set_gs_and_switch_to() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/x86/ |
H A D | fsgsbase.c | 117 enum which_base { FS, GS }; enumerator 169 base = read_base(GS); in check_gs_value() 203 base = read_base(GS); in mov_0_gs() 219 * ARCH_SET_FS/GS(0) may or may not program a selector of zero. HARD_ZERO 250 * Sets GS != 0 and GSBASE != 0 but arranges for the kernel to think in load_gs() 329 printf("[FAIL]\tAfter switch, GS = 0x%hx and GSBASE = 0x%lx\n", in test_wrbase() 347 * On AMD chips, this causes GSBASE != 0, GS == 0, and in threadproc() 384 if (read_base(GS) != local) { in set_gs_and_switch_to() 392 local = read_base(GS); in set_gs_and_switch_to() 410 base = read_base(GS); in set_gs_and_switch_to() [all...] |
/kernel/linux/linux-5.10/arch/x86/um/ |
H A D | ptrace_32.c | 66 [GS] = HOST_GS, 97 case GS: in putreg() 150 case GS: in getreg()
|
H A D | ptrace_64.c | 48 [GS >> 3] = HOST_GS, 81 case GS: in putreg() 157 case GS: in getreg()
|
H A D | user-offsets.c | 39 DEFINE(HOST_GS, GS); in foo() 68 DEFINE_LONGS(HOST_GS, GS); in foo()
|
H A D | signal.c | 169 GETREG(GS, gs); in copy_sc_from_user() 248 PUTREG(GS, gs); in copy_sc_to_user()
|
/kernel/linux/linux-6.6/arch/x86/um/ |
H A D | ptrace_32.c | 67 [GS] = HOST_GS, 98 case GS: in putreg() 151 case GS: in getreg()
|
H A D | ptrace_64.c | 49 [GS >> 3] = HOST_GS, 82 case GS: in putreg() 158 case GS: in getreg()
|
H A D | user-offsets.c | 38 DEFINE(HOST_GS, GS); in foo() 67 DEFINE_LONGS(HOST_GS, GS); in foo()
|
H A D | signal.c | 170 GETREG(GS, gs); in copy_sc_from_user() 249 PUTREG(GS, gs); in copy_sc_to_user()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | process_64.c | 97 printk("%sFS: %016lx GS: %016lx\n", in __show_regs() 116 printk("%sFS: %016lx(%04x) GS:%016lx(%04x) knlGS:%016lx\n", in __show_regs() 150 GS enumerator 156 * the wrong GS. 183 * the wrong GS. 204 * Saves the FS or GS base for an outgoing thread if FSGSBASE extensions are 262 save_base_legacy(task, task->thread.gsindex, GS); in save_fsgs() 346 /* Update the FS and GS selectors if they could have changed. */ in x86_fsgsbase_load() 350 loadseg(GS, next->gsindex); in x86_fsgsbase_load() 359 next->gsindex, next->gsbase, GS); in x86_fsgsbase_load() [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | process_64.c | 99 printk("%sFS: %016lx GS: %016lx\n", in __show_regs() 118 printk("%sFS: %016lx(%04x) GS:%016lx(%04x) knlGS:%016lx\n", in __show_regs() 152 GS enumerator 158 * the wrong GS. 185 * the wrong GS. 206 * Saves the FS or GS base for an outgoing thread if FSGSBASE extensions are 264 save_base_legacy(task, task->thread.gsindex, GS); in save_fsgs() 371 /* Update the FS and GS selectors if they could have changed. */ in x86_fsgsbase_load() 375 loadseg(GS, next->gsindex); in x86_fsgsbase_load() 384 next->gsindex, next->gsbase, GS); in x86_fsgsbase_load() [all...] |
/kernel/linux/linux-5.10/arch/x86/include/uapi/asm/ |
H A D | ptrace-abi.h | 17 #define GS 10 macro
|
/kernel/linux/linux-6.6/arch/x86/include/uapi/asm/ |
H A D | ptrace-abi.h | 17 #define GS 10 macro
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-x86/asm/ |
H A D | ptrace-abi.h | 32 #define GS 10 macro
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/asm-x86/asm/ |
H A D | ptrace-abi.h | 32 #define GS 10 macro
|
/kernel/linux/linux-5.10/arch/x86/um/os-Linux/ |
H A D | mcontext.c | 14 COPY_SEG(GS); COPY_SEG(FS); COPY_SEG(ES); COPY_SEG(DS); in get_regs_from_mc()
|
/kernel/linux/linux-5.10/arch/x86/um/shared/sysdep/ |
H A D | ptrace_64.h | 41 #define GS (HOST_GS * sizeof(long)) macro
|
/kernel/linux/linux-6.6/arch/x86/um/shared/sysdep/ |
H A D | ptrace_64.h | 41 #define GS (HOST_GS * sizeof(long)) macro
|
/kernel/linux/linux-6.6/arch/x86/um/os-Linux/ |
H A D | mcontext.c | 14 COPY_SEG(GS); COPY_SEG(FS); COPY_SEG(ES); COPY_SEG(DS); in get_regs_from_mc()
|
/kernel/linux/linux-6.6/arch/um/os-Linux/skas/ |
H A D | process.c | 73 R(GS); in ptrace_reg_name()
|
/kernel/linux/linux-5.10/arch/x86/kvm/vmx/ |
H A D | vmx.c | 502 VMX_SEGMENT_FIELD(GS), 1147 * On 32-bit kernels, VM exits still load the FS and GS bases from the 5973 vmx_dump_sel("GS: ", GUEST_GS_SELECTOR); in dump_vmcs() 6002 pr_err("CS=%04x SS=%04x DS=%04x ES=%04x FS=%04x GS=%04x TR=%04x\n", in dump_vmcs()
|
/kernel/linux/linux-6.6/arch/x86/kvm/vmx/ |
H A D | vmx.c | 513 VMX_SEGMENT_FIELD(GS), 1160 * On 32-bit kernels, VM exits still load the FS and GS bases from the 6290 vmx_dump_sel("GS: ", GUEST_GS_SELECTOR); in dump_vmcs() 6332 pr_err("CS=%04x SS=%04x DS=%04x ES=%04x FS=%04x GS=%04x TR=%04x\n", in dump_vmcs()
|