Home
last modified time | relevance | path

Searched refs:guardsize (Results 1 – 25 of 31) sorted by relevance

12

/glibc-2.36/nptl/
Dallocatestack.c148 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 …]
Dtst-default-attr.c41 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()
Dpthread_attr_getguardsize.c22 __pthread_attr_getguardsize (const pthread_attr_t *attr, size_t *guardsize) in __pthread_attr_getguardsize() argument
28 *guardsize = iattr->guardsize; in __pthread_attr_getguardsize()
Dpthread_attr_setguardsize.c22 __pthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize) in __pthread_attr_setguardsize() argument
31 iattr->guardsize = guardsize; in __pthread_attr_setguardsize()
Dtst-attr3.c273 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()
Dperf.c120 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()
Dpthread_getattr_np.c59 iattr->guardsize = thread->reported_guardsize; in __pthread_getattr_np()
66 iattr->stacksize = thread->stackblock_size - thread->guardsize; in __pthread_getattr_np()
Dpthread_attr_init.c46 iattr->guardsize = __getpagesize (); in __pthread_attr_init()
/glibc-2.36/support/
Dsupport_stack_alloc.c56 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()
Dxpthread_attr_setguardsize.c22 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()
Dxthread.h85 size_t guardsize);
/glibc-2.36/sysdeps/unix/sysv/linux/
Ddl-execstack.c102 + (((((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()
Dtimer_create.c101 nattr->guardsize = oattr->guardsize; in ___timer_create()
/glibc-2.36/benchtests/
Dthread_create-source.c40 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/
Dpt-setup.c49 + ((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/
Dpt-attr-getguardsize.c23 pthread_attr_getguardsize (const pthread_attr_t *attr, size_t * guardsize) in pthread_attr_getguardsize() argument
25 *guardsize = attr->__guardsize; in pthread_attr_getguardsize()
Dpt-attr-setguardsize.c23 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/
Dpt-getattr.c42 + ((pthread->guardsize + __vm_page_size - 1) in __pthread_getattr_np()
45 attr->__guardsize = pthread->guardsize; in __pthread_getattr_np()
Dpt-create.c156 pthread->guardsize = 0; in weak_alias()
169 pthread->guardsize = setup->__guardsize; in weak_alias()
/glibc-2.36/sysdeps/nptl/
Dtimer_routines.h40 && ileft->guardsize == iright->guardsize in thread_attr_compare()
Dpthread_early_init.h54 __default_pthread_attr.internal.guardsize = GLRO (dl_pagesize); in __pthread_early_init()
Dinternaltypes.h34 size_t guardsize; member
/glibc-2.36/rt/
Dtst-timer4.c68 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/
Dpt-thread-terminate.c45 stacksize = ((thread->guardsize + __vm_page_size - 1) in __pthread_thread_terminate()
/glibc-2.36/htl/tests/
Dtest-3.c61 TEST (guardsize, &sz, sz); in main()

12