Home
last modified time | relevance | path

Searched refs:eax (Results 1 – 25 of 28) sorted by relevance

12

/tools/testing/selftests/x86/
Draw_syscall_helper_32.S9 movl 5*4(%esp), %eax /* pointer to args struct */
11 movl 1*4(%eax), %ebx
12 movl 2*4(%eax), %ecx
13 movl 3*4(%eax), %edx
14 movl 4*4(%eax), %esi
15 movl 5*4(%eax), %edi
16 movl 6*4(%eax), %ebp
17 movl 0*4(%eax), %eax
22 pushl %eax
23 movl 6*4(%esp), %eax
[all …]
Dunwind_vdso.c83 unsigned long eax = _Unwind_GetGR(ctx, 0); in trace_fn() local
90 bool ok = (eax == SYS_getpid || eax == getpid()) && in trace_fn()
98 eax, ebx, ecx, edx, esi, edi, ebp); in trace_fn()
Dldt_gdt.c734 unsigned int eax; in test_gdt_invalidation() local
743 eax = 243; in test_gdt_invalidation()
758 "+a" (eax) in test_gdt_invalidation()
774 eax = 243; in test_gdt_invalidation()
789 "+a" (eax) in test_gdt_invalidation()
805 eax = 243; in test_gdt_invalidation()
822 "+a" (eax) in test_gdt_invalidation()
858 eax = 243; in test_gdt_invalidation()
875 "+a" (eax) in test_gdt_invalidation()
Dentry_from_vm86.c306 v86.regs.eax = 0; in main()
311 v86.regs.eax = X86_EFLAGS_IF; in main()
316 v86.regs.eax = X86_EFLAGS_IF; in main()
325 v86.regs.eax = (unsigned int)-1; in main()
Dthunks_32.S19 mov 4(%esp), %eax
/tools/testing/selftests/vm/
Dpkey-x86.h59 unsigned int eax, edx; in __read_pkey_reg() local
64 : "=a" (eax), "=d" (edx) in __read_pkey_reg()
66 pkey_reg = eax; in __read_pkey_reg()
72 unsigned int eax = pkey_reg; in __write_pkey_reg() local
79 : : "a" (eax), "c" (ecx), "d" (edx)); in __write_pkey_reg()
83 static inline void __cpuid(unsigned int *eax, unsigned int *ebx, in __cpuid() argument
89 : "=a" (*eax), in __cpuid()
93 : "0" (*eax), "2" (*ecx)); in __cpuid()
102 unsigned int eax; in cpu_has_pkeys() local
107 eax = 0x7; in cpu_has_pkeys()
[all …]
/tools/power/cpupower/debug/i386/
Dintel_gsic.c25 r.eax = 0x0000E980; in main()
34 if (r.eax == 0x47534943) { in main()
37 (r.eax >> 24) & 0xff, in main()
38 (r.eax >> 16) & 0xff, in main()
39 (r.eax >> 8) & 0xff, in main()
40 (r.eax) & 0xff); in main()
63 printf("eax = 0x%.8x\n", r.eax); in main()
/tools/perf/arch/x86/tests/
Dregs_load.S68 movl %eax, AX(%edi)
73 pop %eax
74 movl %eax, DI(%edi)
77 leal 4(%esp), %eax /* exclude this call. */
78 movl %eax, SP(%edi)
80 movl 0(%esp), %eax
81 movl %eax, IP(%edi)
/tools/testing/selftests/kvm/include/x86_64/
Dsvm_util.h41 u32 eax = 0x80000001, ecx; in cpu_has_svm() local
44 "=a" (eax), "=c" (ecx) : "0" (eax) : "ebx", "edx"); in cpu_has_svm()
Dprocessor.h83 uint32_t eax, edx; in rdtsc() local
91 __asm__ __volatile__("lfence; rdtsc; lfence" : "=a"(eax), "=d"(edx)); in rdtsc()
92 tsc_val = ((uint64_t)edx) << 32 | eax; in rdtsc()
98 uint32_t eax, edx; in rdtscp() local
100 __asm__ __volatile__("rdtscp" : "=a"(eax), "=d"(edx), "=c"(*aux)); in rdtscp()
101 return ((uint64_t)edx) << 32 | eax; in rdtscp()
/tools/build/feature/
Dtest-get_cpuid.c6 unsigned int eax = 0, ebx = 0, ecx = 0, edx = 0; in main() local
7 return __get_cpuid(0x15, &eax, &ebx, &ecx, &edx); in main()
/tools/power/cpupower/utils/helpers/
Dcpuid.c27 unsigned int eax, ebx, ecx, edx; \
28 __cpuid(op, eax, ebx, ecx, edx); \
31 cpuid_func(eax);
/tools/testing/selftests/kvm/x86_64/
Dhyperv_cpuid.c87 TEST_ASSERT(entry->eax == test_val, in test_hv_cpuid()
90 entry->eax, evmcs_enabled in test_hv_cpuid()
94 test_val = entry->eax & (1UL << 18); in test_hv_cpuid()
Dcr4_cpuid_sync_test.c29 uint32_t eax, ebx, ecx, edx; in cr4_cpuid_is_sync() local
35 : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) in cr4_cpuid_is_sync()
Dxss_msr_test.c51 xss_supported = entry && !!(entry->eax & X86_FEATURE_XSAVES); in main()
/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c1305 unsigned int *eax, unsigned int *ebx, in get_cpuid_or_exit() argument
1308 if (!__get_cpuid(leaf, eax, ebx, ecx, edx)) in get_cpuid_or_exit()
1319 unsigned int eax, ebx, ecx, edx; in early_cpuid() local
1336 get_cpuid_or_exit(0x6, &eax, &ebx, &ecx, &edx); in early_cpuid()
1337 turbo_is_enabled = (eax >> 1) & 1; in early_cpuid()
1338 has_hwp = (eax >> 7) & 1; in early_cpuid()
1349 unsigned int eax, ebx, ecx, edx, max_level; in parse_cpuid() local
1352 eax = ebx = ecx = edx = 0; in parse_cpuid()
1388 get_cpuid_or_exit(0x6, &eax, &ebx, &ecx, &edx); in parse_cpuid()
1391 has_hwp_notify = eax & (1 << 8); in parse_cpuid()
[all …]
/tools/perf/arch/x86/util/
Ddwarf-regs.c55 REG_OFFSET_NAME_32("%ax", eax),
Dperf_regs.c63 SDT_NAME_REG(eax, ax),
Dintel-pt.c315 unsigned int eax = 0, ebx = 0, ecx = 0, edx = 0; in intel_pt_tsc_ctc_ratio() local
317 __get_cpuid(0x15, &eax, &ebx, &ecx, &edx); in intel_pt_tsc_ctc_ratio()
319 *d = eax; in intel_pt_tsc_ctc_ratio()
/tools/perf/Documentation/
Dexamples.txt203 0.00 : 31a2e95602: b8 38 00 00 00 mov $0x38,%eax
207 0.00 : 31a2e95615: 85 c0 test %eax,%eax
/tools/arch/x86/include/uapi/asm/
Dkvm.h218 __u32 eax; member
236 __u32 eax; member
/tools/power/x86/turbostat/
Dturbostat.c1840 unsigned int eax, ebx, ecx, edx; in get_apic_id() local
1843 eax = ebx = ecx = edx = 0; in get_apic_id()
1844 __cpuid(1, eax, ebx, ecx, edx); in get_apic_id()
1858 eax = ebx = ecx = edx = 0; in get_apic_id()
1859 __cpuid(0x80000001, eax, ebx, ecx, edx); in get_apic_id()
1865 eax = ebx = ecx = edx = 0; in get_apic_id()
1866 __cpuid(0x8000001e, eax, ebx, ecx, edx); in get_apic_id()
1868 t->x2apic_id = eax; in get_apic_id()
1879 __cpuid(0xb, eax, ebx, ecx, edx); in get_apic_id()
4361 unsigned int eax, ebx, ecx, edx; in rapl_probe_amd() local
[all …]
/tools/lib/bpf/
Dbpf_tracing.h80 #define PT_REGS_PARM1(x) ((x)->eax)
87 #define PT_REGS_RC(x) ((x)->eax)
91 #define PT_REGS_PARM1_CORE(x) BPF_CORE_READ((x), eax)
98 #define PT_REGS_RC_CORE(x) BPF_CORE_READ((x), eax)
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c1091 int eax, ebx, ecx, edx; in is_intel_cpu() local
1097 : /* output */ "=a"(eax), "=b"(ebx), in is_intel_cpu()
1107 return kvm_get_supported_cpuid_entry(0)->eax; in kvm_get_cpuid_max_basic()
1112 return kvm_get_supported_cpuid_entry(0x80000000)->eax; in kvm_get_cpuid_max_extended()
1127 *pa_bits = entry->eax & 0xff; in kvm_get_cpu_address_width()
1128 *va_bits = (entry->eax >> 8) & 0xff; in kvm_get_cpu_address_width()
/tools/testing/selftests/kvm/
Dsteal_time.c67 if (!(kvm_get_supported_cpuid_entry(KVM_CPUID_FEATURES)->eax & in steal_time_init()

12