/linux-6.1.9/tools/testing/selftests/membarrier/ |
D | membarrier_test_impl.h | 20 const char *test_name = "sys membarrier invalid command"; in test_membarrier_cmd_fail() local 25 test_name, cmd, flags); in test_membarrier_cmd_fail() 30 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail() 36 test_name, cmd, flags, errno); in test_membarrier_cmd_fail() 43 const char *test_name = "sys membarrier MEMBARRIER_CMD_QUERY invalid flags"; in test_membarrier_flags_fail() local 48 test_name, flags); in test_membarrier_flags_fail() 53 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_flags_fail() 59 test_name, flags, errno); in test_membarrier_flags_fail() 66 const char *test_name = "sys membarrier MEMBARRIER_CMD_GLOBAL"; in test_membarrier_global_success() local 71 test_name, flags, errno); in test_membarrier_global_success() [all …]
|
/linux-6.1.9/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 60 const char *test_name = "pidfd_send_signal send SIGUSR1"; in test_pidfd_send_signal_simple_success() local 65 test_name); in test_pidfd_send_signal_simple_success() 73 test_name); in test_pidfd_send_signal_simple_success() 81 test_name); in test_pidfd_send_signal_simple_success() 85 test_name); in test_pidfd_send_signal_simple_success() 88 ksft_test_result_pass("%s test: Sent signal\n", test_name); in test_pidfd_send_signal_simple_success() 97 const char *test_name = "pidfd_send_signal signal exited process"; in test_pidfd_send_signal_exited_fail() local 102 test_name); in test_pidfd_send_signal_exited_fail() 109 test_name); in test_pidfd_send_signal_exited_fail() 123 test_name); in test_pidfd_send_signal_exited_fail() [all …]
|
D | pidfd_fdinfo_test.c | 42 static void error_report(struct error *err, const char *test_name) in error_report() argument 46 ksft_exit_fail_msg("%s test: Fatal: %s\n", test_name, err->msg); in error_report() 51 ksft_test_result_error("%s test: %s\n", test_name, err->msg); in error_report() 56 ksft_test_result_skip("%s test: %s\n", test_name, err->msg); in error_report() 61 test_name, err->msg); in error_report() 70 test_name, err->code, err->msg); in error_report() 75 static inline int error_check(struct error *err, const char *test_name) in error_check() argument 79 error_report(err, test_name); in error_check() 255 const char *test_name = "pidfd check for NSpid in fdinfo"; in test_pidfd_fdinfo_nspid() local 259 error_check(&err, test_name); in test_pidfd_fdinfo_nspid() [all …]
|
/linux-6.1.9/tools/testing/selftests/drivers/net/dsa/ |
D | no_forwarding.sh | 92 local test_name="$1" 98 echo "$test_name: Sending packets" 128 echo "$test_name: Checking which packets were received" 132 check_rcv $h2 "$test_name: Unicast non-IP untagged" \ 135 check_rcv $h2 "$test_name: Multicast non-IP untagged" \ 138 check_rcv $h2 "$test_name: Broadcast non-IP untagged" \ 141 check_rcv $h2 "$test_name: Unicast IPv4 untagged" \ 144 check_rcv $h2 "$test_name: Multicast IPv4 untagged" \ 147 check_rcv $h2 "$test_name: Unicast IPv6 untagged" \ 150 check_rcv $h2 "$test_name: Multicast IPv6 untagged" \ [all …]
|
/linux-6.1.9/tools/testing/selftests/net/forwarding/ |
D | no_forwarding.sh | 92 local test_name="$1" 98 echo "$test_name: Sending packets" 128 echo "$test_name: Checking which packets were received" 132 check_rcv $h2 "$test_name: Unicast non-IP untagged" \ 135 check_rcv $h2 "$test_name: Multicast non-IP untagged" \ 138 check_rcv $h2 "$test_name: Broadcast non-IP untagged" \ 141 check_rcv $h2 "$test_name: Unicast IPv4 untagged" \ 144 check_rcv $h2 "$test_name: Multicast IPv4 untagged" \ 147 check_rcv $h2 "$test_name: Unicast IPv6 untagged" \ 150 check_rcv $h2 "$test_name: Multicast IPv6 untagged" \ [all …]
|
D | tc_police.sh | 127 local test_name=$1; shift 149 log_test "$test_name" 182 local test_name=$1; shift 199 log_test "$test_name" 236 local test_name=$1; shift 279 log_test "$test_name" 299 local test_name=$1; shift 321 log_test "$test_name" 354 local test_name=$1; shift 388 log_test "$test_name"
|
/linux-6.1.9/tools/testing/selftests/ |
D | kselftest_harness.h | 160 #define TEST(test_name) __TEST_IMPL(test_name, -1) argument 179 #define TEST_SIGNAL(test_name, signal) __TEST_IMPL(test_name, signal) argument 181 #define __TEST_IMPL(test_name, _signal) \ argument 182 static void test_name(struct __test_metadata *_metadata); \ 183 static inline void wrapper_##test_name( \ 189 test_name(_metadata); \ 192 static struct __test_metadata _##test_name##_object = \ 193 { .name = #test_name, \ 194 .fn = &wrapper_##test_name, \ 198 static void __attribute__((constructor)) _register_##test_name(void) \ [all …]
|
/linux-6.1.9/tools/power/x86/amd_pstate_tracer/ |
D | amd_pstate_trace.py | 57 global sample_num, last_sec_cpu, last_usec_cpu, start_time, test_name, trace_file 76 …g_plot('set title "{} : frequency : CPU {:0>3} : {:%F %H:%M}"'.format(test_name, cpu_index, dateti… 92 …g_plot('set title "{} : cpu des perf : CPU {:0>3} : {:%F %H:%M}"'.format(test_name, cpu_index, dat… 108 …g_plot('set title "{} : cpu load : CPU {:0>3} : {:%F %H:%M}"'.format(test_name, cpu_index, datetim… 120 g_plot('set title "{} : cpu frequencies : {:%F %H:%M}"'.format(test_name, datetime.now())) 134 g_plot('set title "{} : cpu des perf : {:%F %H:%M}"'.format(test_name, datetime.now())) 149 g_plot('set title "{} : cpu load : {:%F %H:%M}"'.format(test_name, datetime.now())) 257 test_name = "" variable 287 test_name = arg variable 308 if os.path.exists(test_name): [all …]
|
/linux-6.1.9/drivers/staging/greybus/tools/ |
D | lbtest | 81 def log_csv(test_name, size, iteration_max, sys_pfx): argument 85 fname = test_name + '_' + size + '_' + str(iteration_max) + '.csv' 110 row.writerow([date, test_name, size, iteration_max, error, 117 def loopback_run(test_name, size, iteration_max, sys_pfx): argument 118 test_id = dict[test_name] 155 log_csv(test_name, size, iteration_max, sys_pfx)
|
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/ |
D | rif_mac_profiles.sh | 102 local test_name=$@; shift 131 log_test "h1->h2: $test_name" 140 local test_name=$@; shift 164 log_test "h2->h1: $test_name" 173 local test_name=$@; shift 177 h1_to_h2 $test_name 183 h2_to_h1 $test_name
|
/linux-6.1.9/tools/testing/selftests/futex/include/ |
D | logging.h | 106 void print_result(const char *test_name, int ret) in print_result() argument 110 ksft_test_result_pass("%s\n", test_name); in print_result() 114 ksft_test_result_error("%s\n", test_name); in print_result() 118 ksft_test_result_fail("%s\n", test_name); in print_result()
|
/linux-6.1.9/tools/testing/selftests/landlock/ |
D | common.h | 29 #define TEST_F_FORK(fixture_name, test_name) \ argument 30 static void fixture_name##_##test_name##_child( \ 34 TEST_F(fixture_name, test_name) \ 42 fixture_name##_##test_name##_child(_metadata, self, variant); \ 70 static void fixture_name##_##test_name##_child( \
|
/linux-6.1.9/tools/testing/selftests/tc-testing/ |
D | TdcResults.py | 12 def __init__(self, test_id="", test_name=""): argument 14 self.test_name = test_name 96 ftap += 'ok {} {} - {}'.format(str(index), t.test_id, t.test_name) 115 xunit += 'name=\"{}\">\n'.format(escape(t.test_name))
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_progs.c | 137 const char *test_name; member 183 const char *test_name, in should_run_subtest() argument 189 if (glob_match(test_name, sel->blacklist.tests[i].name)) { in should_run_subtest() 202 if (glob_match(test_name, sel->whitelist.tests[i].name)) { in should_run_subtest() 235 static void print_test_name(int test_num, const char *test_name, char *result) in print_test_name() argument 237 fprintf(env.stdout, "#%-*d %s", TEST_NUM_WIDTH, test_num, test_name); in print_test_name() 246 const char *test_name, char *subtest_name, in print_subtest_name() argument 255 test_name, subtest_name); in print_subtest_name() 305 test->test_name, subtest_state->name, in dump_test_log() 310 print_test_name(test->test_num, test->test_name, in dump_test_log() [all …]
|
/linux-6.1.9/tools/testing/selftests/ptp/ |
D | phc.sh | 66 local test_name=$1 70 printf "TEST: %-60s [FAIL]\n" "$test_name" 74 printf "TEST: %-60s [ OK ]\n" "$test_name"
|
/linux-6.1.9/tools/testing/selftests/size/ |
D | get_size.c | 89 static const char *test_name = " get runtime memory use\n"; in _start() local 97 print(test_name); in _start() 102 print(test_name); in _start()
|
/linux-6.1.9/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 593 const char *test_name, *env_opt; in test_sk_storage_map() local 596 test_name = getenv(BPF_SK_STORAGE_MAP_TEST_NAME); in test_sk_storage_map() 610 if (!test_name || !strcmp(test_name, "basic")) { in test_sk_storage_map() 614 if (!test_name || !strcmp(test_name, "stress_free")) { in test_sk_storage_map() 618 if (!test_name || !strcmp(test_name, "stress_change")) { in test_sk_storage_map() 626 CHECK(1, "Invalid test_name", "%s\n", test_name); in test_sk_storage_map()
|
/linux-6.1.9/tools/testing/selftests/vm/ |
D | mremap_test.c | 56 overlaps, should_fail, test_name) \ argument 58 .name = test_name, \ 130 char *test_name = "mremap expand merge"; in mremap_expand_merge() local 143 ksft_test_result_fail("%s\n", test_name); in mremap_expand_merge() 159 ksft_test_result_pass("%s\n", test_name); in mremap_expand_merge() 161 ksft_test_result_fail("%s\n", test_name); in mremap_expand_merge()
|
D | ksm_tests.c | 642 int test_name = CHECK_KSM_MERGE; in main() local 690 test_name = CHECK_KSM_UNMERGE; in main() 693 test_name = CHECK_KSM_ZERO_PAGE_MERGE; in main() 696 test_name = CHECK_KSM_NUMA_MERGE; in main() 699 test_name = KSM_MERGE_TIME; in main() 702 test_name = KSM_MERGE_TIME_HUGE_PAGES; in main() 705 test_name = KSM_COW_TIME; in main() 732 switch (test_name) { in main()
|
/linux-6.1.9/tools/testing/selftests/powerpc/alignment/ |
D | alignment_handler.c | 182 void dumpdata(char *s1, char *s2, int n, char *test_name) in dumpdata() argument 186 printf(" %s: unexpected result:\n", test_name); in dumpdata() 197 int test_memcmp(void *s1, void *s2, int n, int offset, char *test_name) in test_memcmp() argument 210 dumpdata(s1c, s2c, n, test_name); in test_memcmp() 221 int do_test(char *test_name, void (*test_func)(char *, char *)) in do_test() argument 226 printf("\tDoing %s:\t", test_name); in do_test() 276 test_memcmp(mem0, ci0, width, offset, test_name); in do_test() 286 r |= test_memcmp(mem1, ci1, width, offset, test_name); in do_test()
|
/linux-6.1.9/samples/bpf/ |
D | map_perf_test_user.c | 125 const char *test_name; in do_test_lru() local 172 test_name = "lru_hash_map_perf"; in do_test_lru() 175 test_name = "nocommon_lru_hash_map_perf"; in do_test_lru() 178 test_name = "inner_lru_hash_map_perf"; in do_test_lru() 181 test_name = "lru_hash_lookup_perf"; in do_test_lru() 199 cpu, test_name, in do_test_lru()
|
/linux-6.1.9/tools/testing/selftests/futex/functional/ |
D | futex_wait_timeout.c | 61 static void test_timeout(int res, int *ret, char *test_name, int err) in test_timeout() argument 64 ksft_test_result_fail("%s returned %d\n", test_name, in test_timeout() 68 ksft_test_result_pass("%s succeeds\n", test_name); in test_timeout()
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | sockmap_ktls.c | 140 static char test_name[MAX_TEST_NAME]; in fmt_test_name() local 142 snprintf(test_name, MAX_TEST_NAME, in fmt_test_name() 146 return test_name; in fmt_test_name()
|
/linux-6.1.9/tools/testing/selftests/drivers/net/ocelot/ |
D | basic_qos.sh | 154 local test_name=$1; shift 173 log_test "IPv4 ${test_name}" 184 log_test "IPv6 ${test_name}"
|
/linux-6.1.9/tools/testing/selftests/arm64/mte/ |
D | check_user_mem.c | 202 char test_name[TEST_NAME_MAX]; in main() local 231 format_test_name(test_name, TEST_NAME_MAX, in main() 233 evaluate_test(res, test_name); in main()
|