Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 25 of 42) sorted by relevance

12

/tools/testing/selftests/kvm/x86_64/
Dmonitor_mwait_test.c23 #define GUEST_ASSERT_MONITOR_MWAIT(insn, testcase, vector) \ argument
29 __GUEST_ASSERT((vector) == UD_VECTOR, \
30 "Expected #UD on " insn " for testcase '0x%x', got '0x%x'", vector); \
32 __GUEST_ASSERT(!(vector), \
33 "Expected success on " insn " for testcase '0x%x', got '0x%x'", vector); \
38 u8 vector; in guest_monitor_wait() local
46 vector = kvm_asm_safe("monitor", "a"(guest_monitor_wait), "c"(0), "d"(0)); in guest_monitor_wait()
47 GUEST_ASSERT_MONITOR_MWAIT("MONITOR", testcase, vector); in guest_monitor_wait()
49 vector = kvm_asm_safe("mwait", "a"(guest_monitor_wait), "c"(0), "d"(0)); in guest_monitor_wait()
50 GUEST_ASSERT_MONITOR_MWAIT("MWAIT", testcase, vector); in guest_monitor_wait()
Dxcr0_cpuid_test.c53 int i, vector; in guest_code() local
82 vector = xsetbv_safe(0, supported_xcr0); in guest_code()
83 __GUEST_ASSERT(!vector, in guest_code()
85 supported_xcr0, vector); in guest_code()
91 vector = xsetbv_safe(0, supported_xcr0 | BIT_ULL(i)); in guest_code()
92 __GUEST_ASSERT(vector == GP_VECTOR, in guest_code()
94 BIT_ULL(i), supported_xcr0, vector); in guest_code()
Dnested_exceptions_test.c76 static void svm_run_l2(struct svm_test_data *svm, void *l2_code, int vector, in svm_run_l2() argument
85 if (vector == FAKE_TRIPLE_FAULT_VECTOR) in svm_run_l2()
88 GUEST_ASSERT_EQ(ctrl->exit_code, (SVM_EXIT_EXCP_BASE + vector)); in svm_run_l2()
115 static void vmx_run_l2(void *l2_code, int vector, uint32_t error_code) in vmx_run_l2() argument
119 GUEST_ASSERT_EQ(vector == SS_VECTOR ? vmlaunch() : vmresume(), 0); in vmx_run_l2()
121 if (vector == FAKE_TRIPLE_FAULT_VECTOR) in vmx_run_l2()
125 GUEST_ASSERT_EQ((vmreadz(VM_EXIT_INTR_INFO) & 0xff), vector); in vmx_run_l2()
167 static void assert_ucall_vector(struct kvm_vcpu *vcpu, int vector) in assert_ucall_vector() argument
175 TEST_ASSERT(vector == uc.args[1], in assert_ucall_vector()
176 "Expected L2 to ask for %d, got %ld", vector, uc.args[1]); in assert_ucall_vector()
[all …]
Dsmaller_maxphyaddr_emulation_test.c27 uint64_t vector; in guest_code() local
29 vector = kvm_asm_safe_ec(FLDS_MEM_EAX, error_code, "a"(MEM_REGION_GVA)); in guest_code()
39 GUEST_ASSERT(!vector); in guest_code()
41 GUEST_ASSERT_EQ(vector, PF_VECTOR); in guest_code()
Dkvm_pv_test.c44 uint8_t vector; in test_msr() local
48 vector = rdmsr_safe(msr->idx, &ignored); in test_msr()
49 GUEST_ASSERT_EQ(vector, GP_VECTOR); in test_msr()
51 vector = wrmsr_safe(msr->idx, 0); in test_msr()
52 GUEST_ASSERT_EQ(vector, GP_VECTOR); in test_msr()
Dhyperv_features.c44 uint8_t vector = 0; in guest_msr() local
50 vector = wrmsr_safe(msr->idx, msr->write_val); in guest_msr()
52 if (!vector && (!msr->write || !is_write_only_msr(msr->idx))) in guest_msr()
53 vector = rdmsr_safe(msr->idx, &msr_val); in guest_msr()
56 __GUEST_ASSERT(vector == GP_VECTOR, in guest_msr()
58 msr->idx, msr->write ? "WR" : "RD", vector); in guest_msr()
60 __GUEST_ASSERT(!vector, in guest_msr()
62 msr->idx, msr->write ? "WR" : "RD", vector); in guest_msr()
64 if (vector || is_write_only_msr(msr->idx)) in guest_msr()
68 __GUEST_ASSERT(!vector, in guest_msr()
[all …]
Dhyperv_ipi.c38 u32 vector; member
45 u32 vector; member
103 ipi->vector = IPI_VECTOR; in sender_guest_code()
120 ipi_ex->vector = IPI_VECTOR; in sender_guest_code()
142 ipi_ex->vector = IPI_VECTOR; in sender_guest_code()
164 ipi_ex->vector = IPI_VECTOR; in sender_guest_code()
187 ipi_ex->vector = IPI_VECTOR; in sender_guest_code()
Dvmx_pmu_caps_test.c56 uint8_t vector = wrmsr_safe(MSR_IA32_PERF_CAPABILITIES, val); in guest_test_perf_capabilities_gp() local
58 __GUEST_ASSERT(vector == GP_VECTOR, in guest_test_perf_capabilities_gp()
60 val, vector); in guest_test_perf_capabilities_gp()
/tools/perf/trace/beauty/tracepoints/
Dx86_irq_vectors.c14 static size_t x86_irq_vectors__scnprintf(unsigned long vector, char *bf, size_t size, bool show_pre… in x86_irq_vectors__scnprintf() argument
16 …return strarray__scnprintf_suffix(&strarray__x86_irq_vectors, bf, size, "%#x", show_prefix, vector in x86_irq_vectors__scnprintf()
21 unsigned long vector = arg->val; in syscall_arg__scnprintf_x86_irq_vectors() local
23 return x86_irq_vectors__scnprintf(vector, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_x86_irq_vectors()
/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-chk-vsx.c37 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
42 vector int vsxs[] = {
60 uint8_t vsx[sizeof(vector int)]; in signal_usr1()
61 uint8_t vsx_tm[sizeof(vector int)]; in signal_usr1()
109 fail = memcmp(vsx, &vsxs[i], sizeof(vector int)); in signal_usr1()
133 fail = memcmp(vsx_tm, &vsxs[NV_VSX_REGS + i], sizeof(vector int)); in signal_usr1()
Dtm-signal-context-chk-vmx.c36 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
41 vector int vms[] = {
65 &vms[i], sizeof(vector int)); in signal_usr1()
83 &vms[NV_VMX_REGS + i], sizeof (vector int)); in signal_usr1()
Dtm-signal-context-chk-gpr.c35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
Dtm-signal-context-chk-fpu.c35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
/tools/testing/selftests/powerpc/math/
Dvsx_preempt.c36 __thread vector int varray[24] = {
46 extern long preempt_vsx(vector int *varray, int *threads_starting, int *running);
48 long vsx_memcmp(vector int *a) { in vsx_memcmp()
49 vector int zero = {0, 0, 0, 0}; in vsx_memcmp()
55 if (memcmp(&a[i + 12], &zero, sizeof(vector int)) == 0) { in vsx_memcmp()
61 if (memcmp(a, &a[12], 12 * sizeof(vector int))) { in vsx_memcmp()
Dvsx_asm.S9 #long check_vsx(vector int *r3);
23 # int preempt_vmx(vector int *varray, int *threads_starting,
30 std r3,STACK_FRAME_PARAM(0)(sp) # vector int *varray
Dvmx_syscall.c18 vector int varray[] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10,11,12},
23 extern int test_vmx(vector int *varray, pid_t *pid);
Dvmx_preempt.c32 __thread vector int varray[] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10,11,12},
40 extern int preempt_vmx(vector int *varray, int *threads_starting, int *running);
Dvmx_signal.c32 __thread vector int varray[] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10,11,12},
41 extern int preempt_vmx(vector int *varray, int *threads_starting, int *sentinal);
/tools/testing/selftests/kvm/lib/aarch64/
Dhandlers.S69 .set vector, 0 define
79 mov x1, #vector
88 .set vector, vector + 1 define
95 mov x0, #vector
101 .set vector, vector + 1 define
Dprocessor.c392 void kvm_exit_unexpected_exception(int vector, uint64_t ec, bool valid_ec) in kvm_exit_unexpected_exception() argument
394 ucall(UCALL_UNHANDLED, 3, vector, ec, valid_ec); in kvm_exit_unexpected_exception()
428 void route_exception(struct ex_regs *regs, int vector) in route_exception() argument
434 switch (vector) { in route_exception()
454 if (handlers && handlers->exception_handlers[vector][ec]) in route_exception()
455 return handlers->exception_handlers[vector][ec](regs); in route_exception()
458 kvm_exit_unexpected_exception(vector, ec, valid_ec); in route_exception()
469 void vm_install_sync_handler(struct kvm_vm *vm, int vector, int ec, in vm_install_sync_handler() argument
474 assert(VECTOR_IS_SYNC(vector)); in vm_install_sync_handler()
475 assert(vector < VECTOR_NUM); in vm_install_sync_handler()
[all …]
/tools/testing/selftests/kvm/lib/x86_64/
Dhandlers.S52 vector = \from define
65 pushq $vector
67 vector = vector + 1 define
/tools/testing/selftests/kvm/include/x86_64/
Dhyperv.h253 uint8_t vector; in __hyperv_hypercall() local
260 KVM_ASM_SAFE_OUTPUTS(vector, error_code) in __hyperv_hypercall()
264 return vector; in __hyperv_hypercall()
272 uint8_t vector; in hyperv_hypercall() local
274 vector = __hyperv_hypercall(control, input_address, output_address, &hv_status); in hyperv_hypercall()
276 GUEST_ASSERT(!vector); in hyperv_hypercall()
Dprocessor.h1068 uint64_t vector; member
1090 void vm_install_exception_handler(struct kvm_vm *vm, int vector,
1132 #define KVM_ASM_SAFE_OUTPUTS(v, ec) [vector] "=qm"(v), [error_code] "=rm"(ec)
1138 uint8_t vector; \
1141 : KVM_ASM_SAFE_OUTPUTS(vector, ign_error_code) \
1144 vector; \
1149 uint8_t vector; \
1152 : KVM_ASM_SAFE_OUTPUTS(vector, error_code) \
1155 vector; \
1161 uint8_t vector; in rdmsr_safe() local
[all …]
/tools/tracing/rtla/src/
Dtimerlat_aa.c314 unsigned long long vector; in timerlat_aa_irq_handler() local
321 tep_get_field_val(s, event, "vector", record, &vector, 1); in timerlat_aa_irq_handler()
333 desc, vector, in timerlat_aa_irq_handler()
384 desc, vector, in timerlat_aa_irq_handler()
409 unsigned long long vector; in timerlat_aa_softirq_handler() local
417 tep_get_field_val(s, event, "vector", record, &vector, 1); in timerlat_aa_softirq_handler()
422 softirq_name[vector], vector, in timerlat_aa_softirq_handler()
/tools/testing/selftests/cgroup/
Dmemcg_protection.m16 % n vector nominal protection of siblings set at the given level (memory.low)
17 % c vector current consumption -,,- (memory.current)

12