Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dmap_lock.c21 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/
Dtest_map_lock.c37 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/
Dipip-conntrack-mtu.sh26 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/
Dincfs_stress.c117 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()
Dutils.h23 unsigned int rnd(unsigned int max, unsigned int *seed);
Dutils.c28 unsigned int rnd(unsigned int max, unsigned int *seed) in rnd() function