/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | repair.c | 49 test_error("setsockopt(TCP_REPAIR_QUEUE)"); in test_sock_checkpoint_queue() 54 test_error("getsockopt(TCP_QUEUE_SEQ): %d", (int)len); in test_sock_checkpoint_queue() 63 test_error("malloc()"); in test_sock_checkpoint_queue() 66 test_error("recv(%d): %d", qlen, ret); in test_sock_checkpoint_queue() 79 test_error("getsockopt(TCP_INFO): %d", (int)len); in __test_sock_checkpoint() 83 test_error("getsockname(): %d", (int)len); in __test_sock_checkpoint() 88 test_error("getsockopt(TCP_REPAIR_WINDOW): %d", (int)len); in __test_sock_checkpoint() 91 test_error("ioctl(SIOCOUTQ)"); in __test_sock_checkpoint() 94 test_error("ioctl(SIOCOUTQNSD)"); in __test_sock_checkpoint() 98 test_error("ioctl(SIOCINQ)"); in __test_sock_checkpoint() [all …]
|
H A D | setup.c | 87 test_error("malloc() failed"); in test_add_destructor() 109 test_error("Caught SIGINT - exiting"); in sig_int() 119 test_error("open(%s)", netns_path); in open_netns() 126 test_error("unshare()"); in unshare_open_netns() 134 test_error("setns()"); in switch_ns() 148 test_error("setns()"); in switch_close_ns() 168 test_error("Failed to set link up"); in link_init() 170 test_error("Failed to add ip address"); in link_init() 172 test_error("Failed to add route"); in link_init() 239 test_error("Can't set SIGINT handler"); in __test_init() [all …]
|
H A D | proc.c | 45 test_error("malloc()"); in lookup_get() 49 test_error("strndup()"); in lookup_get() 63 test_error("can't parse netstat file"); in lookup_get_column() 85 test_error("reallocarray()"); in netstat_read_type() 90 test_error("fscanf(%s)", type->header_name); in netstat_read_type() 92 test_error("Unexpected netstat format (%c)", tmp); in netstat_read_type() 104 test_error("strndup()"); in netstat_read_type() 109 test_error("fscanf(%s)", nc->name); in netstat_read_type() 115 test_error("Unexpected netstat format"); in netstat_read_type() 132 test_error("Unexpected snmp6 format"); in snmp6_read() [all …]
|
H A D | sock.c | 17 test_error("socket()"); in __test_listen_socket() 22 test_error("setsockopt(SO_BINDTODEVICE)"); in __test_listen_socket() 25 test_error("bind()"); in __test_listen_socket() 29 test_error("fcntl()"); in __test_listen_socket() 32 test_error("listen()"); in __test_listen_socket() 82 test_error("setsockopt(SO_BINDTODEVICE, %s)", device); in __test_connect_socket() 96 test_error("fcntl()"); in __test_connect_socket() 374 test_error("test_get_ao_keys_nr() == 0"); in test_get_tcp_ao_counters() 517 test_error("recv(): %zd", bytes); in test_server_run() 529 test_error("send()"); in test_server_run() [all …]
|
H A D | netlink.c | 190 test_error("Failed to open netlink route socket\n"); in add_veth() 236 test_error("Failed to open netlink route socket\n"); in ip_addr_add() 293 test_error("Failed to open netlink route socket\n"); in ip_route_add_vrf() 340 test_error("Failed to open netlink route socket\n"); in link_set_up() 408 test_error("Failed to open netlink route socket\n"); in add_vrf()
|
H A D | aolib.h | 117 #define test_error(fmt, ...) \ macro 181 test_error("Can't convert ip address %s", addr1); in test_init2() 183 test_error("Can't convert ip address %s", addr2); in test_init2() 716 test_error("Couldn't add a trace event: %d", err); in trace_hash_event_expect() 732 test_error("Couldn't add a trace event: %d", err); in trace_ao_event_expect() 747 test_error("Couldn't add a trace event: %d", err); in trace_ao_event_sk_expect() 761 test_error("Couldn't add a trace event: %d", err); in trace_ao_event_sne_expect()
|
H A D | ftrace.c | 43 test_error("Can't create temp dir"); in mount_ftrace() 59 test_error("Failed on cleanup: can't remove ftrace dir %s", in unmount_ftrace() 227 test_error("unexpected tracer command %d", op); in tracer_thread_func() 447 test_error("tracers list corruption or double free %p", tracer); in destroy_ftracer()
|
H A D | ftrace-tcp.c | 424 test_error("inet_ntop()"); in dump_trace_event() 426 test_error("inet_ntop()"); in dump_trace_event() 460 test_error("test_sprintf()"); in print_match_stats()
|
H A D | kconfig.c | 152 test_error("Failed to initialize kconfig %u", k); in kernel_config_has()
|
/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | rst.c | 81 test_error("setsockopt(SO_LINGER)"); in close_forced() 93 test_error("setsockopt(TCP_AO_ADD_KEY)"); in test_server_active_rst() 95 test_error("test_get_tcp_ao_counters()"); in test_server_active_rst() 99 test_error("test_wait_fd()"); in test_server_active_rst() 103 test_error("accept()"); in test_server_active_rst() 107 test_error("test_get_tcp_ao_counters()"); in test_server_active_rst() 113 test_error("servered only %zd bytes", bytes); in test_server_active_rst() 138 test_error("setsockopt(TCP_AO_ADD_KEY)"); in test_server_passive_rst() 142 test_error("test_wait_fd()"); in test_server_passive_rst() 146 test_error("accept()"); in test_server_passive_rst() [all …]
|
H A D | self-connect.c | 12 test_error("Can't convert local ip address"); in __setup_lo_intf() 15 test_error("Failed to add %s ip address", lo_intf); in __setup_lo_intf() 18 test_error("Failed to bring %s up", lo_intf); in __setup_lo_intf() 46 test_error("socket()"); in tcp_self_connect() 50 test_error("setsockopt(TCP_AO_ADD_KEY)"); in tcp_self_connect() 52 test_error("setsockopt(TCP_AO_ADD_KEY)"); in tcp_self_connect() 55 test_error("setsockopt(TCP_AO_ADD_KEY)"); in tcp_self_connect() 59 test_error("bind()"); in tcp_self_connect() 64 test_error("test_get_tcp_ao_counters()"); in tcp_self_connect() 70 test_error("failed to connect()"); in tcp_self_connect() [all …]
|
H A D | key-management.c | 25 test_error("Failed to add a VRF: %d", err); in setup_vrfs() 29 test_error("Failed to bring up a VRF"); in setup_vrfs() 34 test_error("Failed to add a route to VRF"); in setup_vrfs() 43 test_error("socket()"); in prepare_sk() 47 test_error("test_add_key()"); in prepare_sk() 51 test_error("test_add_key()"); in prepare_sk() 61 test_error("listen()"); in prepare_lsk() 102 test_error("getsockopt()"); in test_del_key() 106 test_error("getsockopt(TCP_AO_INFO) failed"); in test_del_key() 160 test_error("getsockopt(TCP_AO_INFO) failed"); in test_set_key() [all …]
|
H A D | icmps-accept.c | 65 test_error("test_get_tcp_ao_counters()"); in serve_interfered() 73 test_error("test_get_tcp_ao_counters()"); in serve_interfered() 118 test_error("setsockopt(TCP_AO_INFO)"); in server_fn() 121 test_error("setsockopt(TCP_AO_ADD_KEY)"); in server_fn() 125 test_error("test_wait_fd()"); in server_fn() 129 test_error("accept()"); in server_fn() 134 test_error("setsockopt()"); in server_fn() 197 test_error("socket(AF_INET, SOCK_RAW, IPPROTO_RAW)"); in icmp_interfere4() 223 test_error("send(): %zd", bytes); in icmp_interfere4() 313 test_error("socke in icmp6_interfere() [all...] |
H A D | icmps-discard.c | 65 test_error("test_get_tcp_ao_counters()"); in serve_interfered() 73 test_error("test_get_tcp_ao_counters()"); in serve_interfered() 118 test_error("setsockopt(TCP_AO_INFO)"); in server_fn() 121 test_error("setsockopt(TCP_AO_ADD_KEY)"); in server_fn() 125 test_error("test_wait_fd()"); in server_fn() 129 test_error("accept()"); in server_fn() 134 test_error("setsockopt()"); in server_fn() 197 test_error("socket(AF_INET, SOCK_RAW, IPPROTO_RAW)"); in icmp_interfere4() 223 test_error("send(): %zd", bytes); in icmp_interfere4() 313 test_error("socket(AF_INET6, SOCK_RAW, IPPROTO_RAW)"); in icmp6_interfere() [all …]
|
H A D | connect.c | 14 test_error("setsockopt(TCP_AO_ADD_KEY)"); in server_fn() 18 test_error("test_wait_fd()"); in server_fn() 22 test_error("accept()"); in server_fn() 41 test_error("socket()"); in client_fn() 44 test_error("setsockopt(TCP_AO_ADD_KEY)"); in client_fn() 48 test_error("failed to connect()"); in client_fn() 54 test_error("test_get_tcp_ao_counters()"); in client_fn() 64 test_error("test_get_tcp_ao_counters()"); in client_fn()
|
H A D | connect-deny.c | 45 test_error("setsockopt(TCP_AO_ADD_KEY)"); in try_accept() 50 test_error("test_get_tcp_ao_counters()"); in try_accept() 60 test_error("test_wait_fd()"); in try_accept() 67 test_error("accept()"); in try_accept() 76 test_error("test_get_tcp_ao_counters()"); in try_accept() 108 test_error("Can't convert ip address %s", TEST_WRONG_IP); in server_fn() 146 test_error("Can't convert ip address %s", TEST_NETWORK); in server_fn() 172 test_error("socket()"); in try_connect() 175 test_error("setsockopt(TCP_AO_ADD_KEY)"); in try_connect() 178 test_error("test_get_tcp_ao_counters()"); in try_connect() [all …]
|
H A D | bench-lookups.c | 22 test_error("Can't convert ip address %s", TEST_NETWORK); in gen_test_ips() 53 test_error("Failed to add route"); in test_add_routes() 65 test_error("setsockopt(TCP_AO)"); in server_apply_keys() 99 test_error("clock_gettime()"); in measure_call() 104 test_error("clock_gettime()"); in measure_call() 133 test_error("setsockopt(TCP_AO_DEL_KEY)"); in delete_mkt() 141 test_error("setsockopt(TCP_AO)"); in add_back_mkt() 192 test_error("test_wait_fd()"); in bench_connect_srv() 196 test_error("accept()"); in bench_connect_srv() 219 test_error("malloc()"); in server_fn() [all …]
|
H A D | unsigned-md5.c | 24 test_error("Failed to add a VRF: %d", err); in setup_vrfs() 28 test_error("Failed to bring up a VRF"); in setup_vrfs() 33 test_error("Failed to add a route to VRF: %d", err); in setup_vrfs() 55 test_error("setsockopt(TCP_MD5SIG_EXT)"); in try_accept() 59 test_error("setsockopt(TCP_AO_ADD_KEY)"); in try_accept() 62 test_error("setsockopt(TCP_AO_INFO)"); in try_accept() 67 test_error("test_get_tcp_ao_counters()"); in try_accept() 78 test_error("test_wait_fd()"); in try_accept() 85 test_error("accept()"); in try_accept() 93 test_error("test_get_tcp_ao_counters()"); in try_accept() [all …]
|
H A D | restore.c | 31 test_error("setsockopt(TCP_AO_ADD_KEY)"); in try_server_run() 35 test_error("test_wait_fd()"); in try_server_run() 39 test_error("accept()"); in try_server_run() 52 test_error("test_get_tcp_ao_counters()"); in try_server_run() 69 test_error("test_get_tcp_ao_counters()"); in try_server_run() 118 test_error("socket()"); in test_get_sk_checkpoint() 121 test_error("setsockopt(TCP_AO_ADD_KEY)"); in test_get_sk_checkpoint() 125 test_error("failed to connect()"); in test_get_sk_checkpoint() 154 test_error("socket()"); in test_sk_restore() 159 test_error("setsockopt(TCP_AO_ADD_KEY)"); in test_sk_restore() [all …]
|
H A D | seq-ext.c | 49 test_error("socket()"); in test_sk_restore() 54 test_error("setsockopt(TCP_AO_ADD_KEY)"); in test_sk_restore() 58 test_error("test_get_tcp_ao_counters()"); in test_sk_restore() 78 test_error("setsockopt(TCP_AO_ADD_KEY)"); in server_fn() 83 test_error("test_wait_fd()"); in server_fn() 87 test_error("accept()"); in server_fn() 140 test_error("test_get_tcp_ao_counters()"); in server_fn() 184 test_error("socket()"); in client_fn() 187 test_error("setsockopt(TCP_AO_ADD_KEY)"); in client_fn() 191 test_error("failed to connect()"); in client_fn() [all …]
|
H A D | setsockopt-closed.c | 18 test_error("bind()"); in make_listen() 20 test_error("listen()"); in make_listen() 30 test_error("getsockopt(TCP_AO_INFO) failed"); in test_vefify_ao_info() 133 test_error("socket()"); in prepare_defs() 141 test_error("prepare default tcp_ao_add"); in prepare_defs() 149 test_error("add default key"); in prepare_defs() 162 test_error("add default key"); in prepare_defs() 171 test_error("add default key"); in prepare_defs() 178 test_error("unknown cmd"); in prepare_defs() 241 test_error("Can't convert ip address %s", TEST_NETWORK); in test_optmem_limit() [all …]
|
/linux/kernel/trace/ |
H A D | ring_buffer_benchmark.c | 65 static int test_error; variable 69 if (!test_error) { \ 70 test_error = 1; \ 82 return test_error || kthread_should_stop(); in break_test() 127 for (i = 0; i < commit && !test_error ; i += inc) { in read_page() 168 if (test_error) in read_page() 197 while (found && !test_error) { in ring_buffer_consumer() 209 if (test_error) in ring_buffer_consumer() 304 if (test_error) in ring_buffer_producer()
|
/linux/tools/testing/selftests/powerpc/ |
H A D | harness.c | 113 test_error(name); in test_harness() 119 test_error(name); in test_harness()
|
/linux/fs/btrfs/tests/ |
H A D | btrfs-tests.h | 18 #define test_std_err(index) test_err("%s", test_error[index]) 33 extern const char *test_error[];
|
/linux/tools/testing/selftests/powerpc/include/ |
H A D | subunit.h | 24 static inline void test_error(const char *name) in test_error() function
|