| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | map_kptr.c | 201 #define TEST(map) \ in test_map_kptr() macro 207 TEST(array_map); in test_map_kptr() 208 TEST(hash_map); in test_map_kptr() 209 TEST(hash_malloc_map); in test_map_kptr() 210 TEST(lru_hash_map); in test_map_kptr() 211 TEST(pcpu_array_map); in test_map_kptr() 212 TEST(pcpu_hash_map); in test_map_kptr() 214 #undef TEST in test_map_kptr() 277 #define TEST(map_in_map) \ in test_map_in_map_kptr() macro 286 TEST(array_of_array_maps); in test_map_in_map_kptr() [all …]
|
| /linux/arch/arm/probes/kprobes/ |
| H A D | test-thumb.c | 79 TEST( "movs.n r0, #0x5f") in kprobe_thumb16_test_cases() 80 TEST( "movs.n r7, #0xa0") in kprobe_thumb16_test_cases() 131 TEST( "mov lr, pc") in kprobe_thumb16_test_cases() 198 TEST( "ldr r0, [sp, #0]") in kprobe_thumb16_test_cases() 199 TEST( "ldr r7, [sp, #160]") in kprobe_thumb16_test_cases() 206 TEST("add r0, pc, #4") in kprobe_thumb16_test_cases() 207 TEST("add r7, pc, #1020") in kprobe_thumb16_test_cases() 208 TEST("add r0, sp, #4") in kprobe_thumb16_test_cases() 209 TEST("add r7, sp, #1020") in kprobe_thumb16_test_cases() 218 TEST("add sp, #"__stringify(TEST_MEMORY_SIZE)) /* Assumes TEST_MEMORY_SIZE < 0x400 */ in kprobe_thumb16_test_cases() [all …]
|
| H A D | test-arm.c | 78 TEST( op s " r4, pc" ", #0x00005a00") in kprobe_arm_test_cases() 114 TEST( op s "vs r7, pc, lsl #3") \ in kprobe_arm_test_cases() 115 TEST( op s "vs r7, sp, lsr #4") \ in kprobe_arm_test_cases() 122 TEST( op s "eq r0, #0xf5") \ in kprobe_arm_test_cases() 123 TEST( op s "ne r11, #0xf5000000") \ in kprobe_arm_test_cases() 124 TEST( op s " r7, #0x000af000") \ in kprobe_arm_test_cases() 125 TEST( op s " r4, #0x00005a00") in kprobe_arm_test_cases() 148 TEST("mov ip, sp") /* This has special case emulation code */ in kprobe_arm_test_cases() 176 TEST("add sp, sp, #16") in kprobe_arm_test_cases() 177 TEST("sub sp, sp, #8") in kprobe_arm_test_cases() [all …]
|
| /linux/tools/testing/selftests/kselftest/ |
| H A D | runner.sh | 56 TEST="$2" 59 BASENAME_TEST=$(basename $TEST) 112 if [ ! -e "$TEST" ]; then 113 echo "# Warning: file $TEST is missing!" 120 if [ -x "$TEST" ]; then 125 echo "# Warning: file $TEST is not executable" 127 if [ $(head -n 1 "$TEST" | cut -c -2) = "#!" ] 129 interpreter=$(head -n 1 "$TEST" | cut -c 3-) 136 cd `dirname $TEST` > /dev/null 161 run_one $DIR $TEST $test_num [all …]
|
| /linux/tools/testing/selftests/riscv/vector/ |
| H A D | vstate_prctl.c | 35 TEST(get_control_no_v) in TEST() function 49 TEST(set_control_no_v) in TEST() function 63 TEST(vstate_on_current) in TEST() function 76 TEST(vstate_off_eperm) in TEST() function 92 TEST(vstate_on_no_nesting) in TEST() function 110 TEST(vstate_off_nesting) in TEST() function 128 TEST(vstate_on_inherit_no_nesting) in TEST() function 148 TEST(vstate_on_inherit) in TEST() function 168 TEST(vstate_off_inherit_no_nesting) in TEST() function 187 TEST(vstate_off_inherit) in TEST() function [all …]
|
| /linux/tools/testing/selftests/x86/ |
| H A D | test_FCMOV.c | 16 #define TEST(insn) \ macro 33 TEST(fcmovb) 34 TEST(fcmove) 35 TEST(fcmovbe) 36 TEST(fcmovu) 37 TEST(fcmovnb) 38 TEST(fcmovne) 39 TEST(fcmovnbe) 40 TEST(fcmovnu)
|
| /linux/tools/testing/selftests/mm/ |
| H A D | khugepaged.c | 1223 #define TEST(t, c, o) do { \ in main() macro 1230 TEST(collapse_full, khugepaged_context, anon_ops); in main() 1231 TEST(collapse_full, khugepaged_context, file_ops); in main() 1232 TEST(collapse_full, khugepaged_context, shmem_ops); in main() 1233 TEST(collapse_full, madvise_context, anon_ops); in main() 1234 TEST(collapse_full, madvise_context, file_ops); in main() 1235 TEST(collapse_full, madvise_context, shmem_ops); in main() 1237 TEST(collapse_empty, khugepaged_context, anon_ops); in main() 1238 TEST(collapse_empty, madvise_context, anon_ops); in main() 1240 TEST(collapse_single_pte_entry, khugepaged_context, anon_ops); in main() [all …]
|
| /linux/tools/testing/ktest/examples/include/ |
| H A D | tests.conf | 33 TEST_START IF ${TEST} == boot 42 TEST_START IF ${TEST} == build 54 TEST_START ITERATE 10 IF ${TEST} == randconfig 58 TEST = ${RUN_TEST} 63 TEST_START ITERATE 10 IF ${TEST} == randconfig && ${MULTI} 70 TEST_START IF ${TEST} == test 73 TEST = ${RUN_TEST}
|
| H A D | patchcheck.conf | 91 TEST_START IF ${TEST} == patchcheck 94 TEST = ${PATCH_TEST} 101 TEST_START IF ${TEST} == patchcheck && ${MULTI} 104 TEST = ${PATCH_TEST}
|
| H A D | min-config.conf | 47 TEST_START IF ${TEST} == min-config 52 TEST = ${SSH} echo hi 55 TEST_START IF ${TEST} == min-config && ${MULTI}
|
| H A D | bisect.conf | 19 TEST_START IF ${TEST} == bisect 32 TEST = ${RUN_TEST} 82 TEST_START IF ${TEST} == config-bisect
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | linked_list.c | 18 #define TEST(test, off) \ macro 27 TEST(kptr, 40) 28 TEST(global, 16) 29 TEST(map, 0) 30 TEST(inner_map, 0) 31 #undef TEST 32 #define TEST(test, op) \ macro 45 TEST(kptr, push_front) 46 TEST(kptr, push_back) 47 TEST(kptr, pop_front) [all …]
|
| H A D | sk_assign.c | 211 #define TEST(NAME, FAMILY, TYPE, REWRITE) \ 227 TEST("ipv4 tcp port redir", AF_INET, SOCK_STREAM, false), in test_sk_assign() 228 TEST("ipv4 tcp addr redir", AF_INET, SOCK_STREAM, true), in test_sk_assign() 229 TEST("ipv6 tcp port redir", AF_INET6, SOCK_STREAM, false), in test_sk_assign() 230 TEST("ipv6 tcp addr redir", AF_INET6, SOCK_STREAM, true), in test_sk_assign() 231 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false), in test_sk_assign() 232 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true), in test_sk_assign() 233 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), in test_sk_assign() 234 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true), in test_sk_assign() 209 #define TEST( global() macro
|
| H A D | sockmap_listen.c | 1215 #define TEST(fn, ...) \ macro 1290 TEST(test_insert_invalid), in test_ops() 1291 TEST(test_insert_opened), in test_ops() 1292 TEST(test_insert_bound, SOCK_STREAM), in test_ops() 1293 TEST(test_insert), in test_ops() 1295 TEST(test_delete_after_insert), in test_ops() 1296 TEST(test_delete_after_close), in test_ops() 1298 TEST(test_lookup_after_insert), in test_ops() 1299 TEST(test_lookup_after_delete), in test_ops() 1300 TEST(test_lookup_32_bit_value), in test_ops() [all …]
|
| /linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
| H A D | fgraph-multi.tc | 51 TEST=$2 64 count=`cat trace | grep -v '^#' | grep -e '{' -e ';' | grep -v "$TEST" | wc -l` 67 fail "Graph filtering not working by itself against $TEST?" 72 count=`cat trace | grep -v '^#' | grep -e '{' -e ';' | grep "$TEST" | wc -l` 75 fail "No traces found with $TEST?" 90 count=`cat trace | grep -v '^#' | grep -e '{' -e ';' | grep "$TEST" | wc -l`
|
| /linux/tools/testing/selftests/powerpc/alignment/ |
| H A D | alignment_handler.c | 84 #define TEST(name, ld_op, st_op, form, ld_reg, st_reg) \ macro 106 #define LOAD_VSX_XFORM_TEST(op) TEST(op, op, stxvd2x, XFORM, 32, 32) 107 #define STORE_VSX_XFORM_TEST(op) TEST(op, lxvd2x, op, XFORM, 32, 32) 108 #define LOAD_VSX_DFORM_TEST(op) TEST(op, op, stxv, DFORM, 32, 32) 109 #define STORE_VSX_DFORM_TEST(op) TEST(op, lxv, op, DFORM, 32, 32) 110 #define LOAD_VMX_XFORM_TEST(op) TEST(op, op, stxvd2x, XFORM, 0, 32) 111 #define STORE_VMX_XFORM_TEST(op) TEST(op, lxvd2x, op, XFORM, 32, 0) 112 #define LOAD_VMX_DFORM_TEST(op) TEST(op, op, stxv, DFORM, 0, 32) 113 #define STORE_VMX_DFORM_TEST(op) TEST(op, lxv, op, DFORM, 32, 0) 115 #define LOAD_XFORM_TEST(op) TEST(op, op, stdx, XFORM, 31, 31) [all …]
|
| /linux/tools/testing/selftests/filesystems/eventfd/ |
| H A D | eventfd_test.c | 45 TEST(eventfd_check_flag_rdwr) in TEST() function 59 TEST(eventfd_check_flag_cloexec) in TEST() function 73 TEST(eventfd_check_flag_nonblock) in TEST() function 88 TEST(eventfd_check_flag_cloexec_and_nonblock) in TEST() function 166 TEST(eventfd_check_flag_semaphore) in TEST() function 192 TEST(eventfd_check_write) in TEST() function 220 TEST(eventfd_check_read) in TEST() function 248 TEST(eventfd_check_read_with_nonsemaphore) in TEST() function 282 TEST(eventfd_check_read_with_semaphore) in TEST() function
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | anon_inode_test.c | 12 TEST(anon_inode_no_chown) in TEST() function 25 TEST(anon_inode_no_chmod) in TEST() function 38 TEST(anon_inode_no_exec) in TEST() function 51 TEST(anon_inode_no_open) in TEST() function
|
| /linux/tools/testing/selftests/lsm/ |
| H A D | lsm_list_modules_test.c | 18 TEST(size_null_lsm_list_modules) in TEST() function 31 TEST(ids_null_lsm_list_modules) in TEST() function 42 TEST(size_too_small_lsm_list_modules) in TEST() function 57 TEST(flags_set_lsm_list_modules) in TEST() function 72 TEST(correct_lsm_list_modules) in TEST() function
|
| H A D | lsm_set_self_attr_test.c | 18 TEST(ctx_null_lsm_set_self_attr) in TEST() function 24 TEST(size_too_small_lsm_set_self_attr) in TEST() function 40 TEST(flags_zero_lsm_set_self_attr) in TEST() function 56 TEST(flags_overset_lsm_set_self_attr) in TEST() function
|
| /linux/tools/testing/selftests/futex/functional/ |
| H A D | futex_waitv.c | 51 TEST(private_waitv) in TEST() function 79 TEST(shared_waitv) in TEST() function 122 TEST(invalid_flag) in TEST() function 145 TEST(unaligned_address) in TEST() function 169 TEST(null_address) in TEST() function 207 TEST(invalid_clockid) in TEST() function
|
| /linux/tools/verification/rv/ |
| H A D | Makefile.config | 18 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent >… 19 ifeq ($(TEST),n) 34 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/… 35 ifeq ($(TEST),n)
|
| /linux/tools/perf/tests/shell/coresight/ |
| H A D | thread_loop_check_tid_10.sh | 7 TEST="thread_loop" 15 DATA="$DATD/perf-$TEST-$DATV.data" 16 STDO="$DATD/perf-$TEST-$DATV.stdout"
|
| H A D | thread_loop_check_tid_2.sh | 7 TEST="thread_loop" 15 DATA="$DATD/perf-$TEST-$DATV.data" 16 STDO="$DATD/perf-$TEST-$DATV.stdout"
|
| /linux/tools/testing/selftests/filesystems/epoll/ |
| H A D | epoll_wakeup_test.c | 163 TEST(epoll1) in TEST() function 194 TEST(epoll2) in TEST() function 225 TEST(epoll3) in TEST() function 263 TEST(epoll4) in TEST() function 301 TEST(epoll5) in TEST() function 340 TEST(epoll6) in TEST() function 380 TEST(epoll7) in TEST() function 426 TEST(epoll8) in TEST() function 472 TEST(epoll9) in TEST() function 515 TEST(epoll10) in TEST() function [all …]
|