Lines Matching refs:pagesize
37 int pagesize; member
54 p = &ctx->ptr[j * ctx->pagesize]; in thread_read()
89 memcpy(&ctx->ptr[j * ctx->pagesize], nop_func, sizeof(nop_func)); in thread_write()
92 ts = (struct timespec *)(&ctx->ptr[(j + 1) * ctx->pagesize] - in thread_write()
111 ((void(*)(void))&ctx->ptr[j * ctx->pagesize])(); in thread_execute()
147 ret = mprotect(&ctx->ptr[start_idx * ctx->pagesize], in thread_mutate()
148 (end_idx - start_idx + 1) * ctx->pagesize, prot); in thread_mutate()
170 ctx.pagesize = getpagesize(); in main()
171 ctx.ptr = mmap(NULL, PAGE_COUNT * ctx.pagesize, in main()
176 memcpy(&ctx.ptr[i * ctx.pagesize], nop_func, sizeof(nop_func)); in main()
203 ret = munmap(ctx.ptr, PAGE_COUNT * ctx.pagesize); in main()