Searched refs:rnd (Results 1 – 6 of 6) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | map_lock.c | 21 int vars[17], i, j, rnd, key = 0; in parallel_map_access() local 33 rnd = vars[1]; in parallel_map_access() 35 if (vars[j] == rnd) in parallel_map_access() 38 i, rnd, j, vars[j]); in parallel_map_access() 39 CHECK_FAIL(vars[j] != rnd); in parallel_map_access()
|
/tools/testing/selftests/bpf/progs/ |
D | test_map_lock.c | 37 int rnd = bpf_get_prandom_u32(); in bpf_map_lock_test() local 47 val->var[i] = rnd; in bpf_map_lock_test() 56 q->var[i] = rnd; in bpf_map_lock_test()
|
/tools/testing/selftests/netfilter/ |
D | ipip-conntrack-mtu.sh | 26 rnd=$(mktemp -u XXXXXXXX) 29 r_a="ns-ra-$rnd" 30 r_b="ns-rb-$rnd" 31 r_w="ns-rw-$rnd" 32 c_a="ns-ca-$rnd" 33 c_b="ns-cb-$rnd"
|
/tools/testing/selftests/filesystems/incfs/ |
D | incfs_stress.c | 117 off_t offset = rnd(read_data->filesize, &read_data->rng_seed); in reader() 119 rnd(read_data->filesize - offset, &read_data->rng_seed); in reader() 195 size = 1 << (rnd(options->size, &seed) + 12); in test_files() 196 size += rnd(size, &seed); in test_files() 232 rnd(0, &seed); in test_files()
|
D | utils.h | 23 unsigned int rnd(unsigned int max, unsigned int *seed);
|
D | utils.c | 28 unsigned int rnd(unsigned int max, unsigned int *seed) in rnd() function
|