Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 48) sorted by relevance

12

/tools/testing/selftests/bpf/progs/
Dtest_spin_lock.c54 struct bpf_vqueue *q; in bpf_sping_lock_test() local
79 q = bpf_map_lookup_elem(&vqueue, &key); in bpf_sping_lock_test()
80 if (!q) in bpf_sping_lock_test()
83 bpf_spin_lock(&q->lock); in bpf_sping_lock_test()
84 q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate); in bpf_sping_lock_test()
85 q->lasttime = curtime; in bpf_sping_lock_test()
86 if (q->credit > max_credit) in bpf_sping_lock_test()
87 q->credit = max_credit; in bpf_sping_lock_test()
88 q->credit -= pkt_len; in bpf_sping_lock_test()
89 credit = q->credit; in bpf_sping_lock_test()
[all …]
Dtest_map_lock.c39 struct array_elem *q; in bpf_map_lock_test() local
51 q = bpf_map_lookup_elem(&array_map, &key); in bpf_map_lock_test()
52 if (!q) in bpf_map_lock_test()
54 bpf_spin_lock(&q->lock); in bpf_map_lock_test()
56 q->var[i] = rnd; in bpf_map_lock_test()
57 bpf_spin_unlock(&q->lock); in bpf_map_lock_test()
Dbtf_dump_test_case_syntax.c208 void (*q)(int); member
/tools/perf/util/
Ddemangle-java.c50 const char *q; in __demangle_java_sym() local
55 for (q = str; q != end; q++) { in __demangle_java_sym()
60 switch (*q) { in __demangle_java_sym()
73 buf[rlen++] = *q; in __demangle_java_sym()
86 rlen += scnprintf(buf + rlen, maxlen - rlen, "%s", base_types[*q - 'A']); in __demangle_java_sym()
92 buf[rlen++] = *q; in __demangle_java_sym()
101 buf[rlen++] = *q; in __demangle_java_sym()
111 buf[rlen++] = *q; in __demangle_java_sym()
117 buf[rlen++] = *q; in __demangle_java_sym()
124 if (isalpha(*(q + 1)) && mode == MODE_CLASS) in __demangle_java_sym()
[all …]
Dpfm.c38 char *p, *q, *p_orig; in parse_libpfm_events_option() local
53 for (q = p; strsep(&p, ",{}"); q = p) { in parse_libpfm_events_option()
65 if (*q == '\0') { in parse_libpfm_events_option()
79 ret = pfm_get_perf_event_encoding(q, PFM_PLM0|PFM_PLM3, in parse_libpfm_events_option()
90 &attr, q, pmu); in parse_libpfm_events_option()
/tools/testing/selftests/timers/
Dmqueue-lat.c61 mqd_t q; in mqueue_lat_test() local
66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
67 if (q < 0) { in mqueue_lat_test()
71 mq_getattr(q, &attr); in mqueue_lat_test()
84 ret = mq_timedreceive(q, buf, sizeof(buf), NULL, &target); in mqueue_lat_test()
92 mq_close(q); in mqueue_lat_test()
/tools/power/cpupower/utils/helpers/
Dbitmask.c105 static const char *nexttoken(const char *q, int sep) in nexttoken() argument
107 if (q) in nexttoken()
108 q = strchr(q, sep); in nexttoken()
109 if (q) in nexttoken()
110 q++; in nexttoken()
111 return q; in nexttoken()
194 const char *p, *q; in bitmask_parselist() local
198 q = buf; in bitmask_parselist()
199 while (p = q, q = nexttoken(q, ','), p) { in bitmask_parselist()
/tools/memory-model/scripts/
Drunlitmushist.sh61 …print "echo `grep " q "^P[0-9]" b "+(" q " " $0 " | tail -1 | sed -e " q "s/^P" b "([0-9]" b "+" b…
/tools/memory-model/Documentation/
Dcontrol-dependencies.txt15 q = READ_ONCE(a);
16 if (q)
25 q = READ_ONCE(a);
26 if (q) {
35 q = READ_ONCE(a);
36 if (q)
52 q = a;
62 q = READ_ONCE(a);
63 if (q) {
76 q = READ_ONCE(a);
[all …]
/tools/hv/
Dhv_fcopy_daemon.c31 char *q, *p; in hv_start_fcopy() local
43 while ((q = strchr(p, '/')) != NULL) { in hv_start_fcopy()
44 if (q == p) { in hv_start_fcopy()
48 *q = '\0'; in hv_start_fcopy()
62 p = q + 1; in hv_start_fcopy()
63 *q = '/'; in hv_start_fcopy()
Dhv_kvp_daemon.c445 char *value, *q; in kvp_get_os_info() local
459 q = p; in kvp_get_os_info()
465 *q++ = *p++; in kvp_get_os_info()
470 *q++ = *p++; in kvp_get_os_info()
473 *q = 0; in kvp_get_os_info()
/tools/tracing/latency/
Dlatency-collector.c787 static void init_queue(struct queue *q) in init_queue() argument
789 q->next_prod_idx = 0; in init_queue()
790 q->next_cons_idx = 0; in init_queue()
791 mutex_init(&q->mutex, NULL); in init_queue()
792 errno = pthread_cond_init(&q->cond, NULL); in init_queue()
797 static __always_inline int queue_len(const struct queue *q) in queue_len() argument
799 if (q->next_prod_idx >= q->next_cons_idx) in queue_len()
800 return q->next_prod_idx - q->next_cons_idx; in queue_len()
802 return QUEUE_SIZE - q->next_cons_idx + q->next_prod_idx; in queue_len()
805 static __always_inline int queue_nr_free(const struct queue *q) in queue_nr_free() argument
[all …]
/tools/testing/selftests/powerpc/copyloops/
Dexc_validate.c82 static char *p, *q; in test_copy_exception() local
103 q = p + page_size - MAX_LEN; in test_copy_exception()
109 do_one_test(q+dst, q+src, len); in test_copy_exception()
/tools/include/linux/
Dmath64.h10 u64 q; in mul_u64_u64_div64() local
12 asm ("mulq %2; divq %3" : "=a" (q) in mul_u64_u64_div64()
16 return q; in mul_u64_u64_div64()
/tools/perf/scripts/python/
Dexport-to-sqlite.py133 def do_query(q, s): argument
134 if (q.exec_(s)):
136 raise Exception("Query failed: " + q.lastError().text())
138 def do_query_(q): argument
139 if (q.exec_()):
141 raise Exception("Query failed: " + q.lastError().text())
673 def bind_exec(q, n, x): argument
675 q.addBindValue(str(xx))
676 do_query_(q)
/tools/arch/x86/lib/
Dx86-opcode-map.txt407 41: CMOVNO Gv,Ev | kandw/q Vk,Hk,Uk | kandb/d Vk,Hk,Uk (66)
408 42: CMOVB/C/NAE Gv,Ev | kandnw/q Vk,Hk,Uk | kandnb/d Vk,Hk,Uk (66)
410 44: CMOVE/Z Gv,Ev | knotw/q Vk,Uk | knotb/d Vk,Uk (66)
411 45: CMOVNE/NZ Gv,Ev | korw/q Vk,Hk,Uk | korb/d Vk,Hk,Uk (66)
412 46: CMOVBE/NA Gv,Ev | kxnorw/q Vk,Hk,Uk | kxnorb/d Vk,Hk,Uk (66)
413 47: CMOVA/NBE Gv,Ev | kxorw/q Vk,Hk,Uk | kxorb/d Vk,Hk,Uk (66)
416 4a: CMOVP/PE Gv,Ev | kaddw/q Vk,Hk,Uk | kaddb/d Vk,Hk,Uk (66)
454 6e: movd/q Pd,Ey | vmovd/q Vy,Ey (66),(v1)
472 7e: movd/q Ey,Pd | vmovd/q Ey,Vy (66),(v1) | vmovq Vq,Wq (F3),(v1)
493 90: SETO Eb | kmovw/q Vk,Wk | kmovb/d Vk,Wk (66)
[all …]
/tools/bootconfig/
Dmain.c21 char q; in xbc_show_value() local
27 q = '\''; in xbc_show_value()
29 q = '"'; in xbc_show_value()
30 printf("%c%s%c%s", q, val, q, xbc_node_is_array(node) ? ", " : eol); in xbc_show_value()
/tools/testing/selftests/sgx/
Dsign_key.pem30 q/002yHvtAJg4F5B2JeVejg7VQ8GHB1MKxppu0TP5wKBwQCCpQj8zgKOKz/wmViy
/tools/testing/selftests/net/forwarding/
Dsch_tbf_core.sh97 tc filter add dev $h2 ingress pref 1010 prot 802.1q \
99 tc filter add dev $h2 ingress pref 1011 prot 802.1q \
Dtc_flower.sh232 tc filter add dev $h2 ingress protocol 802.1q pref 1 handle 101 \
234 tc filter add dev $h2 ingress protocol 802.1q pref 2 handle 102 \
246 tc filter del dev $h2 ingress protocol 802.1q pref 2 handle 102 flower
247 tc filter del dev $h2 ingress protocol 802.1q pref 1 handle 101 flower
261 tc filter add dev $h2 ingress protocol 802.1q pref 1 handle 101 \
263 tc filter add dev $h2 ingress protocol 802.1q pref 2 handle 102 \
274 tc filter del dev $h2 ingress protocol 802.1q pref 2 handle 102 flower
275 tc filter del dev $h2 ingress protocol 802.1q pref 1 handle 101 flower
Dmirror_gre_lib.sh64 tc filter add dev $h3 ingress pref 77 prot 802.1q \
/tools/perf/Documentation/
Ditrace.txt22 q quicker (less detailed) decoding
65 If supported, the 'q' option may be repeated to increase the effect.
/tools/perf/pmu-events/
Djevents.c169 char *p, *q; in fixregex() local
187 q = fixed; in fixregex()
190 *q = '\\'; in fixregex()
191 ++q; in fixregex()
193 *q = *p; in fixregex()
194 ++q; in fixregex()
196 *q = '\0'; in fixregex()
/tools/cgroup/
Diocost_monitor.py224 if devname == blkg.q.kobj.parent.name.string_().decode('utf-8'):
225 q_id = blkg.q.id.value_()
/tools/arch/x86/include/asm/
Dasm.h29 inst##q##__VA_ARGS__)

12