| /tools/testing/selftests/kvm/s390/ |
| A D | tprot.c | 63 enum stage { enum 73 enum stage stage; member 139 static enum stage perform_next_stage(int *i, bool mapped_0) in perform_next_stage() 141 enum stage stage = tests[*i].stage; in perform_next_stage() local 145 for (; tests[*i].stage == stage; (*i)++) { in perform_next_stage() 163 return stage; in perform_next_stage() 185 #define HOST_SYNC_NO_TAP(vcpup, stage) \ argument 189 int __stage = (stage); \ 199 #define HOST_SYNC(vcpu, stage) \ argument 201 HOST_SYNC_NO_TAP(vcpu, stage); \ [all …]
|
| /tools/testing/selftests/kvm/x86/ |
| A D | set_boot_cpu_id.c | 61 int stage; in run_vcpu() local 63 for (stage = 0; stage < 2; stage++) { in run_vcpu() 70 uc.args[1] == stage + 1, in run_vcpu() 72 stage + 1, (ulong)uc.args[1]); in run_vcpu() 76 TEST_ASSERT(stage == 1, in run_vcpu() 78 stage); in run_vcpu()
|
| A D | hyperv_ipi.c | 95 GUEST_SYNC(stage++); in sender_guest_code() 109 GUEST_SYNC(stage++); in sender_guest_code() 116 GUEST_SYNC(stage++); in sender_guest_code() 129 GUEST_SYNC(stage++); in sender_guest_code() 138 GUEST_SYNC(stage++); in sender_guest_code() 151 GUEST_SYNC(stage++); in sender_guest_code() 160 GUEST_SYNC(stage++); in sender_guest_code() 174 GUEST_SYNC(stage++); in sender_guest_code() 183 GUEST_SYNC(stage++); in sender_guest_code() 248 int stage = 1, r; in main() local [all …]
|
| A D | vmx_preemption_timer_test.c | 162 int stage; in main() local 180 for (stage = 1;; stage++) { in main() 198 uc.args[1] == stage, "Stage %d: Unexpected register values vmexit, got %lx", in main() 199 stage, (ulong)uc.args[1]); in main() 208 if (stage == 2) { in main() 211 stage, uc.args[2], uc.args[3]); in main() 214 stage, uc.args[4], uc.args[5]); in main() 218 stage, uc.args[2], uc.args[3]); in main() 222 stage, uc.args[4], uc.args[5]); in main()
|
| A D | smm_test.c | 136 int stage, stage_reported; in main() local 166 for (stage = 1;; stage++) { in main() 178 TEST_ASSERT(stage_reported == stage || in main() 181 stage, stage_reported); in main() 187 if (stage == 8) { in main() 196 if (stage == 10) in main()
|
| A D | hyperv_tlb_flush.c | 205 int i, stage = 1; in sender_guest_code() local 212 GUEST_SYNC(stage++); in sender_guest_code() 224 GUEST_SYNC(stage++); in sender_guest_code() 238 GUEST_SYNC(stage++); in sender_guest_code() 251 GUEST_SYNC(stage++); in sender_guest_code() 266 GUEST_SYNC(stage++); in sender_guest_code() 281 GUEST_SYNC(stage++); in sender_guest_code() 299 GUEST_SYNC(stage++); in sender_guest_code() 317 GUEST_SYNC(stage++); in sender_guest_code() 338 GUEST_SYNC(stage++); in sender_guest_code() [all …]
|
| A D | hyperv_clock.c | 212 int stage; in main() local 229 for (stage = 1;; stage++) { in main() 241 TEST_ASSERT(stage == 11, "Testing ended prematurely, stage %d", in main() 242 stage); in main() 249 uc.args[1] == stage, in main() 251 stage, (ulong)uc.args[1]); in main() 254 if (stage == 7 || stage == 8 || stage == 10) { in main()
|
| A D | cpuid_test.c | 120 static void run_vcpu(struct kvm_vcpu *vcpu, int stage) in run_vcpu() argument 129 uc.args[1] == stage + 1, in run_vcpu() 131 stage + 1, (ulong)uc.args[1]); in run_vcpu() 207 int stage; in main() local 217 for (stage = 0; stage < 3; stage++) in main() 218 run_vcpu(vcpu, stage); in main()
|
| A D | tsc_msrs_test.c | 67 static void run_vcpu(struct kvm_vcpu *vcpu, int stage) in run_vcpu() argument 76 uc.args[1] == stage + 1) in run_vcpu() 77 ksft_test_result_pass("stage %d passed\n", stage + 1); in run_vcpu() 81 stage + 1, (ulong)uc.args[1]); in run_vcpu() 84 ksft_test_result_pass("stage %d passed\n", stage + 1); in run_vcpu()
|
| A D | hyperv_evmcs.c | 240 int stage; in main() local 265 for (stage = 1;; stage++) { in main() 283 uc.args[1] == stage, "Stage %d: Unexpected register values vmexit, got %lx", in main() 284 stage, (ulong)uc.args[1]); in main() 289 if (stage == 8) { in main() 299 if (stage == 9) { in main()
|
| A D | hyperv_svm_test.c | 157 int stage; in main() local 174 for (stage = 1;; stage++) { in main() 192 uc.args[1] == stage, "Stage %d: Unexpected register values vmexit, got %lx", in main() 193 stage, (ulong)uc.args[1]); in main()
|
| A D | state_test.c | 235 int stage; in main() local 254 for (stage = 1;; stage++) { in main() 272 uc.args[1] == stage, "Stage %d: Unexpected register values vmexit, got %lx", in main() 273 stage, (ulong)uc.args[1]); in main()
|
| A D | hyperv_features.c | 136 int stage = 0; in guest_test_msrs_access() local 160 if (stage >= 21) in guest_test_msrs_access() 163 switch (stage) { in guest_test_msrs_access() 496 pr_debug("Stage %d: testing msr: 0x%x for %s\n", stage, in guest_test_msrs_access() 514 stage++; in guest_test_msrs_access() 525 int stage = 0; in guest_test_hcalls_access() local 551 switch (stage) { in guest_test_hcalls_access() 665 pr_debug("Stage %d: testing hcall: 0x%lx\n", stage, hcall->control); in guest_test_hcalls_access() 681 stage++; in guest_test_hcalls_access()
|
| /tools/testing/selftests/kvm/arm64/ |
| A D | hypercalls.c | 59 static int stage = TEST_STAGE_REG_IFACE; variable 113 switch (stage) { in guest_test_hvc() 118 res.a0, hc_info->func_id, hc_info->arg1, stage); in guest_test_hvc() 126 GUEST_FAIL("Unexpected stage = %u", stage); in guest_test_hvc() 133 while (stage != TEST_STAGE_END) { in guest_code() 134 switch (stage) { in guest_code() 145 GUEST_FAIL("Unexpected stage = %u", stage); in guest_code() 148 GUEST_SYNC(stage); in guest_code() 273 int prev_stage = stage; in test_guest_stage() 278 stage++; in test_guest_stage() [all …]
|
| A D | arch_timer.c | 58 enum guest_stage stage = shared_data->guest_stage; in guest_validate_irq() local 67 switch (stage) { in guest_validate_irq() 117 enum guest_stage stage) in guest_run_stage() argument 121 shared_data->guest_stage = stage; in guest_run_stage()
|
| /tools/testing/selftests/tc-testing/plugin-lib/ |
| A D | nsPlugin.py | 86 def adjust_command(self, stage, command): argument 87 super().adjust_command(stage, command) 99 if stage == 'setup' or stage == 'execute' or stage == 'verify' or stage == 'teardown': 101 …nd: stage is {}; inserting netns stuff in command [{}] list [{}]'.format(stage, command, cmdlist)) 221 def _exec_cmd(self, stage, command): argument 240 def _exec_cmd_batched(self, stage, commands): argument 242 self._exec_cmd(stage, cmd)
|
| A D | valgrindPlugin.py | 63 def adjust_command(self, stage, command): argument 64 super().adjust_command(stage, command) 80 if stage == 'execute': 83 format(stage, command, cmdlist))
|
| /tools/testing/selftests/damon/ |
| A D | _damon_sysfs.py | 62 def stage(self): member in DamosAccessPattern 110 def stage(self): member in DamosQuotaGoal 156 def stage(self): member in DamosQuota 214 def stage(self): member in DamosWatermarks 261 def stage(self): member in DamosFilter 311 def stage(self): member in DamosFilters 335 def stage(self): member in DamosDest 357 def stage(self): member in DamosDests 437 def stage(self): member in Damos 489 def stage(self): member in DamonTarget [all …]
|
| /tools/testing/selftests/kvm/include/ |
| A D | ucall_common.h | 53 #define GUEST_SYNC_ARGS(stage, arg1, arg2, arg3, arg4) \ argument 54 ucall(UCALL_SYNC, 6, "hello", stage, arg1, arg2, arg3, arg4) 55 #define GUEST_SYNC(stage) ucall(UCALL_SYNC, 2, "hello", stage) argument
|
| /tools/testing/selftests/tc-testing/ |
| A D | TdcPlugin.py | 43 def adjust_command(self, stage, command): argument 46 print(' -- {}.adjust_command {}'.format(self.sub_class, stage))
|
| A D | tdc.py | 35 def __init__(self, stage, output, message): argument 36 self.stage = stage 176 def call_adjust_command(self, caseinfo, stage, command): argument 180 command = pgn_inst.adjust_command(stage, command) 201 def exec_cmd(caseinfo, args, pm, stage, command): argument 211 command = pm.call_adjust_command(caseinfo, stage, command) 254 (proc, foutput) = exec_cmd(caseinfo, args, pm, stage, cmd) 268 stage, output, 516 stage = None 539 stage = pmtf.stage [all …]
|
| A D | README | 86 stage does some setup if the test needs it. The teardown stage undoes 91 The execute and verify stages each run one command. The execute stage 93 verify stage checks the return code for success, and also compares 96 Each of the commands in any stage will run in a shell instance. 155 pre- and post-execute stage 156 adjust-command (runs in all stages and receives the stage name) 160 failure during setup or teardown stage. 164 The adjust-command hook receives the stage id (see list below) and the 191 runs each command in the execute stage under valgrind,
|
| /tools/testing/selftests/kvm/ |
| A D | kvm_page_table_test.c | 189 enum test_stage stage; in vcpu_worker() local 211 stage = READ_ONCE(*current_stage); in vcpu_worker() 219 vcpu->id, test_stage_string[stage], in vcpu_worker() 316 static void vcpus_complete_new_stage(enum test_stage stage) in vcpus_complete_new_stage() argument 334 vcpus + 1, test_stage_string[stage]); in vcpus_complete_new_stage() 338 test_stage_string[stage]); in vcpus_complete_new_stage()
|
| A D | mmu_stress_test.c | 102 static void assert_sync_stage(struct kvm_vcpu *vcpu, int stage) in assert_sync_stage() argument 107 TEST_ASSERT_EQ(uc.args[1], stage); in assert_sync_stage() 110 static void run_vcpu(struct kvm_vcpu *vcpu, int stage) in run_vcpu() argument 113 assert_sync_stage(vcpu, stage); in run_vcpu()
|
| /tools/testing/selftests/tc-testing/creating-plugins/ |
| A D | AddingPlugins.txt | 18 pre (the pre-suite stage) 23 post (the post-suite stage) 36 def adjust_command(self, stage, command) # see "ADJUST" below 71 the execution stage and a string which is the actual command to be 72 executed. The plugin can adjust the command, based on the stage of
|