// Where aspacem will start looking for Valgrind space
static Addr aspacem_vStart = 0;
-
#define AM_SANITY_CHECK \
do { \
if (VG_(clo_sanity_level) >= 3) \
" -d show verbose debugging output\n"
" --stats=no|yes show tool and core statistics [no]\n"
" --sanity-level=<number> level of sanity checking to do [1]\n"
+" 1 - does occasional stack checking\n"
+" 2 - more stack checks and malloc checks\n"
+" 3 - as 2 and mmap checks\n"
+" 4 - as 3 and translation sector checks\n"
" --trace-flags=<XXXXXXXX> show generated code? (X = 0|1) [00000000]\n"
" --profile-flags=<XXXXXXXX> ditto, but for profiling (X = 0|1) [00000000]\n"
" --profile-interval=<number> show profile every <number> event checks\n"
/* amd64-linux, ppc32-linux, amd64-darwin, amd64-solaris */
case VEX_TRC_JMP_SYS_SYSCALL:
handle_syscall(tid, trc[0]);
- if (VG_(clo_sanity_level) > 2)
+ if (VG_(clo_sanity_level) >= 3)
VG_(sanity_check_general)(True); /* sanity-check every syscall */
break;
Gradually increase the interval between such checks so as not to
burden long-running programs too much. */
if ( force_expensive
- || VG_(clo_sanity_level) > 1
+ || VG_(clo_sanity_level) >= 2
|| (VG_(clo_sanity_level) == 1
&& sanity_fast_count == next_slow_check_at)) {
}
}
- if (VG_(clo_sanity_level) > 1) {
+ if (VG_(clo_sanity_level) >= 2) {
/* Check sanity of the low-level memory manager. Note that bugs
in the client's code can cause this to fail, so we don't do
this check unless specially asked for. And because it's
code know about it. */
VG_(change_stack)(VG_(clstk_id), new_stack_base, VG_(clstk_end));
- if (VG_(clo_sanity_level) > 2)
+ if (VG_(clo_sanity_level) >= 3)
VG_(sanity_check_general)(False);
return True;
-d show verbose debugging output
--stats=no|yes show tool and core statistics [no]
--sanity-level=<number> level of sanity checking to do [1]
+ 1 - does occasional stack checking
+ 2 - more stack checks and malloc checks
+ 3 - as 2 and mmap checks
+ 4 - as 3 and translation sector checks
--trace-flags=<XXXXXXXX> show generated code? (X = 0|1) [00000000]
--profile-flags=<XXXXXXXX> ditto, but for profiling (X = 0|1) [00000000]
--profile-interval=<number> show profile every <number> event checks
-d show verbose debugging output
--stats=no|yes show tool and core statistics [no]
--sanity-level=<number> level of sanity checking to do [1]
+ 1 - does occasional stack checking
+ 2 - more stack checks and malloc checks
+ 3 - as 2 and mmap checks
+ 4 - as 3 and translation sector checks
--trace-flags=<XXXXXXXX> show generated code? (X = 0|1) [00000000]
--profile-flags=<XXXXXXXX> ditto, but for profiling (X = 0|1) [00000000]
--profile-interval=<number> show profile every <number> event checks