/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_multi.c | 14 log_err("Failed to deduct types for %s BPF program", title); in prog_attach() 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() 82 log_err("Unexpected getsockopt 0x%x != 0x80 without BPF", buf); in run_getsockopt_test() 100 log_err("Failed to call getsockopt(IP_TOS)"); in run_getsockopt_test() 105 log_err("Unexpected getsockopt 0x%x != 0x90", buf); in run_getsockopt_test() 124 log_err("Failed to call getsockopt(IP_TOS)"); in run_getsockopt_test() 129 log_err("Unexpected getsockopt 0x%x != 0xA0", buf); in run_getsockopt_test() [all …]
|
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() 57 log_err("Unexpected getsockopt(IP_TOS) optval 0x%x != 0x08", in getsetsockopt() 67 log_err("Unexpected success from setsockopt(IP_TTL)"); 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() 93 log_err("Unexpected buf[0] 0x%02x != 0x01", buf.u8[0]); in getsetsockopt() [all …]
|
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() 149 log_err("Failed to deduct types for %s BPF program", prog_name); in prog_attach() 155 log_err("Failed to find %s BPF program", prog_name); in prog_attach() [all …]
|
D | tcp_rtt.c | 33 log_err("Failed to lookup TCP stats"); in wait_for_ack() 43 log_err("Did not receive ACK"); in wait_for_ack() 60 log_err("%s: unexpected bpf_tcp_sock.invoked %d != %d", in verify_sk() 66 log_err("%s: unexpected bpf_tcp_sock.dsack_dups %d != %d", in verify_sk() 72 log_err("%s: unexpected bpf_tcp_sock.delivered %d != %d", in verify_sk() 78 log_err("%s: unexpected bpf_tcp_sock.delivered_ce %d != %d", in verify_sk() 84 log_err("%s: unexpected bpf_tcp_sock.icsk_retransmits %d != %d", in verify_sk() 110 log_err("Failed to attach BPF program"); in run_test()
|
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() 82 log_err("Failed to attach BPF program"); in run_test() 98 log_err("Failed to attach BPF program"); in run_test() 114 log_err("Failed to attach BPF program"); in run_test()
|
D | sk_lookup.c | 124 log_err("failed to make socket"); in make_socket() 130 log_err("failed to set SNDTIMEO"); in make_socket() 137 log_err("failed to set RCVTIMEO"); in make_socket() 161 log_err("failed to enable IP_RECVORIGDSTADDR"); in make_server() 170 log_err("failed to enable IPV6_RECVORIGDSTADDR"); in make_server() 179 log_err("failed to enable SO_REUSEADDR"); in make_server() 188 log_err("failed to enable SO_REUSEPORT"); in make_server() 195 log_err("failed to bind listen socket"); in make_server() 202 log_err("failed to listen on port %d", port); in make_server() 211 log_err("failed to attach reuseport prog"); in make_server() [all …]
|
D | sockopt.c | 887 log_err("Failed to load BPF program"); in run_test() 896 log_err("Failed to attach BPF program"); in run_test() 903 log_err("Failed to create AF_INET socket"); in run_test() 917 log_err("Failed to call setsockopt"); in run_test() 937 log_err("Failed to call getsockopt"); in run_test() 944 log_err("getsockopt returned unexpected optlen"); in run_test() 951 log_err("getsockopt returned unexpected optval"); in run_test()
|
D | tc_redirect.c | 69 #define log_err(MSG, ...) \ macro 83 log_err("writing to %s failed", path); in write_file() 972 log_err("select failed"); in tun_relay_loop() 980 log_err("read failed"); in tun_relay_loop() 986 log_err("write failed"); in tun_relay_loop()
|
/linux-5.19.10/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 63 log_err("Opening cgroup.controllers: %s", path); in enable_all_controllers() 70 log_err("Reading cgroup.controllers: %s", path); in enable_all_controllers() 83 log_err("Opening cgroup.subtree_control: %s", path); in enable_all_controllers() 89 log_err("Enabling controller %s: %s", c, path); in enable_all_controllers() 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() 146 log_err("Removing cgroup: %s", filename); in nftwfunc() 161 log_err("Opening Cgroup Procs: %s", cgroup_procs_path); in join_cgroup_from_top() [all …]
|
D | test_tcp_check_syncookie_user.c | 27 log_err("Failed to create server socket"); in start_server() 34 log_err("Failed to set the dual-stack mode"); in start_server() 40 log_err("Failed to bind server socket"); in start_server() 45 log_err("Failed to listen on server socket"); in start_server() 64 log_err("Failed to create client socket"); in connect_to_server() 69 log_err("Fail to connect to server"); in connect_to_server() 92 log_err("Failed to get fd by prog id %d", prog_id); in get_map_fd_by_prog_id() 100 log_err("Failed to get info by prog fd %d", prog_fd); in get_map_fd_by_prog_id() 105 log_err("No maps found for prog fd %d", prog_fd); in get_map_fd_by_prog_id() 113 log_err("Failed to get fd by map id %d", map_ids[0]); in get_map_fd_by_prog_id() [all …]
|
D | network_helpers.c | 29 #define log_err(MSG, ...) ({ \ macro 65 log_err("Failed to set SO_RCVTIMEO"); in settimeo() 71 log_err("Failed to set SO_SNDTIMEO"); in settimeo() 88 log_err("Failed to create server socket"); in __start_server() 97 log_err("Failed to set SO_REUSEPORT"); in __start_server() 102 log_err("Failed to bind socket"); in __start_server() 108 log_err("Failed to listed on socket"); in __start_server() 205 log_err("Failed to get server addr"); in fastopen_connect() 212 log_err("Failed to create client socket"); in fastopen_connect() 222 log_err("sendto(data, %u) != %d\n", data_len, ret); in fastopen_connect() [all …]
|
D | test_skb_cgroup_id_user.c | 35 log_err("Invalid IPv6: %s", ip); in mk_dst_addr() 41 log_err("Failed to get index of iface: %s", iface); in mk_dst_addr() 60 log_err("Failed to create UDP socket"); in send_packet() 66 log_err("Failed to send datagram"); in send_packet() 89 log_err("Failed to get fd by prog id %d", prog_id); in get_map_fd_by_prog_id() 97 log_err("Failed to get info by prog fd %d", prog_fd); in get_map_fd_by_prog_id() 102 log_err("No maps found for prog fd %d", prog_fd); in get_map_fd_by_prog_id() 108 log_err("Failed to get fd by map id %d", map_ids[0]); in get_map_fd_by_prog_id() 133 log_err("Failed to lookup key %d", level); in check_ancestor_cgroup_ids() 137 log_err("%llx (actual) != %llx (expected), level: %u\n", in check_ancestor_cgroup_ids()
|
D | test_sock_addr.c | 613 log_err("Unsupported address family"); in mk_sockaddr() 626 log_err("Invalid IPv4: %s", ip); in mk_sockaddr() 636 log_err("Invalid IPv6: %s", ip); in mk_sockaddr() 656 log_err(">>> Loading program error.\n" in load_insns() 672 log_err(">>> Opening BPF object (%s) error.\n", path); in load_path() 687 log_err(">>> Loading program (%s) error.\n", path); in load_path() 754 log_err("Invalid IPv4: %s", SRC4_REWRITE_IP); in sendmsg4_rw_asm_prog_load() 817 log_err("Invalid IPv6: %s", SRC6_REWRITE_IP); in sendmsg6_rw_dst_asm_prog_load() 948 log_err("Failed to create server socket"); in start_server() 953 log_err("Failed to bind server socket"); in start_server() [all …]
|
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() 1450 log_err("open(%s) failed", sysctl_path); in load_sysctl_prog_insns() 1455 log_err("read(%s) failed", sysctl_path); in load_sysctl_prog_insns() 1469 log_err(">>> Loading program error.\n" in load_sysctl_prog_insns() 1483 log_err(">>> Loading program (%s) error.\n", in load_sysctl_prog_file() 1509 log_err("lseek(%d) failed", test->seek); in access_sysctl() 1520 log_err("Read value %s != %s", buf, test->oldval); in access_sysctl() 1525 log_err("New value for sysctl is not set"); in access_sysctl() 1531 log_err("Unexpected sysctl access: neither read nor write"); in access_sysctl() [all …]
|
D | cgroup_helpers.h | 9 #define log_err(MSG, ...) fprintf(stderr, "(%s:%d: errno: %s) " MSG "\n", \ macro
|
/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | test_tunnel_kern.c | 24 #define log_err(__ret) bpf_printk("ERROR line:%d ret:%d\n", __LINE__, __ret) macro 62 log_err(ret); in gre_set_tunnel() 77 log_err(ret); in gre_get_tunnel() 102 log_err(ret); in ip6gretap_set_tunnel() 118 log_err(ret); in ip6gretap_get_tunnel() 144 log_err(ret); in erspan_set_tunnel() 164 log_err(ret); in erspan_set_tunnel() 181 log_err(ret); in erspan_get_tunnel() 187 log_err(ret); in erspan_get_tunnel() 223 log_err(ret); in ip4ip6erspan_set_tunnel() [all …]
|
/linux-5.19.10/samples/bpf/ |
D | test_current_task_under_cgroup_user.c | 66 log_err("Adding target cgroup to map"); in main()
|
/linux-5.19.10/fs/cifs/ |
D | smb2proto.h | 23 extern int map_smb2_to_linux_error(char *buf, bool log_err);
|
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()
|