aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/trace_profile/valgrind.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace_profile/valgrind.md')
-rw-r--r--src/trace_profile/valgrind.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/trace_profile/valgrind.md b/src/trace_profile/valgrind.md
new file mode 100644
index 0000000..989e3df
--- /dev/null
+++ b/src/trace_profile/valgrind.md
@@ -0,0 +1,22 @@
+# valgrind(1)
+
+## Memcheck `--tool=memcheck`
+
+Is the default tool when invoking `valgrind` without explicitly specifying
+`--tool`.
+
+Memory checker used to identify:
+- memory leaks
+- out of bound accesses
+- uninitialized reads
+
+```sh
+valgrind [OPTIONS] PROGRAM [ARGS]
+ --log-file=FILE Write valgrind output to FILE.
+ --leak-check=full Enable full leak check.
+ --track-origins=yes Show origins of undefined values.
+ --keep-debuginfo=no|yes Keep symbols etc for unloaded code.
+
+ --gen-suppressions=yes Generate suppressions file from the run.
+ --suppressions=FILE Load suppressions file.
+```