| /tools/testing/selftests/bpf/prog_tests/ |
| A D | tc_change_tail.c | 16 int c1, p1; in test_tc_change_tail() local 30 ret = create_pair(AF_INET, SOCK_DGRAM, &c1, &p1); in test_tc_change_tail() 36 ret = recv(c1, buf, 2, 0); in test_tc_change_tail() 42 ret = recv(c1, buf, 2, 0); in test_tc_change_tail() 48 ret = recv(c1, buf, 1, 0); in test_tc_change_tail() 54 ret = recv(c1, buf, 1, 0); in test_tc_change_tail() 58 close(c1); in test_tc_change_tail()
|
| A D | sockmap_basic.c | 517 ev.data.fd = c1; in test_sockmap_skb_verdict_shutdown() 529 n = recv(c1, &b, 1, MSG_DONTWAIT); in test_sockmap_skb_verdict_shutdown() 532 close(c1); in test_sockmap_skb_verdict_shutdown() 579 err = ioctl(c1, FIONREAD, &avail); in test_sockmap_skb_verdict_fionread() 591 close(c1); in test_sockmap_skb_verdict_fionread() 604 int c1, p1, sent, recvd; in test_sockmap_skb_verdict_change_tail() local 625 recvd = recv(c1, buf, 2, 0); in test_sockmap_skb_verdict_change_tail() 631 recvd = recv(c1, buf, 2, 0); in test_sockmap_skb_verdict_change_tail() 637 recvd = recv(c1, buf, 1, 0); in test_sockmap_skb_verdict_change_tail() 642 close(c1); in test_sockmap_skb_verdict_change_tail() [all …]
|
| A D | sockmap_strp.c | 94 int c0 = -1, p0 = -1, c1 = -1, p1 = -1; in test_sockmap_strp_dispatch_pkt() local 107 {"rrrrr", 5, 0, &c1} in test_sockmap_strp_dispatch_pkt() 114 err = create_socket_pairs(family, sotype, &c0, &c1, &p0, &p1); in test_sockmap_strp_dispatch_pkt() 126 err = setsockopt(c1, IPPROTO_TCP, TCP_NODELAY, &zero, sizeof(zero)); in test_sockmap_strp_dispatch_pkt() 156 close(c1); in test_sockmap_strp_dispatch_pkt() 372 int c0 = -1, p0 = -1, c1 = -1, p1 = -1; in test_sockmap_strp_verdict() local 385 err = create_socket_pairs(family, sotype, &c0, &c1, &p0, &p1); in test_sockmap_strp_verdict() 401 recvd = recv_timeout(c1, rcv, sizeof(rcv), MSG_DONTWAIT, in test_sockmap_strp_verdict() 415 recvd = recv_timeout(c1, rcv, off, MSG_DONTWAIT, in test_sockmap_strp_verdict() 417 recvd += recv_timeout(c1, rcv + off, sizeof(rcv) - off, MSG_DONTWAIT, in test_sockmap_strp_verdict() [all …]
|
| A D | sockmap_listen.c | 680 int c0, c1, p0, p1; in redir_to_connected() local 719 xclose(c1); in redir_to_connected() 907 int c0 = -1, c1 = -1, p0 = -1, p1 = -1; in redir_partial() local 926 n = xsend(c1, buf, sizeof(buf), 0); in redir_partial() 939 xclose(c1); in redir_partial() 1047 int s, c0, c1, p0, err; in test_reuseport_select_connected() local 1105 c1 = xsocket(family, sotype, 0); in test_reuseport_select_connected() 1106 if (c1 < 0) in test_reuseport_select_connected() 1115 err = connect(c1, sockaddr(&addr), len); in test_reuseport_select_connected() 1120 n = xsend(c1, &b, sizeof(b), 0); in test_reuseport_select_connected() [all …]
|
| /tools/testing/selftests/proc/ |
| A D | proc-uptime-001.c | 30 uint64_t start, u0, u1, c0, c1; in main() local 42 c1 = clock_boottime(); in main() 48 assert(c1 >= c0); in main() 54 c0 = c1; in main()
|
| A D | proc-uptime-002.c | 47 uint64_t u0, u1, c0, c1; in main() local 76 c1 = clock_boottime(); in main() 82 assert(c1 >= c0); in main() 88 c0 = c1; in main()
|
| /tools/power/cpupower/utils/helpers/ |
| A D | bitmask.c | 203 const char *c1, *c2; /* next tokens after '-' or ',' */ in bitmask_parselist() local 212 c1 = nexttoken(p, '-'); in bitmask_parselist() 214 if (c1 != NULL && (c2 == NULL || c1 < c2)) { in bitmask_parselist() 215 sret = sscanf(c1, "%u%c", &b, &nextc); in bitmask_parselist() 218 c1 = nexttoken(c1, ':'); in bitmask_parselist() 219 if (c1 != NULL && (c2 == NULL || c1 < c2)) { in bitmask_parselist() 220 sret = sscanf(c1, "%u%c", &s, &nextc); in bitmask_parselist()
|
| /tools/testing/selftests/net/netfilter/ |
| A D | br_netfilter_queue.sh | 17 setup_ns c1 c2 c3 sender 45 port_add "$c1" "c1" 1 56 ip netns exec "$sender" ping -I sender -c1 192.168.1.1 || exit 1 57 ip netns exec "$sender" ping -I sender -c1 192.168.1.2 || exit 2 58 ip netns exec "$sender" ping -I sender -c1 192.168.1.3 || exit 3
|
| A D | nft_audit.sh | 231 readarray -t handles < <(nft -a list chain t1 c1 | \
|
| /tools/testing/selftests/net/openvswitch/ |
| A D | openvswitch.sh | 255 client c0 c1 172.31.110.10/24 -u || return 1 350 ip netns exec client ip addr add 172.31.110.10/24 dev c1 351 ip netns exec client ip link set c1 up 434 ip netns exec client ip addr add 172.31.110.10/24 dev c1 435 ip netns exec client ip link set c1 up 473 ip netns exec client ip addr add 172.31.110.10/24 dev c1 474 ip netns exec client ip link set c1 up 539 ip netns exec client ip addr add 172.31.110.10/24 dev c1 540 ip netns exec client ip link set c1 up 579 ip netns exec client ip link set c1 up [all …]
|
| /tools/testing/selftests/net/ |
| A D | fcnal-test.sh | 592 run_cmd ping -c1 -w1 ${a} 624 run_cmd_nsb ping -c1 -w1 ${a} 634 run_cmd ping -c1 -w1 ${a} 668 run_cmd ping -c1 -w1 ${a} 679 run_cmd_nsb ping -c1 -w1 ${a} 696 run_cmd ping -c1 -w1 ${a} 707 run_cmd_nsb ping -c1 -w1 ${a} 717 run_cmd ping -c1 -w1 ${a} 761 run_cmd_nsb ping -c1 -w1 ${a} 812 run_cmd_nsb ping -c1 -w1 ${a} [all …]
|
| A D | l2tp.sh | 319 run_cmd $host_1 ping -c1 -w1 172.16.1.2 322 run_cmd $host_1 ping -c1 -w1 -I 172.16.101.1 172.16.101.2 325 run_cmd $host_1 ${ping6} -c1 -w1 fc00:1::2 328 run_cmd $host_1 ${ping6} -c1 -w1 -I fc00:101::1 fc00:101::2 341 run_cmd $host_1 ping -c1 -w1 172.16.1.2 344 run_cmd $host_1 ping -c1 -w1 -I 172.16.101.1 172.16.101.2 347 run_cmd $host_1 ${ping6} -c1 -w1 fc00:1::2 350 run_cmd $host_1 ${ping6} -c1 -w1 -I fc00:101::1 fc00:101::2
|
| A D | vrf_route_leaking.sh | 278 slowwait 5 ip netns exec $h1 "${ping6}" -c1 -w1 ${H2_N2_IP6} >/dev/null 2>&1 373 slowwait 5 ip netns exec $h1 "${ping6}" -c1 -w1 ${H2_N2_IP6} >/dev/null 2>&1 378 ip netns exec $h1 ping -c1 -w1 ${H2_N2_IP} >/dev/null 2>&1 385 ip netns exec $h1 "${ping6}" -c1 -w1 ${H2_N2_IP6} >/dev/null 2>&1 464 run_cmd_grep "Time to live exceeded" ip netns exec $h1 ping -t1 -c1 -W2 ${H2_N2_IP} 485 run_cmd_grep "Frag needed" ip netns exec $h1 ping -s 1450 -Mdo -c1 -W2 ${H2_N2_IP} 506 run_cmd_grep "Time exceeded: Hop limit" ip netns exec $h1 "${ping6}" -t1 -c1 -W2 ${H2_N2_IP6} 527 run_cmd_grep "Packet too big" ip netns exec $h1 "${ping6}" -s 1450 -Mdo -c1 -W2 ${H2_N2_IP6} 544 run_cmd ip netns exec $r1 ip vrf exec blue ping -c1 -w1 ${H2_N2_IP} 584 run_cmd ip netns exec $r1 ip vrf exec blue ${ping6} -c1 -w1 ${H2_N2_IP6}
|
| A D | vrf-xfrm-tests.sh | 346 run_cmd_host1 ip vrf exec ${VRF} ping -c1 -w1 ${HOST2_4} 348 run_cmd_host1 ip vrf exec ${VRF} ${ping6} -c1 -w1 ${HOST2_6} 353 run_cmd_host1 ip vrf exec ${VRF} ping -c1 -w1 ${HOST2_4} 355 run_cmd_host1 ip vrf exec ${VRF} ${ping6} -c1 -w1 ${HOST2_6} 365 run_cmd_host1 ip vrf exec ${VRF} ${ping6} -c1 -w1 ${HOST2_6} 381 run_cmd_host1 ip vrf exec ${VRF} ping -c1 -w1 ${XFRM2_4} 383 run_cmd_host1 ip vrf exec ${VRF} ${ping6} -c1 -w1 ${XFRM2_6}
|
| A D | arp_ndisc_evict_nocarrier.sh | 46 ip netns exec ${me} ping -6 -c1 -Iveth1 $V6_ADDR1 >/dev/null 2>&1 73 ping -c1 -I veth0 $V4_ADDR1 -q >/dev/null 2>&1
|
| A D | ynl.mk | 23 YNL_GENS_HASH := $(shell echo $(YNL_GENS) | sha1sum | cut -c1-8)
|
| A D | fib_nexthop_nongw.sh | 112 run_cmd ip netns exec $h1 ping -c1 192.168.1.1
|
| A D | fib_nexthop_multiprefix.sh | 243 run_cmd taskset -c ${c} ip netns exec ${h0} ping -c1 -w1 172.16.10${i}.1 246 run_cmd taskset -c ${c} ip netns exec ${h0} ${ping6} -c1 -w1 2001:db8:10${i}::1
|
| /tools/perf/util/ |
| A D | help-unknown-cmd.c | 25 const struct cmdname *const *c1 = p1, *const *c2 = p2; in levenshtein_compare() local 26 const char *s1 = (*c1)->name, *s2 = (*c2)->name; in levenshtein_compare() 27 int l1 = (*c1)->len; in levenshtein_compare()
|
| /tools/include/nolibc/ |
| A D | string.h | 26 int c1 = 0; in memcmp() local 28 while (ofs < n && !(c1 = ((unsigned char *)s1)[ofs] - ((unsigned char *)s2)[ofs])) { in memcmp() 31 return c1; in memcmp()
|
| /tools/testing/selftests/net/forwarding/ |
| A D | sch_ets_tests.sh | 232 start_traffic_pktsize 100 $h1.10 192.0.2.1 192.0.2.2 00:c1:a0:c1:a0:00 "-c 1"
|
| /tools/perf/arch/s390/include/ |
| A D | dwarf-regs-table.h | 31 REG_DWARFNUM_NAME(c1, 33),
|
| /tools/testing/selftests/bpf/ |
| A D | test_sockmap.c | 62 int s1, s2, c1, c2, p1, p2; variable 243 if (s == c1) in sock_to_string() 310 int *fds[4] = {&s1, &s2, &c1, &c2}; in sockmap_init_sockets() 312 s1 = s2 = p1 = p2 = c1 = c2 = 0; in sockmap_init_sockets() 409 c1, s1, c2, s2); in sockmap_init_sockets() 862 err = sockmap_init_ktls(opt->verbose, c1); in sendmsg_test() 925 err = msg_loop(c1, iov_count, iov_buf, in sendmsg_test() 975 sc = send(c1, buf, sizeof(buf), 0); in forever_ping_pong() 987 FD_SET(c1, &w); in forever_ping_pong() 1149 redir_fd = c1; in run_options() [all …]
|
| /tools/testing/selftests/bpf/benchs/ |
| A D | bench_sockmap.c | 98 #define c1 fds[0] macro 219 err = create_pair(&ctx.c1, &ctx.p1, SOCK_STREAM); in create_sockets() 231 ctx.c1, ctx.p1, ctx.c2, ctx.p2); in create_sockets() 465 target = ctx.c1; in producer()
|
| /tools/perf/tests/ |
| A D | code-reading.c | 55 char c1, c2; in read_objdump_chunk() local 58 c1 = *(*line)++; in read_objdump_chunk() 59 if (!isxdigit(c1)) in read_objdump_chunk() 66 **buf = (hex(c1) << 4) | hex(c2); in read_objdump_chunk()
|