Home
last modified time | relevance | path

Searched full:run (Results 1 – 25 of 3406) sorted by relevance

12345678910>>...137

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dverifier.c167 #define RUN(skel) run_tests_aux(#skel, skel##__elf_bytes, NULL) macro
173 void test_verifier_align(void) { RUN(verifier_align); } in test_verifier_align()
174 void test_verifier_and(void) { RUN(verifier_and); } in test_verifier_and()
175 void test_verifier_arena(void) { RUN(verifier_arena); } in test_verifier_arena()
176 void test_verifier_arena_large(void) { RUN(verifier_arena_large); } in test_verifier_arena_large()
177 void test_verifier_arena_globals1(void) { RUN(verifier_arena_globals1); } in test_verifier_arena_globals1()
178 void test_verifier_arena_globals2(void) { RUN(verifier_arena_globals2); } in test_verifier_arena_globals2()
179 void test_verifier_basic_stack(void) { RUN(verifier_basic_stack); } in test_verifier_basic_stack()
180 void test_verifier_bitfield_write(void) { RUN(verifier_bitfield_write); } in test_verifier_bitfield_write()
181 void test_verifier_bounds(void) { RUN(verifier_bounds); } in test_verifier_bounds()
[all …]
/linux/tools/testing/selftests/sgx/
H A Dmain.c172 struct sgx_enclave_run run; in FIXTURE() local
262 #define ENCL_CALL(op, run, clobbered) \ argument
267 EENTER, 0, 0, (run)); \
270 (run)); \
274 #define EXPECT_EEXIT(run) \ argument
276 EXPECT_EQ((run)->function, EEXIT); \
277 if ((run)->function != EEXIT) \
278 TH_LOG("0x%02x 0x%02x 0x%016llx", (run)->exception_vector, \
279 (run)->exception_error_code, (run)->exception_addr); \
289 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
[all …]
/linux/tools/testing/selftests/kvm/x86/
H A Dsync_regs_test.c92 struct kvm_run *run = (struct kvm_run *)arg; in race_events_inj_pen() local
93 struct kvm_vcpu_events *events = &run->s.regs.events; in race_events_inj_pen()
98 WRITE_ONCE(run->kvm_dirty_regs, KVM_SYNC_X86_EVENTS); in race_events_inj_pen()
115 struct kvm_run *run = (struct kvm_run *)arg; in race_events_exc() local
116 struct kvm_vcpu_events *events = &run->s.regs.events; in race_events_exc()
119 WRITE_ONCE(run->kvm_dirty_regs, KVM_SYNC_X86_EVENTS); in race_events_exc()
137 struct kvm_run *run = (struct kvm_run *)arg; in race_sregs_cr4() local
138 __u64 *cr4 = &run->s.regs.sregs.cr4; in race_sregs_cr4()
143 WRITE_ONCE(run->kvm_dirty_regs, KVM_SYNC_X86_SREGS); in race_sregs_cr4()
161 struct kvm_run *run; in race_sync_regs() local
210 struct kvm_run *run = vcpu->run; KVM_ONE_VCPU_TEST() local
231 struct kvm_run *run = vcpu->run; KVM_ONE_VCPU_TEST() local
252 struct kvm_run *run = vcpu->run; KVM_ONE_VCPU_TEST() local
275 struct kvm_run *run = vcpu->run; KVM_ONE_VCPU_TEST() local
313 struct kvm_run *run = vcpu->run; KVM_ONE_VCPU_TEST() local
330 struct kvm_run *run = vcpu->run; KVM_ONE_VCPU_TEST() local
361 struct kvm_run *run = vcpu->run; KVM_ONE_VCPU_TEST() local
[all...]
H A Ddebug_regs.c149 struct kvm_run *run; in main()
167 run = vcpu->run; in main()
174 TEST_ASSERT(run->exit_reason == KVM_EXIT_DEBUG && in main()
175 run->debug.arch.exception == BP_VECTOR && in main()
176 run->debug.arch.pc == CAST_TO_RIP(sw_bp), in main()
178 run->exit_reason, run->debug.arch.exception, in main()
179 run->debug.arch.pc, CAST_TO_RIP(sw_bp)); in main()
191 TEST_ASSERT(run in main()
86 struct kvm_run *run; main() local
[all...]
H A Duserspace_msr_exit_test.c262 * Now run the same tests with the instruction emulator. in guest_code_filter_allow()
388 if (vcpu->run->exit_reason == KVM_EXIT_IO && in check_for_guest_assert()
396 struct kvm_run *run = vcpu->run; in process_rdmsr() local
401 TEST_ASSERT(run->msr.index == msr_index, in process_rdmsr()
403 run->msr.index, msr_index); in process_rdmsr()
405 switch (run->msr.index) { in process_rdmsr()
407 run->msr.data = 0; in process_rdmsr()
410 run->msr.error = 1; in process_rdmsr()
413 run->msr.data = msr_non_existent_data; in process_rdmsr()
416 run->msr.data = MSR_FS_BASE; in process_rdmsr()
[all …]
H A Dflds_emulation.h22 struct kvm_run *run = vcpu->run; in handle_flds_emulation_failure_exit() local
29 TEST_ASSERT(run->emulation_failure.suberror == KVM_INTERNAL_ERROR_EMULATION, in handle_flds_emulation_failure_exit()
31 run->emulation_failure.suberror); in handle_flds_emulation_failure_exit()
33 flags = run->emulation_failure.flags; in handle_flds_emulation_failure_exit()
34 TEST_ASSERT(run->emulation_failure.ndata >= 3 && in handle_flds_emulation_failure_exit()
36 "run->emulation_failure is missing instruction bytes"); in handle_flds_emulation_failure_exit()
38 TEST_ASSERT(run->emulation_failure.insn_size >= 2, in handle_flds_emulation_failure_exit()
40 run->emulation_failure.insn_size); in handle_flds_emulation_failure_exit()
42 insn_bytes = run->emulation_failure.insn_bytes; in handle_flds_emulation_failure_exit()
H A Dhyperv_extended_hypercalls.c41 struct kvm_run *run; in main() local
56 run = vcpu->run; in main()
72 TEST_ASSERT(run->exit_reason == KVM_EXIT_HYPERV, in main()
74 run->exit_reason, exit_reason_str(run->exit_reason)); in main()
76 outval = addr_gpa2hva(vm, run->hyperv.u.hcall.params[1]); in main()
78 run->hyperv.u.hcall.result = HV_STATUS_SUCCESS; in main()
82 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
84 run->exit_reason, exit_reason_str(run->exit_reason)); in main()
/linux/fs/ntfs3/
H A Drun.c35 static bool run_lookup(const struct runs_tree *run, CLST vcn, size_t *index) in run_lookup() argument
40 if (!run->count) { in run_lookup()
46 max_idx = run->count - 1; in run_lookup()
49 r = run->runs; in run_lookup()
62 *index = run->count; in run_lookup()
73 r = run->runs + mid_idx; in run_lookup()
94 static void run_consolidate(struct runs_tree *run, size_t index) in run_consolidate() argument
97 struct ntfs_run *r = run->runs + index; in run_consolidate()
99 while (index + 1 < run->count) { in run_consolidate()
101 * I should merge current run with next in run_consolidate()
[all …]
H A Dattrib.c61 struct runs_tree *run, const CLST *vcn) in attr_load_runs() argument
69 if (svcn >= evcn + 1 || run_is_mapped_full(run, svcn, evcn)) in attr_load_runs()
81 err = run_unpack_ex(run, ni->mi.sbi, ni->mi.rno, svcn, evcn, in attr_load_runs()
93 static int run_deallocate_ex(struct ntfs_sb_info *sbi, struct runs_tree *run, in run_deallocate_ex() argument
104 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in run_deallocate_ex()
106 run_truncate(run, vcn0); in run_deallocate_ex()
143 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in run_deallocate_ex()
145 /* Save memory - don't load entire run. */ in run_deallocate_ex()
158 * attr_allocate_clusters - Find free space, mark it as used and store in @run.
160 int attr_allocate_clusters(struct ntfs_sb_info *sbi, struct runs_tree *run, in attr_allocate_clusters() argument
[all …]
H A Dntfs_fs.h151 struct runs_tree run; member
404 struct runs_tree run; member
423 struct runs_tree run; member
460 int attr_allocate_clusters(struct ntfs_sb_info *sbi, struct runs_tree *run,
467 u64 new_size, struct runs_tree *run,
470 const __le16 *name, u8 name_len, struct runs_tree *run,
475 struct runs_tree *run, u64 new_size, in attr_set_size() argument
478 return attr_set_size_ex(ni, type, name, name_len, run, new_size, in attr_set_size()
489 const __le16 *name, u8 name_len, struct runs_tree *run,
492 const __le16 *name, u8 name_len, struct runs_tree *run,
[all …]
/linux/tools/perf/tests/
H A Dmake10 # run only specific test over 'Makefile'
129 # $(run) contains all available tests
130 run := make_pure
131 # Targets 'clean all' can be run together only through top level
135 run += make_clean_all
140 run += make_python_perf_so
141 run += make_debug
143 run += make_nondistro
145 run += make_extra_tests
146 run
[all...]
/linux/tools/testing/ktest/examples/
H A Dcrosstests.conf32 # The build will go into this directory. It will be created when you run the test.
49 # The log file will be cleared each time you run ktest.
61 # arch that you want to test. (uncomment RUN and chose your arch)
62 #RUN := arm
66 # to run the bisect on the arch.
67 #RUN := bisect
96 TEST_START IF ${RUN} == alpha || ${DO_DEFAULT}
105 TEST_START IF ${RUN} == arm || ${DO_DEFAULT}
110 TEST_START IF ${RUN} == ia64 || ${DO_DEFAULT}
115 TEST_START IF ${RUN} == m68k || ${DO_DEFAULT}
[all …]
/linux/fs/befs/
H A Ddatastream.c26 befs_blocknr_t blockno, befs_block_run *run);
31 befs_block_run *run);
36 befs_block_run *run);
53 befs_block_run run; in befs_read_datastream() local
61 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream()
67 bh = befs_bread_iaddr(sb, run); in befs_read_datastream()
80 * befs_fblock2brun - give back block run for fblock
84 * @run: The found run is passed back through this pointer
96 befs_blocknr_t fblock, befs_block_run *run) in befs_fblock2brun() argument
102 err = befs_find_brun_direct(sb, data, fblock, run); in befs_fblock2brun()
[all …]
H A Dendian.h74 befs_block_run run; in fsrun_to_cpu() local
77 run.allocation_group = le32_to_cpu((__force __le32)n.allocation_group); in fsrun_to_cpu()
78 run.start = le16_to_cpu((__force __le16)n.start); in fsrun_to_cpu()
79 run.len = le16_to_cpu((__force __le16)n.len); in fsrun_to_cpu()
81 run.allocation_group = be32_to_cpu((__force __be32)n.allocation_group); in fsrun_to_cpu()
82 run.start = be16_to_cpu((__force __be16)n.start); in fsrun_to_cpu()
83 run.len = be16_to_cpu((__force __be16)n.len); in fsrun_to_cpu()
85 return run; in fsrun_to_cpu()
91 befs_disk_block_run run; in cpu_to_fsrun() local
94 run.allocation_group = cpu_to_le32(n.allocation_group); in cpu_to_fsrun()
[all …]
/linux/tools/testing/selftests/kvm/s390/
H A Ducontrol_test.c108 struct kvm_run *run; in FIXTURE() local
145 self->run = kvm_mmap(self->kvm_run_size, PROT_READ | PROT_WRITE, in FIXTURE_SETUP()
157 TH_LOG("VM created %p %p", self->run, self->sie_block); in FIXTURE_SETUP()
188 kvm_munmap(self->run, self->kvm_run_size); in FIXTURE_TEARDOWN()
306 struct kvm_run *run = self->run; in uc_handle_exit_ucontrol() local
310 TEST_ASSERT_EQ(KVM_EXIT_S390_UCONTROL, run->exit_reason); in uc_handle_exit_ucontrol()
311 switch (run->s390_ucontrol.pgm_code) { in uc_handle_exit_ucontrol()
313 seg_addr = run->s390_ucontrol.trans_exc_code & ~(SZ_1M - 1); in uc_handle_exit_ucontrol()
315 run->s390_ucontrol.trans_exc_code, seg_addr); in uc_handle_exit_ucontrol()
321 TEST_FAIL("UNEXPECTED PGM CODE %d", run->s390_ucontrol.pgm_code); in uc_handle_exit_ucontrol()
[all …]
H A Duser_operexec.c34 TEST_ASSERT_EQ(vcpu->run->s390_sieic.icptcode, ICPT_OPEREXC); in test_user_instr0()
35 TEST_ASSERT_EQ(vcpu->run->s390_sieic.ipa, 0); in test_user_instr0()
57 TEST_ASSERT_EQ(vcpu->run->s390_sieic.icptcode, ICPT_OPEREXC); in test_user_operexec()
58 TEST_ASSERT_EQ(vcpu->run->s390_sieic.ipa, 0x0807); in test_user_operexec()
72 TEST_ASSERT_EQ(vcpu->run->s390_sieic.icptcode, ICPT_OPEREXC); in test_user_operexec()
73 TEST_ASSERT_EQ(vcpu->run->s390_sieic.ipa, 0); in test_user_operexec()
93 TEST_ASSERT_EQ(vcpu->run->s390_sieic.icptcode, ICPT_OPEREXC); in test_user_operexec_combined()
94 TEST_ASSERT_EQ(vcpu->run->s390_sieic.ipa, 0x0807); in test_user_operexec_combined()
107 TEST_ASSERT_EQ(vcpu->run->s390_sieic.icptcode, ICPT_OPEREXC); in test_user_operexec_combined()
108 TEST_ASSERT_EQ(vcpu->run->s390_sieic.ipa, 0x0807); in test_user_operexec_combined()
[all …]
/linux/tools/testing/selftests/tc-testing/
H A DREADME19 * The kernel must have the appropriate infrastructure enabled to run all tdc
24 modules. To check what is required in current setup run:
28 In the current release, tdc run will abort due to a failure in setup or
29 teardown commands - which includes not being able to run a test simply
31 handled in a future version - the current workaround is to run the tests
35 BEFORE YOU RUN
51 commands being tested must be run as root. The code that enforces
59 to tdc when starting a test run; the veth pair will still be created
62 Running tdc without any arguments will run all tests. Refer to the section
63 on command line arguments for more information, or run:
[all …]
/linux/tools/perf/scripts/python/
H A Dstat-cpi.py23 def store(time, event, cpu, thread, val, ena, run): argument
24 #print("event %s cpu %d, thread %d, time %d, val %d, ena %d, run %d" %
25 # (event, cpu, thread, time, val, ena, run))
29 data[key] = [ val, ena, run]
35 def stat__cycles_k(cpu, thread, time, val, ena, run): argument
36 store(time, "cycles", cpu, thread, val, ena, run);
38 def stat__instructions_k(cpu, thread, time, val, ena, run): argument
39 store(time, "instructions", cpu, thread, val, ena, run);
41 def stat__cycles_u(cpu, thread, time, val, ena, run): argument
42 store(time, "cycles", cpu, thread, val, ena, run);
[all …]
/linux/tools/testing/selftests/kvm/
H A Dcoalesced_io_test.c78 struct kvm_run *run = vcpu->run; in vcpu_run_and_verify_io_exit() local
90 if (run->exit_reason == KVM_EXIT_IO) in vcpu_run_and_verify_io_exit()
91 pio_value = *(u32 *)((void *)run + run->io.data_offset); in vcpu_run_and_verify_io_exit()
95 TEST_ASSERT((!want_pio && (run->exit_reason == KVM_EXIT_MMIO && run->mmio.is_write && in vcpu_run_and_verify_io_exit()
96 run->mmio.phys_addr == io->mmio_gpa && run->mmio.len == 8 && in vcpu_run_and_verify_io_exit()
97 *(u64 *)run->mmio.data == io->mmio_gpa + io->ring_size - 1)) || in vcpu_run_and_verify_io_exit()
98 (want_pio && (run->exit_reason == KVM_EXIT_IO && run->io.port == io->pio_port && in vcpu_run_and_verify_io_exit()
99 run->io.direction == KVM_EXIT_IO_OUT && run->io.count == 1 && in vcpu_run_and_verify_io_exit()
106 (want_pio ? io->pio_port : io->mmio_gpa) + io->ring_size - 1, run->exit_reason, in vcpu_run_and_verify_io_exit()
107run->exit_reason == KVM_EXIT_MMIO ? "MMIO" : run->exit_reason == KVM_EXIT_IO ? "PIO" : "other", in vcpu_run_and_verify_io_exit()
[all …]
/linux/Documentation/dev-tools/kunit/
H A Dstart.rst8 teaching how to run existing tests and then how to write a simple test case,
14 build the kernel, you can run KUnit.
20 can run kunit_tool:
24 ./tools/testing/kunit/kunit.py run
28 "The source tree is not clean, please run 'make ARCH=um mrproper'"
59 Selecting which tests to run
64 you can select which tests to run by:
67 - `Filtering tests by name`_ to select specifically which compiled tests to run.
72 If you didn't run ``kunit.py run`` yet, you can generate it by running:
91 options required to run the desired tests, including their dependencies.
[all …]
H A Drun_manual.rst4 Run Tests without kunit_tool
8 with other systems, or run tests on real hardware), we can
18 KUnit tests can run without kunit_tool. This can be useful, if:
21 - Need to run on real hardware (or using an emulator/VM kunit_tool
44 Once we have built our kernel (and/or modules), it is simple to run
45 the tests. If the tests are built-in, they will run automatically on the
49 If the tests are built as modules, they will run when the module is
81 Run Tests After Kernel Has Booted
84 You can use the debugfs filesystem to trigger built-in tests to run after
85 boot. To run the test suite, you can use the following command to write to
[all …]
/linux/tools/testing/selftests/resctrl/
H A DREADME15 resctrl_tests can be run with or without kselftest framework.
26 RUN
29 Run resctrl_tests as sudo or root since the test needs to mount resctrl file
31 Using kselftest framework will run all supported tests within resctrl_tests:
47 RUN
50 Run resctrl_tests as sudo or root since the test needs to mount resctrl file
52 Executing the test without any parameter will run all supported tests:
63 - execute: let benchmark run
74 …-b benchmark_cmd [options]: run specified benchmark for MBM, MBA and CMT default benchmark is buil…
75 -t test list: run tests specified in the test list, e.g. -t mbm,mba,cmt,cat
[all …]
/linux/arch/arm64/kvm/
H A Dmmio.c124 struct kvm_run *run = vcpu->run; in kvm_handle_mmio_return() local
127 data = kvm_mmio_read_buf(run->mmio.data, len); in kvm_handle_mmio_return()
129 trace_kvm_mmio(KVM_TRACE_MMIO_READ, len, run->mmio.phys_addr, in kvm_handle_mmio_return()
156 struct kvm_run *run = vcpu->run; in io_mem_abort() local
183 run->exit_reason = KVM_EXIT_ARM_NISV; in io_mem_abort()
184 run->arm_nisv.esr_iss = kvm_vcpu_dabt_iss_nisv_sanitized(vcpu); in io_mem_abort()
185 run->arm_nisv.fault_ipa = fault_ipa; in io_mem_abort()
207 run->exit_reason = KVM_EXIT_ARM_LDST64B; in io_mem_abort()
208 run->arm_nisv.esr_iss = esr & ~(u64)ESR_ELx_FSC; in io_mem_abort()
209 run->arm_nisv.fault_ipa = fault_ipa; in io_mem_abort()
[all …]
/linux/Documentation/driver-api/dmaengine/
H A Ddmatest.rst43 % modprobe dmatest timeout=2000 iterations=1 channel=dma0chan0 run=1
51 % echo 1 > /sys/module/dmatest/parameters/run
55 dmatest.timeout=2000 dmatest.iterations=1 dmatest.channel=dma0chan0 dmatest.run=1
65 % echo 1 > /sys/module/dmatest/parameters/run
75 begin execution when the run parameter is set to 1.
84 pending thread is started once run is to 1.
90 % cat /sys/module/dmatest/parameters/run
92 To wait for test completion userspace can poll 'run' until it is false, or use
94 initialization to pause until a test run has completed, while reading
102 % modprobe dmatest run=1 iterations=42 wait=1
[all …]
/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_child_memory.c87 int run, result; in check_child_memory_mapping() local
92 for (run = 0; run < item; run++) { in check_child_memory_mapping()
93 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_child_memory_mapping()
95 if (check_allocated_memory_range(ptr, sizes[run], mem_type, in check_child_memory_mapping()
98 result = check_child_tag_inheritance(ptr, sizes[run], mode); in check_child_memory_mapping()
99 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type, UNDERFLOW, OVERFLOW); in check_child_memory_mapping()
109 int run, fd, map_size, result = KSFT_PASS; in check_child_file_mapping() local
113 for (run in check_child_file_mapping()
[all...]

12345678910>>...137