/glibc-2.36/nptl/ |
D | allocatestack.c | 148 guard_position (void *mem, size_t size, size_t guardsize, struct pthread *pd, in guard_position() argument 152 return mem + (((size - guardsize) / 2) & ~pagesize_m1); in guard_position() 156 return (char *) (((uintptr_t) pd - guardsize) & ~pagesize_m1); in guard_position() 163 setup_stack_prot (char *mem, size_t size, char *guard, size_t guardsize, in setup_stack_prot() argument 166 char *guardend = guard + guardsize; in setup_stack_prot() 170 if (__mprotect (guardend, size - guardsize, prot) != 0) in setup_stack_prot() 186 advise_stack_range (void *mem, size_t size, uintptr_t pd, size_t guardsize) in advise_stack_range() argument 199 uintptr_t free_end = (pd - guardsize) & ~pagesize_m1; in advise_stack_range() 324 size_t guardsize; in allocate_stack() local 343 guardsize = (attr->guardsize + pagesize_m1) & ~pagesize_m1; in allocate_stack() [all …]
|
D | tst-default-attr.c | 41 static size_t guardsize; variable 274 if (guardsize != guard) in verify_guardsize_result() 276 printf ("failed to set guardsize (%zu, %zu)\n", guardsize, guard); in verify_guardsize_result() 298 RETURN_IF_FAIL (pthread_attr_getguardsize, &attr, &guardsize); in do_guardsize_test() 299 guardsize += pagesize; in do_guardsize_test() 300 RETURN_IF_FAIL (pthread_attr_setguardsize, &attr, guardsize); in do_guardsize_test()
|
D | pthread_attr_getguardsize.c | 22 __pthread_attr_getguardsize (const pthread_attr_t *attr, size_t *guardsize) in __pthread_attr_getguardsize() argument 28 *guardsize = iattr->guardsize; in __pthread_attr_getguardsize()
|
D | pthread_attr_setguardsize.c | 22 __pthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize) in __pthread_attr_setguardsize() argument 31 iattr->guardsize = guardsize; in __pthread_attr_setguardsize()
|
D | tst-attr3.c | 273 size_t guardsize; in do_test() local 274 err = pthread_attr_getguardsize (&a, &guardsize); in do_test() 280 else if (guardsize != 0) in do_test() 283 guardsize); in do_test()
|
D | perf.c | 120 static long int guardsize = -1; variable 407 if (guardsize != -1 in main() 408 && pthread_attr_setguardsize (&attr, guardsize) != 0) in main() 572 guardsize = snum; in parse_opt()
|
D | pthread_getattr_np.c | 59 iattr->guardsize = thread->reported_guardsize; in __pthread_getattr_np() 66 iattr->stacksize = thread->stackblock_size - thread->guardsize; in __pthread_getattr_np()
|
D | pthread_attr_init.c | 46 iattr->guardsize = __getpagesize (); in __pthread_attr_init()
|
/glibc-2.36/support/ |
D | support_stack_alloc.c | 56 size_t guardsize = roundup (MAX (2 * stacksize, 1024 * 1024), pagesize); in support_stack_alloc() local 57 size_t alloc_size = guardsize + stacksize + guardsize; in support_stack_alloc() 72 xmprotect (alloc_base + guardsize, stacksize, prot); in support_stack_alloc() 73 memset (alloc_base + guardsize, 0xA5, stacksize); in support_stack_alloc() 74 return (struct support_stack) { alloc_base + guardsize, stacksize, guardsize }; in support_stack_alloc() 80 void *alloc_base = (void *)((uintptr_t) stack->stack - stack->guardsize); in support_stack_free() 81 size_t alloc_size = stack->size + 2 * stack->guardsize; in support_stack_free()
|
D | xpthread_attr_setguardsize.c | 22 xpthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize) in xpthread_attr_setguardsize() argument 25 pthread_attr_setguardsize (attr, guardsize)); in xpthread_attr_setguardsize()
|
D | xthread.h | 85 size_t guardsize);
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | dl-execstack.c | 102 + (((((pd->stackblock_size - pd->guardsize) / 2) in __nptl_change_stack_perm() 103 & pagemask) + pd->guardsize) & pagemask)); in __nptl_change_stack_perm() 106 void *stack = pd->stackblock + pd->guardsize; in __nptl_change_stack_perm() 107 size_t len = pd->stackblock_size - pd->guardsize; in __nptl_change_stack_perm() 110 size_t len = (uintptr_t) pd - pd->guardsize - (uintptr_t) pd->stackblock; in __nptl_change_stack_perm()
|
D | timer_create.c | 101 nattr->guardsize = oattr->guardsize; in ___timer_create()
|
/glibc-2.36/benchtests/ |
D | thread_create-source.c | 40 thread_create (int nthreads, size_t stacksize, size_t guardsize) in thread_create() argument 46 guardsize = guardsize * pgsize; in thread_create() 49 xpthread_attr_setguardsize (&attr, guardsize); in thread_create()
|
/glibc-2.36/sysdeps/mach/hurd/i386/htl/ |
D | pt-setup.c | 49 + ((thread->guardsize + __vm_page_size - 1) in stack_setup() 63 if (thread->guardsize) in stack_setup() 66 thread->guardsize, 0, 0); in stack_setup()
|
/glibc-2.36/sysdeps/htl/ |
D | pt-attr-getguardsize.c | 23 pthread_attr_getguardsize (const pthread_attr_t *attr, size_t * guardsize) in pthread_attr_getguardsize() argument 25 *guardsize = attr->__guardsize; in pthread_attr_getguardsize()
|
D | pt-attr-setguardsize.c | 23 pthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize) in pthread_attr_setguardsize() argument 25 attr->__guardsize = guardsize; in pthread_attr_setguardsize()
|
/glibc-2.36/htl/ |
D | pt-getattr.c | 42 + ((pthread->guardsize + __vm_page_size - 1) in __pthread_getattr_np() 45 attr->__guardsize = pthread->guardsize; in __pthread_getattr_np()
|
D | pt-create.c | 156 pthread->guardsize = 0; in weak_alias() 169 pthread->guardsize = setup->__guardsize; in weak_alias()
|
/glibc-2.36/sysdeps/nptl/ |
D | timer_routines.h | 40 && ileft->guardsize == iright->guardsize in thread_attr_compare()
|
D | pthread_early_init.h | 54 __default_pthread_attr.internal.guardsize = GLRO (dl_pagesize); in __pthread_early_init()
|
D | internaltypes.h | 34 size_t guardsize; member
|
/glibc-2.36/rt/ |
D | tst-timer4.c | 68 size_t guardsize = -1; in thr2() local 78 ret = pthread_attr_getguardsize (&nattr, &guardsize); in thr2() 100 thr2_guardsize = guardsize; in thr2()
|
/glibc-2.36/sysdeps/mach/htl/ |
D | pt-thread-terminate.c | 45 stacksize = ((thread->guardsize + __vm_page_size - 1) in __pthread_thread_terminate()
|
/glibc-2.36/htl/tests/ |
D | test-3.c | 61 TEST (guardsize, &sz, sz); in main()
|