From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 18 15:13:54 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F03B106566C; Thu, 18 Jun 2009 15:13:54 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by mx1.freebsd.org (Postfix) with ESMTP id 267F68FC0C; Thu, 18 Jun 2009 15:13:52 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by bwz27 with SMTP id 27so349436bwz.43 for ; Thu, 18 Jun 2009 08:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=wuLZS7sIdgxKhDFPKCef43Z3RzP7Kfk1QadjZs+tkss=; b=dHTzvpl+uuDWaXpb7jiiUvxmawyaOEM3CYi4FhBmNwqhtVN1lAwsB9H4IRCJobwSQT cPrN6SKa580k2pAF8/1ZmlgFCJUoKpWzvsUeqFeyyzjc23/sqzfuWhA01DKTzuQt68Q/ uszOkR2M/0KJvjHx6/aoMpe0uSbmeAbd0wTpI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=HeMAS5+hHkPD2Vr90dW+JFDwl6mxgrR8yJ/rAZVRBRYTh4P5QEkULHhuoISBy+n6ia C0vLih6k0oOjZa2qooMdP3QQ7SdTh4YuprNYB/XMu41TRNSfIirGeUirYNCZohTIEO5l H5TBYGUWFVgmcnrjMwgsMxXdGdcpem+GiR/Zc= MIME-Version: 1.0 Sender: asmrookie@gmail.com Received: by 10.223.108.196 with SMTP id g4mr1304905fap.36.1245336231026; Thu, 18 Jun 2009 07:43:51 -0700 (PDT) In-Reply-To: <48E474C7.8050507@rawbw.com> References: <200803172156.37407.modelnine@modelnine.org> <20080317214510.G89676@odysseus.silby.com> <20080413103351.GA1382@dose.local.invalid> <4803C3B4.4000405@delphij.net> <48E474C7.8050507@rawbw.com> Date: Thu, 18 Jun 2009 16:43:50 +0200 X-Google-Sender-Auth: 67141b5a46dc28b1 Message-ID: <3bbf2fe10906180743pc9bd84bu420db38275fe3888@mail.gmail.com> From: Attilio Rao To: yuri@rawbw.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: d@delphij.net, peter@freebsd.org, freebsd-hackers@freebsd.org, Simon Barner , Heiko Wundram , Ed Maste Subject: Re: valgrind on FreeBSD 7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2009 15:13:54 -0000 2008/10/2 Yuri : > Xin LI wrote: >> >> Simon Barner wrote: >>> >>> Mike Silbersack wrote: >>>> >>>> On Mon, 17 Mar 2008, Heiko Wundram wrote: >>>> >>>> Here's a tarball of what's in perforce right now. I tried it a little >>>> bit, and it seemed to work for me. Make sure to install the kernel module! >>>> >>>> http://www.silby.com/valgrind_freebsd_3.tar.gz >>>> >>>> But don't send me questions about it - I'm not an expert on it, I'm just >>>> the guy who grabbed it from perforce and found that it seems to work. :) >>> >>> Could you please provide me with the details, so I can update my >>> (horribly outdated :( valgrind ports? >> >> It was available from p4 at: >> >> //depot/projects/valgrind/... >> >> Note that this version does not work on architectures other than i386. >> >> Cheers, > > > Any developments in Valgrind/Callgrind on FreeBSD? > Any hope to get this version into ports and to merge FreeBSD support up into > Valgrind project? For our employer (Sandvine incorporated) Ed Maste and me are working on finishing the port Peter Wemm started a while ago. You can find updated informations on the project here: http://wiki.freebsd.org/Valgrind while you can get the sources pack here: http://people.freebsd.org/~attilio/Sandvine/valgrind/valgrind.tar.bz2 Please note that 8 and 7 now have all the required support to let run this modified version, so no further modify is required to these branches. Valgrind is able to run on 6 too, if the patch system_valgrind.diff is applied (I can't recall if it targeted for SVOS, as I think, or it is stock STABLE_6, just try it, it may apply to both). The port is really not clean, but that's not Peter's fault. Valgrind should be really rewritten in order to be less Linux-centric and be more smart about interface sucking. The effort, though, would be so large that would require too much work to happen in the short term. What is in the tar works mostly ok (modulo missing syscalls) on both ia32 and amd64, but you should carefully follow what is written in the Wiki for a good install of the product. Also note that I have an internal version that should fix most (all?) the issues reported in the Wiki and I will try to release it on a regular basis, until possible. So far, I'm fighting with a segfault in the profiled process while running with SV environment {amd64 arch}, a symptomancy that doesn't show with a stock FreeBSD installation so far. If you could try the port and report to us I would appreciate a lot. For any other question please refer to us. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein