Home
last modified time | relevance | path

Searched refs:p1 (Results 1 – 25 of 215) sorted by relevance

123456789

/tools/testing/selftests/bpf/prog_tests/
A Dtc_change_tail.c16 int c1, p1; in test_tc_change_tail() local
30 ret = create_pair(AF_INET, SOCK_DGRAM, &c1, &p1); in test_tc_change_tail()
34 ret = xsend(p1, "Tr", 2, 0); in test_tc_change_tail()
40 ret = xsend(p1, "G", 1, 0); in test_tc_change_tail()
46 ret = xsend(p1, "E", 1, 0); in test_tc_change_tail()
52 ret = xsend(p1, "Z", 1, 0); in test_tc_change_tail()
59 close(p1); in test_tc_change_tail()
A Dsockmap_strp.c94 int c0 = -1, p0 = -1, c1 = -1, p1 = -1; in test_sockmap_strp_dispatch_pkt() local
114 err = create_socket_pairs(family, sotype, &c0, &c1, &p0, &p1); in test_sockmap_strp_dispatch_pkt()
122 err = bpf_map_update_elem(map, &one, &p1, BPF_NOEXIST); in test_sockmap_strp_dispatch_pkt()
158 close(p1); 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()
393 err = bpf_map_update_elem(map, &one, &p1, BPF_NOEXIST); in test_sockmap_strp_verdict()
429 close(p1); in test_sockmap_strp_verdict()
A Dsockmap_basic.c514 shutdown(p1, SHUT_WR); in test_sockmap_skb_verdict_shutdown()
533 close(p1); in test_sockmap_skb_verdict_shutdown()
577 sent = xsend(p1, &buf, sizeof(buf), 0); in test_sockmap_skb_verdict_fionread()
592 close(p1); in test_sockmap_skb_verdict_fionread()
604 int c1, p1, sent, recvd; in test_sockmap_skb_verdict_change_tail() local
623 sent = xsend(p1, "Tr", 2, 0); in test_sockmap_skb_verdict_change_tail()
629 sent = xsend(p1, "G", 1, 0); in test_sockmap_skb_verdict_change_tail()
635 sent = xsend(p1, "E", 1, 0); in test_sockmap_skb_verdict_change_tail()
643 close(p1); in test_sockmap_skb_verdict_change_tail()
662 sent = xsend(p1, snd, sizeof(snd), 0); in test_sockmap_skb_verdict_peek_helper()
[all …]
/tools/testing/selftests/ftrace/test.d/instances/
A Dinstance-event.tc47 p1=$!
48 echo $p1
62 kill -1 $p1
65 wait $p1 $p2 $p3
99 p1=$!
100 echo $p1
121 kill -1 $p1
128 wait $p1 $p2 $p3 $p4 $p5
A Dinstance.tc39 p1=$!
40 echo $p1
61 kill -1 $p1
68 wait $p1 $p2 $p3 $p4 $p5
/tools/testing/selftests/net/
A Dfib-onlink-tests.sh14 NETIFS[p1]=veth1
26 V4ADDRS[p1]=169.254.1.1
37 V6ADDRS[p1]=2001:db8:101::1
186 ip li add ${NETIFS[p1]} type veth peer name ${NETIFS[p2]}
311 run_ip 254 ${TEST_NET4[1]}.11 ${V4ADDRS[p1]} ${NETIFS[p1]} 2 \
367 run_ip6 254 ${TEST_NET6[1]}::1 ${V6ADDRS[p1]/::*}::64 ${NETIFS[p1]} 0 "unicast connected"
422 lladdr=$(get_linklocal ${NETIFS[p1]}) || return 1
424 run_ip6 254 ${TEST_NET6[1]}::11 ${V6ADDRS[p1]} ${NETIFS[p1]} 2 \
426 run_ip6 254 ${TEST_NET6[1]}::12 ${lladdr} ${NETIFS[p1]} 2 \
428 run_ip6 254 ${TEST_NET6[1]}::12 ${MCAST6} ${NETIFS[p1]} 2 \
[all …]
/tools/mm/
A Dpage_owner_sort.c128 const struct block_list *l1 = p1, *l2 = p2; in compare_txt()
135 const struct block_list *l1 = p1, *l2 = p2; in compare_stacktrace()
142 const struct block_list *l1 = p1, *l2 = p2; in compare_num()
149 const struct block_list *l1 = p1, *l2 = p2; in compare_page_num()
192 return compare_txt(p1, p2); in compare_cull_condition()
194 return compare_stacktrace(p1, p2); in compare_cull_condition()
196 return compare_pid(p1, p2); in compare_cull_condition()
198 return compare_tgid(p1, p2); in compare_cull_condition()
200 return compare_comm(p1, p2); in compare_cull_condition()
202 return compare_allocator(p1, p2); in compare_cull_condition()
[all …]
/tools/testing/selftests/bpf/progs/
A Dpercpu_alloc_array.c132 struct val_t __percpu_kptr *p, *p1; in BPF_PROG() local
151 p1 = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
152 if (p1) { in BPF_PROG()
154 bpf_percpu_obj_drop(p1); in BPF_PROG()
170 p1 = bpf_kptr_xchg(&e->pc, NULL); in BPF_PROG()
171 if (!p1) in BPF_PROG()
184 bpf_percpu_obj_drop(p1); in BPF_PROG()
A Dpercpu_alloc_fail.c90 struct val_t __percpu_kptr *p, *p1; in BPF_PROG() local
103 p1 = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
104 if (p1) in BPF_PROG()
105 bpf_percpu_obj_drop(p1); in BPF_PROG()
/tools/testing/selftests/bpf/
A Dtrace_helpers.h16 typedef int (*ksym_cmp_t)(const void *p1, const void *p2);
17 typedef int (*ksym_search_cmp_t)(const void *p1, const struct ksym *p2);
29 struct ksym *search_kallsyms_custom_local(struct ksyms *ksyms, const void *p1,
/tools/perf/util/
A Dtime-utils.c286 char *str, *p1, *p2; in percent_comma_split() local
294 p1 = str; in percent_comma_split()
296 while (p1 < str + len) { in percent_comma_split()
302 p2 = strchr(p1, ','); in percent_comma_split()
306 ret = (func)(p1, &ptime_buf[i], start, end); in percent_comma_split()
318 p1 = p2 + 1; in percent_comma_split()
393 const char *p1, *p2; in perf_time__range_alloc() local
403 p1 = ostr; in perf_time__range_alloc()
404 while (p1 < ostr + strlen(ostr)) { in perf_time__range_alloc()
405 p2 = strchr(p1, ','); in perf_time__range_alloc()
[all …]
A Dhelp-unknown-cmd.c23 static int levenshtein_compare(const void *p1, const void *p2) in levenshtein_compare() argument
25 const struct cmdname *const *c1 = p1, *const *c2 = p2; in levenshtein_compare()
/tools/testing/selftests/mm/
A Dpkey-x86.h151 static inline void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key() argument
155 ptr_contents = read_ptr(p1); in expect_fault_on_read_execonly_key()
156 dprintf2("ptr (%p) contents@%d: %x\n", p1, __LINE__, ptr_contents); in expect_fault_on_read_execonly_key()
A Dprotection_keys.c1383 void *p1; in get_pointer_to_instructions() local
1391 p1 += PAGE_SIZE; in get_pointer_to_instructions()
1397 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in get_pointer_to_instructions()
1399 return p1; in get_pointer_to_instructions()
1404 void *p1; in test_executing_on_unreadable_memory() local
1409 p1 = get_pointer_to_instructions(); in test_executing_on_unreadable_memory()
1411 ptr_contents = read_ptr(p1); in test_executing_on_unreadable_memory()
1436 void *p1; in test_implicit_mprotect_exec_only_memory() local
1443 p1 = get_pointer_to_instructions(); in test_implicit_mprotect_exec_only_memory()
1445 ptr_contents = read_ptr(p1); in test_implicit_mprotect_exec_only_memory()
[all …]
/tools/perf/tests/
A Ddwarf-unwind.c48 int test_dwarf_unwind__compare(void *p1, void *p2);
125 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__compare(void *p1, void *p2) in test_dwarf_unwind__compare() argument
128 struct thread *thread = *(struct thread **)p1; in test_dwarf_unwind__compare()
141 return p1 - p2; in test_dwarf_unwind__compare()
/tools/testing/selftests/net/forwarding/
A Dmin_max_mtu.sh63 h1=${NETIFS[p1]}
110 local mtu=$(min_max_mtu_get_if ${NETIFS[p1]} $min_max)
214 max_mtu=$(min_max_mtu_get_if ${NETIFS[p1]} "max_mtu")
266 min_mtu=$(min_max_mtu_get_if ${NETIFS[p1]} "min_mtu")
A Dforwarding.config.sample8 [p1]=veth0
A Dipip_flat_gre.sh16 h1=${NETIFS[p1]}
A Dipip_hier_gre.sh16 h1=${NETIFS[p1]}
A Dip6gre_flat.sh20 h1=${NETIFS[p1]}
A Dip6gre_flat_key.sh20 h1=${NETIFS[p1]}
/tools/testing/selftests/cgroup/
A Dtest_cpuset_prs.sh115 rmdir rtest/p1/c11 rtest/p1/c12 rtest/p2/c21 \
116 rtest/p2/c22 rtest/p1 rtest/p2 rtest > /dev/null 2>&1
653 [[ $CGRP_DIR = c11 ]] && CGRP_DIR=p1/c11
654 [[ $CGRP_DIR = c12 ]] && CGRP_DIR=p1/c12
1029 set_ctrl_state_noerr p1 $OLD_p1
1031 set_ctrl_state_noerr p1/c11 $OLD_c11
1032 set_ctrl_state_noerr p1/c12 $OLD_c12
1037 set_ctrl_state p1 $NEW_p1 ; ((RETVAL += $?))
1039 set_ctrl_state p1/c11 $NEW_c11; ((RETVAL += $?))
1040 set_ctrl_state p1/c12 $NEW_c12; ((RETVAL += $?))
/tools/testing/selftests/bpf/benchs/
A Dbench_sockmap.c99 #define p1 fds[1] 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()
274 err = bpf_map_update_elem(map, &zero, &ctx.p1, BPF_NOEXIST); in setup_rx_sockmap()
306 err = bpf_map_update_elem(map, &zero, &ctx.p1, BPF_NOEXIST); in setup_tx_sockmap()
401 rcv = read(ctx.p1, buf, recv_buf_size); in consumer()
467 target = ctx.p1; in producer()
/tools/testing/selftests/kvm/x86/
A Dprivate_mem_conversions_test.c139 uint8_t p1 = 0x11; in guest_test_explicit_conversion() local
148 memset((void *)gpa, p1, size); in guest_test_explicit_conversion()
166 guest_sync_private(gpa, size, p1); in guest_test_explicit_conversion()
186 guest_sync_shared(gpa + j, PAGE_SIZE, p1, p3); in guest_test_explicit_conversion()
190 guest_sync_private(gpa + j, PAGE_SIZE, p1); in guest_test_explicit_conversion()
/tools/testing/selftests/drivers/net/dsa/
A Dtest_bridge_fdb_stress.sh32 eth=${NETIFS[p1]}

Completed in 746 milliseconds

123456789