Home
last modified time | relevance | path

Searched refs:sbrk (Results 1 – 25 of 83) sorted by relevance

1234

/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress03.c75 if ((brk_start = sbrk(0)) == NEG1) { in main()
80 if (sbrk(pagesize - ((u_long) brk_start % (u_long) pagesize)) in main()
88 if ((hole_addr = hole_start = sbrk(NUM_SEGS * 2 * pagesize)) == NEG1) { in main()
92 if ((brk_max_addr = sbrk(0)) == NEG1) { in main()
107 if (brk_max_addr != sbrk(0)) { in main()
114 if (sbrk(-NUM_SEGS * pagesize) == NEG1) { in main()
118 if ((brk_max_addr = sbrk(0)) == NEG1) { in main()
138 if (sbrk(pagesize) == NEG1 || sbrk(-pagesize) == NEG1) { in main()
182 if (sbrk(pagesize) == NEG1) { in do_test()
186 if (sbrk(-pagesize) == NEG1) { in do_test()
[all …]
Dmmapstress06.c79 if (sbrk(pagesize - ((ulong) sbrk(0) & (pagesize - 1))) == (char *)-1) { in main()
83 if ((mmapaddr = sbrk(0)) == (char *)-1) { in main()
Dmmapstress05.c121 if (sbrk(pagesize - ((ulong) sbrk(0) & (pagesize - 1))) == (char *)-1) { in main()
125 if ((buf = sbrk(pagesize)) == (char *)-1) { in main()
129 if ((mmapaddr = (caddr_t) sbrk(0)) == (caddr_t) - 1) { in main()
Dmmapstress08.c71 if (sbrk(pagesize - ((u_long) sbrk(0) % (u_long) pagesize)) == in main()
79 if ((munmap_begin = mmapaddr = (caddr_t) sbrk(0)) == (caddr_t) - 1) { in main()
Dmmapstress02.c111 if (sbrk(2 * pagesize - ((ulong) sbrk(0) & (pagesize - 1))) == in main()
116 if ((mmapaddr = sbrk(0)) == (caddr_t) - 1) { in main()
/external/ltp/testcases/kernel/mem/shmt/
Dshmt09.c82 if ((unsigned long)sbrk(16384) >= (-4095UL)) { in main()
88 if ((unsigned long)sbrk(-4097) >= (-4095UL)) { in main()
116 if ((unsigned long)sbrk(32 * K_1) >= (-4095UL)) { in main()
122 vp = (void *)((char *)sbrk(0) - 2 * K_1); in main()
136 if ((unsigned long)sbrk(-16000) >= (-4095UL)) { in main()
143 vp = (void *)((char *)sbrk(0) + 256 * K_1); in main()
145 vp = (void *)((char *)sbrk(0) + getpagesize()); in main()
148 vp = (void *)SHMALIGN((char *)sbrk(0) + 1); in main()
165 while ((vp = sbrk(INCREMENT)) != (void *)-1) ; in main()
172 if ((vp = sbrk(INCREMENT)) != (void *)-1) { in main()
[all …]
/external/ltp/testcases/kernel/syscalls/sbrk/
Dsbrk03.c60 tst_res(TINFO, "sbrk increm: %p", sbrk(0x10000000)); in sbrk_test()
61 ret1 = sbrk(0); in sbrk_test()
64 tst_res(TINFO, "sbrk increm: %p", sbrk(0x70000000)); in sbrk_test()
65 ret2 = sbrk(0); in sbrk_test()
Dsbrk02.c66 ret = sbrk(increment); in setup()
70 increment, ret, sbrk(0)); in setup()
79 tret = sbrk(increment); in sbrk_verify()
Dsbrk01.c97 tret = sbrk(test->increment); in sbrk_verify()
/external/ltp/testcases/kernel/syscalls/brk/
Dbrk01.c31 cur_brk = (uintptr_t)sbrk(0); in verify_brk()
53 cur_brk = (uintptr_t)sbrk(0); in verify_brk()
/external/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c524 if (sbrk(BRKSZ) == (void *) - 1) { in test5()
543 if (sbrk(-BRKSZ) == (void *) - 1) { in test5()
575 if (sbrk(BRKSZ) == (void *) - 1) { in test6()
603 if (sbrk(-BRKSZ) == (void *) - 1) { in test6()
/external/e2fsprogs/e2fsck/
Dscantest.c57 track->brk_start = sbrk(0); in init_resource_track()
80 (int) (((char *) sbrk(0)) - ((char *) track->brk_start)), in print_resource_track()
/external/autotest/client/tests/memory_api/
Dmemory_api.c50 mem = sbrk(memsize); in main()
62 sbrk(-(memsize)); in main()
/external/e2fsprogs/resize/
Dresource_track.c30 track->brk_start = sbrk(0); in init_resource_track()
88 (unsigned long) (((char *) sbrk(0)) - in print_resource_track()
/external/u-boot/common/
Ddlmalloc.src191 Define this on MS win (95, nt) platforms to compile in sbrk emulation.
196 MORECORE (default: sbrk)
202 holds for sbrk).
208 controlling interaction with host system routines (sbrk, mmap, etc).
319 WIN32 causes an emulation of sbrk to be compiled in
333 Microsoft Visual C++ data structures and routines used in the 'sbrk'
632 Because trimming via sbrk can be slow on some systems, and can
664 sbrk, mmap, and munmap otherwise degrade performance, the default
683 retain whenever sbrk is called. It is used in two ways internally:
685 * When sbrk is called to extend the top of the arena to satisfy
[all …]
/external/u-boot/include/
Dmalloc.h831 extern Void_t* sbrk(ptrdiff_t);
833 extern Void_t* sbrk();
837 #define MORECORE sbrk
/external/ltp/lib/
Dparse_opts.c458 STD_start_break = sbrk(0); /* get original sbreak size */ in usc_global_setup_hook()
461 sbrk(STD_TP_sbrk); in usc_global_setup_hook()
545 sbrk(STD_LP_sbrk); in usc_test_looping()
/external/ltp/testcases/kernel/syscalls/setgroups/
Dsetgroups04.c108 TEST(SETGROUPS(cleanup, gidsetsize, sbrk(0))); in main()
/external/ltp/testcases/kernel/syscalls/
DMakefile29 mincore mprotect nftw profil remap_file_pages sbrk
/external/tensorflow/tensorflow/lite/experimental/micro/tools/make/targets/apollo3evb/
Dapollo3evb.ld71 /* Add this to satisfy reference to symbol 'end' from libnosys.a(sbrk.o)
/external/ltp/testcases/kernel/syscalls/fstat/
Dfstat05.c140 ptr_str = (void *)sbrk(0) + (4 * getpagesize()); in main()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync03.c134 addr4 = sbrk(0) + (4 * page_sz); in setup()
/external/libchrome/base/
Dsecurity_unittest.cc139 void* brk_heap_address = sbrk(0); in TEST()
/external/linux-kselftest/tools/testing/selftests/timers/
Dposix_timers.c37 void *addr = sbrk(0); in kernel_loop()
/external/ltp/testcases/kernel/syscalls/modify_ldt/
Dmodify_ldt01.c186 ptr = sbrk(0); in main()

1234