Lines Matching refs:bytes

314 	ssize_t bytes;  in alloc_data()  local
327 bytes = bytes0 + HPSIZE; in alloc_data()
329 buf = (void *)mmap(0, bytes, PROT_READ|PROT_WRITE, MAP_ANON|map_flags, -1, 0); in alloc_data()
334 ret = madvise(buf, bytes, MADV_HUGEPAGE); in alloc_data()
341 ret = madvise(buf, bytes, MADV_NOHUGEPAGE); in alloc_data()
350 bzero(buf, bytes); in alloc_data()
358 for (i = 0; i < bytes/8; i++) in alloc_data()
375 static void free_data(void *data, ssize_t bytes) in free_data() argument
382 ret = munmap(data, bytes); in free_data()
389 static void * zalloc_shared_data(ssize_t bytes) in zalloc_shared_data() argument
391 return alloc_data(bytes, MAP_SHARED, 1, g->p.init_cpu0, g->p.thp, g->p.init_random); in zalloc_shared_data()
397 static void * setup_shared_data(ssize_t bytes) in setup_shared_data() argument
399 return alloc_data(bytes, MAP_SHARED, 0, g->p.init_cpu0, g->p.thp, g->p.init_random); in setup_shared_data()
406 static void * setup_private_data(ssize_t bytes) in setup_private_data() argument
408 return alloc_data(bytes, MAP_PRIVATE, 0, g->p.init_cpu0, g->p.thp, g->p.init_random); in setup_private_data()
708 static u64 do_work(u8 *__data, long bytes, int nr, int nr_max, int loop, u64 val) in do_work() argument
710 long words = bytes/sizeof(u64); in do_work()
725 bzero(data, bytes); in do_work()
1422 double bytes; in __bench_numa() local
1523 bytes = g->bytes_done; in __bench_numa()
1544 print_res(name, bytes / g->p.nr_tasks / 1e9, in __bench_numa()
1547 print_res(name, bytes / 1e9, in __bench_numa()
1550 print_res(name, runtime_sec_max * 1e9 / (bytes / g->p.nr_tasks), in __bench_numa()
1553 print_res(name, bytes / g->p.nr_tasks / 1e9 / runtime_sec_max, in __bench_numa()
1556 print_res(name, bytes / runtime_sec_max / 1e9, in __bench_numa()