1. a9d5600 I tried "hugemmap", "hugeshmat", "hugeshmctl", "hugeshmdt" and by Rishikesh K Rajak · 15 years ago
  2. e520c31 Switch all of these Makefiles over to MAKE_DEPS instead of ad hoc by Garrett Cooper · 15 years ago
  3. e207825 mem/hugeshmget: fix failure of hugeshmget01: During hugeshmget01 testcase, we got the following: by subrata_modak · 15 years ago
  4. 4c3ab33 mem/hugetlb: fix failure of hugemmap04: Testcase hugemmap04 needs at least one hugepage to test, so there needs a judgement of "number of hugepages". This patch fixed the problems. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>. by subrata_modak · 15 years ago
  5. 923b23f Other compiler warning fixes: this is another chunk of compiler warning fixes in LTP tests, related to printf format strings. They have multiple causes: by subrata_modak · 15 years ago
  6. ba2cfc0 mem/hugetlb: fix failure of hugemmap03: 1) In mmap's manual, The starting address for the new mapping is specified in addr. So, if mmap's argument "addr" is reachable, the mmap will creates a new mapping in the virtual address space of the call-ing process. The test hugemmap03 will test that a normal page cannot be mapped into a high memory region. This infers that "addr" should be higher for 64-bit mode. 2) The test use "-I2" option, and this not only causes TFAIL's loop, but also causes TPASS's loop. For TFAIL, loop is deserved, nor for TPASS. This patch fixed these problems. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>. by subrata_modak · 15 years ago
  7. acb8449 Fix temporary file creation in mmapstress tests: these are two little fixes of the mmapstress test: by subrata_modak · 15 years ago
  8. 5358736 Dependency for all was wrong. by yaberauneya · 15 years ago
  9. da124b9 Just another printf cleanup: attached patch fixes some more printf formating issues as well as some coding style errors. Signed-off-by: <chrubis@suse.cz>. by subrata_modak · 15 years ago
  10. ad3a447 Fix some stupid errors as far as not including the right directories / libraries is concerned. by yaberauneya · 15 years ago
  11. bf995b2 1. I screwed up and broke install by accident when I was monkeying around with env_post.mk. by yaberauneya · 15 years ago
  12. e6edac6 Fix build/installation so we don't install the libraries directly to $(libdir) anymore, and thus can do testing out of a build tree (ish). by yaberauneya · 15 years ago
  13. ef77253 1. Please see README.mk-devel for a full description of the changes by yaberauneya · 15 years ago
  14. 428f6a3 mmapstress03: consider passed when returning EINVAL in the large mmap test: Some architectures may return EINVAL instead of ENOMEM. This should also be ok according to mmap manual: EINVAL We don't like addr, length, or offset (e.g., they are too large, or not aligned on a page boundary). Signed-off-by: nobuhiro <nobuhiro@andestech.com>. by subrata_modak · 15 years ago
  15. 88c166c Test library cleanups: Removing no longer used code from test.h eg. test_error.c is no longer in ltp, and the same for t_res.c so there is no need to include function prototypes for these. Adding void to functions that doesn't take any parameters; tst_exit() -> tst_exit(void); so code that pases parameters to these is not compileable any more. Also fixes all test broken by that change. As parameters passed to tst_exit() are ignored anyway it's quite safe to just remove them; but I'would rather see someone take a closer look. Code cleanups and fixes in tst_res.c: by subrata_modak · 15 years ago
  16. c79a92d Add Test for Checking mmap() corruption. Signed-Off-By: Ying Han <yinghan@google.com>. Ported-To-And-Tested-On-LTP-By: Subrata Modak <subrata@linux.vnet.ibm.com>. by subrata_modak · 16 years ago
  17. bdbaec5 Clean Trailing Tab: Signed-off-by: Michal Simek <monstr@monstr.eu>. by subrata_modak · 16 years ago
  18. 4bb656a Clear Trailing Whitespace. Signed-off-by: Michal Simek <monstr@monstr.eu>. by subrata_modak · 16 years ago
  19. 134e896 fix return(1) -> return 1. Signed-off-by: Michal Simek <monstr@monstr.eu>. by subrata_modak · 16 years ago
  20. 43337a3 Fix return(0) to return 0. Signed-off-by: Michal Simek <monstr@monstr.eu>. by subrata_modak · 16 years ago
  21. 9650284 RFC: Fixes for Shared Memory test case shmat: Shmat1.c(testcases/kernel/mem/mtest06) is a test case which tries to create 3 threads during its execution. One thread allocates shared memory, second writes to the shared memory and the third reads from the shared memory. All the 3 threads are synchronized using a global variable. In case of signal (sigsegv) sighandler will be called. The current test case implementation is complete only for x86 arc and is not valid for other archs. We have noticed various issues while executing this test case. Test case issues can be summarized as: by subrata_modak · 16 years ago
  22. 2b11124 Here it goes. What i have tried to do is fix only the broken issues, where the test case(s) will not execute if enough hugepages are not available in the system. Now, i leave it on the discrition of the user to increase the hugepages in their system before executing these tests. Else, if you all agree on some way to autoset that before test execution, it would be welcome. Following patches Follow: by subrata_modak · 16 years ago
  23. 36f6339 mmapstress03: fix mmapstress03 on x86_64: There is a testcase in mmapstress03, which tries to mmap 2Gb-4Kb at address 0x7ffff000 and checks it returns error and errno is set to ENOMEM. But such mmap is possible on x86_64. So lets tune size and address to more suitable for 64-bit architectures.. Signed-Off-By: Dmitry Guryanov <dguryanov@parallels.com>. by subrata_modak · 16 years ago
  24. d245d77 There is a testcase in mmapstress03, which checks, that we can't mmap 2Gb-512Kb of RAM at address 0x7ff80000. But if host has > 2Gb of RAM+swap - it's valid operation: mmap maps 2Gb of ram at some other address and returns no errors. For correct working of this testcase we should add MAP_FIXED flag to mmap. Signed-Off-By: Dmitry Guryanov <dguryanov@parallels.com>. by subrata_modak · 16 years ago
  25. 94d177a This patch fix man miscellenous compilation warnings. Signed-off-by: CAI Qian <caiqian@cclom.cn>. by subrata_modak · 16 years ago
  26. c3e450f Per request of Mike Frysinger, I resend this patch. The patch itself is the same, but the explanation is extended. Hope it's better this time. by subrata_modak · 16 years ago
  27. fcaa817 Mem01 test case sometimes trigger OOM Killer. As the result, the test failed with a non-error code. This patch reduces the chance of OOM Killer by always reserving 16MB memory. It is a trade-off between not testing all available memory and dealing with false failure (extra work to waive the failure in automated environment and clean up unexpected test leftovers). I prefer the formal. Signed-off-by: CAI Qian <caiqian@cclom.cn>. by subrata_modak · 16 years ago
  28. 8f9b2c2 This series of patches fixes failures with mmapstress04, mmapstress07 and mmapstress08 test cases on IA-64, s390x and PPC64 mostly due to assuming page sizes on those architectures are 4K. This patch fixes mmapstress08 test case by limiting this test to run for x86 architecture only due to it makes several assumptions about 4K page size etc, and I don't see the obvious way to make it work for non-x86 architectures. Signed-off-by: CAI Qian <caiqian@cclom.cn>. by subrata_modak · 16 years ago
  29. ab5bcc3 This series of patches fixes failures with mmapstress04, mmapstress07 and mmapstress08 test cases on IA-64, s390x and PPC64 mostly due to assuming page sizes on those architectures are 4K. This patch fixes mmapstress07 test case by obtaining default settings from default page size. It also preserve the possibility to use user-specified arguments. Signed-off-by: CAI Qian <caiqian@cclom.cn>. by subrata_modak · 16 years ago
  30. cd17243 This series of patches fixes failures with mmapstress04, mmapstress07 and mmapstress08 test cases on IA-64, s390x and PPC64 mostly due to assuming page sizes on those architectures are 4K. This patch fixes mmapstress04 test case by obtaining default settings from default page size. It also preserve the possibility to use user-specified arguments. Signed-off-by: CAI Qian <caiqian@cclom.cn>. by subrata_modak · 16 years ago
  31. ed693f5 Fixed typo when not defining SPEW_SIGNALS in my_yield(). Signed-Off-By: nobuhiro <nobuhiro@andestech.com>. by subrata_modak · 16 years ago
  32. ba205d2 sbrk has arguments of type intptr_t, which is long in on x86_64. There is following line in mmapstress03: by subrata_modak · 16 years ago
  33. 8b828a2 Risrajak <risrajak@linux.vnet.ibm.com> reported: by subrata_modak · 16 years ago
  34. 6bc7da7 hugemmap02 "Segmentation fault" fix: by subrata_modak · 16 years ago
  35. 241d25d Following warnings are generated when compiling mm_core_apis.c. Attached patch fixes them. Signed-Off-By: Subrata Modak<subrata@linux.vnet.ibm.com>. by subrata_modak · 16 years ago
  36. ae1b395 The following patch Integrates the remaining MMAPSTRESS into runltp. Signed-Off-By: Subrata Modak <subrata@linux.vnet.ibm.com>. by subrata_modak · 16 years ago
  37. 2b8ee84 The following patch Integrates the remaining MTEST06 into runltp. Signed-Off-By: Subrata Modak <subrata@linux.vnet.ibm.com>. by subrata_modak · 16 years ago
  38. 5b85805 The result of alloc_mem thread could be either NULL, ptr to some allocated memory or (void*)-1. The code reading this result actually handled cases 1 & 2 only, and even case "NULL" was mishandled, causing a segfault. This patch fixes it, by: by subrata_modak · 16 years ago
  39. 9c92901 Running hugemmap02 test case on IA-32 generated SIGSEGV. It also gives warnings when compiling: by subrata_modak · 16 years ago
  40. b15aafd Hi, by subrata_modak · 16 years ago
  41. 7d70eb8 Fix memory leaks in mallocstress. Signed-off-by: Jin Bing Guo <guojb@cn.ibm.com>. by subrata_modak · 16 years ago
  42. 5cc0ae1 Fix memory leaks in mem02. Signed-off-by: Jin Bing Guo <guojb@cn.ibm.com>. by subrata_modak · 16 years ago
  43. 97e67c9 Here is some small correction in memory map stress testcases. Result before applying patch: by subrata_modak · 16 years ago
  44. bda48ea In hugemmap04, the huge page size was defined as a macro-definition. by subrata_modak · 16 years ago
  45. 1e9bad9 In hugemmap01, huge page size was defined as a macro-definition. by subrata_modak · 16 years ago
  46. b6ecbe3 I've attached some patches that I created for LTP at work. Most of them simply add command-line options to specify the amount of memory/pages to use for tests. However, there's one fix that works around a bug in uClibc's pthread implementation. Allow the number of pages to use for the test to be specified on the command-line. Fix a memory leak. Also, call _exit(2) from child processes which avoids the child calling the atexit functions that the pthread library setup. This fixes an issue where the pthread manager thread would begin exiting at the same time as a child thread. The child thread would run the atexit functions which cause it to wait for a signal to be sent from the thread manager. As the thread manager was trying to exit that signal would never be sent. Calling _exit(2) from the child avoids this whole mess.Matt Fleming <mjf@gentoo.org>. by subrata_modak · 16 years ago
  47. 7e61536 I've attached some patches that I created for LTP at work. Most of them simply add command-line options to specify the amount of memory/pages to use for tests. However, there's one fix that works around a bug in uClibc's pthread implementation. It can be unsafe to call exit(3) from a signal handler. Call _exit(2) instead. by subrata_modak · 16 years ago
  48. be923e8 I've attached some patches that I created for LTP at work. Most of them simply add command-line options to specify the amount of memory/pages to use for tests. However, there's one fix that works around a bug in uClibc's pthread implementation. Allow the amount of memory to be used to be passed as a command-line argument. Matt Fleming <mjf@gentoo.org>. by subrata_modak · 16 years ago
  49. 0417704 mallocstress stresses the VMM and C library by spawning N threads which malloc blocks of increasing size until malloc returns NULL. It occur because test doesn't wait for all thread started. already started threads begin allocate memory, so pthread_create can return ENOMEM. my patch added this synchronizing. I use semaphore, because it can wait-for-zero unlike pthread_mutex. sorry, forgot set permission in semget, new patch attached. Andrew Vagin <avagin@gmail.com>. by subrata_modak · 16 years ago
  50. ee2924a Roy Lee <roylee17@gmail.com> wrote: by subrata_modak · 16 years ago
  51. 3b8e06c I see Roy's patch was already checked in. In principle I agree with the patch, but a few things are wrong now and IMHO does not fulfill what it should test any longer. shm05.c -> see my (untested!!!) patch below. Some architectures can only map at specific offsets. Current version "sucessfully" fails, because e.g. hppa can't map at cp+4096. So, it's not failing because the memory regions overlap, although that was intended to be tested...shm06.c now does basically the same test as shm04.c ?!? Doesn't make sense... I would revert the patch for shm06, but maybe others think different???? Other patches seem ok, although I haven't looked too deep into them yet... Helge Deller <deller@gmx.de>. by subrata_modak · 16 years ago
  52. 78b1912 This patch modifies testcases to attach their shm segment to addresses chosen by ststem instead of arch-dependent ones. I looked into the history of these testcases, but couldn't find the reason why they specified arch-dependent addresses in the first place. If it has something to do with the page coloring issue, SHMLBA should be in some manners instead of defining arch-dependent addresses. Tested successfully on ia64, ppc64, x86_64, s390x & i386 by Subrata Modak <subrata@linux.vnet.ibm.com>, and by Martin Habets <errandir_news@mph.eclipse.co.uk> on sparc32. Signed-off-by: Roy Lee <roylee17@gmail.com>. by subrata_modak · 16 years ago
  53. ecedaa2 Fix for some failures by Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>. by subrata_modak · 16 years ago
  54. 0ab9110 I am testing ltp-full-20080430. When I execute hugemmap04, hugemmap01 is shown in the output which makes the output confusing. patch to fix the bad name. By, shenlinf <shenlinf@cn.ibm.com> by subrata_modak · 17 years ago
  55. 8f89991 It seems that hugeshmctl01 doesn't free some hugetlb pages when it fails. ps shows that there is still an instance of hugeshmctl01 left even if hugeshmctl01 is not running which may attach some hugetlb pages. The problem is due to the arbitrary usleep time in hugeshmctl01 which results in incorrect execution order. The intention of the sleep time is to ensure the children call shmat() and pause() before the parent checks shm status and calls stat_cleanup(). But there is no absolute assurance that this sleep always works. In the failure above, the last child process forked by the parent may not run and call shmat() immediately after it's created. When the parent checks shm status, it finds only 3 child attaching the shm instead of 4, so it reports the failure. And then it calls stat_cleanup() to send SIGUSR1 to all children, but since the last child hasn't called pause() yet, SIGUSR1 is handled before pause(). When the last child calls pause(), since there is no further signal to wake it up, it sleeps forever. patch to ensure children can receive and handle SIGUSR1 from parent in pause(). The patch is not to change the arbitrary usleep time since any time is arbitrary though a large time is more acceptable. The patch is to use sigprocmask() to block SIGUSR1 before children sleep for SIGUSR1 from parent, and then call sigsuspend() to unblock SIGUSR1 and sleep for SIGUSR1. By doing so, we may avoid the infinite sleep and keeping attached shm forever so that affect other hugetlb test. In parent process, aonther sigprocmask() is called before usleep(). This has the same effect of sleep more time. By, shenlinf <shenlinf@cn.ibm.com> by subrata_modak · 17 years ago
  56. c327066 The fixed address passed to mmap() should be aligned to the value of SHMLBA as defined in sys/shm.h. See Documentation/cachetlb.txt in the kernel for the explanation behind this. On most architectures this value is the page size, but not on all. Signed-off-by: Martin Habets <errandir_news@mph.eclipse.co.uk> by subrata_modak · 17 years ago
  57. 605a566 mmap1.c:524: warning: format '%ld' expects type 'long int', but argument 3 has type 'double' by subrata_modak · 17 years ago
  58. 104a4d9 The idea of the patch is "to make things that should be extern, extern". The means to do this are: by subrata_modak · 17 years ago
  59. 936a78c Some Cleanups and running hugetlb independantly by subrata_modak · 17 years ago
  60. f18fae9 Adds arm to the architectures where SHMBLA != PAGESIZE, submitted by Khem Raj <kraj@mvista.com> by subrata_modak · 17 years ago
  61. 9579cd3 Jeff Burke wanted additional INFO when the test fails in the calloc portion of the test by subrata_modak · 17 years ago
  62. 0ef4a5f "carmelo.amoroso@st.com" changed the Default values for MAXSIZE and csize by subrata_modak · 17 years ago
  63. 3187a6e "liudeyan@cn.ibm.com" made mmap1 to be terminated by Ctrl-C by subrata_modak · 17 years ago
  64. 5c0eebc "dmarlin@redhat.com" corrected fail message in data_space testcase by subrata_modak · 17 years ago
  65. 4fb9139 "suzuki@in.ibm.com" added SIGNAL and Address Fault handling capability for all architectures by subrata_modak · 17 years ago
  66. 475916e Randy Dunlap writes: Convert mmap1 to use standard test results output format. Correct several typos. by vapier · 17 years ago
  67. 03bc52c Randy Dunlap writes: Convert mmstress to use the standard results format by vapier · 17 years ago
  68. a07bcfe close stdout to remove noise by vapier · 17 years ago
  69. b35614a fixup gcc warnings by removing silly pieces of code by vapier · 17 years ago
  70. 1c3d609 "carmelo.amoroso@st.com" fixed the anomaly when "SHLBA != getpagesize()", like in SH architecture by subrata_modak · 17 years ago
  71. 1a02071 Fix from "rdunlap@xenotime.net" to use standard test results output by subrata_modak · 17 years ago
  72. 6089dfc "rdunlap@xenotime.net" did "mmstress" cleanups to make output unbuffered so that it is not produced repetitively and erroneously by subrata_modak · 17 years ago
  73. b7c85cf "rsalveti@linux.vnet.ibm.com" fixed the problem reported at bug [1732287] mtest06/mmap1.c missing run_once check in do loop by subrata_modak · 17 years ago
  74. 8467a02 "carmelo.amoroso@st.com" pointed out that id (returned by shmget) has to be used for all shm operations by subrata_modak · 17 years ago
  75. 771bfd3 "carmelo.amoroso@st.com" points out the wrong usage of the option -s by subrata_modak · 17 years ago
  76. 7135ba0 <carmelo.amoroso@st.com> fixes -v option, thread handling, usage of OPT_MISSING macro, etc by subrata_modak · 17 years ago
  77. 84860c1 <carmelo.amoroso@st.com> fixed ways by which Threads are handled by subrata_modak · 17 years ago
  78. b17d26c <nadia.derbey@bull.net> fixed the use of shmid, exit(0) and readable output by subrata_modak · 17 years ago
  79. e99882d <carmelo.amoroso@st.com> fixed wrong use of "pthread_exit" input argument and the related "pthread_join" by subrata_modak · 17 years ago
  80. 9383f1d Applied Patch to fix the wrong usage of pthread_exit, pointed out by <carmelo.amoroso@st.com> by subrata_modak · 17 years ago
  81. 0237312 Fix for Bug No. "1542453", default value of param x doesn't work in 'mmap1', pointed out by <bstqc-victor> by subrata_modak · 17 years ago
  82. a95e913 Fix for some anomalies in 'shm_test" case as pointed out by 'Nadia Derbey <Nadia.Derbey@bull.net>' by subrata_modak · 17 years ago
  83. dfd7041 remove silly reliance on -DLINUX by vapier · 18 years ago
  84. 2e2af47 cleanup code by vapier · 18 years ago
  85. dc72339 Helge Deller writes: add support for hppa by vapier · 18 years ago
  86. fea8b43 Removing the size of negative 1 test. This fixes bug # 28825 by mreed10 · 18 years ago
  87. 4798ac0 A patch by Jacky Malcles (The IA-64 architecture sets SHMLBA to 1MB and) by mreed10 · 18 years ago
  88. 8c6e72c A fix for bugs 27174 and 27177. This fixes the problem of reading HugePages_Free by mreed10 · 18 years ago
  89. 457567e Adding support for ppc64 and fixing resolving Bug # 26883 by mreed10 · 18 years ago
  90. 1712631 jiang guowei writes: by vapier · 18 years ago
  91. 170e703 Marc Tardif writes: by vapier · 18 years ago
  92. bef181f fix LDFLAGS support by vapier · 19 years ago
  93. c398e4f use errno.h instead of doing extern int errno by vapier · 19 years ago
  94. f81795e remove duplicated errno.h includes and just include errno.h, not sys/errno.h by vapier · 19 years ago
  95. d13d74b ugh, dos CRLFs, how i hate you so by vapier · 19 years ago
  96. 084e13b fix gcc warning: by vapier · 19 years ago
  97. 0e28b62 fix gcc warning: by vapier · 19 years ago
  98. 9a5ee67 fix gcc warning: by vapier · 19 years ago
  99. 541da0c fix gcc warning: by vapier · 19 years ago
  100. 5ccd613 fix gcc warning: by vapier · 19 years ago