Lines Matching refs:bytes

319 	ssize_t bytes;  in alloc_data()  local
332 bytes = bytes0 + HPSIZE; in alloc_data()
334 buf = (void *)mmap(0, bytes, PROT_READ|PROT_WRITE, MAP_ANON|map_flags, -1, 0); in alloc_data()
339 ret = madvise(buf, bytes, MADV_HUGEPAGE); in alloc_data()
346 ret = madvise(buf, bytes, MADV_NOHUGEPAGE); in alloc_data()
355 bzero(buf, bytes); in alloc_data()
363 for (i = 0; i < bytes/8; i++) in alloc_data()
380 static void free_data(void *data, ssize_t bytes) in free_data() argument
387 ret = munmap(data, bytes); in free_data()
394 static void * zalloc_shared_data(ssize_t bytes) in zalloc_shared_data() argument
396 return alloc_data(bytes, MAP_SHARED, 1, g->p.init_cpu0, g->p.thp, g->p.init_random); in zalloc_shared_data()
402 static void * setup_shared_data(ssize_t bytes) in setup_shared_data() argument
404 return alloc_data(bytes, MAP_SHARED, 0, g->p.init_cpu0, g->p.thp, g->p.init_random); in setup_shared_data()
411 static void * setup_private_data(ssize_t bytes) in setup_private_data() argument
413 return alloc_data(bytes, MAP_PRIVATE, 0, g->p.init_cpu0, g->p.thp, g->p.init_random); in setup_private_data()
713 static u64 do_work(u8 *__data, long bytes, int nr, int nr_max, int loop, u64 val) in do_work() argument
715 long words = bytes/sizeof(u64); in do_work()
730 bzero(data, bytes); in do_work()
1435 double bytes; in __bench_numa() local
1536 bytes = g->bytes_done; in __bench_numa()
1557 print_res(name, bytes / g->p.nr_tasks / 1e9, in __bench_numa()
1560 print_res(name, bytes / 1e9, in __bench_numa()
1563 print_res(name, runtime_sec_max * 1e9 / (bytes / g->p.nr_tasks), in __bench_numa()
1566 print_res(name, bytes / g->p.nr_tasks / 1e9 / runtime_sec_max, in __bench_numa()
1569 print_res(name, bytes / runtime_sec_max / 1e9, in __bench_numa()