]> Git Repo - qemu.git/commitdiff
docs/devel/testing: add -valgrind option to the debug section of QEMU iotests
authorEmanuele Giuseppe Esposito <[email protected]>
Mon, 9 Aug 2021 09:01:12 +0000 (11:01 +0200)
committerHanna Reitz <[email protected]>
Wed, 1 Sep 2021 10:57:31 +0000 (12:57 +0200)
Signed-off-by: Emanuele Giuseppe Esposito <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20210809090114[email protected]>
Signed-off-by: Hanna Reitz <[email protected]>
docs/devel/testing.rst

index 01e1919873fbaa47ef9e38ceae621cfae33a5454..8ebcf85a31cb12a91cbac52db18bffc8afac3876 100644 (file)
@@ -240,6 +240,12 @@ a failing test:
   If the ``-gdb`` option is not used, ``$GDB_OPTIONS`` is ignored,
   regardless of whether it is set or not.
 
+* ``-valgrind`` attaches a valgrind instance to QEMU. If it detects
+  warnings, it will print and save the log in
+  ``$TEST_DIR/<valgrind_pid>.valgrind``.
+  The final command line will be ``valgrind --log-file=$TEST_DIR/
+  <valgrind_pid>.valgrind --error-exitcode=99 $QEMU ...``
+
 * ``-d`` (debug) just increases the logging verbosity, showing
   for example the QMP commands and answers.
 
This page took 0.03193 seconds and 4 git commands to generate.