diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-06-07 21:39:28 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-06-07 21:39:28 +0000 |
commit | 6dbcc639e7138f80cf82f5bbcd426df0a293eb0d (patch) | |
tree | d3126a9b3e930eeac53effb0e745f28b5206ab7b /none | |
parent | 2d6e6e74623c8c9b5c8d38ddf28acdab4db9b76b (diff) |
Add a fourth --smc-check= variant, --smc-check=all-non-file. This
adds self-modifying-code checks to all guest code taken from mappings
which are not file backed, but omits checks in code from file backed
mappings. This has the effect of giving complete smc-coverage of JIT
generated code -- since that is invariably generated into anonymous
mapped areas -- without burdening non-JIT generated code with such
checks. Running Firefox 6, --smc-check=all-non-file reduces by a
factor of between 3 and 10 the number of translations requiring a self
check, compared to --smc-check=all. These changes depend on the vex
interface changes in r2158.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11798 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'none')
-rw-r--r-- | none/tests/cmdline1.stdout.exp | 6 | ||||
-rw-r--r-- | none/tests/cmdline2.stdout.exp | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/none/tests/cmdline1.stdout.exp b/none/tests/cmdline1.stdout.exp index 641304a8..6faa70f3 100644 --- a/none/tests/cmdline1.stdout.exp +++ b/none/tests/cmdline1.stdout.exp @@ -57,8 +57,10 @@ usage: valgrind [options] prog-and-args part of the path after 'string'. Allows removal of path prefixes. Use this flag multiple times to specify a set of prefixes to remove. - --smc-check=none|stack|all checks for self-modifying code: none, - only for code found in stacks, or all [stack] + --smc-check=none|stack|all|all-non-file [stack] + checks for self-modifying code: none, only for + code found in stacks, for all code, or for all + code except that from file-backed mappings --read-var-info=yes|no read debug info on stack and global variables and use it to print better error messages in tools that make use of it (Memcheck, Helgrind, diff --git a/none/tests/cmdline2.stdout.exp b/none/tests/cmdline2.stdout.exp index e66858d3..a65047e0 100644 --- a/none/tests/cmdline2.stdout.exp +++ b/none/tests/cmdline2.stdout.exp @@ -57,8 +57,10 @@ usage: valgrind [options] prog-and-args part of the path after 'string'. Allows removal of path prefixes. Use this flag multiple times to specify a set of prefixes to remove. - --smc-check=none|stack|all checks for self-modifying code: none, - only for code found in stacks, or all [stack] + --smc-check=none|stack|all|all-non-file [stack] + checks for self-modifying code: none, only for + code found in stacks, for all code, or for all + code except that from file-backed mappings --read-var-info=yes|no read debug info on stack and global variables and use it to print better error messages in tools that make use of it (Memcheck, Helgrind, |