History log of /external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ef0d925478a3ed3714158299f20b5679c73b8bba 12-Jan-2017 Cyril Hrubis <chrubis@suse.cz> mmapstress03: Fix 32bit test on 64bit kernel

The ridiculously large mapping size has to be adjusted based on the
kernel addressing size not on a pointer size otherwise the testcase
segfaults when 32bit binary is executed on 64bit kernel.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
edd2f4c4445480b6a9c6ec1fd71ad091dd545ba5 12-Jan-2017 Cyril Hrubis <chrubis@suse.cz> mmapstress03: Small cleanup

No fucntional changes done.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
829ac9d177bb1c713f1fe4266bdc44792b8c556d 08-Mar-2015 Mike Frysinger <vapier@gentoo.org> clean up some more old-style decls

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
aabb8340f63ed31afe995fd97795e542dc68b93c 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Include usctest.h in test.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
526fdf8d8ea3b43b73de7cc25eb754f12702c8d2 04-Dec-2014 Cyril Hrubis <chrubis@suse.cz> Change tst_resm() followed by tst_exit() to tst_brkm()

Created with coccinelle patch:

@@
expression list L;
expression C != {TINFO, TPASS};
@@
- tst_resm
+ tst_brkm
(C,
+ NULL,
L);
- tst_exit();

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
371cf0a03162d0d1c2a9bb69a049a94b84312689 24-Sep-2014 Cyril Hrubis <chrubis@suse.cz> Remove returns that follows tst_exit()

Removes dead code that is never executed.

Created with coccinelle patch:

@@
expression E;
@@
tst_exit();
-return E;

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 19-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Update FSF address

find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
ec6edca7aa42b6affd989ef91b5897f96795e40f 18-Oct-2012 Chris Dearman <chris@mips.com> Add missing newline at end of file

This is a scripted change done using the following command:

find . -type d -name .git -prune -o \
-type f \! -name \*\~ \! -name .\#\* \
\! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
xargs -0 sed -i -e '$a\'

Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
72521cf0741034f67dd17107453cda9a9819264c 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix more tests; remove more Tst_count externs.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
7d0a4a57fbcd47f72b67c08df532e8ef47f6fdae 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Cleanup style and get rid of conflicts problems.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
df3eb16e38c6a163b0a7367c885679eed6140964 29-Nov-2010 Garrett Cooper <yanegomi@gmail.com> Deal with a lot of annoying style nits.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
428f6a33e12b67d62a674da0a068a2bb0031a67b 18-Jun-2009 subrata_modak <subrata_modak> 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>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
bdbaec51a423e715c2b03ed9e497e9a1fba6103e 26-Feb-2009 subrata_modak <subrata_modak> Clean Trailing Tab: Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
43337a3cf6f8809647cf9fc6c0054241f44b1fb1 26-Feb-2009 subrata_modak <subrata_modak> Fix return(0) to return 0. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
36f63391e91cbeb4efa8781d5bd506f49daa022c 06-Jan-2009 subrata_modak <subrata_modak> 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>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
d245d772bac5f750edbbe54c2433102bdf37737d 06-Jan-2009 subrata_modak <subrata_modak> 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>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
ba205d2634b1add397bf23e6b810ff9ed039e073 11-Dec-2008 subrata_modak <subrata_modak> sbrk has arguments of type intptr_t, which is long in on x86_64. There is following line in mmapstress03:
if (sbrk(-NUM_SEGS * pagesize) == NEG1) {
Here the type of argument is int, because of constant NUM_SEGS, and this test fails here on x86_64. So let constants will be long. Signed-Off-By: Dmitry Guryanov <dguryanov@parallels.com>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
c398e4f250d1d651b76475897e1a5349371a02e2 15-Feb-2006 vapier <vapier> use errno.h instead of doing extern int errno
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
f81795e0876f9dd0d95b42aec99a9a5de04d883d 15-Feb-2006 vapier <vapier> remove duplicated errno.h includes and just include errno.h, not sys/errno.h
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c
8445709ba82f1e90bde58aa07128ac5048ea0dae 10-Jan-2003 robbiew <robbiew> Added mmapstress testsuite ported by Ananda Venkataraman.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c