From owner-freebsd-dtrace@FreeBSD.ORG Wed Dec 4 10:31:33 2013 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A19B7E5C for ; Wed, 4 Dec 2013 10:31:33 +0000 (UTC) Received: from nm32-vm6.bullet.mail.sg3.yahoo.com (nm32-vm6.bullet.mail.sg3.yahoo.com [106.10.151.213]) by mx1.freebsd.org (Postfix) with SMTP id C80E01538 for ; Wed, 4 Dec 2013 10:31:32 +0000 (UTC) Received: from [106.10.166.117] by nm32.bullet.mail.sg3.yahoo.com with NNFMP; 04 Dec 2013 10:29:39 -0000 Received: from [106.10.151.219] by tm6.bullet.mail.sg3.yahoo.com with NNFMP; 04 Dec 2013 10:29:39 -0000 Received: from [127.0.0.1] by omp1017.mail.sg3.yahoo.com with NNFMP; 04 Dec 2013 10:29:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 974965.30422.bm@omp1017.mail.sg3.yahoo.com Received: (qmail 40116 invoked by uid 60001); 4 Dec 2013 10:29:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1386152979; bh=6nsB38wc2JVHc6ymB13rP1CFf4b6V6xJJ6Lg1oXgf8Q=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=iY9yu1HD+iNdkK+KkjtQzP47Ld3YFp0Xc/SyZltyiOIasdHwa8uJipOHI7Ma231NMhoI2gtqG/Vk+ogywIwfVWBHaYNncMwoFt8tZB3bg4af+xe2f5npeTqHhGYJFAe30+bFuqqb/CJGmWvgLKtBZh/ND6QtV8xoxyP5CVwoGUw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=zcP0zsuNpuxxm8tCovvh1i+PcaX381Um6MqO9FK1snkHTQF7EtQEkcCnLZTonTRgb53ugnmirgTPuruwJuboK04dlu+sPsX+DqMcKdZaM00PJ3kk2CF0KaLNXP4V5aerUJLZW6MuBXaWcIKSJp6A53OlnxrCLXj6F0EfEA98Tys=; X-YMail-OSG: qPoNYkoVM1kNjvRT25UA2xaFDrw2fND4SZvRlPxECTn4KF3 WS7WgELtBAVnxyctpeFhFCDIjqFb1DRmQptJw.RTm_RkA4hrlSNozuexSWyf BjKZNPe19jcSZW_2bFPuw7fDMlnl8WR5.ZMUdK9_Dl0arFKKgJFlMyWheIn1 ZkZBeD8qVvCcUTSSEsL_VgUAMdyzAc_lZTp_85EXQZuRpsTEdYPLDhbTdebo .M115GigUQJ8TZLY33oi4tGK4W3fgcCTQ5th9CS5isL2JPHJbiHeiKcgB_Kx wWD8ks_nIYGwZUP9BZ7.VPdJBcY7cGAMXeCZc2atFMAZttDIeYr2iKTEWT_J OlXWpJjTuFUhKZIApQi_Ld6hFYxNCF6WbUy1flXgnSkoXf0Ex7EVoFvU5KR2 _GKoD.WvaulGg0tDG7q8HUfx4CjV1U6LX0o7Gt6uCoWXTtxPLGZJBkRa8IgP _alwHh3Qbbh2NeiWJN4I.PiCfbpRx9i.x93vPwHAWFdzjbDdZuA_0qA.5y0l ESEmVY0vzVk7ITd6l.lEQ40bQFLWQ80NBUAFA.Gc5GAfqk9awR4W_ssdss4m 3NfRVdmD7tIQPrUnJ1zWpal_2hp96JMhFN7yfNOMLomUN7sBg74dU_Fbj6C0 TlkJGvxoxYn5ykDo- Received: from [217.165.101.109] by web192605.mail.sg3.yahoo.com via HTTP; Wed, 04 Dec 2013 18:29:39 SGT X-Rocket-MIMEInfo: 002.001, SGkNClRyaWVkIHJ1bm5pbmcgdGhlIGR0cmFjZSB1c2R0IGV4YW1wbGUgY29kZSBmcm9tIGZyZWVic2QgZHRyYWNlIHVzZXJsYW5kIHdpa2kgcGFnZS4NCihodHRwczovL3dpa2kuZnJlZWJzZC5vcmcvRFRyYWNlL3VzZXJsYW5kKS4NCg0KSWYgcnVuIHN0YW5kYWxvbmUgdGhlIHByb2dyYW0gc2VnZmF1bHRzLg0KICMgLi9kYiANCkJ1cyBlcnJvciAoY29yZSBkdW1wZWQpIA0KDQpJZiBydW4gd2l0aCBkdHJhY2UNCg0KICAjIGR0cmFjZSAtcyBkYi5kIC1jIC4vZGINCmR0cmFjZTogc2NyaXB0ICdkYi5kJyBtYXQBMAEBAQE- X-Mailer: YahooMailClassic/374 YahooMailWebService/0.8.167.602 Message-ID: <1386152979.40087.YahooMailBasic@web192605.mail.sg3.yahoo.com> Date: Wed, 4 Dec 2013 18:29:39 +0800 (SGT) From: Prashanth Kumar Subject: dtrace usdt To: freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 10:31:33 -0000 Hi Tried running the dtrace usdt example code from freebsd dtrace userland wik= i page. (https://wiki.freebsd.org/DTrace/userland). If run standalone the program segfaults. # ./db=20 Bus error (core dumped)=20 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=3D1 make to build the program. Is there any other steps that i have missed to make t= he program work?. This was tested on FreeBSD 10BETA1 - i386. regards Prashanth 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" >