/tools/testing/selftests/bpf/ |
D | flow_dissector_load.c | 31 error(1, 0, "bpf_flow_load %s", cfg_path_name); in load_and_attach_program() 35 error(1, 0, "bpf_prog_attach %s", cfg_path_name); in load_and_attach_program() 39 error(1, 0, "bpf_object__pin %s", cfg_pin_path); in load_and_attach_program() 49 error(1, 0, "bpf_prog_detach"); in detach_program() 55 error(1, errno, "%s", command); in detach_program() 68 error(1, 0, "attach/detach are exclusive"); in parse_opts() 73 error(1, 0, "attach/detach are exclusive"); in parse_opts() 78 error(1, 0, "only one prog name can be given"); in parse_opts() 84 error(1, 0, "only one section can be given"); in parse_opts() 95 error(1, 0, "must provide a path to the BPF program"); in parse_opts() [all …]
|
/tools/testing/selftests/net/ |
D | ipv6_flowlabel.c | 66 error(1, errno, "send"); in do_send() 96 error(1, errno, "recv"); in do_recv() 98 error(1, 0, "recv: truncated"); in do_recv() 100 error(1, 0, "recv: length mismatch"); in do_recv() 102 error(1, 0, "recv: data mismatch"); in do_recv() 107 error(1, 0, "recv: missing cmsg"); in do_recv() 109 error(1, 0, "recv: too many cmsg"); in do_recv() 112 error(1, 0, "recv: unexpected cmsg level or type"); in do_recv() 133 error(1, errno, "open sysctl"); in get_autoflowlabel_enabled() 137 error(1, errno, "read sysctl"); in get_autoflowlabel_enabled() [all …]
|
D | so_txtime.c | 59 error(1, errno, "gettime"); in gettime_ns() 95 error(1, errno, "write"); in do_send_one() 97 error(1, 0, "write: 0B"); in do_send_one() 111 error(1, errno, "read"); in do_recv_one() 113 error(1, 0, "read: %dB", ret); in do_recv_one() 122 error(1, 0, "payload mismatch. expected %c", ts->data); in do_recv_one() 125 error(1, 0, "exceeds variance (%d us)", cfg_variance_us); in do_recv_one() 137 error(1, 0, "recv: not empty as expected (%d, %d)", ret, errno); in do_recv_verify_empty() 169 error(1, errno, "errqueue"); in do_recv_errqueue_timeout() 171 error(1, 0, "errqueue: flags 0x%x\n", msg.msg_flags); in do_recv_errqueue_timeout() [all …]
|
D | psock_snd.c | 163 error(1, 0, "payload length exceeds max"); in build_packet() 178 error(1, errno, "if_nametoindex"); in do_bind() 181 error(1, errno, "bind"); in do_bind() 205 error(1, errno, "if_nametoindex"); in do_send() 211 error(1, errno, "write"); in do_send() 213 error(1, 0, "write: %u %u", ret, len); in do_send() 225 error(1, errno, "socket t"); in do_tx() 232 error(1, errno, "setsockopt qdisc bypass"); in do_tx() 236 error(1, errno, "setsockopt vnet"); in do_tx() 246 error(1, errno, "close t"); in do_tx() [all …]
|
D | reuseport_addr_any.c | 50 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd() 60 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd() 66 error(1, 0, "Unsupported family %d", family); in build_rcv_fd() 77 error(1, errno, "failed to create receive socket"); in build_rcv_fd() 82 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd() 85 error(1, errno, "failed to bind receive socket"); in build_rcv_fd() 88 error(1, errno, "tcp: failed to listen on receive port"); in build_rcv_fd() 93 error(1, errno, "failed to setsockopt"); in build_rcv_fd() 96 error(1, errno, "dccp: failed to listen on receive port"); in build_rcv_fd() 118 error(1, errno, "inet_pton failed: %s", IP4_ADDR); in connect_and_send() [all …]
|
D | udpgso_bench_rx.c | 71 error(1, 0, "ipv4 parse error: %s", str_addr); in setup_sockaddr() 77 error(1, 0, "ipv6 parse error: %s", str_addr); in setup_sockaddr() 80 error(1, 0, "illegal domain"); in setup_sockaddr() 106 error(1, errno, "poll"); in do_poll() 121 error(1, errno, "poll: 0x%x expected 0x%x\n", in do_poll() 132 error(1, errno, "socket"); in do_socket() 136 error(1, errno, "setsockopt rcvbuf"); in do_socket() 139 error(1, errno, "setsockopt reuseport"); in do_socket() 142 error(1, errno, "bind"); in do_socket() 148 error(1, errno, "listen"); in do_socket() [all …]
|
D | reuseport_bpf_numa.c | 52 error(1, 0, "Unsupported family %d", family); in build_rcv_group() 58 error(1, errno, "failed to create receive socket"); in build_rcv_group() 63 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_group() 66 error(1, errno, "failed to bind receive socket"); in build_rcv_group() 69 error(1, errno, "failed to listen on receive port"); in build_rcv_group() 98 error(1, errno, "ebpf error. log:\n%s\n", bpf_log_buf); in attach_bpf() 102 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_EBPF"); in attach_bpf() 138 error(1, 0, "Unsupported family %d", family); in send_from_node() 142 error(1, errno, "failed to pin to node"); in send_from_node() 146 error(1, errno, "failed to create send socket"); in send_from_node() [all …]
|
D | tcp_fastopen_backup_key.c | 58 error(1, errno, "Unable to get key"); in get_keys() 63 error(1, errno, "Unable to read %s", PROC_FASTOPEN_KEY); in get_keys() 66 error(1, 0, "Unable to parse %s", PROC_FASTOPEN_KEY); in get_keys() 76 error(1, errno, "Unable to set key"); in set_keys() 88 error(1, errno, "Unable to write %s", PROC_FASTOPEN_KEY); in set_keys() 116 error(1, 0, "Unsupported family %d", family); in build_rcv_fd() 128 error(1, errno, "failed to create receive socket"); in build_rcv_fd() 131 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd() 133 error(1, errno, "failed to bind receive socket"); in build_rcv_fd() 136 error(1, errno, "failed to set TCP_FASTOPEN"); in build_rcv_fd() [all …]
|
D | reuseport_bpf_cpu.c | 56 error(1, 0, "Unsupported family %d", family); in build_rcv_group() 62 error(1, errno, "failed to create receive socket"); in build_rcv_group() 67 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_group() 70 error(1, errno, "failed to bind receive socket"); in build_rcv_group() 73 error(1, errno, "failed to listen on receive port"); in build_rcv_group() 91 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_CBPF"); in attach_bpf() 126 error(1, 0, "Unsupported family %d", family); in send_from_cpu() 132 error(1, errno, "failed to pin to cpu"); in send_from_cpu() 136 error(1, errno, "failed to create send socket"); in send_from_cpu() 139 error(1, errno, "failed to bind send socket"); in send_from_cpu() [all …]
|
D | reuseport_dualstack.c | 52 error(1, 0, "Unsupported family %d", family); in build_rcv_fd() 58 error(1, errno, "failed to create receive socket"); in build_rcv_fd() 63 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd() 66 error(1, errno, "failed to bind receive socket"); in build_rcv_fd() 69 error(1, errno, "failed to listen on receive port"); in build_rcv_fd() 88 error(1, errno, "failed to create send socket"); in send_from_v4() 91 error(1, errno, "failed to bind send socket"); in send_from_v4() 94 error(1, errno, "failed to connect send socket"); in send_from_v4() 97 error(1, errno, "failed to send message"); in send_from_v4() 110 error(1, errno, "epoll_wait failed"); in receive_once() [all …]
|
D | reuseport_bpf.c | 68 error(1, 0, "Unsupported family %d", family); in new_any_sockaddr() 89 error(1, 0, "Unsupported family %d", family); in new_loopback_sockaddr() 124 error(1, errno, "ebpf error. log:\n%s\n", bpf_log_buf); in attach_ebpf() 128 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_EBPF"); in attach_ebpf() 149 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_CBPF"); in attach_cbpf() 162 error(1, errno, "failed to create recv %d", i); in build_recv_group() 167 error(1, errno, "failed to set SO_REUSEPORT on %d", i); in build_recv_group() 173 error(1, errno, "failed to bind recv socket %d", i); in build_recv_group() 179 error(1, errno, in build_recv_group() 182 error(1, errno, "failed to listen on socket"); in build_recv_group() [all …]
|
D | msg_zerocopy.c | 138 error(1, errno, "setsockopt %d.%d: %d", level, optname, val); in do_setsockopt() 152 error(1, errno, "poll"); in do_poll() 163 error(1, errno, "accept"); in do_accept() 165 error(1, errno, "close listen sock"); in do_accept() 175 error(1, errno, "NULL cookie"); in add_zcopy_cookie() 208 error(1, errno, "send"); in do_sendmsg() 307 error(1, 0, "ipv4 parse error: %s", str_addr); in setup_sockaddr() 315 error(1, 0, "ipv6 parse error: %s", str_addr); in setup_sockaddr() 318 error(1, 0, "illegal domain"); in setup_sockaddr() 328 error(1, errno, "socket t"); in do_setup_tx() [all …]
|
D | udpgso_bench_tx.c | 111 error(1, 0, "setaffinity %d", cpu); in set_cpu() 126 error(1, 0, "ipv4 parse error: %s", str_addr); in setup_sockaddr() 132 error(1, 0, "ipv6 parse error: %s", str_addr); in setup_sockaddr() 135 error(1, 0, "illegal domain"); in setup_sockaddr() 155 error(1, 0, "unknown SOL_SOCKET cmsg type=%u\n", in flush_cmsg() 193 error(0, 1, "received packet with origin: %u", in flush_cmsg() 199 error(0, 1, "unknown IP msg type=%u\n", in flush_cmsg() 205 error(0, 1, "unknown cmsg level=%u\n", in flush_cmsg() 226 error(1, errno, "errqueue"); in flush_errqueue_recv() 228 error(1, 0, "errqueue: flags 0x%x\n", msg.msg_flags); in flush_errqueue_recv() [all …]
|
D | tcp_inq.c | 55 error(1, 0, "illegal family"); in setup_loopback_addr() 126 error(1, errno, "server socket"); in main() 130 error(1, errno, "setsockopt(SO_REUSEADDR)"); in main() 133 error(1, errno, "bind"); in main() 135 error(1, errno, "listen"); in main() 138 error(1, errno, "pthread_create"); in main() 142 error(1, errno, "client socket"); in main() 145 error(1, errno, "connect"); in main() 147 error(1, errno, "setsockopt(TCP_INQ)"); in main() 162 error(1, errno, "recvmsg"); in main() [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | test_get_stack_rawtp_err.c | 12 int error; in bpf_prog2() local 15 error = bpf_get_stack(ctx, stack, 0, -1); in bpf_prog2() 16 if (error < 0) in bpf_prog2() 19 return error; in bpf_prog2() 22 error++; in bpf_prog2()
|
/tools/testing/selftests/memory-hotplug/ |
D | mem-on-off-test.sh | 137 error=-12 146 error=$OPTARG 165 if ! [ "$error" -ge -4095 -a "$error" -lt 0 ]; then 231 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/memory 237 /sbin/modprobe -q -r memory-notifier-error-inject 238 /sbin/modprobe -q memory-notifier-error-inject priority=$priority 246 echo $msg memory-notifier-error-inject module is not available >&2 257 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error 267 echo $error > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_ONLINE/error 275 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_ONLINE/error [all …]
|
/tools/testing/selftests/cpu-hotplug/ |
D | cpu-on-off-test.sh | 151 error=-12 164 error=$OPTARG 181 if ! [ "$error" -ge -4095 -a "$error" -lt 0 ]; then 238 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/cpu 244 /sbin/modprobe -q -r cpu-notifier-error-inject 245 /sbin/modprobe -q cpu-notifier-error-inject priority=$priority 253 echo $msg cpu-notifier-error-inject module is not available >&2 263 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/CPU_DOWN_PREPARE/error 271 echo $error > $NOTIFIER_ERR_INJECT_DIR/actions/CPU_UP_PREPARE/error 279 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/CPU_UP_PREPARE/error [all …]
|
/tools/virtio/virtio-trace/ |
D | trace-agent.c | 35 goto error; in get_total_cpus() 38 goto error; in get_total_cpus() 43 error: in get_total_cpus() 89 goto error; in parse_size() 92 goto error; in parse_size() 100 error: in parse_size() 117 goto error; in make_path() 130 goto error; in make_path() 135 error: in make_path() 161 goto error; in agent_info_init() [all …]
|
D | trace-agent-ctl.c | 39 goto error; in rw_ctl_init() 44 error: in rw_ctl_init() 73 goto error; in wait_order() 82 error: in wait_order() 109 goto error; in rw_ctl_loop() 133 error: in rw_ctl_loop()
|
/tools/testing/selftests/efivarfs/ |
D | open-unlink.c | 18 int error; in set_immutable() local 26 error = errno; in set_immutable() 28 errno = error; in set_immutable() 38 error = errno; in set_immutable() 40 errno = error; in set_immutable() 49 int error; in get_immutable() local 57 error = errno; in get_immutable() 59 errno = error; in get_immutable()
|
/tools/testing/selftests/networking/timestamping/ |
D | rxtimestamp.c | 166 error(1, errno, "Failed to sendmsg"); in do_send() 196 error(1, errno, "Failed to recvmsg"); in do_recv() 198 error(1, 0, "Only received %d bytes of payload.", r); in do_recv() 201 error(1, 0, "Message was truncated."); in do_recv() 206 error(1, 0, "Unexpected cmsg_level %d", in do_recv() 219 error(0, 0, "ts[1] should not be set."); in do_recv() 223 error(1, 0, "Unexpected cmsg_type %d", cmsg->cmsg_type); in do_recv() 231 error(0, 0, "Expected " #field " to be set."); \ in do_recv() 233 error(0, 0, \ in do_recv() 255 error(1, errno, "Failed to enable SO_REUSEADDR"); in config_so_flags() [all …]
|
/tools/hv/ |
D | hv_fcopy_daemon.c | 30 int error = HV_E_FAIL; in hv_start_fcopy() local 69 error = HV_ERROR_ALREADY_EXISTS; in hv_start_fcopy() 81 error = 0; in hv_start_fcopy() 83 return error; in hv_start_fcopy() 135 int error; in main() local 215 error = hv_start_fcopy(&buffer.start); in main() 218 error = hv_copy_data(&buffer.copy); in main() 221 error = hv_copy_finished(); in main() 224 error = hv_copy_cancel(); in main() 228 error = HV_E_FAIL; in main() [all …]
|
D | hv_vss_daemon.c | 120 int error = 0, root_seen = 0, save_errno = 0; in vss_operate() local 157 error |= vss_do_freeze(ent->mnt_dir, cmd); in vss_operate() 158 if (error && operation == VSS_OP_FREEZE) in vss_operate() 165 error |= vss_do_freeze("/", cmd); in vss_operate() 166 if (error && operation == VSS_OP_FREEZE) in vss_operate() 186 return error; in vss_operate() 200 int error; in main() local 292 error = HV_S_OK; in main() 297 error = vss_operate(op); in main() 300 error ? "failed" : "succeeded"); in main() [all …]
|
/tools/iio/ |
D | iio_generic_buffer.c | 381 goto error; in main() 396 goto error; in main() 408 goto error; in main() 425 goto error; in main() 431 goto error; in main() 440 goto error; in main() 445 goto error; in main() 451 goto error; in main() 464 goto error; in main() 469 goto error; in main() [all …]
|
/tools/perf/util/ |
D | genelf.c | 274 goto error; in jit_write_elf() 283 goto error; in jit_write_elf() 313 goto error; in jit_write_elf() 319 goto error; in jit_write_elf() 332 goto error; in jit_write_elf() 350 goto error; in jit_write_elf() 359 goto error; in jit_write_elf() 365 goto error; in jit_write_elf() 378 goto error; in jit_write_elf() 395 goto error; in jit_write_elf() [all …]
|