Home
last modified time | relevance | path

Searched refs:log_err (Results 1 – 22 of 22) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dsockopt_sk.c29 log_err("Failed to create socket"); in getsetsockopt()
38 log_err("Couldn't allocate two pages"); in getsetsockopt()
45 log_err("Failed to call setsockopt(IP_TOS)"); in getsetsockopt()
53 log_err("Failed to call getsockopt(IP_TOS)"); in getsetsockopt()
58 log_err("Unexpected getsockopt(IP_TOS) optval 0x%x != 0x08", in getsetsockopt()
68 log_err("Unexpected success from setsockopt(IP_TTL)"); in getsetsockopt()
77 log_err("Failed to call setsockopt"); in getsetsockopt()
85 log_err("Failed to call getsockopt"); in getsetsockopt()
90 log_err("Unexpected optlen %d != 1", optlen); in getsetsockopt()
94 log_err("Unexpected buf[0] 0x%02x != 0x01", buf.u8[0]); in getsetsockopt()
[all …]
Dsockopt_multi.c21 log_err("Failed to call setsockopt(IP_TOS)"); in run_getsockopt_test()
29 log_err("Failed to call getsockopt(IP_TOS)"); in run_getsockopt_test()
34 log_err("Unexpected getsockopt 0x%x != 0x80 without BPF", buf); in run_getsockopt_test()
53 log_err("Failed to call getsockopt(IP_TOS)"); in run_getsockopt_test()
58 log_err("Unexpected getsockopt 0x%x != 0x90", buf); in run_getsockopt_test()
78 log_err("Failed to call getsockopt(IP_TOS)"); in run_getsockopt_test()
83 log_err("Unexpected getsockopt 0x%x != 0xA0", buf); in run_getsockopt_test()
97 log_err("Failed to call setsockopt(IP_TOS)"); in run_getsockopt_test()
105 log_err("Unexpected success from getsockopt(IP_TOS)"); in run_getsockopt_test()
121 log_err("Unexpected success from getsockopt(IP_TOS)"); in run_getsockopt_test()
[all …]
Dtcp_rtt.c32 log_err("Failed to lookup TCP stats"); in wait_for_ack()
42 log_err("Did not receive ACK"); in wait_for_ack()
57 log_err("%s: unexpected bpf_tcp_sock.invoked %d != %d", in verify_sk()
63 log_err("%s: unexpected bpf_tcp_sock.dsack_dups %d != %d", in verify_sk()
69 log_err("%s: unexpected bpf_tcp_sock.delivered %d != %d", in verify_sk()
75 log_err("%s: unexpected bpf_tcp_sock.delivered_ce %d != %d", in verify_sk()
81 log_err("%s: unexpected bpf_tcp_sock.icsk_retransmits %d != %d", in verify_sk()
107 log_err("Failed to attach BPF program"); in run_test()
Dsockopt_inherit.c20 log_err("Failed to create client socket"); in connect_to_server()
25 log_err("Failed to get server addr"); in connect_to_server()
30 log_err("Fail to connect to server"); in connect_to_server()
49 log_err("%s: failed to call getsockopt", msg); in verify_sockopt()
56 log_err("%s: unexpected getsockopt value %d != %d", msg, in verify_sockopt()
114 log_err("Failed to create server socket"); in start_server()
122 log_err("Failed to call setsockopt(%d)", i); in start_server()
129 log_err("Failed to bind socket"); in start_server()
Dconnect_force_port.c15 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()
Dsk_lookup.c124 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 …]
Dlwt_helpers.h13 #define log_err(MSG, ...) \ macro
121 log_err("select failed"); in wait_for_packet()
128 log_err("read(dev): %ld", ret); in wait_for_packet()
Dmodule_fentry_shadow.c21 log_err("failed to iterate BTF objects"); in get_bpf_testmod_btf_fd()
30 log_err("failed to get FD for BTF object #%d", id); in get_bpf_testmod_btf_fd()
42 log_err("failed to get info for BTF object #%d", id); in get_bpf_testmod_btf_fd()
Dsockopt.c954 log_err("Failed to load BPF program"); in run_test()
963 log_err("Failed to attach BPF program"); in run_test()
970 log_err("Failed to create AF_INET socket"); in run_test()
991 log_err("Failed to call setsockopt"); in run_test()
1021 log_err("Failed to call getsockopt"); in run_test()
1028 log_err("getsockopt returned unexpected optlen"); in run_test()
1035 log_err("getsockopt returned unexpected optval"); in run_test()
Dlwt_redirect.c175 log_err("%s egress test fails", test_name); in send_and_capture_test_packets()
184 log_err("%s ingress test fails", test_name); in send_and_capture_test_packets()
Dlwt_reroute.c210 log_err("%s xmit", __func__); in test_lwt_reroute_normal_xmit()
Dtc_redirect.c65 #define log_err(MSG, ...) \ macro
79 log_err("writing to %s failed", path); in write_file()
1069 log_err("select failed"); in tun_relay_loop()
1077 log_err("read failed"); in tun_relay_loop()
1083 log_err("write failed"); in tun_relay_loop()
/tools/testing/selftests/bpf/
Dcgroup_helpers.c66 log_err("Opening cgroup.controllers: %s", path); in __enable_controllers()
72 log_err("Reading cgroup.controllers: %s", path); in __enable_controllers()
87 log_err("Opening cgroup.subtree_control: %s", path); in __enable_controllers()
93 log_err("Enabling controller %s: %s", c, path); in __enable_controllers()
130 log_err("Opening %s", file_path); in __write_cgroup_file()
135 log_err("Writing to %s", file_path); in __write_cgroup_file()
199 log_err("unshare"); in setup_cgroup_environment()
204 log_err("mount fakeroot"); in setup_cgroup_environment()
209 log_err("mount cgroup2"); in setup_cgroup_environment()
217 log_err("mkdir cgroup work dir"); in setup_cgroup_environment()
[all …]
Dtest_tcp_check_syncookie_user.c27 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 …]
Dtest_skb_cgroup_id_user.c35 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()
Dnetwork_helpers.c29 #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 …]
Dtest_sock_addr.c613 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 …]
Dcgroup_helpers.h9 #define log_err(MSG, ...) fprintf(stderr, "(%s:%d: errno: %s) " MSG "\n", \ macro
Dtest_sysctl.c1419 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 …]
/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c27 #define log_err(__ret) bpf_printk("ERROR line:%d ret:%d\n", __LINE__, __ret) macro
92 log_err(ret); in gre_set_tunnel()
113 log_err(ret); in gre_set_tunnel_no_key()
128 log_err(ret); in gre_get_tunnel()
153 log_err(ret); in ip6gretap_set_tunnel()
169 log_err(ret); in ip6gretap_get_tunnel()
195 log_err(ret); in erspan_set_tunnel()
215 log_err(ret); in erspan_set_tunnel()
231 log_err(ret); in erspan_get_tunnel()
237 log_err(ret); in erspan_get_tunnel()
[all …]
/tools/testing/selftests/net/af_unix/
Dscm_pidfd.c21 #define log_err(MSG, ...) \ macro
152 log_err("recvmsg"); in cmsg_check()
157 log_err("recvmsg: truncated"); in cmsg_check()
166 log_err("CMSG parse: SCM_PIDFD wrong len"); in cmsg_check()
176 log_err("CMSG parse: SCM_CREDENTIALS wrong len"); in cmsg_check()
186 log_err("recvmsg: data corruption"); in cmsg_check()
191 log_err("CMSG parse: SCM_PIDFD not found"); in cmsg_check()
196 log_err("CMSG parse: SCM_CREDENTIALS not found"); in cmsg_check()
204 log_err("wrong SCM_PIDFD %d != %d", parent_pid, getppid()); in cmsg_check()
307 log_err("socket"); in client()
[all …]
/tools/perf/tests/shell/
Dbuildid.sh136 log_err=$(mktemp /tmp/perf.log.err.XXX)
140 ${perf} record --buildid-all -o ${data} "$@" 1>${log_out} 2>${log_err}
143 echo "see log: ${log_err}"
150 rm -f ${log_out} ${log_err}