Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 246) sorted by relevance

12345678910

/tools/testing/selftests/bpf/progs/
Dtest_sockmap_listen.c42 unsigned int *count; in prog_skb_verdict() local
51 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_skb_verdict()
52 if (count) in prog_skb_verdict()
53 (*count)++; in prog_skb_verdict()
61 unsigned int *count; in prog_msg_verdict() local
70 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_msg_verdict()
71 if (count) in prog_msg_verdict()
72 (*count)++; in prog_msg_verdict()
80 unsigned int *count; in prog_reuseport() local
90 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_reuseport()
[all …]
Dbpf_iter_test_kern_common.h7 int count = 0; variable
15 if (count < 4) { in dump_task()
16 c = START_CHAR + count; in dump_task()
18 count++; in dump_task()
/tools/testing/selftests/kvm/lib/
Dio.c41 ssize_t test_write(int fd, const void *buf, size_t count) in test_write() argument
45 size_t num_left = count; in test_write()
51 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_write()
77 } while (num_written < count); in test_write()
118 ssize_t test_read(int fd, void *buf, size_t count) in test_read() argument
122 size_t num_left = count; in test_read()
128 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_read()
154 } while (num_read < count); in test_read()
/tools/testing/selftests/drivers/net/mlxsw/
Dtc_flower_scale.sh70 local count=$1; shift
75 for ((i = 0; i < count; ++i)); do
91 local count=$1; shift
93 local last=$((count - 1))
95 tc_flower_rules_create $count $should_fail
100 [[ $((offload_count - 1)) -eq $count ]]
101 …check_err_fail $should_fail $? "Attempt to offload $count rules (actual result $((offload_count - …
106 local count=$1; shift
111 if ((count > 65536)); then
112 check_err 1 "Invalid count of $count. At most 65536 rules supported"
[all …]
Dtc_police_scale.sh36 local count=$1; shift
41 for ((i = 0; i < count; ++i)); do
58 local count=$1; shift
61 tc_police_rules_create $count $should_fail
65 ((offload_count == count))
71 local count=$1; shift
79 __tc_police_test $count $should_fail
/tools/testing/selftests/ftrace/test.d/ftrace/
Dfgraph-filter-stack.tc43 count=`cat trace | grep '()' | grep -v schedule | wc -l`
45 if [ $count -ne 0 ]; then
50 count=`cat trace | grep 'schedule()' | wc -l`
51 if [ $count -eq 0 ]; then
60 count=`cat trace | grep '()' | grep -v schedule | wc -l`
62 if [ $count -ne 0 ]; then
66 count=`cat trace | grep 'schedule()' | wc -l`
67 if [ $count -eq 0 ]; then
Dfgraph-filter.tc29 count=`cat trace | grep '()' | grep -v schedule | wc -l`
30 if [ $count -ne 0 ]; then
35 count=`cat trace | grep 'schedule()' | wc -l`
36 if [ $count -eq 0 ]; then
/tools/testing/selftests/ftrace/test.d/event/
Dsubsystem-enable.tc21 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
22 if [ $count -lt 3 ]; then
32 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
33 if [ $count -lt 3 ]; then
43 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
44 if [ $count -ne 0 ]; then
Dtoplevel-enable.tc22 count=`head -n 128 trace | grep -v ^# | wc -l`
23 if [ $count -eq 0 ]; then
35 count=`head -n 128 trace | grep -v ^# | wc -l`
36 if [ $count -eq 0 ]; then
46 count=`cat trace | grep -v ^# | wc -l`
47 if [ $count -ne 0 ]; then
Devent-enable.tc21 count=`cat trace | grep sched_switch | wc -l`
22 if [ $count -eq 0 ]; then
32 count=`cat trace | grep sched_switch | wc -l`
33 if [ $count -eq 0 ]; then
43 count=`cat trace | grep sched_switch | wc -l`
44 if [ $count -ne 0 ]; then
Devent-pid.tc26 count=`cat trace | grep sched_switch | wc -l`
27 if [ $count -eq 0 ]; then
41 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l`
42 if [ $count -ne 0 ]; then
54 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l`
55 if [ $count -eq 0 ]; then
/tools/testing/selftests/bpf/
Dxdping.c36 static int get_stats(int fd, __u16 count, __u32 raddr) in get_stats() argument
52 for (i = 0; i < count; i++) { in get_stats()
59 count + i + 1, in get_stats()
63 if (i < count) { in get_stats()
64 fprintf(stderr, "Expected %d samples, got %d.\n", count, i); in get_stats()
92 __u16 count = XDPING_DEFAULT_COUNT; in main() local
110 count = atoi(optarg); in main()
111 if (count < 1 || count > XDPING_MAX_COUNT) { in main()
225 pinginfo.seq = htons(count); in main()
226 pinginfo.count = count; in main()
[all …]
Durandom_read.c11 void urandom_read(int fd, int count) in urandom_read() argument
16 for (i = 0; i < count; ++i) in urandom_read()
23 int count = 4; in main() local
29 count = atoi(argv[1]); in main()
31 urandom_read(fd, count); in main()
Dtcp_client.py22 count = 0
23 while count < total:
27 return count;
28 count += n
29 return count
/tools/testing/selftests/media_tests/
Dmedia_device_test.c48 int count; in main() local
76 count = rand(); in main()
91 printf("Running test for %d iterations\n", count); in main()
93 while (count > 0) { in main()
99 mdi.model, mdi.driver, count); in main()
101 count--; in main()
/tools/testing/selftests/bpf/map_tests/
Dhtab_map_batch_ops.c78 __u32 batch, count, total, total_success; in __test_map_lookup_and_delete_batch() local
114 count = max_entries; in __test_map_lookup_and_delete_batch()
116 values, &count, &opts); in __test_map_lookup_and_delete_batch()
124 count = 0; in __test_map_lookup_and_delete_batch()
126 values, &count, &opts); in __test_map_lookup_and_delete_batch()
132 count = max_entries; in __test_map_lookup_and_delete_batch()
134 values, &count, &opts); in __test_map_lookup_and_delete_batch()
137 CHECK(count != max_entries, "count = max_entries", in __test_map_lookup_and_delete_batch()
138 "count = %u, max_entries = %u\n", count, max_entries); in __test_map_lookup_and_delete_batch()
155 count = step; in __test_map_lookup_and_delete_batch()
[all …]
/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c80 int count; in intel_pt_get_long_tnt() local
87 for (count = 47; count; count--) { in intel_pt_get_long_tnt()
94 packet->count = count; in intel_pt_get_long_tnt()
135 unsigned int count = (52 - 5) >> 3; in intel_pt_get_vmcs() local
137 if (count < 1 || count > 7) in intel_pt_get_vmcs()
140 if (len < count + 2) in intel_pt_get_vmcs()
144 packet->count = count; in intel_pt_get_vmcs()
145 memcpy_le64(&packet->payload, buf + 2, count); in intel_pt_get_vmcs()
147 return count + 2; in intel_pt_get_vmcs()
187 packet->count = buf[5] | ((buf[6] & BIT(0)) << 8); in intel_pt_get_tma()
[all …]
/tools/perf/tests/
Dbp_signal_overflow.c47 long long count; in bp_count() local
50 ret = read(fd, &count, sizeof(long long)); in bp_count()
56 return count; in bp_count()
66 long long count; in test__bp_signal_overflow() local
115 count = bp_count(fd); in test__bp_signal_overflow()
120 count, overflows); in test__bp_signal_overflow()
122 if (count != EXECUTIONS) { in test__bp_signal_overflow()
124 count, EXECUTIONS); in test__bp_signal_overflow()
/tools/testing/selftests/net/mptcp/
Dmptcp_join.sh138 local count
140 count=$(ip netns exec ${ns} nstat -asz "${counter}" | awk 'NR==1 {next} {print $2}')
141 if [ -z "${count}" ]; then
146 echo "${count}"
262 dd if=/dev/urandom of="$name" bs=1024 count=$SIZE 2> /dev/null
306 local count
310 count=$(get_counter ${ns1} "MPTcpExtMPJoinSynRx")
311 if [ -z "$count" ]; then
313 elif [ "$count" != "$syn_nr" ]; then
314 echo "[fail] got $count JOIN[s] syn expected $syn_nr"
[all …]
/tools/perf/scripts/perl/
Drwtop.pl57 $nr, $fd, $buf, $count) = @_;
61 $reads{$common_pid}{bytes_requested} += $count;
83 $nr, $fd, $buf, $count) = @_;
87 $writes{$common_pid}{bytes_written} += $count;
123 my $count;
125 $count = 0;
146 if (++$count == $nlines) {
151 $count = 0;
169 if (++$count == $nlines) {
/tools/testing/selftests/timers/
Dnsleep-lat.c102 int i, count; in nanosleep_lat_test() local
112 count = 10; in nanosleep_lat_test()
116 for (i = 0; i < count; i++) in nanosleep_lat_test()
120 if (((timespec_sub(start, end)/count)-ns) > UNRESONABLE_LATENCY) { in nanosleep_lat_test()
121 printf("Large rel latency: %lld ns :", (timespec_sub(start, end)/count)-ns); in nanosleep_lat_test()
126 for (i = 0; i < count; i++) { in nanosleep_lat_test()
134 if (latency/count > UNRESONABLE_LATENCY) { in nanosleep_lat_test()
135 printf("Large abs latency: %lld ns :", latency/count); in nanosleep_lat_test()
/tools/testing/selftests/powerpc/benchmarks/
Dmmap_bench.c46 int count; in test_mmap() local
47 for (count = 0; count < CHUNK_COUNT; count++) in test_mmap()
48 c[count << 16] = 'c'; in test_mmap()
/tools/testing/selftests/cpufreq/
Dcpu.sh76 count=0;
80 let count=count+1;
84 echo $count;
/tools/vm/
Dpage_owner_sort.c92 int ret, i, count; in main() local
138 for (i = count = 0; i < list_size; i++) { in main()
139 if (count == 0 || in main()
140 strcmp(list2[count-1].txt, list[i].txt) != 0) { in main()
141 list2[count++] = list[i]; in main()
143 list2[count-1].num += list[i].num; in main()
147 qsort(list2, count, sizeof(list[0]), compare_num); in main()
149 for (i = 0; i < count; i++) in main()
/tools/testing/selftests/sync/
Dsync.c133 int count; in sync_fence_size() local
139 count = info->num_fences; in sync_fence_size()
143 return count; in sync_fence_size()
148 unsigned int i, count = 0; in sync_fence_count_with_status() local
158 count++; in sync_fence_count_with_status()
163 return count; in sync_fence_count_with_status()
171 int sw_sync_timeline_inc(int fd, unsigned int count) in sw_sync_timeline_inc() argument
173 __u32 arg = count; in sw_sync_timeline_inc()

12345678910