| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | verifier.c | 150 #define RUN(skel) run_tests_aux(#skel, skel##__elf_bytes, NULL) in test_verifier_basic_stack() 152 void test_verifier_and(void) { RUN(verifier_and); } in test_verifier_bounds() 153 void test_verifier_arena(void) { RUN(verifier_arena); } in test_verifier_bounds_deduction() 154 void test_verifier_arena_large(void) { RUN(verifier_arena_large); } in test_verifier_bounds_deduction_non_const() 155 void test_verifier_arena_globals1(void) { RUN(verifier_arena_globals1); } in test_verifier_bounds_mix_sign_unsign() 156 void test_verifier_arena_globals2(void) { RUN(verifier_arena_globals2); } in test_verifier_bpf_get_stack() 157 void test_verifier_basic_stack(void) { RUN(verifier_basic_stack); } in test_verifier_bpf_trap() 158 void test_verifier_bitfield_write(void) { RUN(verifier_bitfield_write); } in test_verifier_bswap() 159 void test_verifier_bounds(void) { RUN(verifier_bounds); } in test_verifier_btf_ctx_access() 160 void test_verifier_bounds_deduction(void) { RUN(verifier_bounds_deductio in test_verifier_btf_ctx_access() 145 #define RUN( global() macro [all...] |
| /linux/tools/testing/selftests/sgx/ |
| H A D | main.c | 172 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 D | sync_regs_test.c | 92 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 [all …]
|
| H A D | debug_regs.c | 86 struct kvm_run *run; in main() local 104 run = vcpu->run; in main() 111 TEST_ASSERT(run->exit_reason == KVM_EXIT_DEBUG && in main() 112 run->debug.arch.exception == BP_VECTOR && in main() 113 run->debug.arch.pc == CAST_TO_RIP(sw_bp), in main() 115 run->exit_reason, run->debug.arch.exception, in main() 116 run->debug.arch.pc, CAST_TO_RIP(sw_bp)); in main() 128 TEST_ASSERT(run->exit_reason == KVM_EXIT_DEBUG && in main() 129 run->debug.arch.exception == DB_VECTOR && in main() 130 run->debug.arch.pc == CAST_TO_RIP(hw_bp) && in main() [all …]
|
| H A D | userspace_msr_exit_test.c | 262 * 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 …]
|
| /linux/tools/testing/selftests/kvm/s390/ |
| H A D | sync_regs_test.c | 76 struct kvm_run *run = vcpu->run; in test_read_invalid() local 80 run->kvm_valid_regs = INVALID_SYNC_FIELD; in test_read_invalid() 85 run->kvm_valid_regs = 0; in test_read_invalid() 87 run->kvm_valid_regs = INVALID_SYNC_FIELD | TEST_SYNC_FIELDS; in test_read_invalid() 92 run->kvm_valid_regs = 0; in test_read_invalid() 97 struct kvm_run *run = vcpu->run; in test_set_invalid() local 101 run->kvm_dirty_regs = INVALID_SYNC_FIELD; in test_set_invalid() 106 run->kvm_dirty_regs = 0; in test_set_invalid() 108 run->kvm_dirty_regs = INVALID_SYNC_FIELD | TEST_SYNC_FIELDS; in test_set_invalid() 113 run->kvm_dirty_regs = 0; in test_set_invalid() [all …]
|
| H A D | ucontrol_test.c | 108 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 …]
|
| /linux/fs/ntfs3/ |
| H A D | run.c | 35 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 D | attrib.c | 61 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 …]
|
| /linux/arch/loongarch/kvm/ |
| H A D | exit.c | 157 int kvm_emu_iocsr(larch_inst inst, struct kvm_run *run, struct kvm_vcpu *vcpu) in kvm_emu_iocsr() argument 170 run->iocsr_io.phys_addr = addr; in kvm_emu_iocsr() 171 run->iocsr_io.is_write = 0; in kvm_emu_iocsr() 177 run->iocsr_io.len = 1; in kvm_emu_iocsr() 180 run->iocsr_io.len = 2; in kvm_emu_iocsr() 183 run->iocsr_io.len = 4; in kvm_emu_iocsr() 186 run->iocsr_io.len = 8; in kvm_emu_iocsr() 189 run->iocsr_io.len = 1; in kvm_emu_iocsr() 190 run->iocsr_io.is_write = 1; in kvm_emu_iocsr() 193 run->iocsr_io.len = 2; in kvm_emu_iocsr() [all …]
|
| /linux/tools/perf/tests/ |
| H A D | make | 10 # run only specific test over 'Makefile' 131 # $(run) contains all available tests 132 run := make_pure 133 # Targets 'clean all' can be run together only through top level 137 run += make_clean_all 142 run += make_python_perf_so 143 run += make_debug 145 run += make_nondistro 147 run += make_extra_tests 148 run += make_no_jevents [all …]
|
| /linux/drivers/staging/media/sunxi/cedrus/ |
| H A D | cedrus_dec.c | 29 struct cedrus_run run = {}; in cedrus_device_run() local 33 run.src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in cedrus_device_run() 34 run.dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in cedrus_device_run() 37 src_req = run.src->vb2_buf.req_obj.req; in cedrus_device_run() 44 run.mpeg2.sequence = cedrus_find_control_data(ctx, in cedrus_device_run() 46 run.mpeg2.picture = cedrus_find_control_data(ctx, in cedrus_device_run() 48 run.mpeg2.quantisation = cedrus_find_control_data(ctx, in cedrus_device_run() 53 run.h264.decode_params = cedrus_find_control_data(ctx, in cedrus_device_run() 55 run.h264.pps = cedrus_find_control_data(ctx, in cedrus_device_run() 57 run.h264.scaling_matrix = cedrus_find_control_data(ctx, in cedrus_device_run() [all …]
|
| /linux/tools/testing/ktest/examples/ |
| H A D | crosstests.conf | 32 # 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/arch/riscv/kvm/ |
| H A D | vcpu_insn.c | 27 int (*func)(struct kvm_vcpu *vcpu, struct kvm_run *run, ulong insn); 30 static int truly_illegal_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, in truly_illegal_insn() argument 46 static int truly_virtual_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, in truly_virtual_insn() argument 76 static int wfi_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, ulong insn) in wfi_insn() argument 83 static int wrs_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, ulong insn) in wrs_insn() argument 123 * @run: The VCPU run struct containing the CSR data 127 int kvm_riscv_vcpu_csr_return(struct kvm_vcpu *vcpu, struct kvm_run *run) in kvm_riscv_vcpu_csr_return() argument 139 run->riscv_csr.ret_value); in kvm_riscv_vcpu_csr_return() 147 static int csr_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, ulong insn) in csr_insn() argument 191 run->riscv_csr.csr_num = csr_num; in csr_insn() [all …]
|
| /linux/fs/befs/ |
| H A D | datastream.c | 26 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 D | endian.h | 74 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/Documentation/dev-tools/kunit/ |
| H A D | run_wrapper.rst | 7 We can either run KUnit tests using kunit_tool or can run tests 8 manually, and then use kunit_tool to parse the results. To run tests 10 As long as we can build the kernel, we can run KUnit. 15 Run command: 19 ./tools/testing/kunit/kunit.py run 33 ./tools/testing/kunit/kunit.py run --timeout=30 --jobs=`nproc --all` 35 - ``--timeout`` sets a maximum amount of time for tests to run. 45 tests we want to run independently, or if we want to use pre-defined 53 ./tools/testing/kunit/kunit.py run --kunitconfig=fs/ext4/.kunitconfig 55 To view kunit_tool flags (optional command-line arguments), run: [all …]
|
| H A D | start.rst | 8 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 …]
|
| /linux/include/video/ |
| H A D | imx-ipu-image-convert.h | 15 * struct ipu_image_convert_run - image conversion run request struct 18 * @in_phys: dma addr of input image buffer for this run 19 * @out_phys: dma addr of output image buffer for this run 20 * @status: completion status of this run 37 * @run: the completed conversion run pointer 40 typedef void (*ipu_image_convert_cb_t)(struct ipu_image_convert_run *run, 77 * @complete: run completion callback 101 * error run status. 109 * ipu_image_convert_queue() - queue a conversion run 111 * @run: the run request pointer [all …]
|
| /linux/tools/testing/selftests/tc-testing/ |
| H A D | README | 19 * 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/drivers/media/platform/rockchip/rkvdec/ |
| H A D | rkvdec-hevc-common.c | 35 void compute_tiles_uniform(struct rkvdec_hevc_run *run, u16 log2_min_cb_size, in compute_tiles_uniform() argument 39 const struct v4l2_ctrl_hevc_pps *pps = run->pps; in compute_tiles_uniform() 55 void compute_tiles_non_uniform(struct rkvdec_hevc_run *run, u16 log2_min_cb_size, in compute_tiles_non_uniform() argument 59 const struct v4l2_ctrl_hevc_pps *pps = run->pps; in compute_tiles_non_uniform() 197 struct rkvdec_hevc_run *run, in rkvdec_hevc_assemble_hw_scaling_list() argument 201 const struct v4l2_ctrl_hevc_scaling_matrix *scaling = run->scaling_matrix; in rkvdec_hevc_assemble_hw_scaling_list() 213 static void rkvdec_hevc_assemble_hw_lt_rps(struct rkvdec_hevc_run *run, struct rkvdec_rps *rps) in rkvdec_hevc_assemble_hw_lt_rps() argument 215 const struct v4l2_ctrl_hevc_sps *sps = run->sps; in rkvdec_hevc_assemble_hw_lt_rps() 217 if (!run->ext_sps_lt_rps) in rkvdec_hevc_assemble_hw_lt_rps() 222 run->ext_sps_lt_rps[i].lt_ref_pic_poc_lsb_sps; in rkvdec_hevc_assemble_hw_lt_rps() [all …]
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | coalesced_io_test.c | 78 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 = *(uint32_t *)((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 *(uint64_t *)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() 107 … run->exit_reason == KVM_EXIT_MMIO ? "MMIO" : run->exit_reason == KVM_EXIT_IO ? "PIO" : "other", in vcpu_run_and_verify_io_exit() [all …]
|
| /linux/tools/perf/scripts/python/ |
| H A D | stat-cpi.py | 23 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/arch/s390/kvm/ |
| H A D | diag.c | 43 start = vcpu->run->s.regs.gprs[(vcpu->arch.sie_block->ipa & 0xf0) >> 4]; in diag_release_pages() 44 end = vcpu->run->s.regs.gprs[vcpu->arch.sie_block->ipa & 0xf] + PAGE_SIZE; in diag_release_pages() 96 vcpu->run->s.regs.gprs[rx]); in __diag_page_ref_service() 98 if (vcpu->run->s.regs.gprs[rx] & 7) in __diag_page_ref_service() 100 rc = read_guest_real(vcpu, vcpu->run->s.regs.gprs[rx], &parm, sizeof(parm)); in __diag_page_ref_service() 117 vcpu->run->s.regs.gprs[ry] = 8; in __diag_page_ref_service() 131 vcpu->run->s.regs.gprs[ry] = 0; in __diag_page_ref_service() 145 vcpu->run->s.regs.gprs[ry] = 0; in __diag_page_ref_service() 151 vcpu->run->s.regs.gprs[ry] = 4; in __diag_page_ref_service() 192 tid = vcpu->run->s.regs.gprs[(vcpu->arch.sie_block->ipa & 0xf0) >> 4]; in __diag_time_slice_end_directed() [all …]
|
| /linux/Documentation/dev-tools/ |
| H A D | kselftest.rst | 7 paths in the kernel. Tests are intended to be run after building, installing 10 Kselftest from mainline can be run on older stable kernels. Running tests 11 from mainline offers the best coverage. Several test rings run mainline 14 able to run that test on an older kernel. Hence, it is important to keep 25 to run the full range of hot-plug tests. In default mode, hot-plug tests run 27 run on a single cpu as opposed to all hotplug capable cpus, and memory 28 hotplug test is run on 2% of hotplug capable memory instead of 10%. 30 kselftest runs as a userspace process. Tests that can be written/run in 32 run in kernel space may wish to use a `Test Module`_. 43 Running the selftests (hotplug tests are run in limited mode) [all …]
|