Installing Valgrind
Prerequisites
Building valgrind requires the following ports to be installed:
- gmake
- autoconf
- automake
Obtaining the Valgrind source
Use the version from FreeBSD P4 repository available at //depot/projects/valgrind/...
The current P4 snapshot is also available in the FreeBSD ports collection in devel/valgrind-snapshot and devel/valgrind.
Building
sh autogen.sh ./configure gmake gmake install
TODO
FreeBSD tree
Task |
HEAD |
RELENG_7 |
RELENG_6 |
END() macros in src |
done |
r192760 needed |
needed |
kern.proc sysctls |
done |
done |
needed |
Valgrind src
- Avoid to run if the procfs sysctl aren't available (currently exiting with a pretty obscure msg) printing out an adeguate error message.
- Test more syscalls which are disabled and implement the missing ones (rfork mainly, others to come). Tested by Sandvine Incorporated: SYS_sched_get_priority_max, SYS_sched_get_priority_min, SYS_sched_rr_get_interval
- umtx
- Push FreeBSD changes to upstream valgrind
- Fix exp-ptrcheck.
Links
[PATCH]: FreeBSD support for valgrind in the Valgrind bug tracker
Valgrind port on freshports