/tools/testing/selftests/net/tcp_ao/lib/ |
A D | repair.c | 63 test_error("malloc()"); in test_sock_checkpoint_queue() 66 test_error("recv(%d): %d", qlen, ret); in test_sock_checkpoint_queue() 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() 156 test_error("send()"); in test_sock_restore_queue() 172 test_error("bind()"); in __test_sock_restore() 176 test_error("fcntl()"); in __test_sock_restore() 186 test_error("connect()"); in __test_sock_restore() 239 test_error("setsockopt(TCP_REPAIR)"); in test_enable_repair() [all …]
|
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 …]
|
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() 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() 136 test_error("reallocarray()"); in snmp6_read() [all …]
|
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() 81 test_error("test_get_tcp_counters()"); in __skpair_poll_should_stop() 128 test_error("fcntl()"); in __test_connect_socket() 156 test_error("test_get_tcp_counters()"); in test_skpair_wait_poll() 607 test_error("recv(): %zd", bytes); in _test_server_run() 619 test_error("send()"); in _test_server_run() [all …]
|
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()
|
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() 782 test_error("Couldn't add a trace event: %d", err); in trace_hash_event_expect() 798 test_error("Couldn't add a trace event: %d", err); in trace_ao_event_expect() 813 test_error("Couldn't add a trace event: %d", err); in trace_ao_event_sk_expect() 827 test_error("Couldn't add a trace event: %d", err); in trace_ao_event_sne_expect()
|
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()
|
A D | ftrace-tcp.c | 424 test_error("inet_ntop()"); in dump_trace_event() 426 test_error("inet_ntop()"); in dump_trace_event() 457 test_error("test_sprintf()"); in print_match_stats()
|
A D | kconfig.c | 152 test_error("Failed to initialize kconfig %u", k); in kernel_config_has()
|
/tools/testing/selftests/net/tcp_ao/ |
A D | self-connect.c | 12 test_error("Can't convert local ip address"); in __setup_lo_intf() 18 test_error("Failed to bring %s up", lo_intf); in __setup_lo_intf() 49 test_error("socket()"); in tcp_self_connect() 53 test_error("setsockopt(TCP_AO_ADD_KEY)"); in tcp_self_connect() 55 test_error("setsockopt(TCP_AO_ADD_KEY)"); in tcp_self_connect() 58 test_error("setsockopt(TCP_AO_ADD_KEY)"); in tcp_self_connect() 62 test_error("bind()"); in tcp_self_connect() 67 test_error("test_get_tcp_counters()"); in tcp_self_connect() 73 test_error("failed to connect()"); in tcp_self_connect() 85 test_error("test_get_tcp_counters()"); in tcp_self_connect() [all …]
|
A D | rst.c | 81 test_error("setsockopt(SO_LINGER)"); in close_forced() 99 test_error("test_wait_fd()"); in test_server_active_rst() 103 test_error("accept()"); in test_server_active_rst() 142 test_error("test_wait_fd()"); in test_server_passive_rst() 146 test_error("accept()"); in test_server_passive_rst() 266 test_error("socket()"); in test_client_active_rst() 287 test_error("failed to connect()"); in test_client_active_rst() 305 test_error("select(): %d", err); in test_client_active_rst() 311 test_error("getsockopt()"); in test_client_active_rst() 333 test_error("socket()"); in test_client_passive_rst() [all …]
|
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_counters()"); in client_fn() 64 test_error("test_get_tcp_counters()"); in client_fn()
|
A D | icmps-discard.c | 65 test_error("test_get_tcp_counters()"); in serve_interfered() 73 test_error("test_get_tcp_counters()"); in serve_interfered() 125 test_error("test_wait_fd()"); in server_fn() 129 test_error("accept()"); in server_fn() 134 test_error("setsockopt()"); in server_fn() 223 test_error("send(): %zd", bytes); in icmp_interfere4() 337 test_error("send(): %zd", bytes); in icmp6_interfere() 403 test_error("getsockname()"); in send_interfered() 406 test_error("getpeername()"); in send_interfered() 426 test_error("socket()"); in client_fn() [all …]
|
A D | key-management.c | 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() 253 test_error("test_add_key()"); in check_closed_socket() 304 test_error("listen()"); in assert_no_tcp_repair() 346 test_error("listen()"); in check_listen_socket() 590 test_error("socket()"); in key_collection_socket() 689 test_error("calloc()"); in verify_keys() [all …]
|
A D | connect-deny.c | 46 test_error("setsockopt(TCP_AO_ADD_KEY)"); in try_accept() 51 test_error("test_get_tcp_counters()"); in try_accept() 64 test_error("test_skpair_wait_poll()"); in try_accept() 71 test_error("accept()"); in try_accept() 80 test_error("test_get_tcp_counters()"); in try_accept() 112 test_error("Can't convert ip address %s", TEST_WRONG_IP); in server_fn() 151 test_error("Can't convert ip address %s", TEST_NETWORK); in server_fn() 176 test_error("socket()"); in try_connect() 179 test_error("setsockopt(TCP_AO_ADD_KEY)"); in try_connect() 182 test_error("test_get_tcp_counters()"); in try_connect() [all …]
|
A D | bench-lookups.c | 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() 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() 261 test_error("failed to connect()"); in connect_client() 289 test_error("bind()"); in client_addr_setup() [all …]
|
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_counters()"); in try_server_run() 68 test_error("test_get_tcp_counters()"); in try_server_run() 117 test_error("socket()"); in test_get_sk_checkpoint() 120 test_error("setsockopt(TCP_AO_ADD_KEY)"); in test_get_sk_checkpoint() 124 test_error("failed to connect()"); in test_get_sk_checkpoint() 153 test_error("socket()"); in test_sk_restore() 162 test_error("test_get_tcp_counters()"); in test_sk_restore() [all …]
|
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_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_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 …]
|
A D | unsigned-md5.c | 29 test_error("Failed to bring up a VRF"); in setup_vrfs() 63 test_error("setsockopt(TCP_AO_INFO)"); in try_accept() 68 test_error("test_get_tcp_counters()"); in try_accept() 82 test_error("test_skpair_wait_poll()"); in try_accept() 89 test_error("accept()"); in try_accept() 130 test_error("Failed to add route"); in server_add_routes() 132 test_error("Failed to add route"); in server_add_routes() 277 test_error("socket()"); in try_connect() 280 test_error("bind()"); in try_connect() 379 test_error("socket()"); in open_add() [all …]
|
A D | setsockopt-closed.c | 18 test_error("bind()"); in make_listen() 20 test_error("listen()"); in make_listen() 133 test_error("socket()"); in prepare_defs() 397 test_error("add key"); in test_einval_del_key() 404 test_error("add key"); in test_einval_del_key() 411 test_error("add key"); in test_einval_del_key() 445 test_error("add key"); in test_einval_del_key() 451 test_error("add key"); in test_einval_del_key() 457 test_error("add key"); in test_einval_del_key() 608 test_error("socket()"); in test_einval_get_keys() [all …]
|
/tools/testing/selftests/powerpc/ |
A D | harness.c | 113 test_error(name); in test_harness() 119 test_error(name); in test_harness()
|
/tools/testing/selftests/powerpc/include/ |
A D | subunit.h | 24 static inline void test_error(const char *name) in test_error() function
|