/Linux-v5.10/tools/testing/radix-tree/ |
D | main.c | 58 __gang_check(start, rand() % 113 + 1, rand() % 71, in __big_gang_check() 59 rand() % 157, rand() % 91 + 1); in __big_gang_check() 61 start += rand() % 1000000; in __big_gang_check() 164 start = rand(); in copy_tag_check() 165 end = rand(); in copy_tag_check() 166 if (start > end && (rand() % 10)) { in copy_tag_check() 173 cur = rand(); in copy_tag_check() 203 idx[i] = rand(); in copy_tag_check() 207 if (rand() & 1) { in copy_tag_check() 225 tmp = rand() % (count / 10 + 2); in copy_tag_check()
|
D | tag_check.c | 180 index = rand() % THRASH_SIZE; in do_thrash() 192 index = rand() % THRASH_SIZE; in do_thrash() 210 index = rand() % THRASH_SIZE; in do_thrash() 225 index = rand() % THRASH_SIZE; in do_thrash()
|
/Linux-v5.10/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-hwbreak.c | 138 if (rand() % 2) in test_workload() 154 if (rand() % 2) in test_workload() 163 gstruct.a[rand() % A_LEN] = 'a'; in test_workload() 166 cvar = gstruct.a[rand() % A_LEN]; in test_workload() 169 if (rand() % 2) in test_workload() 170 gstruct.a[rand() % A_LEN] = 'a'; in test_workload() 172 cvar = gstruct.a[rand() % A_LEN]; in test_workload() 175 gstruct.b[rand() % B_LEN] = 'b'; in test_workload() 178 cvar = gstruct.b[rand() % B_LEN]; in test_workload() 181 if (rand() % 2) in test_workload() [all …]
|
D | ptrace-tm-spd-vsx.c | 135 fp_load[i] = 1 + rand(); in ptrace_tm_spd_vsx() 136 fp_load_new[i] = 1 + 2 * rand(); in ptrace_tm_spd_vsx() 137 fp_load_ckpt[i] = 1 + 3 * rand(); in ptrace_tm_spd_vsx() 138 fp_load_ckpt_new[i] = 1 + 4 * rand(); in ptrace_tm_spd_vsx()
|
D | ptrace-tm-vsx.c | 119 fp_load[i] = 1 + rand(); in ptrace_tm_vsx() 120 fp_load_ckpt[i] = 1 + 2 * rand(); in ptrace_tm_vsx() 121 fp_load_ckpt_new[i] = 1 + 3 * rand(); in ptrace_tm_vsx()
|
D | ptrace-vsx.c | 69 fp_load[i] = i + rand(); in ptrace_vsx() 72 fp_load_new[i] = i + 2 * rand(); in ptrace_vsx()
|
/Linux-v5.10/arch/x86/kernel/ |
D | espfix_64.c | 97 unsigned long rand; in init_espfix_random() local 103 if (!arch_get_random_long(&rand)) { in init_espfix_random() 105 rand = rdtsc(); in init_espfix_random() 106 rand *= 0xc345c6b72fd16123UL; in init_espfix_random() 109 slot_random = rand % ESPFIX_STACKS_PER_PAGE; in init_espfix_random() 110 page_random = (rand / ESPFIX_STACKS_PER_PAGE) in init_espfix_random()
|
/Linux-v5.10/tools/testing/selftests/vm/ |
D | mlock-random-test.c | 161 int is_mlock = !!(rand() % 2); in test_mlock_within_limit() 162 int lock_size = rand() % alloc_size; in test_mlock_within_limit() 163 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_within_limit() 232 int is_mlock = !!(rand() % 2); in test_mlock_outof_limit() 233 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) in test_mlock_outof_limit() 235 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_outof_limit()
|
/Linux-v5.10/drivers/media/test-drivers/vivid/ |
D | vivid-touch-cap.c | 213 unsigned int rand = get_random_int(); in vivid_fill_buff_noise() local 215 if (rand % 10) in vivid_fill_buff_noise() 218 tch_buf[i] = (rand / 10) % 7 - 3; in vivid_fill_buff_noise() 261 unsigned int test_pattern, test_pat_idx, rand; in vivid_fillbuff_tch() local 276 rand = dev->tch_pat_random; in vivid_fillbuff_tch() 281 vivid_tch_buf_set(f, tch_buf, rand % size); in vivid_fillbuff_tch() 285 vivid_tch_buf_set(f, tch_buf, rand % size); in vivid_fillbuff_tch() 289 vivid_tch_buf_set(f, tch_buf, rand % size); in vivid_fillbuff_tch() 293 (rand % f->height) * f->width + in vivid_fillbuff_tch()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | bpf_rand.h | 11 return (((uint64_t)(uint32_t)rand()) | in bpf_rand_mask() 12 ((uint64_t)(uint32_t)rand() << 32)) & mask; in bpf_rand_mask() 37 switch (rand() % 39) { in bpf_semi_rand_get()
|
D | test_lpm_map.c | 183 rand() % 0xff, in test_lpm_order() 184 rand() % 0xff, in test_lpm_order() 185 }, rand() % 16 + 1); in test_lpm_order() 191 uint8_t key[] = { rand() % 0xff, rand() % 0xff }; in test_lpm_order() 245 value[j] = rand() & 0xff; in test_lpm_map() 246 value[keysize] = rand() % (8 * keysize + 1); in test_lpm_map() 258 data[j] = rand() & 0xff; in test_lpm_map() 295 data[j] = rand() & 0xff; in test_lpm_map()
|
/Linux-v5.10/arch/x86/mm/ |
D | kaslr.c | 68 unsigned long rand, memory_tb; in kernel_randomize_memory() local 126 prandom_bytes_state(&rand_state, &rand, sizeof(rand)); in kernel_randomize_memory() 127 entropy = (rand % (entropy + 1)) & PUD_MASK; in kernel_randomize_memory()
|
/Linux-v5.10/mm/ |
D | shuffle.c | 164 static u64 rand; in shuffle_pick_tail() local 174 rand = get_random_u64(); in shuffle_pick_tail() 177 ret = rand & 1; in shuffle_pick_tail() 180 rand >>= 1; in shuffle_pick_tail()
|
/Linux-v5.10/tools/testing/selftests/net/ |
D | ip_defrag.c | 245 if (!cfg_overlap && (rand() % 100 < 15)) { in send_udp_frags() 255 if (!cfg_overlap && (rand() % 100 < 20) && in send_udp_frags() 280 if (rand() % 100 == 1) in send_udp_frags() 299 offset = rand() % (payload_len / 2); in send_udp_frags() 300 frag_len = 2 * max_frag_len + 1 + rand() % 256; in send_udp_frags() 328 if (rand() % 100 == 1) in send_udp_frags() 364 payload_len += (rand() % 4096)) { in run_test() 375 rand() % (1500 - FRAG_HLEN - min_frag_len); in run_test() 389 max_frag_len += 8 * (rand() % 8); in run_test()
|
/Linux-v5.10/net/rds/ |
D | threads.c | 126 unsigned long rand; in rds_queue_reconnect() local 148 get_random_bytes(&rand, sizeof(rand)); in rds_queue_reconnect() 150 rand % cp->cp_reconnect_jiffies, cp->cp_reconnect_jiffies, in rds_queue_reconnect() 155 rand % cp->cp_reconnect_jiffies); in rds_queue_reconnect()
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | tcp_hdr_options.c | 87 prefix ? : "", opt->flags, opt->max_delack_ms, opt->rand); in print_option() 340 exp_passive_estab_in.rand = 0xfa; in fastopen_estab() 344 exp_active_estab_in.rand = 0xce; in fastopen_estab() 378 exp_passive_estab_in.rand = 0xfa; in syncookie_estab() 383 exp_active_estab_in.rand = 0xce; in syncookie_estab() 423 exp_passive_fin_in.rand = 0xfa; in fin() 426 exp_active_fin_in.rand = 0xce; in fin() 456 exp_passive_estab_in.rand = 0xfa; in __simple_estab() 460 exp_active_estab_in.rand = 0xce; in __simple_estab()
|
/Linux-v5.10/tools/perf/tests/ |
D | wp.c | 68 unsigned long tmp, tmp1 = rand(); in wp_ro_test() 87 unsigned long tmp, tmp1 = rand(); in wp_wo_test() 106 unsigned long tmp, tmp1 = rand(); in wp_rw_test() 126 unsigned long tmp = rand(); in wp_modify_test()
|
/Linux-v5.10/tools/testing/selftests/powerpc/dscr/ |
D | dscr_explicit_test.c | 31 double ret = uniform_deviate(rand()); in dscr_explicit() 48 ret = uniform_deviate(rand()); in dscr_explicit()
|
/Linux-v5.10/tools/testing/selftests/sync/ |
D | sync_stress_merge.c | 64 timeline_offset = rand() % timeline_count; in test_merge_stress_random_merge() 66 sync_point = rand(); in test_merge_stress_random_merge()
|
/Linux-v5.10/samples/bpf/ |
D | map_perf_test_user.c | 380 key->prefixlen = rand() % 33; in fill_lpm_trie() 381 key->data[0] = rand() & 0xff; in fill_lpm_trie() 382 key->data[1] = rand() & 0xff; in fill_lpm_trie() 383 key->data[2] = rand() & 0xff; in fill_lpm_trie() 384 key->data[3] = rand() & 0xff; in fill_lpm_trie()
|
D | hbm_edt_kern.c | 132 unsigned int rand = bpf_get_prandom_u32(); in _hbm_out_cg() local 135 (rand % MARK_REGION_SIZE_NS)) { in _hbm_out_cg()
|
D | hbm_out_kern.c | 149 unsigned int rand = bpf_get_prandom_u32(); in _hbm_out_cg() local 152 (rand % MARK_REGION_SIZE)) { in _hbm_out_cg()
|
/Linux-v5.10/net/rose/ |
D | rose_subr.c | 259 facilities->rand = ((p[1] << 8) & 0xFF00) + ((p[2] << 0) & 0x00FF); in rose_parse_national() 443 if (rose->rand != 0 || rose->source_ndigis == 1 || rose->dest_ndigis == 1) { in rose_create_facilities() 447 if (rose->rand != 0) { in rose_create_facilities() 449 *p++ = (rose->rand >> 8) & 0xFF; in rose_create_facilities() 450 *p++ = (rose->rand >> 0) & 0xFF; in rose_create_facilities()
|
/Linux-v5.10/tools/testing/selftests/timers/ |
D | freq-step.c | 163 usleep(rand() % 2000000 * STEP_INTERVAL / 10); in run_test() 168 usleep(rand() % 2000000 * MEAN_SAMPLE_INTERVAL); in run_test() 251 freq_base = (rand() % (1 << 24) - (1 << 23)) / 65536e6; in main()
|
/Linux-v5.10/kernel/locking/ |
D | locktorture.c | 615 DEFINE_TORTURE_RANDOM(rand); in lock_torture_writer() 621 if ((torture_random(&rand) & 0xfffff) == 0) in lock_torture_writer() 624 cxt.cur_ops->task_boost(&rand); in lock_torture_writer() 633 cxt.cur_ops->write_delay(&rand); in lock_torture_writer() 652 DEFINE_TORTURE_RANDOM(rand); in lock_torture_reader() 658 if ((torture_random(&rand) & 0xfffff) == 0) in lock_torture_reader() 667 cxt.cur_ops->read_delay(&rand); in lock_torture_reader()
|