From owner-freebsd-dtrace@FreeBSD.ORG Wed Dec 4 17:43:13 2013 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 00BBDD84 for ; Wed, 4 Dec 2013 17:43:12 +0000 (UTC) Received: from mail-oa0-f53.google.com (mail-oa0-f53.google.com [209.85.219.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BC9091210 for ; Wed, 4 Dec 2013 17:43:11 +0000 (UTC) Received: by mail-oa0-f53.google.com with SMTP id m1so17201436oag.12 for ; Wed, 04 Dec 2013 09:43:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=YAxBflFBrEJQ4w3iMoac0tnuLOfrKXZ1linJ8oXg9FQ=; b=LPekHbthAPiaYSJS7QFj8fuKzFXd82Gja5lwE88HNMgR0fQGWZXS+JS1A8BxoPZG+p eEH4H4bu7/C3z57ByJdj0gZJEgdWl0hozG+8Az+Me3rezVoRTXRXjk6iaasPZakmbdyN tcxPT9JGIO15vjsPbjkHWpHlgHYv35Sudh2W/ss+JqEHoUeTjprMXQLmuEl/wJ4Efu56 boOgemgiAGm7zYCJMCQIp4GdEsATB2TeBrbZ8+C0A3ePrKb01jJZh5ubH49gPD/WSoQZ vnlH5xgfHSbJlH8JbqSaICwGOyiJZjthMXzfnDLNXhqYePO9FPLnZLtzM+GwG0q7Mbmy kp4A== X-Gm-Message-State: ALoCoQnVp6BubsFe6rkIGME5ipU06E451NXs1d6hJbm8z/ZZpb21SgPhY8LSbKrYqu+NgbDsr8CP MIME-Version: 1.0 X-Received: by 10.60.40.136 with SMTP id x8mr11630163oek.49.1386178985470; Wed, 04 Dec 2013 09:43:05 -0800 (PST) Sender: mike@harschsystems.com Received: by 10.182.247.37 with HTTP; Wed, 4 Dec 2013 09:43:03 -0800 (PST) In-Reply-To: <1386152979.40087.YahooMailBasic@web192605.mail.sg3.yahoo.com> References: <1386152979.40087.YahooMailBasic@web192605.mail.sg3.yahoo.com> Date: Wed, 4 Dec 2013 10:43:03 -0700 X-Google-Sender-Auth: uhH7bQm0XNySv_hsN3mPCVc8GYQ Message-ID: Subject: Re: dtrace usdt From: Michael Harsch To: Prashanth Kumar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-dtrace@freebsd.org X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 17:43:13 -0000 Hi Prashanth, I've reproduced this on 10.0BETA4. It appears to be specific to i386; the same test works fine on amd64. On Wed, Dec 4, 2013 at 3:29 AM, Prashanth Kumar wrote: > Hi > Tried running the dtrace usdt example code from freebsd dtrace userland wiki page. > (https://wiki.freebsd.org/DTrace/userland). > > If run standalone the program segfaults. > # ./db > Bus error (core dumped) > > If run with dtrace > > # dtrace -s db.d -c ./db > dtrace: script 'db.d' matched 2 probes > CPU ID FUNCTION:NAME > 0 43245 main:query-start Query: SELECT * FROM apples > > the program hungs after printing the first probe. > > Had to use the following command > # env WITH_DTRACE=1 make > > to build the program. Is there any other steps that i have missed to make the program work?. > This was tested on FreeBSD 10BETA1 - i386. > > regards > Prashanth > _______________________________________________ > freebsd-dtrace@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace > To unsubscribe, send any mail to "freebsd-dtrace-unsubscribe@freebsd.org" >