/tools/testing/selftests/kvm/lib/ |
D | io.c | 41 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/ftrace/test.d/ftrace/ |
D | fgraph-filter-stack.tc | 58 count=`cat trace | grep '()' | grep -v schedule | wc -l` 60 if [ $count -ne 0 ]; then 65 count=`cat trace | grep 'schedule()' | wc -l` 66 if [ $count -eq 0 ]; then 75 count=`cat trace | grep '()' | grep -v schedule | wc -l` 77 if [ $count -ne 0 ]; then 81 count=`cat trace | grep 'schedule()' | wc -l` 82 if [ $count -eq 0 ]; then
|
D | fgraph-filter.tc | 33 count=`cat trace | grep '()' | grep -v schedule | wc -l` 34 if [ $count -ne 0 ]; then 39 count=`cat trace | grep 'schedule()' | wc -l` 40 if [ $count -eq 0 ]; then
|
/tools/testing/selftests/drivers/net/mlxsw/ |
D | tc_flower_scale.sh | 70 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 97 for ((i = 0; i < count; ++i)); do 117 local count=$1; shift 122 if ((count > 65536)); then 123 check_err 1 "Invalid count of $count. At most 65536 rules supported" 133 __tc_flower_test $count $should_fail
|
D | mirror_gre_scale.sh | 51 local count=$1; shift 55 for ((i=0; i < count; ++i)); do 93 local count=$1; shift 95 for ((i=0; i < count; ++i)); do 112 local count=$1; shift 115 mirror_gre_tunnels_create $count $should_fail 122 for ((i = 0; i < count; ++i)); do 135 local count=$1; shift 144 __mirror_gre_test $count $should_fail
|
/tools/testing/selftests/ftrace/test.d/event/ |
D | subsystem-enable.tc | 25 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` 26 if [ $count -lt 3 ]; then 36 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` 37 if [ $count -lt 3 ]; then 47 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` 48 if [ $count -ne 0 ]; then
|
D | toplevel-enable.tc | 26 count=`head -n 128 trace | grep -v ^# | wc -l` 27 if [ $count -eq 0 ]; then 39 count=`head -n 128 trace | grep -v ^# | wc -l` 40 if [ $count -eq 0 ]; then 50 count=`cat trace | grep -v ^# | wc -l` 51 if [ $count -ne 0 ]; then
|
D | event-enable.tc | 25 count=`cat trace | grep sched_switch | wc -l` 26 if [ $count -eq 0 ]; then 36 count=`cat trace | grep sched_switch | wc -l` 37 if [ $count -eq 0 ]; then 47 count=`cat trace | grep sched_switch | wc -l` 48 if [ $count -ne 0 ]; then
|
D | event-pid.tc | 35 count=`cat trace | grep sched_switch | wc -l` 36 if [ $count -eq 0 ]; then 50 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l` 51 if [ $count -ne 0 ]; then 63 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l` 64 if [ $count -eq 0 ]; then
|
/tools/testing/selftests/bpf/ |
D | urandom_read.c | 11 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()
|
D | xdping.c | 36 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 …]
|
D | tcp_client.py | 22 count = 0 23 while count < total: 27 return count; 28 count += n 29 return count
|
/tools/testing/selftests/media_tests/ |
D | media_device_test.c | 48 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()
|
D | video_device_test.c | 44 int count; in main() local 70 count = rand(); in main() 85 while (count > 0) { in main() 99 count--; in main()
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-pkt-decoder.c | 80 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/ |
D | bp_signal_overflow.c | 47 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/perf/scripts/perl/ |
D | rwtop.pl | 57 $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/ |
D | nsleep-lat.c | 102 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()
|
D | leapcrash.c | 63 int count = 0; in main() local 81 for (count = 0; count < 20; count++) { in main()
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | mmap_bench.c | 46 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/perf/util/ |
D | stat.c | 283 struct perf_counts_values *count) in process_counter_values() argument 289 if (check_per_pkg(evsel, count, cpu, &skip)) { in process_counter_values() 295 count = &zero; in process_counter_values() 304 perf_evsel__compute_deltas(evsel, cpu, thread, count); in process_counter_values() 305 perf_counts_values__scale(count, config->scale, NULL); in process_counter_values() 307 perf_stat__update_shadow_stats(evsel, count->val, in process_counter_values() 314 count->val, 0, &config->stats[thread]); in process_counter_values() 317 count->val, 0, &rt_stat); in process_counter_values() 321 aggr->val += count->val; in process_counter_values() 322 aggr->ena += count->ena; in process_counter_values() [all …]
|
/tools/testing/selftests/cpufreq/ |
D | cpu.sh | 76 count=0; 80 let count=count+1; 84 echo $count;
|
/tools/vm/ |
D | page_owner_sort.c | 91 int ret, i, count; in main() local 137 for (i = count = 0; i < list_size; i++) { in main() 138 if (count == 0 || in main() 139 strcmp(list2[count-1].txt, list[i].txt) != 0) { in main() 140 list2[count++] = list[i]; in main() 142 list2[count-1].num += list[i].num; in main() 146 qsort(list2, count, sizeof(list[0]), compare_num); in main() 148 for (i = 0; i < count; i++) in main()
|
/tools/testing/selftests/sync/ |
D | sync.c | 133 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()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-syscall.c | 66 unsigned count = 0; in tm_syscall() local 80 for (count = 0; timercmp(&now, &end, <); count++) { in tm_syscall() 97 printf("%d active and suspended transactions behaved correctly.\n", count); in tm_syscall()
|