/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | sockopt_multi.c | 20 log_err("Failed to find %s BPF program", name); in prog_attach() 27 log_err("Failed to attach %s BPF program", name); in prog_attach() 69 log_err("Failed to call setsockopt(IP_TOS)"); in run_getsockopt_test() 77 log_err("Failed to call getsockopt(IP_TOS)"); in run_getsockopt_test() 100 log_err("Failed to call getsockopt(IP_TOS)"); in run_getsockopt_test() 124 log_err("Failed to call getsockopt(IP_TOS)"); in run_getsockopt_test() 143 log_err("Failed to call setsockopt(IP_TOS)"); in run_getsockopt_test() 162 log_err("Failed to detach child program"); in run_getsockopt_test() 182 log_err("Failed to call setsockopt(IP_TOS)"); in run_getsockopt_test() 190 log_err("Failed to call getsockopt(IP_TOS)"); in run_getsockopt_test() [all …]
|
A D | sockopt_sk.c | 28 log_err("Failed to create socket"); in getsetsockopt() 37 log_err("Couldn't allocate two pages"); in getsetsockopt() 44 log_err("Failed to call setsockopt(IP_TOS)"); in getsetsockopt() 52 log_err("Failed to call getsockopt(IP_TOS)"); in getsetsockopt() 76 log_err("Failed to call setsockopt"); in getsetsockopt() 84 log_err("Failed to call getsockopt"); in getsetsockopt() 89 log_err("Unexpected optlen %d != 1", optlen); in getsetsockopt() 104 log_err("Failed to call setsockopt, ret=%d", err); in getsetsockopt() 110 log_err("Failed to call getsockopt, ret=%d", err); in getsetsockopt() 124 log_err("Failed to call setsockopt(SO_SNDBUF)"); in getsetsockopt() [all …]
|
A D | tcp_rtt.c | 32 log_err("Failed to lookup TCP stats"); in wait_for_ack() 42 log_err("Did not receive ACK"); in wait_for_ack() 59 log_err("%s: unexpected bpf_tcp_sock.invoked %d != %d", in verify_sk() 65 log_err("%s: unexpected bpf_tcp_sock.dsack_dups %d != %d", in verify_sk() 71 log_err("%s: unexpected bpf_tcp_sock.delivered %d != %d", in verify_sk() 77 log_err("%s: unexpected bpf_tcp_sock.delivered_ce %d != %d", in verify_sk() 83 log_err("%s: unexpected bpf_tcp_sock.icsk_retransmits %d != %d", in verify_sk() 108 log_err("Failed to load BPF object"); in run_test() 117 log_err("Failed to attach BPF program"); in run_test()
|
A D | sockopt_inherit.c | 18 log_err("Failed to create client socket"); in connect_to_server() 23 log_err("Failed to get server addr"); in connect_to_server() 28 log_err("Fail to connect to server"); in connect_to_server() 47 log_err("%s: failed to call getsockopt", msg); in verify_sockopt() 54 log_err("%s: unexpected getsockopt value %d != %d", msg, in verify_sockopt() 116 log_err("Failed to create server socket"); in start_server() 124 log_err("Failed to call setsockopt(%d)", i); in start_server() 131 log_err("Failed to bind socket"); in start_server() 148 log_err("Failed to deduct types for %s BPF program", title); in prog_attach() 154 log_err("Failed to find %s BPF program", title); in prog_attach() [all …]
|
A D | connect_force_port.c | 15 log_err("Failed to get server addr"); in verify_ports() 25 log_err("Unexpected local port %d, expected %d", ntohs(port), in verify_ports() 31 log_err("Failed to get peer addr"); in verify_ports() 41 log_err("Unexpected peer port %d, expected %d", ntohs(port), in verify_ports() 65 log_err("Failed to load BPF object"); in run_test() 81 log_err("Failed to attach BPF program"); in run_test() 97 log_err("Failed to attach BPF program"); in run_test() 113 log_err("Failed to attach BPF program"); in run_test()
|
A D | sk_lookup.c | 125 log_err("failed to make socket"); in make_socket() 131 log_err("failed to set SNDTIMEO"); in make_socket() 138 log_err("failed to set RCVTIMEO"); in make_socket() 293 log_err("failed/partial send"); in send_byte() 306 log_err("failed/partial recv"); in recv_byte() 320 log_err("failed to accept"); in tcp_recv_send() 326 log_err("failed/partial recv"); in tcp_recv_send() 333 log_err("failed/partial send"); in tcp_recv_send() 383 log_err("failed to receive"); in udp_recv_send() 502 log_err("failed to get map FD"); in update_lookup_map() [all …]
|
A D | sockopt.c | 888 log_err("Failed to load BPF program"); in run_test() 897 log_err("Failed to attach BPF program"); in run_test() 904 log_err("Failed to create AF_INET socket"); in run_test() 918 log_err("Failed to call setsockopt"); in run_test() 938 log_err("Failed to call getsockopt"); in run_test() 945 log_err("getsockopt returned unexpected optlen"); in run_test() 952 log_err("getsockopt returned unexpected optval"); in run_test()
|
A D | tc_redirect.c | 65 #define log_err(MSG, ...) \ macro 79 log_err("writing to %s failed", path); in write_file() 622 log_err("select failed"); in tun_relay_loop() 630 log_err("read failed"); in tun_relay_loop() 636 log_err("write failed"); in tun_relay_loop()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_tcp_check_syncookie_user.c | 32 log_err("Failed to bind server socket"); in start_server() 57 log_err("Failed to get server addr"); in connect_to_server() 68 log_err("Fail to connect to server"); in connect_to_server() 131 log_err("Can't clear results"); in run_test() 136 log_err("Can't clear results"); in run_test() 141 log_err("Can't clear results"); in run_test() 151 log_err("Can't accept connection"); in run_test() 156 log_err("Can't lookup result"); in run_test() 166 log_err("Can't lookup result"); in run_test() 178 log_err("Can't lookup result"); in run_test() [all …]
|
A D | cgroup_helpers.c | 114 log_err("unshare"); in setup_cgroup_environment() 119 log_err("mount fakeroot"); in setup_cgroup_environment() 124 log_err("mount cgroup2"); in setup_cgroup_environment() 132 log_err("mkdir cgroup work dir"); in setup_cgroup_environment() 166 log_err("Joining Cgroup"); in join_cgroup_from_top() 238 log_err("Opening Cgroup"); in create_and_get_cgroup() 271 log_err("calloc"); in get_cgroup_id() 276 log_err("name_to_handle_at"); in get_cgroup_id() 283 log_err("realloc"); in get_cgroup_id() 289 log_err("name_to_handle_at"); in get_cgroup_id() [all …]
|
A D | network_helpers.c | 18 #define log_err(MSG, ...) ({ \ macro 54 log_err("Failed to set SO_RCVTIMEO"); in settimeo() 60 log_err("Failed to set SO_SNDTIMEO"); in settimeo() 77 log_err("Failed to create server socket"); in __start_server() 86 log_err("Failed to set SO_REUSEPORT"); in __start_server() 91 log_err("Failed to bind socket"); in __start_server() 97 log_err("Failed to listed on socket"); in __start_server() 181 log_err("Failed to get server addr"); in fastopen_connect() 250 log_err("getsockopt(SOL_TYPE)"); in connect_to_fd_opts() 256 log_err("Failed to get server addr"); in connect_to_fd_opts() [all …]
|
A D | test_skb_cgroup_id_user.c | 36 log_err("Invalid IPv6: %s", ip); in mk_dst_addr() 42 log_err("Failed to get index of iface: %s", iface); in mk_dst_addr() 61 log_err("Failed to create UDP socket"); in send_packet() 67 log_err("Failed to send datagram"); in send_packet() 90 log_err("Failed to get fd by prog id %d", prog_id); in get_map_fd_by_prog_id() 98 log_err("Failed to get info by prog fd %d", prog_fd); in get_map_fd_by_prog_id() 103 log_err("No maps found for prog fd %d", prog_fd); in get_map_fd_by_prog_id() 109 log_err("Failed to get fd by map id %d", map_ids[0]); in get_map_fd_by_prog_id() 134 log_err("Failed to lookup key %d", level); in check_ancestor_cgroup_ids() 138 log_err("%llx (actual) != %llx (expected), level: %u\n", in check_ancestor_cgroup_ids()
|
A D | test_sock_addr.c | 614 log_err("Unsupported address family"); in mk_sockaddr() 627 log_err("Invalid IPv4: %s", ip); in mk_sockaddr() 637 log_err("Invalid IPv6: %s", ip); in mk_sockaddr() 660 log_err(">>> Loading program error.\n" in load_insns() 939 log_err("Failed to create server socket"); in start_server() 944 log_err("Failed to bind server socket"); in start_server() 972 log_err("Unsupported address family"); in connect_to_server() 978 log_err("Failed to create client socket"); in connect_to_server() 983 log_err("Fail to connect to server"); in connect_to_server() 1046 log_err("Unsupported address family"); in sendmsg_to_server() [all …]
|
A D | test_sysctl.c | 1419 log_err("Value is too big (%zd) to use in fixup", buf_len); in fixup_sysctl_value() 1423 log_err("Can fixup only BPF_LD_IMM64 insns"); in fixup_sysctl_value() 1454 log_err("open(%s) failed", sysctl_path); in load_sysctl_prog_insns() 1459 log_err("read(%s) failed", sysctl_path); in load_sysctl_prog_insns() 1470 log_err(">>> Loading program error.\n" in load_sysctl_prog_insns() 1489 log_err(">>> Loading program (%s) error.\n", in load_sysctl_prog_file() 1515 log_err("lseek(%d) failed", test->seek); in access_sysctl() 1526 log_err("Read value %s != %s", buf, test->oldval); in access_sysctl() 1531 log_err("New value for sysctl is not set"); in access_sysctl() 1537 log_err("Unexpected sysctl access: neither read nor write"); in access_sysctl() [all …]
|
A D | cgroup_helpers.h | 9 #define log_err(MSG, ...) fprintf(stderr, "(%s:%d: errno: %s) " MSG "\n", \ macro
|
/linux/samples/bpf/ |
A D | test_current_task_under_cgroup_user.c | 66 log_err("Adding target cgroup to map"); in main()
|
/linux/fs/cifs/ |
A D | smb2proto.h | 23 extern int map_smb2_to_linux_error(char *buf, bool log_err);
|
A D | smb2maperror.c | 2440 map_smb2_to_linux_error(char *buf, bool log_err) in map_smb2_to_linux_error() argument 2456 if (log_err && (smb2err != STATUS_MORE_PROCESSING_REQUIRED) && in map_smb2_to_linux_error()
|