/tools/testing/selftests/drivers/usb/usbip/ |
D | usbip_test.sh | 68 if [ ! -f src/usbip ]; then 75 src/usbip list -l; 82 src/usbipd -D; 85 src/usbip list -r localhost; 89 src/usbip bind -b $busid; 97 src/usbip bind -b $busid; 101 src/usbip list -r localhost; 105 src/usbip unbind -b $busid; 113 src/usbip unbind -b $busid; 117 src/usbip list -r localhost; [all …]
|
/tools/perf/tests/ |
D | mem.c | 29 union perf_mem_data_src src; in test__mem() local 31 memset(&src, 0, sizeof(src)); in test__mem() 33 src.mem_lvl = PERF_MEM_LVL_HIT; in test__mem() 34 src.mem_lvl_num = 4; in test__mem() 36 ret |= check(src, "N/AL4 hit"); in test__mem() 38 src.mem_remote = 1; in test__mem() 40 ret |= check(src, "N/ARemote L4 hit"); in test__mem() 42 src.mem_lvl = PERF_MEM_LVL_MISS; in test__mem() 43 src.mem_lvl_num = PERF_MEM_LVLNUM_PMEM; in test__mem() 44 src.mem_remote = 0; in test__mem() [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | test_sock_fields.c | 62 const struct bpf_sock *src) 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 | bpf_iter_tcp6.c | 79 const struct in6_addr *dest, *src; in dump_tcp6_sock() local 94 src = &sp->sk_v6_rcv_saddr; in dump_tcp6_sock() 125 src->s6_addr32[0], src->s6_addr32[1], in dump_tcp6_sock() 126 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tcp6_sock() 156 const struct in6_addr *dest, *src; in dump_tw_sock() local 162 src = &tw->tw_v6_rcv_saddr; in dump_tw_sock() 168 src->s6_addr32[0], src->s6_addr32[1], in dump_tw_sock() 169 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tw_sock() 186 struct in6_addr *src, *dest; in dump_req_sock() local 190 src = &irsk->ir_v6_loc_addr; in dump_req_sock() [all …]
|
D | test_core_reloc_mods.c | 46 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) argument 48 #define CORE_READ(dst, src) ({ \ argument 49 int __sz = sizeof(*(dst)) < sizeof(*(src)) ? sizeof(*(dst)) : \ 50 sizeof(*(src)); \ 52 (const char *)(src) + sizeof(*(src)) - __sz); \
|
D | bpf_iter_udp6.c | 36 const struct in6_addr *dest, *src; in dump_udp6() local 59 src = &inet->sk.sk_v6_rcv_saddr; in dump_udp6() 63 src->s6_addr32[0], src->s6_addr32[1], in dump_udp6() 64 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_udp6()
|
D | cgroup_skb_sk_lookup_kern.c | 21 static inline void set_ip(__u32 *dst, const struct in6_addr *src) in set_ip() argument 23 dst[0] = src->in6_u.u6_addr32[0]; in set_ip() 24 dst[1] = src->in6_u.u6_addr32[1]; in set_ip() 25 dst[2] = src->in6_u.u6_addr32[2]; in set_ip() 26 dst[3] = src->in6_u.u6_addr32[3]; in set_ip()
|
/tools/lib/bpf/ |
D | bpf_core_read.h | 41 #define __CORE_RELO(src, field, info) \ argument 42 __builtin_preserve_field_info((src)->field, BPF_FIELD_##info) 45 #define __CORE_BITFIELD_PROBE_READ(dst, src, fld) \ argument 48 __CORE_RELO(src, fld, BYTE_SIZE), \ 49 (const void *)src + __CORE_RELO(src, fld, BYTE_OFFSET)) 55 #define __CORE_BITFIELD_PROBE_READ(dst, src, fld) \ argument 57 (void *)dst + (8 - __CORE_RELO(src, fld, BYTE_SIZE)), \ 58 __CORE_RELO(src, fld, BYTE_SIZE), \ 59 (const void *)src + __CORE_RELO(src, fld, BYTE_OFFSET)) 246 #define bpf_core_read(dst, sz, src) \ argument [all …]
|
/tools/arch/x86/include/asm/ |
D | pvclock.h | 9 u64 pvclock_clocksource_read(struct pvclock_vcpu_time_info *src); 10 u8 pvclock_read_flags(struct pvclock_vcpu_time_info *src); 12 unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src); 18 unsigned pvclock_read_begin(const struct pvclock_vcpu_time_info *src) in pvclock_read_begin() argument 20 unsigned version = src->version & ~1; in pvclock_read_begin() 27 bool pvclock_read_retry(const struct pvclock_vcpu_time_info *src, in pvclock_read_retry() argument 32 return version != src->version; in pvclock_read_retry() 79 u64 __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src, u64 tsc) in __pvclock_read_cycles() argument 81 u64 delta = tsc - src->tsc_timestamp; in __pvclock_read_cycles() 82 u64 offset = pvclock_scale_delta(delta, src->tsc_to_system_mul, in __pvclock_read_cycles() [all …]
|
/tools/include/nolibc/ |
D | string.h | 31 void *_nolibc_memcpy_up(void *dst, const void *src, size_t len) in _nolibc_memcpy_up() argument 36 ((char *)dst)[pos] = ((const char *)src)[pos]; in _nolibc_memcpy_up() 43 void *_nolibc_memcpy_down(void *dst, const void *src, size_t len) in _nolibc_memcpy_down() argument 47 ((char *)dst)[len] = ((const char *)src)[len]; in _nolibc_memcpy_down() 56 void *memmove(void *dst, const void *src, size_t len) in memmove() argument 63 if (dst < src) { in memmove() 70 ((char *)dst)[pos] = ((const char *)src)[pos]; in memmove() 78 void *memcpy(void *dst, const void *src, size_t len) in memcpy() argument 80 return _nolibc_memcpy_up(dst, src, len); in memcpy() 122 char *strcpy(char *dst, const char *src) in strcpy() argument [all …]
|
/tools/objtool/arch/x86/ |
D | decode.c | 216 op->src.type = OP_SRC_ADD; in arch_decode_instruction() 217 op->src.reg = modrm_reg; in arch_decode_instruction() 228 op->src.type = OP_SRC_REG; in arch_decode_instruction() 229 op->src.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction() 239 op->src.type = OP_SRC_POP; in arch_decode_instruction() 250 op->src.type = OP_SRC_CONST; in arch_decode_instruction() 298 op->src.type = OP_SRC_ADD; in arch_decode_instruction() 299 op->src.reg = CFI_SP; in arch_decode_instruction() 300 op->src.offset = imm; in arch_decode_instruction() 309 op->src.type = OP_SRC_AND; in arch_decode_instruction() [all …]
|
/tools/perf/arch/x86/tests/ |
D | gen-insn-x86-dat.sh | 20 gcc -g -c insn-x86-dat-src.c 22 objdump -dSw insn-x86-dat-src.o | awk -f gen-insn-x86-dat.awk > insn-x86-dat-64.c 24 rm -f insn-x86-dat-src.o 28 gcc -g -c -m32 insn-x86-dat-src.c 30 objdump -dSw insn-x86-dat-src.o | awk -f gen-insn-x86-dat.awk > insn-x86-dat-32.c 32 rm -f insn-x86-dat-src.o
|
/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 131 src = zalloc(size); in __bench_mem_function() 132 if (src == 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() 168 free(src); in __bench_mem_function() 226 static void memcpy_prefault(memcpy_t fn, size_t size, void *src, void *dst) in memcpy_prefault() argument 229 memset(src, 0, size); in memcpy_prefault() [all …]
|
/tools/testing/selftests/net/ |
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 …]
|
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 …p -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 $… 54 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 … 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 | test_vxlan_mdb.sh | 767 local src=$1; shift 774 …run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 grp $grp src $src permanent dst $vtep_ip src_vni … 778 …run_cmd "bridge -n $ns1 mdb del dev vx0 port vx0 grp $grp src $src permanent dst $vtep_ip src_vni … 781 …run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 grp $grp src $src permanent filter_mode include d… 784 …run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 grp $grp src $src permanent source_list $src dst … 790 …run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 grp $all_zeros_grp src $src permanent dst $vtep_i… 798 local src=192.0.2.129 806 sg_common $ns1 $grp $src $vtep_ip $all_zeros_grp 813 local src=2001:db8:100::1 821 sg_common $ns1 $grp $src $vtep_ip $all_zeros_grp [all …]
|
D | ipsec.c | 426 struct in_addr src, struct in_addr dst) in ip4_route_set() argument 450 if (rtattr_pack(&req.nh, sizeof(req), RTA_PREFSRC, &src, sizeof(src))) in ip4_route_set() 481 static int init_child(int nsfd, char *veth, unsigned int src, unsigned int dst) in init_child() argument 483 struct in_addr intsrc = inet_makeaddr(INADDR_B, src); in init_child() 484 struct in_addr tunsrc = inet_makeaddr(INADDR_A, src); in init_child() 909 static inline uint32_t gen_spi(struct in_addr src) in gen_spi() argument 911 return htonl(inet_lnaof(src)); in gen_spi() 915 struct in_addr src, struct in_addr dst, in xfrm_state_add() argument 932 memcpy(&req.info.sel.saddr, &src, sizeof(src)); in xfrm_state_add() 943 memcpy(&req.info.saddr, &src, sizeof(src)); in xfrm_state_add() [all …]
|
/tools/perf/util/ |
D | memswap.c | 6 void mem_bswap_32(void *src, int byte_size) in mem_bswap_32() argument 8 u32 *m = src; in mem_bswap_32() 16 void mem_bswap_64(void *src, int byte_size) in mem_bswap_64() argument 18 u64 *m = src; in mem_bswap_64()
|
D | addr_location.c | 35 void addr_location__copy(struct addr_location *dst, struct addr_location *src) in addr_location__copy() argument 40 *dst = *src; in addr_location__copy() 41 dst->thread = thread__get(src->thread); in addr_location__copy() 42 dst->maps = maps__get(src->maps); in addr_location__copy() 43 dst->map = map__get(src->map); in addr_location__copy()
|
D | compress.h | 33 void *src, size_t src_size, size_t max_record_size, 36 size_t zstd_decompress_stream(struct zstd_data *data, void *src, size_t src_size, 53 void *src __maybe_unused, size_t src_size __maybe_unused, in zstd_compress_stream_to_records() 60 static inline size_t zstd_decompress_stream(struct zstd_data *data __maybe_unused, void *src __mayb… in zstd_decompress_stream()
|
/tools/include/linux/ |
D | bitmap.h | 50 static inline bool bitmap_empty(const unsigned long *src, unsigned int nbits) in bitmap_empty() argument 53 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty() 55 return find_first_bit(src, nbits) == nbits; in bitmap_empty() 58 static inline bool bitmap_full(const unsigned long *src, unsigned int nbits) in bitmap_full() argument 61 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full() 63 return find_first_zero_bit(src, nbits) == nbits; in bitmap_full() 66 static inline unsigned int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight() argument 69 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight() 70 return __bitmap_weight(src, nbits); in bitmap_weight()
|
/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 25 srcp = src + MIN_REDZONE + src_off; in do_one() 28 memset(src, POISON, BUFLEN); in do_one() 65 char *src, *dst, *redzone, *fill; in test_copy_loop() local 69 src = 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/testing/selftests/drivers/net/mlxsw/ |
D | mlxsw_lib.sh | 42 local src=$1; shift 45 log_test_skip $src:$caller "(Spectrum-$rev only)" 53 local src=${BASH_SOURCE[1]} 57 if __mlxsw_only_on_spectrum "$rev" "$caller" "$src"; then
|
/tools/testing/selftests/netfilter/ |
D | connect_close.c | 51 static void do_accept(const struct sockaddr_in *src) in do_accept() argument 61 bind(s, (struct sockaddr *)src, sizeof(*src)); in do_accept() 74 struct sockaddr_in src = { in accept_loop() local 79 inet_pton(AF_INET, "127.0.0.1", &src.sin_addr); in accept_loop() 84 do_accept(&src); in accept_loop()
|
/tools/usb/usbip/ |
D | .gitignore | 21 src/Makefile 22 src/Makefile.in 32 src/usbip 33 src/usbipd
|