Installing Valgrind

Prerequisites

Building valgrind requires the following ports to be installed:

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

  1. Avoid to run if the procfs sysctl aren't available (currently exiting with a pretty obscure msg) printing out an adeguate error message.
  2. 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
  3. umtx
  4. Push FreeBSD changes to upstream valgrind
  5. Fix exp-ptrcheck.

Links

Valgrind (last edited 2009-11-05 18:30:49 by EdMaste)