/tools/testing/selftests/bpf/progs/ |
D | test_sock_fields.c | 61 static void skcpy(struct bpf_sock *dst, in skcpy() argument 64 dst->bound_dev_if = src->bound_dev_if; in skcpy() 65 dst->family = src->family; in skcpy() 66 dst->type = src->type; in skcpy() 67 dst->protocol = src->protocol; in skcpy() 68 dst->mark = src->mark; in skcpy() 69 dst->priority = src->priority; in skcpy() 70 dst->src_ip4 = src->src_ip4; in skcpy() 71 dst->src_ip6[0] = src->src_ip6[0]; in skcpy() 72 dst->src_ip6[1] = src->src_ip6[1]; in skcpy() [all …]
|
D | test_core_reloc_ptr_as_arr.c | 20 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) argument
|
D | cgroup_skb_sk_lookup_kern.c | 22 static inline void set_ip(__u32 *dst, const struct in6_addr *src) in set_ip() argument 24 dst[0] = src->in6_u.u6_addr32[0]; in set_ip() 25 dst[1] = src->in6_u.u6_addr32[1]; in set_ip() 26 dst[2] = src->in6_u.u6_addr32[2]; in set_ip() 27 dst[3] = src->in6_u.u6_addr32[3]; in set_ip()
|
D | test_core_reloc_nesting.c | 34 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) argument
|
D | test_core_reloc_primitives.c | 29 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) argument
|
D | test_core_reloc_flavors.c | 43 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) argument
|
D | test_core_reloc_misc.c | 36 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) argument
|
/tools/testing/selftests/timers/ |
D | set-tz.c | 28 int set_tz(int min, int dst) in set_tz() argument 33 tz.tz_dsttime = dst; in set_tz() 61 int min, dst; in main() local 64 dst = get_tz_dst(); in main() 65 printf("tz_minuteswest started at %i, dst at %i\n", min, dst); in main() 70 ret = set_tz(i, dst); in main() 82 if (!set_tz(-15*60-1, dst)) { in main() 87 if (!set_tz(15*60+1, dst)) { in main() 92 if (!set_tz(-24*60, dst)) { in main() 97 if (!set_tz(24*60, dst)) { in main() [all …]
|
/tools/include/linux/ |
D | bitmap.h | 14 void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1, 16 int __bitmap_and(unsigned long *dst, const unsigned long *bitmap1, 33 static inline void bitmap_zero(unsigned long *dst, int nbits) in bitmap_zero() argument 36 *dst = 0UL; in bitmap_zero() 39 memset(dst, 0, len); in bitmap_zero() 43 static inline void bitmap_fill(unsigned long *dst, unsigned int nbits) in bitmap_fill() argument 48 memset(dst, 0xff, len); in bitmap_fill() 50 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill() 76 static inline void bitmap_or(unsigned long *dst, const unsigned long *src1, in bitmap_or() argument 80 *dst = *src1 | *src2; in bitmap_or() [all …]
|
/tools/testing/selftests/bpf/ |
D | test_skb_cgroup_id_user.c | 28 struct sockaddr_in6 *dst) in mk_dst_addr() argument 30 memset(dst, 0, sizeof(*dst)); in mk_dst_addr() 32 dst->sin6_family = AF_INET6; in mk_dst_addr() 33 dst->sin6_port = htons(1025); in mk_dst_addr() 35 if (inet_pton(AF_INET6, ip, &dst->sin6_addr) != 1) { in mk_dst_addr() 40 dst->sin6_scope_id = if_nametoindex(iface); in mk_dst_addr() 41 if (!dst->sin6_scope_id) { in mk_dst_addr() 51 struct sockaddr_in6 dst; in send_packet() local 56 if (mk_dst_addr(LINKLOCAL_MULTICAST, iface, &dst)) in send_packet() 65 if (sendto(fd, &msg, sizeof(msg), 0, (const struct sockaddr *)&dst, in send_packet() [all …]
|
/tools/testing/selftests/powerpc/copyloops/ |
D | validate.c | 17 static void do_one(char *src, char *dst, unsigned long src_off, in do_one() argument 26 dstp = dst + MIN_REDZONE + dst_off; in do_one() 29 memset(dst, POISON, BUFLEN); in do_one() 50 if (memcmp(dst, redzone, dstp - dst)) { in do_one() 56 if (memcmp(dstp+len, redzone, dst+BUFLEN-(dstp+len))) { in do_one() 65 char *src, *dst, *redzone, *fill; in test_copy_loop() local 70 dst = memalign(BUFLEN, BUFLEN); in test_copy_loop() 74 if (!src || !dst || !redzone || !fill) { in test_copy_loop() 88 do_one(src, dst, src_off, dst_off, len, in test_copy_loop()
|
/tools/perf/util/ |
D | zstd.c | 57 size_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size, in zstd_compress_stream_to_records() argument 67 record = dst; in zstd_compress_stream_to_records() 70 dst += size; in zstd_compress_stream_to_records() 72 output = (ZSTD_outBuffer){ dst, (dst_size > max_record_size) ? in zstd_compress_stream_to_records() 79 memcpy(dst, src, src_size); in zstd_compress_stream_to_records() 85 dst += size; in zstd_compress_stream_to_records() 93 void *dst, size_t dst_size) in zstd_decompress_stream() argument 97 ZSTD_outBuffer output = { dst, dst_size, 0 }; in zstd_decompress_stream() 106 output.dst = dst + output.pos; in zstd_decompress_stream()
|
D | expr.l | 41 char *dst = str; in normalize() local 45 *dst++ = '/'; in normalize() 47 *dst++ = *++str; in normalize() 54 *dst++ = '0'; in normalize() 57 *dst++ = paramval[i++]; in normalize() 62 *dst++ = *str; in normalize() 66 *dst = 0x0; in normalize()
|
D | compress.h | 32 size_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size, 37 void *dst, size_t dst_size); 52 void *dst __maybe_unused, size_t dst_size __maybe_unused, in zstd_compress_stream_to_records() 61 size_t src_size __maybe_unused, void *dst __maybe_unused, in zstd_decompress_stream()
|
/tools/testing/selftests/net/forwarding/ |
D | vxlan_bridge_1q.sh | 190 bridge fdb append dev vx10 00:00:00:00:00:00 dst 192.0.2.34 self 191 bridge fdb append dev vx10 00:00:00:00:00:00 dst 192.0.2.50 self 193 bridge fdb append dev vx20 00:00:00:00:00:00 dst 192.0.2.34 self 194 bridge fdb append dev vx20 00:00:00:00:00:00 dst 192.0.2.50 self 199 bridge fdb del dev vx20 00:00:00:00:00:00 dst 192.0.2.50 self 200 bridge fdb del dev vx20 00:00:00:00:00:00 dst 192.0.2.34 self 202 bridge fdb del dev vx10 00:00:00:00:00:00 dst 192.0.2.50 self 203 bridge fdb del dev vx10 00:00:00:00:00:00 dst 192.0.2.34 self 277 bridge fdb append dev vx10 00:00:00:00:00:00 dst 192.0.2.17 self 278 bridge fdb append dev vx10 00:00:00:00:00:00 dst $other_in_addr self [all …]
|
D | vxlan_bridge_1d.sh | 148 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self 149 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self 157 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self 158 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self 212 bridge fdb append dev vx2 00:00:00:00:00:00 dst 192.0.2.17 self 213 bridge fdb append dev vx2 00:00:00:00:00:00 dst $other_in_addr self 308 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self 309 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self 315 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self 316 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self [all …]
|
/tools/perf/bench/ |
D | mem-functions.c | 112 u64 (*do_cycles)(const struct function *r, size_t size, void *src, void *dst); 113 double (*do_gettimeofday)(const struct function *r, size_t size, void *src, void *dst); 123 void *src = NULL, *dst = zalloc(size); in __bench_mem_function() local 127 if (dst == NULL) in __bench_mem_function() 140 result_cycles = info->do_cycles(r, size, src, dst); in __bench_mem_function() 142 result_bps = info->do_gettimeofday(r, size, src, dst); in __bench_mem_function() 169 free(dst); in __bench_mem_function() 226 static void memcpy_prefault(memcpy_t fn, size_t size, void *src, void *dst) in memcpy_prefault() argument 235 fn(dst, src, size); in memcpy_prefault() 238 static u64 do_memcpy_cycles(const struct function *r, size_t size, void *src, void *dst) in do_memcpy_cycles() argument [all …]
|
/tools/lib/bpf/ |
D | str_error.c | 15 char *libbpf_strerror_r(int err, char *dst, int len) in libbpf_strerror_r() argument 17 int ret = strerror_r(err < 0 ? -err : err, dst, len); in libbpf_strerror_r() 19 snprintf(dst, len, "ERROR: strerror_r(%d)=%d", err, ret); in libbpf_strerror_r() 20 return dst; in libbpf_strerror_r()
|
D | bpf_core_read.h | 44 #define __CORE_BITFIELD_PROBE_READ(dst, src, fld) \ argument 46 (void *)dst, \ 54 #define __CORE_BITFIELD_PROBE_READ(dst, src, fld) \ argument 56 (void *)dst + (8 - __CORE_RELO(src, fld, BYTE_SIZE)), \ 205 #define bpf_core_read(dst, sz, src) \ argument 206 bpf_probe_read_kernel(dst, sz, \ 214 #define bpf_core_read_str(dst, sz, src) \ argument 215 bpf_probe_read_kernel_str(dst, sz, \ 271 #define ___read(read_fn, dst, src_type, src, accessor) \ argument 272 read_fn((void *)(dst), sizeof(*(dst)), &((src_type)(src))->accessor) [all …]
|
/tools/testing/selftests/net/ |
D | xfrm_policy.sh | 39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu… 53 …xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 $KEY_SHA mo… 54 …s xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 $KEY_SHA m… 76 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 79 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 82 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block 108 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/23 dir fwd priority 200 action block 113 …ip -net $ns xfrm policy add src 10.253.1.$((RANDOM%255))/$p dst 10.254.1.$((RANDOM%255))/$p dir fw… 123 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null [all …]
|
D | vrf-xfrm-tests.sh | 222 src ${h1_4} dst ${h2_4} ${devarg} dir out \ 223 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel 227 src ${h1_4} dst ${h2_4} dir in \ 228 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel 232 src ${h2_4} dst ${h1_4} ${devarg} dir in \ 233 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel 237 src ${h2_4} dst ${h1_4} dir out \ 238 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel 243 src ${h1_6} dst ${h2_6} ${devarg} dir out \ 244 tmpl src ${HOST1_6} dst ${HOST2_6} proto esp mode tunnel [all …]
|
/tools/testing/selftests/drivers/net/mlxsw/ |
D | vxlan_fdb_veto.sh | 53 dst 198.51.100.2 2>/dev/null 57 dst 198.51.100.2 2>&1 >/dev/null | grep -q mlxsw_spectrum 68 dst 198.51.100.2 72 dst 198.51.100.2 port 1234 2>/dev/null 76 dst 198.51.100.2 port 1234 2>&1 >/dev/null \ 88 dst 198.51.100.2 92 dst 198.51.100.3 port 1234 2>/dev/null 96 dst 198.51.100.3 port 1234 2>&1 >/dev/null \
|
D | vxlan_flooding.sh | 165 dst 198.51.100.$lsb 255 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.8 256 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.9 257 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.10 267 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.2 268 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.3 269 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.4 279 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.11 280 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.12 281 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.13 [all …]
|
/tools/lib/ |
D | bitmap.c | 21 void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1, in __bitmap_or() argument 28 dst[k] = bitmap1[k] | bitmap2[k]; in __bitmap_or() 60 int __bitmap_and(unsigned long *dst, const unsigned long *bitmap1, in __bitmap_and() argument 68 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in __bitmap_and() 70 result |= (dst[k] = bitmap1[k] & bitmap2[k] & in __bitmap_and()
|
/tools/build/feature/ |
D | test-libelf-getphdrnum.c | 6 size_t dst; in main() local 8 return elf_getphdrnum(0, &dst); in main()
|