|
From: <sv...@va...> - 2013-06-12 21:45:59
|
philippe 2013-06-12 22:45:39 +0100 (Wed, 12 Jun 2013)
New Revision: 13426
Log:
improve --help for --main-stacksize and supported ARM cpu
If the command line option --main-stacksize is not used,
the current ulimit value is used, with a min of 1MB
and a max of 16MB. Document this min/max default formula
in the --help.
Also indicate that Valgrind supports ARMv7
Modified files:
trunk/coregrind/m_main.c
trunk/none/tests/cmdline1.stdout.exp
trunk/none/tests/cmdline2.stdout.exp
Modified: trunk/none/tests/cmdline1.stdout.exp (+1 -1)
===================================================================
--- trunk/none/tests/cmdline1.stdout.exp 2013-06-10 09:34:26 +01:00 (rev 13425)
+++ trunk/none/tests/cmdline1.stdout.exp 2013-06-12 22:45:39 +01:00 (rev 13426)
@@ -47,7 +47,7 @@
--max-stackframe=<number> assume stack switch for SP changes larger
than <number> bytes [2000000]
--main-stacksize=<number> set size of main thread's stack (in bytes)
- [use current 'ulimit' value]
+ [min(max(current 'ulimit' value,1MB),16MB)]
user options for Valgrind tools that replace malloc:
--alignment=<number> set minimum alignment of heap allocations [not used by this tool]
Modified: trunk/coregrind/m_main.c (+2 -1)
===================================================================
--- trunk/coregrind/m_main.c 2013-06-10 09:34:26 +01:00 (rev 13425)
+++ trunk/coregrind/m_main.c 2013-06-12 22:45:39 +01:00 (rev 13426)
@@ -159,7 +159,7 @@
" --max-stackframe=<number> assume stack switch for SP changes larger\n"
" than <number> bytes [2000000]\n"
" --main-stacksize=<number> set size of main thread's stack (in bytes)\n"
-" [use current 'ulimit' value]\n"
+" [min(max(current 'ulimit' value,1MB),16MB)]\n"
"\n"
" user options for Valgrind tools that replace malloc:\n"
" --alignment=<number> set minimum alignment of heap allocations [%s]\n"
@@ -1700,6 +1700,7 @@
VG_(printf)(" * x86 (practically any; Pentium-I or above), "
"AMD Athlon or above)\n");
VG_(printf)(" * AMD Athlon64/Opteron\n");
+ VG_(printf)(" * ARM (armv7)\n");
VG_(printf)(" * PowerPC (most; ppc405 and above)\n");
VG_(printf)(" * System z (64bit only - s390x; z900 and above)\n");
VG_(printf)("\n");
Modified: trunk/none/tests/cmdline2.stdout.exp (+1 -1)
===================================================================
--- trunk/none/tests/cmdline2.stdout.exp 2013-06-10 09:34:26 +01:00 (rev 13425)
+++ trunk/none/tests/cmdline2.stdout.exp 2013-06-12 22:45:39 +01:00 (rev 13426)
@@ -47,7 +47,7 @@
--max-stackframe=<number> assume stack switch for SP changes larger
than <number> bytes [2000000]
--main-stacksize=<number> set size of main thread's stack (in bytes)
- [use current 'ulimit' value]
+ [min(max(current 'ulimit' value,1MB),16MB)]
user options for Valgrind tools that replace malloc:
--alignment=<number> set minimum alignment of heap allocations [not used by this tool]
|