Home
last modified time | relevance | path

Searched refs:nchunks (Results 1 – 12 of 12) sorted by relevance

/external/ltp/testcases/kernel/fs/ftest/
Dftest01.c251 int nchunks; variable
267 nchunks = max_size / csize; in dotest()
269 if ((bits = calloc((nchunks + 7) / 8, 1)) == 0) { in dotest()
275 if ((hold_bits = calloc((nchunks + 7) / 8, 1)) == 0) { in dotest()
327 memset(bits, 0, (nchunks + 7) / 8); in dotest()
328 memset(hold_bits, 0, (nchunks + 7) / 8); in dotest()
333 while (count < nchunks) { in dotest()
334 chunk = rand() % nchunks; in dotest()
380 ft_dumpbits(bits, (nchunks + 7) / 8); in dotest()
382 (nchunks + 7) / 8); in dotest()
[all …]
Dftest05.c254 int nchunks; variable
269 nchunks = max_size / csize; in dotest()
271 if ((bits = calloc((nchunks + 7) / 8, 1)) == NULL) { in dotest()
276 if ((hold_bits = calloc((nchunks + 7) / 8, 1)) == NULL) { in dotest()
324 memset(bits, 0, (nchunks + 7) / 8); in dotest()
325 memset(hold_bits, 0, (nchunks + 7) / 8); in dotest()
330 while (count < nchunks) { in dotest()
331 chunk = rand() % nchunks; in dotest()
374 ft_dumpbits(bits, (nchunks + 7) / 8); in dotest()
376 (nchunks + 7) / 8); in dotest()
[all …]
Dftest03.c276 int nchunks; variable
300 nchunks = max_size / csize; in dotest()
303 if ((bits = malloc((nchunks + 7) / 8)) == 0) { in dotest()
307 if ((hold_bits = malloc((nchunks + 7) / 8)) == 0) { in dotest()
383 memset(bits, 0, (nchunks + 7) / 8); in dotest()
384 memset(hold_bits, 0, (nchunks + 7) / 8); in dotest()
399 while (count < nchunks) { in dotest()
400 chunk = rand() % nchunks; in dotest()
450 (nchunks + 7) / 8); in dotest()
452 (nchunks + 7) / 8); in dotest()
[all …]
Dftest07.c272 int nchunks; variable
300 nchunks = max_size / csize; in dotest()
303 if ((bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest()
306 if ((hold_bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest()
379 memset(bits, 0, (nchunks + 7) / 8); in dotest()
380 memset(hold_bits, 0, (nchunks + 7) / 8); in dotest()
393 while (count < nchunks) { in dotest()
394 chunk = rand() % nchunks; in dotest()
444 (nchunks + 7) / 8); in dotest()
446 (nchunks + 7) / 8); in dotest()
[all …]
Dftest04.c216 int nchunks; variable
237 nchunks = max_size / (testers * csize); in dotest()
240 if ((bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest()
314 memset(bits, 0, (nchunks + 7) / 8); in dotest()
325 while (count < nchunks) { in dotest()
326 chunk = rand() % nchunks; in dotest()
371 (nchunks + 7) / 8); in dotest()
400 (nchunks + 7) / 8); in dotest()
435 if (count + collide > 2 * nchunks) in dotest()
443 if (count < nchunks) { in dotest()
[all …]
Dftest08.c223 int nchunks; variable
244 nchunks = max_size / (testers * csize); in dotest()
247 if ((bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest()
318 memset(bits, 0, (nchunks + 7) / 8); in dotest()
332 while (count < nchunks) { in dotest()
333 chunk = rand() % nchunks; in dotest()
380 (nchunks + 7) / 8); in dotest()
411 (nchunks + 7) / 8); in dotest()
446 if (count + collide > 2 * nchunks) in dotest()
454 if (count < nchunks) { in dotest()
[all …]
/external/fio/t/
Ddedupe.c377 uint64_t *nextents, uint64_t *nchunks) in run_dedupe_threads() argument
404 *nchunks = 1; in run_dedupe_threads()
409 *nchunks += threads[i].dupes; in run_dedupe_threads()
415 *nchunks = nitems - *nchunks; in run_dedupe_threads()
423 uint64_t *nchunks) in dedupe_check() argument
460 return run_dedupe_threads(&file, dev_size, nextents, nchunks); in dedupe_check()
480 static void show_stat(uint64_t nextents, uint64_t nchunks) in show_stat() argument
484 printf("Extents=%lu, Unique extents=%lu\n", (unsigned long) nextents, (unsigned long) nchunks); in show_stat()
486 if (nchunks) { in show_stat()
487 ratio = (double) nextents / (double) nchunks; in show_stat()
[all …]
/external/ltp/testcases/kernel/mem/vmtests/
Dstack_space.c201 int nchunks; variable
217 nchunks = MAXSIZE / csize; in dotest()
218 bits = malloc((nchunks + 7) / 8); in dotest()
253 bfill(bits, 0, (nchunks + 7) / 8); in dotest()
257 while (count < nchunks) { in dotest()
258 chunk = rand() % nchunks; in dotest()
277 dumpbits(bits, (nchunks + 7) / 8); in dotest()
294 dumpbits(bits, (nchunks + 7) / 8); in dotest()
305 if (count + collide > 2 * nchunks) in dotest()
313 for (chunk = 0; chunk < nchunks; chunk++) { in dotest()
Ddata_space.c214 int nchunks; variable
242 nchunks = max_size / csize;
243 bits = malloc((nchunks + 7) / 8);
285 bfill(bits, 0, (nchunks + 7) / 8);
289 while (count < nchunks) {
290 chunk = rand() % nchunks;
309 dumpbits(bits, (nchunks + 7) / 8);
326 dumpbits(bits, (nchunks + 7) / 8);
337 if (count + collide > 2 * nchunks)
349 for (chunk = 0; chunk < nchunks; chunk++) {
/external/python/cpython2/Lib/test/
Dtest_file.py227 nchunks = dataoffset // len(filler)
242 bag.write(filler * nchunks)
262 for i in range(nchunks):
Dtest_file2k.py334 nchunks = dataoffset // len(filler)
349 bag.write(filler * nchunks)
375 for i in range(nchunks):
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibbitmask.c223 int nchunks = 0, chunk; in bitmask_parsehex() local
231 nchunks++; in bitmask_parsehex()
233 chunk = nchunks - 1; in bitmask_parsehex()