From a3cc57ab6594a5f97de8d6996b2c4588bca05cf0 Mon Sep 17 00:00:00 2001 From: Tyson Smith Date: Mon, 4 Nov 2024 11:55:37 -0800 Subject: [PATCH] feat: add VALGRIND_TRACK_ORIGINS This will allow toggling Valgrind's --track-origins option --- src/ffpuppet/core.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ffpuppet/core.py b/src/ffpuppet/core.py index 464442d..95eaf2f 100644 --- a/src/ffpuppet/core.py +++ b/src/ffpuppet/core.py @@ -347,7 +347,12 @@ def build_launch_cmd( "--smc-check=all-non-file", "--trace-children=yes", "--trace-children-skip=python*,*/lsb_release", - "--track-origins=no", + # track-origins=no is much faster and best used to discover issues + ( + "--track-origins=yes" + if getenv("VALGRIND_TRACK_ORIGINS") == "1" + else "--track-origins=no" + ), "--vex-iropt-register-updates=allregs-at-mem-access", "--vgdb=no", ]