Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 127) sorted by relevance

123456

/tools/testing/selftests/drivers/usb/usbip/
Dusbip_test.sh68 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/
Dmem.c29 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 …]
D.gitignore2 llvm-src-base.c
3 llvm-src-kbuild.c
4 llvm-src-prologue.c
5 llvm-src-relocation.c
/tools/testing/selftests/bpf/progs/
Dtest_sock_fields.c62 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 …]
Dbpf_iter_tcp6.c80 const struct in6_addr *dest, *src; in dump_tcp6_sock() local
95 src = &sp->sk_v6_rcv_saddr; in dump_tcp6_sock()
126 src->s6_addr32[0], src->s6_addr32[1], in dump_tcp6_sock()
127 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tcp6_sock()
157 const struct in6_addr *dest, *src; in dump_tw_sock() local
163 src = &tw->tw_v6_rcv_saddr; in dump_tw_sock()
169 src->s6_addr32[0], src->s6_addr32[1], in dump_tw_sock()
170 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tw_sock()
187 struct in6_addr *src, *dest; in dump_req_sock() local
191 src = &irsk->ir_v6_loc_addr; in dump_req_sock()
[all …]
Dbpf_iter_udp6.c37 const struct in6_addr *dest, *src; in dump_udp6() local
60 src = &inet->sk.sk_v6_rcv_saddr; in dump_udp6()
64 src->s6_addr32[0], src->s6_addr32[1], in dump_udp6()
65 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_udp6()
Dcgroup_skb_sk_lookup_kern.c22 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()
/tools/objtool/arch/x86/
Ddecode.c148 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
149 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
160 op->src.type = OP_SRC_REG; in arch_decode_instruction()
161 op->src.reg = op_to_cfi_reg[op1 & 0x7][rex_b]; in arch_decode_instruction()
171 op->src.type = OP_SRC_POP; in arch_decode_instruction()
182 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
199 op->src.type = OP_SRC_AND; in arch_decode_instruction()
200 op->src.reg = CFI_SP; in arch_decode_instruction()
201 op->src.offset = insn.immediate.value; in arch_decode_instruction()
217 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
[all …]
/tools/lib/bpf/
Dbpf_core_read.h40 #define __CORE_RELO(src, field, info) \ argument
41 __builtin_preserve_field_info((src)->field, BPF_FIELD_##info)
44 #define __CORE_BITFIELD_PROBE_READ(dst, src, fld) \ argument
47 __CORE_RELO(src, fld, BYTE_SIZE), \
48 (const void *)src + __CORE_RELO(src, fld, BYTE_OFFSET))
54 #define __CORE_BITFIELD_PROBE_READ(dst, src, fld) \ argument
56 (void *)dst + (8 - __CORE_RELO(src, fld, BYTE_SIZE)), \
57 __CORE_RELO(src, fld, BYTE_SIZE), \
58 (const void *)src + __CORE_RELO(src, fld, BYTE_OFFSET))
205 #define bpf_core_read(dst, sz, src) \ argument
[all …]
/tools/perf/arch/x86/tests/
Dgen-insn-x86-dat.sh20 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/util/
Dmemswap.c6 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()
Dcompress.h33 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/perf/bench/
Dmem-functions.c112 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/
Dvrf-xfrm-tests.sh222 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 …]
Dxfrm_policy.sh39 …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 …]
Dipsec.c388 struct in_addr src, struct in_addr dst) in ip4_route_set() argument
412 if (rtattr_pack(&req.nh, sizeof(req), RTA_PREFSRC, &src, sizeof(src))) in ip4_route_set()
443 static int init_child(int nsfd, char *veth, unsigned int src, unsigned int dst) in init_child() argument
445 struct in_addr intsrc = inet_makeaddr(INADDR_B, src); in init_child()
446 struct in_addr tunsrc = inet_makeaddr(INADDR_A, src); in init_child()
921 static inline uint32_t gen_spi(struct in_addr src) in gen_spi() argument
923 return htonl(inet_lnaof(src)); in gen_spi()
927 struct in_addr src, struct in_addr dst, in xfrm_state_add() argument
944 memcpy(&req.info.sel.saddr, &src, sizeof(src)); in xfrm_state_add()
955 memcpy(&req.info.saddr, &src, sizeof(src)); in xfrm_state_add()
[all …]
/tools/include/linux/
Dbitmap.h53 static inline int bitmap_empty(const unsigned long *src, unsigned nbits) in bitmap_empty() argument
56 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()
58 return find_first_bit(src, nbits) == nbits; in bitmap_empty()
61 static inline int bitmap_full(const unsigned long *src, unsigned int nbits) in bitmap_full() argument
64 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()
66 return find_first_zero_bit(src, nbits) == nbits; in bitmap_full()
69 static inline int bitmap_weight(const unsigned long *src, int nbits) in bitmap_weight() argument
72 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
73 return __bitmap_weight(src, nbits); in bitmap_weight()
/tools/testing/selftests/powerpc/copyloops/
Dvalidate.c17 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()
Dexc_validate.c83 unsigned long src, dst, len; in test_copy_exception() local
105 for (src = 0; src < MAX_LEN; src++) { in test_copy_exception()
109 do_one_test(q+dst, q+src, len); in test_copy_exception()
/tools/testing/selftests/bpf/prog_tests/
Dsockmap_basic.c51 static void compare_cookies(struct bpf_map *src, struct bpf_map *dst) in compare_cookies() argument
53 __u32 i, max_entries = bpf_map__max_entries(src); in compare_cookies()
56 src_fd = bpf_map__fd(src); in compare_cookies()
141 int err, prog, src, duration = 0; in test_sockmap_update() local
157 src = bpf_map__fd(skel->maps.src); in test_sockmap_update()
163 err = bpf_map_update_elem(src, &zero, &sk, BPF_NOEXIST); in test_sockmap_update()
179 compare_cookies(skel->maps.src, dst_map); in test_sockmap_update()
206 struct bpf_map *src; in test_sockmap_copy() local
214 src = skel->maps.sockmap; in test_sockmap_copy()
215 num_elems = bpf_map__max_entries(src); in test_sockmap_copy()
[all …]
Dd_path.c18 } src; variable
25 return readlink(buf, src.paths[src.cnt++], MAX_PATH_LEN); in set_pathname()
134 CHECK(strncmp(src.paths[i], bss->paths_stat[i], MAX_PATH_LEN), in test_d_path()
137 i, src.paths[i], bss->paths_stat[i]); in test_d_path()
138 CHECK(strncmp(src.paths[i], bss->paths_close[i], MAX_PATH_LEN), in test_d_path()
141 i, src.paths[i], bss->paths_close[i]); in test_d_path()
/tools/usb/usbip/
D.gitignore21 src/Makefile
22 src/Makefile.in
32 src/usbip
33 src/usbipd
/tools/bpf/bpftool/
Dgen.c214 const char *src, *end; in codegen() local
224 src = template; in codegen()
228 while ((c = *src++)) { in codegen()
235 src - template - 1, template); in codegen()
241 while (*src) { in codegen()
243 for (n = skip_tabs; n > 0; n--, src++) { in codegen()
244 if (*src != '\t') { in codegen()
246 src - template - 1, template); in codegen()
252 end = strchrnul(src, '\n'); in codegen()
253 for (n = end - src; n > 0 && isspace(src[n - 1]); n--) in codegen()
[all …]
/tools/lib/
Dstring.c29 void *memdup(const void *src, size_t len) in memdup() argument
34 memcpy(p, src, len); in memdup()
103 size_t __weak strlcpy(char *dest, const char *src, size_t size) in strlcpy() argument
105 size_t ret = strlen(src); in strlcpy()
109 memcpy(dest, src, len); in strlcpy()
/tools/testing/selftests/arm64/mte/
Dcheck_buffer_fill.c263 char *src, *dst; in check_buffer_by_block_iterate() local
270 src = (char *)mte_allocate_memory(size, mem_type, 0, false); in check_buffer_by_block_iterate()
271 if (check_allocated_memory(src, size, mem_type, false) != KSFT_PASS) in check_buffer_by_block_iterate()
276 mte_free_memory((void *)src, size, mem_type, false); in check_buffer_by_block_iterate()
286 src = (char *)mte_allocate_memory(size, mem_type, 0, true); in check_buffer_by_block_iterate()
287 if (check_allocated_memory(src, size, mem_type, true) != KSFT_PASS) { in check_buffer_by_block_iterate()
293 src = (char *)mte_allocate_memory(size, mem_type, 0, true); in check_buffer_by_block_iterate()
294 if (check_allocated_memory(src, size, mem_type, true) != KSFT_PASS) in check_buffer_by_block_iterate()
299 mte_free_memory((void *)src, size, mem_type, true); in check_buffer_by_block_iterate()
311 memset((void *)src, (int)'1', size); in check_buffer_by_block_iterate()
[all …]

123456