/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | verifier.c | 140 #define RUN(skel) run_tests_aux(#skel, skel##__elf_bytes, NULL) in test_verifier_arena() 142 void test_verifier_and(void) { RUN(verifier_and); } in test_verifier_basic_stack() 143 void test_verifier_arena(void) { RUN(verifier_arena); } in test_verifier_bitfield_write() 144 void test_verifier_arena_large(void) { RUN(verifier_arena_large); } in test_verifier_bounds() 145 void test_verifier_basic_stack(void) { RUN(verifier_basic_stack); } in test_verifier_bounds_deduction() 146 void test_verifier_bitfield_write(void) { RUN(verifier_bitfield_write); } in test_verifier_bounds_deduction_non_const() 147 void test_verifier_bounds(void) { RUN(verifier_bounds); } in test_verifier_bounds_mix_sign_unsign() 148 void test_verifier_bounds_deduction(void) { RUN(verifier_bounds_deduction); } in test_verifier_bpf_get_stack() 149 void test_verifier_bounds_deduction_non_const(void) { RUN(verifier_bounds_deduction_non_const); } in test_verifier_bswap() 150 void test_verifier_bounds_mix_sign_unsign(void) { RUN(verifier_bounds_mix_sign_unsig in test_verifier_bswap() 137 #define RUN( global() macro [all...] |
/linux/drivers/media/test-drivers/visl/ |
H A D | visl-dec.c | 62 __kernel_size_t buflen, struct visl_run *run) in visl_get_ref_frames() argument 80 vb2_buf = vb2_find_buffer(cap_q, run->fwht.params->backward_ref_ts); in visl_get_ref_frames() 83 run->fwht.params->backward_ref_ts, vb2_buf); in visl_get_ref_frames() 92 b_ref = vb2_find_buffer(cap_q, run->mpeg2.pic->backward_ref_ts); in visl_get_ref_frames() 93 f_ref = vb2_find_buffer(cap_q, run->mpeg2.pic->forward_ref_ts); in visl_get_ref_frames() 96 run->mpeg2.pic->backward_ref_ts, b_ref); in visl_get_ref_frames() 98 run->mpeg2.pic->forward_ref_ts, f_ref); in visl_get_ref_frames() 108 last = vb2_find_buffer(cap_q, run->vp8.frame->last_frame_ts); in visl_get_ref_frames() 109 golden = vb2_find_buffer(cap_q, run->vp8.frame->golden_frame_ts); in visl_get_ref_frames() 110 alt = vb2_find_buffer(cap_q, run->vp8.frame->alt_frame_ts); in visl_get_ref_frames() [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/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/fs/ntfs3/ |
H A D | run.c | 34 static bool run_lookup(const struct runs_tree *run, CLST vcn, size_t *index) in run_lookup() argument 39 if (!run->count) { in run_lookup() 45 max_idx = run->count - 1; in run_lookup() 48 r = run->runs; in run_lookup() 61 *index = run->count; in run_lookup() 72 r = run->runs + mid_idx; in run_lookup() 93 static void run_consolidate(struct runs_tree *run, size_t index) in run_consolidate() argument 96 struct ntfs_run *r = run->runs + index; in run_consolidate() 98 while (index + 1 < run->count) { in run_consolidate() 100 * I should merge current run with next in run_consolidate() [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 | 153 int (*func)(struct kvm_vcpu *vcpu, struct kvm_run *run, ulong insn); 156 static int truly_illegal_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, in truly_illegal_insn() argument 172 static int truly_virtual_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, in truly_virtual_insn() argument 202 static int wfi_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, ulong insn) in wfi_insn() argument 209 static int wrs_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, ulong insn) in wrs_insn() argument 249 * @run: The VCPU run struct containing the CSR data 253 int kvm_riscv_vcpu_csr_return(struct kvm_vcpu *vcpu, struct kvm_run *run) in kvm_riscv_vcpu_csr_return() argument 265 run->riscv_csr.ret_value); in kvm_riscv_vcpu_csr_return() 273 static int csr_insn(struct kvm_vcpu *vcpu, struct kvm_run *run, ulong insn) in csr_insn() argument 317 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/tools/testing/selftests/arm64/mte/ |
H A D | check_mmap_options.c | 63 int run, result, map_size; in check_anonymous_memory_mapping() local 67 for (run = 0; run < item; run++) { in check_anonymous_memory_mapping() 68 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_anonymous_memory_mapping() 74 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_anonymous_memory_mapping() 76 ptr = mte_insert_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping() 82 result = check_mte_memory(ptr, sizes[run], mode, tag_check); in check_anonymous_memory_mapping() 83 mte_clear_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping() 94 int run, fd, map_size; in check_file_memory_mapping() local 99 for (run = 0; run < total; run++) { in check_file_memory_mapping() 104 map_size = sizes[run] + UNDERFLOW + OVERFLOW; in check_file_memory_mapping() [all …]
|
H A D | check_child_memory.c | 87 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 = 0; run < total; run++) { in check_child_file_mapping() 118 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_child_file_mapping() 125 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_child_file_mapping() [all …]
|
/linux/tools/testing/selftests/kvm/s390/ |
H A D | ucontrol_test.c | 108 struct kvm_run *run; in FIXTURE() local 145 self->run = (struct kvm_run *)mmap(NULL, self->kvm_run_size, in FIXTURE_SETUP() 147 ASSERT_NE(self->run, MAP_FAILED); in FIXTURE_SETUP() 159 TH_LOG("VM created %p %p", self->run, self->sie_block); in FIXTURE_SETUP() 190 munmap(self->run, self->kvm_run_size); in FIXTURE_TEARDOWN() 308 struct kvm_run *run = self->run; in uc_handle_exit_ucontrol() local 312 TEST_ASSERT_EQ(KVM_EXIT_S390_UCONTROL, run->exit_reason); in uc_handle_exit_ucontrol() 313 switch (run->s390_ucontrol.pgm_code) { in uc_handle_exit_ucontrol() 315 seg_addr = run->s390_ucontrol.trans_exc_code & ~(SZ_1M - 1); in uc_handle_exit_ucontrol() 317 run->s390_ucontrol.trans_exc_code, seg_addr); in uc_handle_exit_ucontrol() [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 [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/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/Documentation/dev-tools/kunit/ |
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 …]
|
H A D | run_manual.rst | 4 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 38 Once we have built our kernel (and/or modules), it is simple to run 39 the tests. If the tests are built-in, they will run automatically on the 43 If the tests are built as modules, they will run when the module is 75 Run Tests After Kernel Has Booted 78 You can use the debugfs filesystem to trigger built-in tests to run after 79 boot. To run the test suite, you can use the following command to write to [all …]
|
/linux/tools/testing/selftests/resctrl/ |
H A D | README | 15 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/Documentation/RCU/ |
H A D | torture.rst | 13 be loaded to run a torture test. The test periodically outputs 168 powerpc. By default, it will run the series of tests specified by 177 would use up to 43 CPUs to run tests concurrently, which as of v5.4 would 180 the sixteen kernels). The "--dryrun sched" argument will not run tests, 185 Not all changes require that all scenarios be run. For example, a change 186 to Tree SRCU might run only the SRCU-N and SRCU-P scenarios using the 188 Large systems can run multiple copies of the full set of scenarios, 189 for example, a system with 448 hardware threads can run five instances 194 Alternatively, such a system can run 56 concurrent instances of a single 211 Note that --gdb limits you to one scenario per kvm.sh run and requires [all …]
|
/linux/arch/arm/mach-lpc32xx/ |
H A D | pm.c | 14 * The LPC32XX has three CPU modes for controlling system power: run, 15 * direct-run, and halt modes. When switching between halt and run modes, 16 * the CPU transistions through direct-run mode. For Linux, direct-run 20 * Run mode: 25 * Direct-run mode: 36 * wake the system up back into direct-run mode. 41 * SDRAM will still be accessible in direct-run mode. In DDR based systems, 42 * a transition to direct-run mode will stop all DDR accesses (no clocks). 52 * Enter direct-run mode 56 * System enters direct-run mode when an enabled event occurs [all …]
|
/linux/Documentation/driver-api/dmaengine/ |
H A D | dmatest.rst | 43 % 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/arch/mips/kvm/ |
H A D | emulate.c | 962 vcpu->run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN; in kvm_mips_emul_wait() 975 struct kvm_run *run = vcpu->run; in kvm_mips_emulate_store() local 976 void *data = run->mmio.data; in kvm_mips_emulate_store() 991 run->mmio.phys_addr = kvm_mips_callbacks->gva_to_gpa( in kvm_mips_emulate_store() 993 if (run->mmio.phys_addr == KVM_INVALID_ADDR) in kvm_mips_emulate_store() 999 run->mmio.len = 8; in kvm_mips_emulate_store() 1009 run->mmio.len = 4; in kvm_mips_emulate_store() 1018 run->mmio.len = 2; in kvm_mips_emulate_store() 1027 run->mmio.len = 1; in kvm_mips_emulate_store() 1036 run->mmio.phys_addr = kvm_mips_callbacks->gva_to_gpa( in kvm_mips_emulate_store() [all …]
|
/linux/tools/memory-model/scripts/ |
H A D | README | 6 These scripts are run from the tools/memory-model directory. 10 Run all litmus tests in the litmus-tests directory, checking 16 Run all litmus tests in the https://github.com/paulmckrcu/litmus 23 Run all litmus tests having .litmus.out files from previous 42 with the absolute pathnames of the tests to run provided one 43 name per line on standard input. Not normally run manually, 48 Run all litmus tests having no more than the specified number 56 the test ran correctly. Not normally run manually, provided 62 specified number of processes given a specified timeout, run 67 Parse command-line arguments. Not normally run manually, [all …]
|