/tools/testing/selftests/kvm/aarch64/ |
D | vgic_init.c | 63 struct vm_gic v; in vm_gic_create() local 65 v.vm = vm_create_default_with_vcpus(NR_VCPUS, 0, 0, guest_code, NULL); in vm_gic_create() 66 v.gic_fd = kvm_create_device(v.vm, KVM_DEV_TYPE_ARM_VGIC_V3, false); in vm_gic_create() 68 return v; in vm_gic_create() 71 static void vm_gic_destroy(struct vm_gic *v) in vm_gic_destroy() argument 73 close(v->gic_fd); in vm_gic_destroy() 74 kvm_vm_free(v->vm); in vm_gic_destroy() 83 static void subtest_dist_rdist(struct vm_gic *v) in subtest_dist_rdist() argument 89 kvm_device_check_attr(v->gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, in subtest_dist_rdist() 92 kvm_device_check_attr(v->gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, in subtest_dist_rdist() [all …]
|
/tools/perf/util/arm-spe-decoder/ |
D | arm-spe-pkt-decoder.h | 71 #define SPE_ADDR_PKT_ADDR_GET_BYTES_0_6(v) ((v) & GENMASK_ULL(55, 0)) argument 72 #define SPE_ADDR_PKT_ADDR_GET_BYTE_6(v) (((v) & GENMASK_ULL(55, 48)) >> 48) argument 74 #define SPE_ADDR_PKT_GET_NS(v) (((v) & BIT_ULL(63)) >> 63) argument 75 #define SPE_ADDR_PKT_GET_EL(v) (((v) & GENMASK_ULL(62, 61)) >> 61) argument 76 #define SPE_ADDR_PKT_GET_CH(v) (((v) & BIT_ULL(62)) >> 62) argument 77 #define SPE_ADDR_PKT_GET_PAT(v) (((v) & GENMASK_ULL(59, 56)) >> 56) argument 116 #define SPE_OP_PKT_IS_OTHER_SVE_OP(v) (((v) & (BIT(7) | BIT(3) | BIT(0))) == 0x8) argument 120 #define SPE_OP_PKT_LDST_SUBCLASS_GET(v) ((v) & GENMASK_ULL(7, 1)) argument 126 #define SPE_OP_PKT_IS_LDST_ATOMIC(v) (((v) & (GENMASK_ULL(7, 5) | BIT(1))) == 0x2) argument 133 #define SPE_OP_PKT_IS_LDST_SVE(v) (((v) & (BIT(3) | BIT(1))) == 0x8) argument [all …]
|
/tools/testing/selftests/net/forwarding/ |
D | gre_inner_v4_multipath.sh | 85 ip route add vrf v$h1 192.0.4.0/24 via 192.0.3.1 90 ip route del vrf v$h1 192.0.4.0/24 via 192.0.3.1 97 __simple_if_init $ul1 v$ol1 192.0.2.129/28 99 tunnel_create g1 gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1 100 __simple_if_init g1 v$ol1 192.0.2.65/32 101 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 103 ip route add vrf v$ol1 192.0.4.0/24 nexthop dev g1 108 ip route del vrf v$ol1 192.0.4.0/24 110 ip route del vrf v$ol1 192.0.2.66/32 121 __simple_if_init $ul22 v$ul21 [all …]
|
D | gre_multipath.sh | 69 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 74 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 81 __simple_if_init $ul1 v$ol1 82 vlan_create $ul1 111 v$ol1 192.0.2.129/28 83 vlan_create $ul1 222 v$ol1 192.0.2.145/28 85 tunnel_create g1a gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1 86 __simple_if_init g1a v$ol1 192.0.2.65/32 87 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 89 tunnel_create g1b gre 192.0.2.81 192.0.2.82 tos inherit dev v$ol1 90 __simple_if_init g1b v$ol1 192.0.2.81/32 [all …]
|
D | gre_inner_v6_multipath.sh | 85 ip -6 route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1 90 ip -6 route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1 97 __simple_if_init $ul1 v$ol1 192.0.2.129/28 99 tunnel_create g1 gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1 100 __simple_if_init g1 v$ol1 192.0.2.65/32 101 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 103 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 108 ip -6 route del vrf v$ol1 2001:db8:2::/64 110 ip route del vrf v$ol1 192.0.2.66/32 121 __simple_if_init $ul22 v$ul21 [all …]
|
D | ip6gre_inner_v6_multipath.sh | 84 ip -6 route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1 89 ip -6 route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1 96 __simple_if_init $ul1 v$ol1 2001:db8:80::1/64 98 tunnel_create g1 ip6gre 2001:db8:40::1 2001:db8:40::2 tos inherit dev v$ol1 99 __simple_if_init g1 v$ol1 2001:db8:40::1/128 100 ip -6 route add vrf v$ol1 2001:db8:40::2/128 via 2001:db8:80::2 102 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 107 ip -6 route del vrf v$ol1 2001:db8:2::/64 109 ip -6 route del vrf v$ol1 2001:db8:40::2/128 120 __simple_if_init $ul22 v$ul21 [all …]
|
D | ip6gre_inner_v4_multipath.sh | 84 ip route add vrf v$h1 192.0.4.0/24 via 192.0.3.1 89 ip route del vrf v$h1 192.0.4.0/24 via 192.0.3.1 96 __simple_if_init $ul1 v$ol1 2001:db8:80::1/64 98 tunnel_create g1 ip6gre 2001:db8:40::1 2001:db8:40::2 tos inherit dev v$ol1 99 __simple_if_init g1 v$ol1 2001:db8:40::1/128 100 ip -6 route add vrf v$ol1 2001:db8:40::2/128 via 2001:db8:80::2 102 ip route add vrf v$ol1 192.0.4.0/24 nexthop dev g1 107 ip route del vrf v$ol1 192.0.4.0/24 109 ip -6 route del vrf v$ol1 2001:db8:40::2/128 120 __simple_if_init $ul22 v$ul21 [all …]
|
D | gre_custom_multipath_hash.sh | 90 ip route add vrf v$h1 default via 198.51.100.1 dev $h1 91 ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 96 ip -6 route del vrf v$h1 default 97 ip route del vrf v$h1 default 104 __simple_if_init $ul1 v$ol1 192.0.2.17/28 106 tunnel_create g1 gre 192.0.2.1 192.0.2.2 tos inherit dev v$ol1 107 __simple_if_init g1 v$ol1 192.0.2.1/32 108 ip route add vrf v$ol1 192.0.2.2/32 via 192.0.2.18 110 ip route add vrf v$ol1 203.0.113.0/24 dev g1 111 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 [all …]
|
D | ip6gre_custom_multipath_hash.sh | 90 ip route add vrf v$h1 default via 198.51.100.1 dev $h1 91 ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 96 ip -6 route del vrf v$h1 default 97 ip route del vrf v$h1 default 104 __simple_if_init $ul1 v$ol1 2001:db8:10::1/64 107 dev v$ol1 108 __simple_if_init g1 v$ol1 2001:db8:3::1/128 109 ip route add vrf v$ol1 2001:db8:3::2/128 via 2001:db8:10::2 111 ip route add vrf v$ol1 203.0.113.0/24 dev g1 112 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 [all …]
|
D | gre_multipath_nh.sh | 76 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 77 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 82 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 83 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 90 __simple_if_init $ul1 v$ol1 91 vlan_create $ul1 111 v$ol1 192.0.2.129/28 92 vlan_create $ul1 222 v$ol1 192.0.2.145/28 94 tunnel_create g1a gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1 95 __simple_if_init g1a v$ol1 192.0.2.65/32 96 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 [all …]
|
D | ipip_lib.sh | 149 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 154 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 161 ip route add vrf v$h2 192.0.2.0/28 via 192.0.2.17 166 ip route del vrf v$h2 192.0.2.0/28 via 192.0.2.17 214 __simple_if_init $ul2 v$ol2 215 vlan_create $ul2 111 v$ol2 192.0.2.130/28 217 tunnel_create g2a $type 192.0.2.66 192.0.2.65 tos inherit dev v$ol2 \ 219 __simple_if_init g2a v$ol2 192.0.2.66/32 221 ip route add vrf v$ol2 192.0.2.65/32 via 192.0.2.129 222 ip route add vrf v$ol2 192.0.2.0/28 nexthop dev g2a [all …]
|
D | gre_multipath_nh_res.sh | 76 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 77 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 82 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 83 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 90 __simple_if_init $ul1 v$ol1 91 vlan_create $ul1 111 v$ol1 192.0.2.129/28 92 vlan_create $ul1 222 v$ol1 192.0.2.145/28 94 tunnel_create g1a gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1 95 __simple_if_init g1a v$ol1 192.0.2.65/32 96 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 [all …]
|
D | custom_multipath_hash.sh | 57 ip route add vrf v$h1 default via 198.51.100.1 dev $h1 58 ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 63 ip -6 route del vrf v$h1 default 64 ip route del vrf v$h1 default 71 __simple_if_init $rp11 v$rp1 192.0.2.1/28 2001:db8:2::1/64 72 __simple_if_init $rp12 v$rp1 192.0.2.17/28 2001:db8:3::1/64 74 ip route add vrf v$rp1 203.0.113.0/24 \ 78 ip -6 route add vrf v$rp1 2001:db8:4::/64 \ 85 ip -6 route del vrf v$rp1 2001:db8:4::/64 87 ip route del vrf v$rp1 203.0.113.0/24 [all …]
|
/tools/arch/x86/include/asm/ |
D | atomic.h | 26 static inline int atomic_read(const atomic_t *v) in atomic_read() argument 28 return READ_ONCE((v)->counter); in atomic_read() 38 static inline void atomic_set(atomic_t *v, int i) in atomic_set() argument 40 v->counter = i; in atomic_set() 49 static inline void atomic_inc(atomic_t *v) in atomic_inc() argument 52 : "+m" (v->counter)); in atomic_inc() 63 static inline int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test() argument 65 GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, "%0", "e"); in atomic_dec_and_test() 68 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument 70 return cmpxchg(&v->counter, old, new); in atomic_cmpxchg()
|
/tools/lib/subcmd/ |
D | parse-options.h | 118 #define check_vtype(v, type) ( BUILD_BUG_ON_ZERO(!__builtin_types_compatible_p(typeof(v), type)) + … argument 124 #define OPT_BIT(s, l, v, h, b) { .type = OPTION_BIT, .short_name = (s), .long_name = (l), .val… argument 125 #define OPT_BOOLEAN(s, l, v, h) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), … argument 126 …ine OPT_BOOLEAN_FLAG(s, l, v, h, f) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = … argument 127 #define OPT_BOOLEAN_SET(s, l, v, os, h) \ argument 129 .value = check_vtype(v, bool *), .help = (h), \ 131 #define OPT_INCR(s, l, v, h) { .type = OPTION_INCR, .short_name = (s), .long_name = (l), .va… argument 132 #define OPT_SET_UINT(s, l, v, h, i) { .type = OPTION_SET_UINT, .short_name = (s), .long_name = (l)… argument 133 #define OPT_SET_PTR(s, l, v, h, p) { .type = OPTION_SET_PTR, .short_name = (s), .long_name = (l), … argument 134 #define OPT_INTEGER(s, l, v, h) { .type = OPTION_INTEGER, .short_name = (s), .long_name = (l), … argument [all …]
|
/tools/include/asm-generic/ |
D | atomic-gcc.h | 23 static inline int atomic_read(const atomic_t *v) in atomic_read() argument 25 return READ_ONCE((v)->counter); in atomic_read() 35 static inline void atomic_set(atomic_t *v, int i) in atomic_set() argument 37 v->counter = i; in atomic_set() 46 static inline void atomic_inc(atomic_t *v) in atomic_inc() argument 48 __sync_add_and_fetch(&v->counter, 1); in atomic_inc() 59 static inline int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test() argument 61 return __sync_sub_and_fetch(&v->counter, 1) == 0; in atomic_dec_and_test() 67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() argument 69 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
|
/tools/testing/selftests/bpf/progs/ |
D | test_global_func_args.c | 8 int v; member 28 save_value(index, s->v); in foo() 29 return ++s->v; in foo() 40 save_value(index, s->v); in bar() 41 return ++s->v; in bar() 63 const int v = foo(index++, 0); in test_cls() local 65 save_value(index++, v); in test_cls() 69 struct S s = { .v = 100 }; in test_cls() 72 save_value(index++, s.v); in test_cls() 76 global_variable.v = 42; in test_cls() [all …]
|
D | test_global_func15.c | 6 __noinline int foo(unsigned int *v) in foo() argument 8 if (v) in foo() 9 *v = bpf_get_prandom_u32(); in foo() 17 unsigned int v = 1; in test_cls() local 19 foo(&v); in test_cls() 21 return v; in test_cls()
|
D | test_tcpbpf_kern.c | 54 int v = 0; in bpf_testcb() local 116 v = 0xff; in bpf_testcb() 117 rv = bpf_setsockopt(skops, SOL_IPV6, IPV6_TCLASS, &v, in bpf_testcb() 118 sizeof(v)); in bpf_testcb() 120 v = bpf_getsockopt(skops, IPPROTO_TCP, TCP_SAVED_SYN, in bpf_testcb() 123 if (!v) { in bpf_testcb() 127 v = thdr->syn; in bpf_testcb() 129 global.tcp_saved_syn = v; in bpf_testcb() 157 v = bpf_setsockopt(skops, IPPROTO_TCP, TCP_SAVE_SYN, in bpf_testcb() 160 global.tcp_save_syn = v; in bpf_testcb()
|
/tools/testing/selftests/rseq/ |
D | rseq-arm64.h | 58 #define rseq_smp_store_release(p, v) \ argument 64 : "r" ((__u8)v) \ 70 : "r" ((__u16)v) \ 76 : "r" ((__u32)v) \ 82 : "r" ((__u64)v) \ 208 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument 222 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev() 226 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev() 228 RSEQ_ASM_OP_FINAL_STORE(newv, v, 3) in rseq_cmpeqv_storev() 235 [v] "Qo" (*v), in rseq_cmpeqv_storev() [all …]
|
D | rseq-ppc.h | 33 #define rseq_smp_store_release(p, v) \ argument 36 RSEQ_WRITE_ONCE(*p, v); \ 213 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument 230 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev() 236 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev() 239 RSEQ_ASM_OP_FINAL_STORE(newv, v, 2) in rseq_cmpeqv_storev() 246 [v] "m" (*v), in rseq_cmpeqv_storev() 277 int rseq_cmpnev_storeoffp_load(intptr_t *v, intptr_t expectnot, in rseq_cmpnev_storeoffp_load() argument 295 RSEQ_ASM_OP_CMPNE(v, expectnot, %l[cmpfail]) in rseq_cmpnev_storeoffp_load() 301 RSEQ_ASM_OP_CMPNE(v, expectnot, %l[error2]) in rseq_cmpnev_storeoffp_load() [all …]
|
D | rseq-skip.h | 9 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument 15 int rseq_cmpnev_storeoffp_load(intptr_t *v, intptr_t expectnot, in rseq_cmpnev_storeoffp_load() argument 22 int rseq_addv(intptr_t *v, intptr_t count, int cpu) in rseq_addv() argument 28 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 36 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument 44 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 52 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument 60 int rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev_release() argument
|
/tools/testing/selftests/bpf/prog_tests/ |
D | hashmap.c | 56 void *oldv, *v = (void *)(long)(1024 + i); in test_hashmap_generic() local 58 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic() 64 err = hashmap__add(map, k, v); in test_hashmap_generic() 66 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic() 73 (long)k, (long)v, err)) in test_hashmap_generic() 79 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic() 95 long v = (long)entry->value; in test_hashmap_generic() local 98 if (CHECK(v - k != 1024, "check_kv", in test_hashmap_generic() 99 "invalid k/v pair: %ld = %ld\n", k, v)) in test_hashmap_generic() 108 void *oldv, *v = (void *)(long)(256 + i); in test_hashmap_generic() local [all …]
|
/tools/include/linux/ |
D | rcu.h | 22 #define rcu_assign_pointer(p, v) do { (p) = (v); } while (0) argument 23 #define RCU_INIT_POINTER(p, v) do { (p) = (v); } while (0) argument
|
/tools/testing/selftests/net/mptcp/ |
D | mptcp_lib.sh | 87 local v maj min 94 v=$(uname -r | cut -d'.' -f1,2) 95 maj=${v%.*} 96 min=${v#*.} 103 mptcp_lib_fail_if_expected_feature "kernel version ${1} lower than ${v}"
|