Home
last modified time | relevance | path

Searched +full:test +full:- +full:4 +full:space (Results 1 – 25 of 523) sorted by relevance

12345678910>>...21

/linux/lib/
H A Dtest_hexdump.c2 * Test cases for lib/hexdump.c module.
13 '\xbe', '\x32', '\xdb', '\x7b', '\x0a', '\x18', '\x93', '\xb2', /* 00 - 07 */
14 '\x70', '\xba', '\xc4', '\x24', '\x7d', '\x83', '\x34', '\x9b', /* 08 - 0f */
15 '\xa6', '\x9c', '\x31', '\xad', '\x9c', '\x0f', '\xac', '\xe9', /* 10 - 17 */
16 '\x4c', '\xd1', '\x19', '\x99', '\x43', '\xb1', '\xaf', '\x0c', /* 18 - 1f */
19 static const unsigned char data_a[] = ".2.{....p..$}.4...1.....L...C...";
25 "4c", "d1", "19", "99", "43", "b1", "af", "0c",
39 "4cd1", "1999", "43b1", "af0c",
49 "a69c31ad", "9c0face9", "4cd11999", "43b1af0c",
59 "a69c31ad9c0face9", "4cd1199943b1af0c",
[all …]
/linux/arch/m68k/fpsp040/
H A Dskeleton.S2 | skeleton.sa 3.2 4/26/91
37 | Modified for Linux-1.3.x by Jes Sorensen (jds@kom.auc.dk)
42 #include <asm/asm-offsets.h>
66 link %a6,#-LOCAL_SIZE
67 fsave -(%sp)
74 movel %sp,%sp@- | stack frame pointer argument
76 addql #4,%sp
103 link %a6,#-LOCAL_SIZE
104 fsave -(%sp)
105 cmpib #VER_40,(%sp) |test version number
[all …]
/linux/fs/tests/
H A Dexec_kunit.c1 // SPDX-License-Identifier: GPL-2.0-only
2 #include <kunit/test.h>
11 /* Negative argc/envc counts produce -E2BIG */
13 .argc = INT_MIN, .envc = INT_MIN }, .expected_rc = -E2BIG },
15 .argc = 5, .envc = -1 }, .expected_rc = -E2BIG },
17 .argc = -1, .envc = 10 }, .expected_rc = -E2BIG },
20 .argc = INT_MAX, .envc = INT_MAX }, .expected_rc = -E2BIG },
22 .argc = MAX_ARG_STRINGS, .envc = MAX_ARG_STRINGS }, .expected_rc = -E2BIG },
24 .argc = 0, .envc = MAX_ARG_STRINGS }, .expected_rc = -E2BIG },
26 .argc = MAX_ARG_STRINGS, .envc = 0 }, .expected_rc = -E2BIG },
[all …]
/linux/arch/arm/probes/kprobes/
H A Dtest-thumb.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/probes/kprobes/test-thumb.c
13 #include "test-core.h"
79 TEST( "movs.n r0, #0x5f") in kprobe_thumb16_test_cases()
80 TEST( "movs.n r7, #0xa0") in kprobe_thumb16_test_cases()
89 TEST_GROUP("16-bit Thumb data-processing instructions") in kprobe_thumb16_test_cases()
118 TEST_R( "add sp" ", r",8,-8, "") in kprobe_thumb16_test_cases()
120 TEST_BF_R("add pc" ", r",0,2f-1f-8,"") in kprobe_thumb16_test_cases()
125 TEST_R( "cmp sp" ", r",8,-8, "") in kprobe_thumb16_test_cases()
130 TEST_P( "mov sp, r",8,-8, "") in kprobe_thumb16_test_cases()
[all …]
H A Dtest-arm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/kernel/kprobes-test-arm.c
14 #include "test-core.h"
55 TEST_GROUP("Data-processing (register), (register-shifted register), (immediate)") in kprobe_arm_test_cases()
60 TEST_RR( op s "cs r2, r",3, VAL1,", r",2, val, ", lsr #4") \ in kprobe_arm_test_cases()
66 TEST_R( op s "vc r6, r",7, VAL1,", sp, lsr #4") \ in kprobe_arm_test_cases()
70 TEST_RRR( op s "ls r9, r",9, VAL1,", r",14,val, ", lsr r",7, 4,"")\ in kprobe_arm_test_cases()
78 TEST( op s " r4, pc" ", #0x00005a00") in kprobe_arm_test_cases()
87 TEST_RR( op "cc r",3, VAL1,", r",2, val, ", lsr #4") \ in kprobe_arm_test_cases()
93 TEST_R ( op "vs r",7, VAL1,", sp, lsr #4") \ in kprobe_arm_test_cases()
[all …]
/linux/arch/powerpc/lib/
H A Dtest_emulate_step_exec_instr.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Non-emulated single-stepping support (currently limited to basic integer
9 #include <asm/asm-offsets.h>
11 #include <asm/code-patching-asm.h>
19 * In-memory pt_regs (SP + STACK_INT_FRAME_REGS)
20 * Scratch space (SP + 8)
25 * Allocate a new stack frame with enough space to hold the register
26 * states in an in-memory pt_regs and also create the back chain to
29 stdu r1, -INT_FRAME_SIZE(r1)
32 * Save non-volatile GPRs on stack. This includes TOC pointer (GPR2)
[all …]
/linux/Documentation/ABI/testing/
H A Ddebugfs-tpmi1 What: /sys/kernel/debug/tpmi-<n>/pfs_dump
10 Users: Debugging, any user space test suite
12 What: /sys/kernel/debug/tpmi-<n>/tpmi-id-<n>/mem_dump
18 Users: Debugging, any user space test suite
20 What: /sys/kernel/debug/tpmi-<n>/tpmi-id-<n>/mem_write
26 as hardware will not allow to write at read-only memory. This write is
27 at offset multiples of 4. The format is instance,offset,contents.
31 Users: Debugging, any user space test suite
33 What: /sys/kernel/debug/tpmi-<n>/plr/domain<n>/status
/linux/security/landlock/
H A Did.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Landlock - Unique identification number generator
5 * Copyright © 2024-2025 Microsoft Corporation
8 #include <kunit/test.h>
26 * Ensures sure 64-bit values are always used by user space (or may in init_id()
27 * fail with -EOVERFLO in init_id()
44 test_init_min(struct kunit * const test) test_init_min() argument
52 test_init_max(struct kunit * const test) test_init_max() argument
60 test_init_once(struct kunit * const test) test_init_once() argument
128 test_range1_rand0(struct kunit * const test) test_range1_rand0() argument
142 test_range1_rand1(struct kunit * const test) test_range1_rand1() argument
156 test_range1_rand15(struct kunit * const test) test_range1_rand15() argument
170 test_range1_rand16(struct kunit * const test) test_range1_rand16() argument
184 test_range2_rand0(struct kunit * const test) test_range2_rand0() argument
198 test_range2_rand1(struct kunit * const test) test_range2_rand1() argument
212 test_range2_rand2(struct kunit * const test) test_range2_rand2() argument
226 test_range2_rand15(struct kunit * const test) test_range2_rand15() argument
240 test_range2_rand16(struct kunit * const test) test_range2_rand16() argument
[all...]
/linux/tools/testing/selftests/powerpc/mm/
H A Dlarge_vm_gpr_corruption.c1 // SPDX-License-Identifier: GPL-2.0+
5 // Test that the 4PB address space SLB handling doesn't corrupt userspace registers
6 // (r9-r13) due to a SLB fault while saving the PPR.
9 // address in SLB miss") and fixed in 4c2de74cc869 ("powerpc/64: Interrupts save PPR on
16 // The test works by creating mappings above 512TB, to trigger the large address space
19 // each, and checks that r9-r13 aren't corrupted.
76 "mr %4, %%r13 ;" in touch_mappings()
87 "mr %%r13, %4 ;" in touch_mappings()
104 static int test(void) in test() function
115 // 4K kernels don't support 4PB address space in test()
[all …]
/linux/tools/power/cpupower/utils/
H A Dversion-gen.sh2 # SPDX-License-Identifier: GPL-2.0
7 # Heavily based on tools/perf/util/PERF-VERSION-GEN .
14 if test -d ../../../.git -o -f ../../../.git &&
15 VN=$(git describe --abbrev=4 HEAD 2>/dev/null) &&
18 v[0-9]*)
19 git update-index -q --refresh
20 test -z "$(git diff-index --name-only HEAD --)" ||
21 VN="$VN-dirty" ;;
24 VN=$(echo "$VN" | sed -e 's/-/./g');
26 eval $(grep '^VERSION[[:space:]]*=' ../../../Makefile|tr -d ' ')
[all …]
/linux/tools/perf/tests/shell/
H A Drecord+probe_libc_inet_pton.sh10 # SPDX-License-Identifier: GPL-2.0
18 libc=$(grep -w libc /proc/self/maps | head -1 | sed -r 's/.*[[:space:]](\/.*)/\1/g')
19 nm -Dg $libc 2>/dev/null | grep -F -
[all...]
/linux/tools/testing/selftests/net/
H A Dnetdevice.sh2 # SPDX-License-Identifier: GPL-2.0
4 # This test is for checking network interface
8 …ably have failed earlier in the boot process and their logged error will be catched by another test
11 # Kselftest framework requirement - SKIP code is 4.
12 ksft_skip=4
21 ip link show "$netdev" |grep -q UP
22 if [ $? -eq 0 ];then
28 if [ $? -ne 0 ];then
46 if [ $NETDEV_STARTED -eq 0 ];then
52 if [ $? -ne 0 ];then
[all …]
H A Dtoeplitz.sh
/linux/tools/testing/selftests/arm64/pauth/
H A Dpac.c1 // SPDX-License-Identifier: GPL-2.0
20 * The VA space size is 48 bits. Bigger is opt-in.
27 /* data key instructions are not in NOP space. This prevents a SIGILL */ \
34 /* generic key instructions are not in NOP space. This prevents a SIGILL */ \
41 sign->keyia = keyia_sign(val); in sign_specific()
42 sign->keyib = keyib_sign(val); in sign_specific()
43 sign->keyda = keyda_sign(val); in sign_specific()
44 sign->keydb = keydb_sign(val); in sign_specific()
49 sign->keyia = keyia_sign(val); in sign_all()
50 sign->keyib = keyib_sign(val); in sign_all()
[all …]
/linux/scripts/
H A DKbuild.include1 # SPDX-License-Identifier: GPL-2.0
10 space := $(empty) $(empty)
11 space_escape := _-_SPACE_-_
20 # Usage: $(call test-lt, $(CONFIG_LLD_VERSION), 150000)
23 # Otherwise, fall back to the 'test' shell command.
25 test-ge = $(intcmp $(strip $1)0, $(strip $2)0,,y,y)
26 test-gt = $(intcmp $(strip $1)0, $(strip $2)0,,,y)
28 test-ge = $(shell test $(strip $1)0 -ge $(strip $2)0 && echo y)
29 test-gt = $(shell test $(strip $1)0 -gt $(strip $2)0 && echo y)
31 test-le = $(call test-ge, $2, $1)
[all …]
/linux/kernel/trace/
H A Dsynth_event_gen_test.c1 // SPDX-License-Identifier: GPL-2.0
3 * Test module for in-kernel synthetic event creation and generation.
12 * This module is a simple test of basic functionality for in-kernel
18 * Following that are a few examples using the created events to test
21 * To test, select CONFIG_SYNTH_EVENT_GEN_TEST and build the module.
27 * You should see several events in the trace buffer -
42 * Test to make sure we can create a synthetic event, then add more
55 return -ENOMEM; in test_gen_synth_cmd()
62 * first 4 fields. in test_gen_synth_cmd()
94 * we're using the top-level instance which never goes away). in test_gen_synth_cmd()
[all …]
/linux/samples/kfifo/
H A Ddma-example.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/dma-mapping.h>
30 printk(KERN_INFO "DMA fifo test start\n"); in example_init()
34 return -ENOMEM; in example_init()
39 kfifo_in(&fifo, "test", 4); in example_init()
52 * .--------------------------------------. in example_init()
54 * |---|------------------|---------------| in example_init()
58 * \_*free space* \_*free space* in example_init()
60 * We need two different SG entries: one for the free space area at the in example_init()
70 return -EIO; in example_init()
[all …]
/linux/tools/bootconfig/
H A Dtest-bootconfig.sh2 # SPDX-License-Identifier: GPL-2.0-only
4 echo "Boot config test script"
6 if [ -d "$1" ]; then
12 ALIGN=4
14 INITRD=`mktemp ${TESTDIR}/initrd-XXXX`
15 TEMPCONF=`mktemp ${TESTDIR}/temp-XXXX.bconf`
16 OUTFILE=`mktemp ${TESTDIR}/tempout-XXXX`
20 rm -f $INITRD $TEMPCONF $OUTFILE
28 xpass() { # pass test command
29 echo "test case $NO ($*)... "
[all …]
/linux/tools/memory-model/Documentation/
H A Dlitmus-tests.txt1 Linux-Kernel Memory Model Litmus Tests
4 This file describes the LKMM litmus-test format by example, describes
9 A formal kernel memory-ordering model (part 2)
20 tool, please see tools/memory-model/README.
23 Copy-Pasta
27 existing litmus test than it is to create one from scratch. A number
30 tools/memory-model/litmus-tests/
31 Documentation/litmus-tests/
40 The -l and -L arguments to "git grep" can be quite helpful in identifying
42 you start with an existing litmus test, it is still helpful to have a
[all …]
/linux/tools/testing/kunit/test_data/
H A Dtest_interrupted_tap_output.log1 [ 0.060000] printk: console [mc-1] enabled
5 [ 0.060000] # Subtest: kunit-resource-test
7 [ 0.060000] ok 1 - kunit_resource_test_init_resources
8 [ 0.060000] ok 2 - kunit_resource_test_alloc_resource
9 [ 0.060000] ok 3 - kunit_resource_test_destroy_resource
11 [ 0.060000] FS-Cache: Netfs 'afs' registered for caching
13 [ 0.060000] Btrfs loaded, crc32c=crc32c-generic, debug=on, assert=on, integrity-checker=on, ref-
15 [ 0.060000] BTRFS: selftest: running btrfs free space cache tests
16 [ 0.060000] ok 4 - kunit_resource_test_cleanup_resources
17 [ 0.060000] ok 5 - kunit_resource_test_proper_free_ordering
[all …]
/linux/drivers/usb/serial/
H A Dwhiteheat.h1 /* SPDX-License-Identifier: GPL-2.0+ */
9 * Greg Kroah-Hartman (greg@kroah.com)
11 * See Documentation/usb/usb-serial.rst for more information on using this
24 #define WHITEHEAT_SET_RTS 4 /* turn RTS on or off */
38 #define WHITEHEAT_DO_TEST 15 /* perform specified test */
66 #define WHITEHEAT_PAR_SPACE '0' /* space (force 0) parity */
90 __le32 baud; /* any value 7 - 460800, firmware calculates
131 * Type DATA: 0x00 - 0xff
132 * Type IDATA: 0x80 - 0xff
133 * Type BDATA: 0x20 - 0x2f
[all …]
/linux/Documentation/filesystems/
H A Dautofs-mount-control.rst1 .. SPDX-License-Identifier: GPL-2.0
23 Currently autofs uses "umount -l" (lazy umount) to clear active mounts
43 /- /etc/auto.direct
44 /test /etc/auto.indirect
60 For the above indirect map an autofs file system is mounted on /test and
61 mounts are triggered for each sub-directory key by the inode lookup
62 operation. So we see a mount of shark:/autofs/export1 on /test/g1, for
72 them multi-mount map entries).
77 / shark:/autofs/export5/testing/test \
78 /s1 shark:/autofs/export/testing/test/s1 \
[all …]
/linux/drivers/firewire/
H A Duapi-test.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // uapi_test.c - An application of Kunit to check layout of structures exposed to user space for
8 #include <kunit/test.h>
9 #include <linux/firewire-cdev.h>
12 static void structure_layout_event_response(struct kunit *test) in structure_layout_event_response() argument
15 // 4 bytes alignment for aggregate type including 8 bytes storage types. in structure_layout_event_response()
16 KUNIT_EXPECT_EQ(test, 20, sizeof(struct fw_cdev_event_response)); in structure_layout_event_response()
19 KUNIT_EXPECT_EQ(test, 24, sizeof(struct fw_cdev_event_response)); in structure_layout_event_response()
22 KUNIT_EXPECT_EQ(test, 0, offsetof(struct fw_cdev_event_response, closure)); in structure_layout_event_response()
23 KUNIT_EXPECT_EQ(test, 8, offsetof(struct fw_cdev_event_response, type)); in structure_layout_event_response()
[all …]
/linux/arch/x86/mm/
H A Dtestmmiotrace.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Written by Pekka Paalanen, 2008-2009 <pq@iki.fi>
16 "(or 8 MB if read_far is non-zero).");
20 MODULE_PARM_DESC(read_far, " Offset of a 32-bit read within 8 MB "
36 pr_info("write test.\n"); in do_write_test()
37 mmiotrace_printk("Write test.\n"); in do_write_test()
45 for (i = (5 * 1024); i < (16 * 1024); i += 4) in do_write_test()
53 pr_info("read test.\n"); in do_read_test()
54 mmiotrace_printk("Read test.\n"); in do_read_test()
64 for (i = (5 * 1024); i < (16 * 1024); i += 4) in do_read_test()
[all …]
/linux/include/uapi/linux/
H A Dmtio.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
6 * by C.-J. Heine.
19 /* structure for MTIOCTOP - mag tape op command */
27 #define MTFSF 1 /* forward space over FileMark,
30 #define MTBSF 2 /* backward space FileMark (position before FM) */
31 #define MTFSR 3 /* forward space record */
32 #define MTBSR 4 /* backward space record */
33 #define MTWEOF 5 /* write an end-of-file record (mark) */
38 #define MTBSFM 10 /* +backward space FileMark, position at FM */
39 #define MTFSFM 11 /* +forward space FileMark, position at FM */
[all …]

12345678910>>...21