| /tools/testing/selftests/kvm/lib/ |
| A D | string_override.c | 10 int memcmp(const void *cs, const void *ct, size_t count) in memcmp() argument 15 for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--) { in memcmp() 22 void *memcpy(void *dest, const void *src, size_t count) in memcpy() argument 27 while (count--) in memcpy() 32 void *memset(void *s, int c, size_t count) in memset() argument 36 while (count--) in memset() 41 size_t strnlen(const char *s, size_t count) in strnlen() argument 45 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
|
| A 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/bpf/progs/ |
| A D | test_sockmap_listen.c | 64 unsigned int *count; in prog_stream_verdict() local 74 if (count) in prog_stream_verdict() 75 (*count)++; in prog_stream_verdict() 83 unsigned int *count; in prog_skb_verdict() local 95 if (count) in prog_skb_verdict() 96 (*count)++; in prog_skb_verdict() 104 unsigned int *count; in prog_msg_verdict() local 114 if (count) in prog_msg_verdict() 115 (*count)++; in prog_msg_verdict() 134 if (count) in prog_reuseport() [all …]
|
| A D | bpf_iter_test_kern_common.h | 7 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/drivers/net/mlxsw/ |
| A D | tc_flower_scale.sh | 70 local count=$1; shift 75 for ((i = 0; i < count; ++i)); do 92 local count=$1; shift 94 local last=$((count - 1)) 101 [[ $((offload_count - 1)) -eq $count ]] 107 local count=$1; shift 112 if ((count > 65536)); then 123 __tc_flower_test $count $should_fail 128 local count=$1; shift 131 for ((i = count - 1; i > 0; i /= 2)); do [all …]
|
| A D | rif_counter_scale.sh | 52 local count=$1; shift 56 for ((i = 1; i <= count; i++)); do 73 local count=$1; shift 78 for ((i = 1; i <= count; i++)); do 81 for ((i = 1; i <= count; i++)); do 93 local count=$1; shift 96 for ((i = count; i > 0; i /= 2)); do 102 for ((i = count; i > 0; i /= 2)); do
|
| A D | port_range_scale.sh | 29 local count=$1; shift 33 for ((i = 0; i < count; ++i)); do 52 local count=$1; shift 55 port_range_rules_create $count $should_fail 59 ((offload_count == count)) 65 local count=$1; shift 73 __port_range_test $count $should_fail
|
| A D | rif_mac_profiles_occ.sh | 43 local count=$1; shift 46 for ((i = 1; i <= count; i++)); do 77 local count=$1; shift 82 if [[ $count -eq 1 ]]; then 96 [[ $occ -eq $((count - 1)) ]] 106 local count=$1; shift 107 local i=$((count + 1)) 131 local count=$(devlink_resource_size_get rif_mac_profiles) 133 create_max_rif_mac_profiles $count 136 rif_mac_profile_consolidation_test $count [all …]
|
| A D | tc_police_scale.sh | 36 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/ |
| A D | fgraph-filter-stack.tc | 43 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
|
| /tools/testing/selftests/bpf/ |
| A D | urandom_read.c | 34 static noinline void urandom_read(int fd, int count) in urandom_read() argument 39 for (i = 0; i < count; ++i) { in urandom_read() 43 urand_read_without_sema(i, count, BUF_SIZE); in urandom_read() 44 STAP_PROBE3(urand, read_with_sema, i, count, BUF_SIZE); in urandom_read() 47 urandlib_read_without_sema(i, count, BUF_SIZE); in urandom_read() 48 urandlib_read_with_sema(i, count, BUF_SIZE); in urandom_read() 62 int count = 4; in main() local 69 count = atoi(argv[1]); in main() 91 urandom_read(fd, count); in main()
|
| A 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() 91 __u16 count = XDPING_DEFAULT_COUNT; in main() local 109 count = atoi(optarg); in main() 110 if (count < 1 || count > XDPING_MAX_COUNT) { in main() 221 pinginfo.seq = htons(count); in main() 222 pinginfo.count = count; in main() 235 count, ifname, argv[optind]); in main() [all …]
|
| /tools/testing/selftests/drivers/ntsync/ |
| A D | ntsync.c | 24 *count = args.count; in read_sem_state() 50 *count = args.count; in read_mutex_state() 72 *count = args.count; in unlock_mutex() 107 args.count = count; in wait_objs() 165 count = 0; in TEST() 171 count = 1; in TEST() 191 count = 3; in TEST() 197 count = 2; in TEST() 208 count = 1; in TEST() 541 count = 1; in TEST() [all …]
|
| /tools/testing/selftests/ftrace/test.d/event/ |
| A D | subsystem-enable.tc | 45 count=`check_unique` 46 if [ $count -lt 3 ]; then 56 count=`check_unique` 57 if [ $count -lt 3 ]; then 67 count=`head -n 100 trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` 68 if [ $count -ne 0 ]; then
|
| A D | toplevel-enable.tc | 22 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
|
| A D | event-enable.tc | 21 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
|
| A D | event-pid.tc | 26 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/lsm/ |
| A D | lsm_get_self_attr_test.c | 155 int count; in TEST() local 194 for (i = 1; i < count; i++) { in TEST() 202 ASSERT_GE(cnt_exec, count); in TEST() 203 if (count > 0) { in TEST() 208 for (i = 1; i < count; i++) { in TEST() 217 if (count > 0) { in TEST() 222 for (i = 1; i < count; i++) { in TEST() 231 if (count > 0) { in TEST() 244 ASSERT_GE(cnt_prev, count); in TEST() 245 if (count > 0) { in TEST() [all …]
|
| /tools/testing/selftests/net/mptcp/ |
| A D | mptcp_join.sh | 868 local count 1139 local count 1189 local count 1216 if [ -n "$count" ] && [ "$count" != "$fail_tx" ]; then 1230 if [ -n "$count" ] && [ "$count" != "$fail_rx" ]; then 1250 local count 1289 local count 1331 local count 1361 local count 1415 local count [all …]
|
| /tools/testing/selftests/media_tests/ |
| A 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()
|
| /tools/testing/selftests/bpf/map_tests/ |
| A D | htab_map_batch_ops.c | 108 count = max_entries; in __test_map_lookup_and_delete_batch() 118 count = 0; in __test_map_lookup_and_delete_batch() 126 count = max_entries; in __test_map_lookup_and_delete_batch() 149 count = step; in __test_map_lookup_and_delete_batch() 157 &count, &opts); in __test_map_lookup_and_delete_batch() 171 total += count; in __test_map_lookup_and_delete_batch() 184 count = step; in __test_map_lookup_and_delete_batch() 193 total += count; in __test_map_lookup_and_delete_batch() 212 count = step; in __test_map_lookup_and_delete_batch() 220 &count, &opts); in __test_map_lookup_and_delete_batch() [all …]
|
| /tools/perf/tests/shell/lib/ |
| A D | perf_json_output_lint.py | 74 count = len(item) 75 if count not in expected_items and count >= 1 and count <= 7 and 'metric-value' in item: 80 elif count not in expected_items and count >= 1 and count <= 5 and 'metricgroup' in item: 82 elif count - 1 in expected_items and 'metric-threshold' in item: 84 elif count in expected_items and 'insn per cycle' in item: 86 elif count not in expected_items:
|
| /tools/testing/selftests/net/netfilter/ |
| A D | nft_zones_many.sh | 78 …dd if=/dev/zero bs=8k count=1000 2>/dev/null | ip netns exec "$ns1" socat -u STDIN UDP:127.0.0.1:1… 90 local count duration 91 count=$(ip netns exec "$ns1" conntrack -C) 94 if [ "$count" -ge "$max_zones" ]; then 95 echo "PASS: inserted $count entries from packet path in $duration ms total" 98 …echo "FAIL: inserted $count entries from packet path in $duration ms total, expected $max_zones en… 139 local count 141 count=$(ip netns exec "$ns1" conntrack -C) 144 if [ "$count" -eq "$max_zones" ]; then 145 echo "PASS: inserted $count entries via ctnetlink in $duration ms" [all …]
|
| /tools/testing/selftests/powerpc/ |
| A D | utils.c | 31 int read_file(const char *path, char *buf, size_t count, size_t *len) in read_file() argument 42 rc = read(fd, buf, count); in read_file() 52 if (rc == count) { in read_file() 126 int write_file(const char *path, const char *buf, size_t count) in write_file() argument 136 rc = write(fd, buf, count); in write_file() 142 if (rc != count) { in write_file() 174 return read_file(path, buf, count, NULL); in read_debugfs_file() 183 return write_file(path, buf, count); in write_debugfs_file() 197 for (; end < buffer + count; end++) { in validate_int_parse() 224 err = validate_int_parse(buffer, count, end); in parse_bounded_int() [all …]
|
| /tools/perf/tests/ |
| A D | bp_signal_overflow.c | 48 long long count; in bp_count() local 51 ret = read(fd, &count, sizeof(long long)); in bp_count() 57 return count; in bp_count() 67 long long count; in test__bp_signal_overflow() local 121 count = bp_count(fd); in test__bp_signal_overflow() 126 count, overflows); in test__bp_signal_overflow() 128 if (count != EXECUTIONS) { in test__bp_signal_overflow() 130 count, EXECUTIONS); in test__bp_signal_overflow()
|