/tools/testing/selftests/net/mptcp/ |
D | pm_nl_ctl.c | 41 int off = 0; in init_genl_req() local 46 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req() 48 gh = (void *)(data + off); in init_genl_req() 51 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req() 52 return off; in init_genl_req() 59 uint32_t off; in nl_error() local 74 memcpy(&off, RTA_DATA(attrs), 4); in nl_error() 76 (int)off); in nl_error() 155 int off = 0; in resolve_mptcp_pm_netlink() local 159 off = init_genl_req(data, GENL_ID_CTRL, CTRL_CMD_GETFAMILY, 0); in resolve_mptcp_pm_netlink() [all …]
|
/tools/include/linux/ |
D | filter.h | 39 .off = 0, \ 47 .off = 0, \ 57 .off = 0, \ 65 .off = 0, \ 75 .off = 0, \ 85 .off = 0, \ 93 .off = 0, \ 103 .off = 0, \ 111 .off = 0, \ 121 .off = 0, \ [all …]
|
/tools/lib/bpf/ |
D | xsk.c | 164 static void xsk_mmap_offsets_v1(struct xdp_mmap_offsets *off) in xsk_mmap_offsets_v1() argument 172 memcpy(&off_v1, off, sizeof(off_v1)); in xsk_mmap_offsets_v1() 174 off->rx.producer = off_v1.rx.producer; in xsk_mmap_offsets_v1() 175 off->rx.consumer = off_v1.rx.consumer; in xsk_mmap_offsets_v1() 176 off->rx.desc = off_v1.rx.desc; in xsk_mmap_offsets_v1() 177 off->rx.flags = off_v1.rx.consumer + sizeof(__u32); in xsk_mmap_offsets_v1() 179 off->tx.producer = off_v1.tx.producer; in xsk_mmap_offsets_v1() 180 off->tx.consumer = off_v1.tx.consumer; in xsk_mmap_offsets_v1() 181 off->tx.desc = off_v1.tx.desc; in xsk_mmap_offsets_v1() 182 off->tx.flags = off_v1.tx.consumer + sizeof(__u32); in xsk_mmap_offsets_v1() [all …]
|
/tools/perf/util/ |
D | topdown.c | 8 int off = 0; in topdown_filter_events() local 16 attr[i - off] = attr[i]; in topdown_filter_events() 18 off++; in topdown_filter_events() 20 attr[i - off] = NULL; in topdown_filter_events() 26 if (i - off == 0) { in topdown_filter_events()
|
D | evswitch.c | 21 if (evswitch->off && !evswitch->discarding) { in evswitch__discard() 22 if (evswitch->off != evsel) in evswitch__discard() 53 evswitch->off = perf_evlist__find_evsel_by_str(evlist, evswitch->off_name); in evswitch__init() 54 if (evswitch->off == NULL) { in evswitch__init()
|
/tools/testing/selftests/net/ |
D | txring_overwrite.c | 46 size_t off = 0; in build_packet() local 53 off += sizeof(*eth); in build_packet() 54 iph = buffer + off; in build_packet() 61 iph->tot_len = htons(blen - off); in build_packet() 64 off += sizeof(*iph); in build_packet() 65 udph = buffer + off; in build_packet() 68 udph->len = htons(blen - off); in build_packet() 71 off += sizeof(*udph); in build_packet() 72 memset(buffer + off, payload_char, blen - off); in build_packet()
|
D | psock_snd.c | 155 int off = 0; in build_packet() local 157 off += build_vnet_header(tbuf); in build_packet() 158 off += build_eth_header(tbuf + off); in build_packet() 159 off += build_ipv4_header(tbuf + off, payload_len); in build_packet() 160 off += build_udp_header(tbuf + off, payload_len); in build_packet() 162 if (off + payload_len > sizeof(tbuf)) in build_packet() 165 memset(tbuf + off, DATA_CHAR, payload_len); in build_packet() 167 return off + payload_len; in build_packet()
|
D | udpgso.c | 369 int fd, ret, alen, off = 0; in set_route_mtu() local 382 off += NLMSG_ALIGN(sizeof(*nh)); in set_route_mtu() 384 rt = (void *)(data + off); in set_route_mtu() 391 off += NLMSG_ALIGN(sizeof(*rt)); in set_route_mtu() 393 rta = (void *)(data + off); in set_route_mtu() 400 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 402 rta = (void *)(data + off); in set_route_mtu() 406 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 409 rta = (void *)(data + off); in set_route_mtu() 412 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() [all …]
|
/tools/testing/selftests/bpf/verifier/ |
D | wide_access.c | 1 #define BPF_SOCK_ADDR_STORE(field, off, res, err) \ argument 3 "wide store to bpf_sock_addr." #field "[" #off "]", \ 7 offsetof(struct bpf_sock_addr, field[off])), \ 38 #define BPF_SOCK_ADDR_LOAD(field, off, res, err) \ argument 40 "wide load from bpf_sock_addr." #field "[" #off "]", \ 43 offsetof(struct bpf_sock_addr, field[off])), \
|
/tools/testing/selftests/bpf/progs/ |
D | test_l4lb_noinline.c | 233 static __noinline int parse_icmpv6(void *data, void *data_end, __u64 off, in parse_icmpv6() argument 239 icmp_hdr = data + off; in parse_icmpv6() 244 off += sizeof(struct icmp6hdr); in parse_icmpv6() 245 ip6h = data + off; in parse_icmpv6() 255 static __noinline int parse_icmp(void *data, void *data_end, __u64 off, in parse_icmp() argument 261 icmp_hdr = data + off; in parse_icmp() 267 off += sizeof(struct icmphdr); in parse_icmp() 268 iph = data + off; in parse_icmp() 280 static __noinline bool parse_udp(void *data, __u64 off, void *data_end, in parse_udp() argument 284 udp = data + off; in parse_udp() [all …]
|
D | test_l4lb.c | 236 static __always_inline int parse_icmpv6(void *data, void *data_end, __u64 off, in parse_icmpv6() argument 242 icmp_hdr = data + off; in parse_icmpv6() 247 off += sizeof(struct icmp6hdr); in parse_icmpv6() 248 ip6h = data + off; in parse_icmpv6() 258 static __always_inline int parse_icmp(void *data, void *data_end, __u64 off, in parse_icmp() argument 264 icmp_hdr = data + off; in parse_icmp() 270 off += sizeof(struct icmphdr); in parse_icmp() 271 iph = data + off; in parse_icmp() 283 static __always_inline bool parse_udp(void *data, __u64 off, void *data_end, in parse_udp() argument 287 udp = data + off; in parse_udp() [all …]
|
D | test_xdp_noinline.c | 218 __u64 off = sizeof(struct eth_hdr); in calc_offset() local 220 off += sizeof(struct ipv6hdr); in calc_offset() 222 off += sizeof(struct icmp6hdr) + sizeof(struct ipv6hdr); in calc_offset() 224 off += sizeof(struct iphdr); in calc_offset() 226 off += sizeof(struct icmphdr) + sizeof(struct iphdr); in calc_offset() 228 return off; in calc_offset() 237 __u64 off = calc_offset(is_ipv6, is_icmp); in parse_udp() local 239 udp = data + off; in parse_udp() 259 __u64 off = calc_offset(is_ipv6, is_icmp); in parse_tcp() local 262 tcp = data + off; in parse_tcp() [all …]
|
D | test_sysctl_loop1.c | 46 unsigned char i, off = 0; in sysctl_tcp_mem() local 64 ret = bpf_strtoul(value + off, MAX_ULONG_STR_LEN, 0, in sysctl_tcp_mem() 68 off += ret & MAX_ULONG_STR_LEN; in sysctl_tcp_mem()
|
D | test_sysctl_loop2.c | 47 unsigned char i, off = 0; in sysctl_tcp_mem() local 62 ret = bpf_strtoul(value + off, MAX_ULONG_STR_LEN, 0, in sysctl_tcp_mem() 66 off += ret & MAX_ULONG_STR_LEN; in sysctl_tcp_mem()
|
D | test_sysctl_prog.c | 47 unsigned char i, off = 0; in sysctl_tcp_mem() local 62 ret = bpf_strtoul(value + off, MAX_ULONG_STR_LEN, 0, in sysctl_tcp_mem() 66 off += ret & MAX_ULONG_STR_LEN; in sysctl_tcp_mem()
|
D | fexit_bpf2bpf.c | 159 int new_test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in new_test_pkt_write_access_subprog() argument 166 if (off > sizeof(struct ethhdr) + sizeof(struct ipv6hdr)) in new_test_pkt_write_access_subprog() 169 tcp = data + off; in new_test_pkt_write_access_subprog()
|
D | test_pkt_access.c | 83 int test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in test_pkt_write_access_subprog() argument 89 if (off > sizeof(struct ethhdr) + sizeof(struct ipv6hdr)) in test_pkt_write_access_subprog() 92 tcp = data + off; in test_pkt_write_access_subprog()
|
/tools/testing/selftests/bpf/ |
D | bpf_legacy.h | 18 unsigned long long off) asm("llvm.bpf.load.byte"); 20 unsigned long long off) asm("llvm.bpf.load.half"); 22 unsigned long long off) asm("llvm.bpf.load.word");
|
D | test_xdp_vlan.sh | 117 ip link set dev lo xdpgeneric off 2>/dev/null > /dev/null 162 ip netns exec ns1 ethtool -K veth1 rxvlan off 163 ip netns exec ns2 ethtool -K veth2 rxvlan off 166 ip netns exec ns2 ethtool -K veth2 txvlan off 167 ip netns exec ns1 ethtool -K veth1 txvlan off 223 ip netns exec ns1 ip link set $DEVNS1 $XDP_MODE off
|
/tools/testing/selftests/memory-hotplug/ |
D | Makefile | 6 TEST_PROGS := mem-on-off-test.sh 9 …@/bin/bash ./mem-on-off-test.sh -r 10 && echo "memory-hotplug selftests: [PASS]" || echo "memory-h…
|
/tools/testing/selftests/cpu-hotplug/ |
D | Makefile | 4 TEST_PROGS := cpu-on-off-test.sh 9 @/bin/bash ./cpu-on-off-test.sh -a || echo "cpu-hotplug selftests: [FAIL]"
|
/tools/testing/selftests/net/forwarding/ |
D | ethtool.sh | 61 ethtool_set $h1 speed $speed autoneg off 62 ethtool_set $h2 speed $speed autoneg off 86 ethtool_set $h1 speed $speed1 autoneg off 87 ethtool_set $h2 speed $speed2 autoneg off 109 ethtool_set $h1 speed $speed autoneg off
|
/tools/testing/selftests/drivers/net/mlxsw/ |
D | sch_ets.sh | 23 ethtool -s $h2 speed 1000 autoneg off 24 ethtool -s $swp2 speed 1000 autoneg off
|
/tools/perf/scripts/python/ |
D | net_dropmonitor.py | 57 (sym, off) = get_sym(i) 60 print("%25s %25s %25s" % (sym, off, drop_log[i]))
|
/tools/bpf/ |
D | bpf_jit_disasm.c | 174 off_t off = 0; in get_last_jit_image() local 196 off += pmatch[0].rm_eo; in get_last_jit_image() 197 assert(off < hlen); in get_last_jit_image() 202 ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); in get_last_jit_image() 221 tmp = ptr = haystack + off; in get_last_jit_image()
|