From owner-freebsd-dtrace@FreeBSD.ORG Tue Jul 29 23:17:53 2014 Return-Path: Delivered-To: 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 6ECBCC2F; Tue, 29 Jul 2014 23:17:53 +0000 (UTC) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EB7424B1; Tue, 29 Jul 2014 23:17:53 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id v10so434740qac.40 for ; Tue, 29 Jul 2014 16:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=R+H1fwCF8UcT2i3HUs4yQEH9C64LZq3WTSMZFnlh23U=; b=kALKtucD9vU2qoaDY6gqKc3+3yo1tpre3YnS7mfF7DKmVmv2PS/glDm2ivLVAJQjud cicTr9gq16epaTtIkgGuXrj7l5kJ2aQOoixTv8QzqiFc/qJi+2E56aGjEJsnahLLf30H b8qvp73OYAm8dRhpcD3PwCnwD0fxTswyfjmbSCkP8krFs1/NT8Fk5PgG0YHV4stneeXu HFYVnIEJkFRbTHx8AgQFZXXjwvhjrnd4USy9ptqb3zGsui0B4QtHB60Rs4FGLTwraK61 vDi7Vh8q/gqGKZ1gOuFQSrsCr9gT8entWDaSCivipo9DutfqVFakuCaMkfqyR8O6O+1F 2U9A== MIME-Version: 1.0 X-Received: by 10.229.171.196 with SMTP id i4mr424954qcz.15.1406675872286; Tue, 29 Jul 2014 16:17:52 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.1.6 with HTTP; Tue, 29 Jul 2014 16:17:52 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Jul 2014 16:17:52 -0700 X-Google-Sender-Auth: 5sUEjQmUKn2WdafitTMLUVkW60Y Message-ID: Subject: Re: dtrace pid provider on entry == segfault process From: Adrian Chadd To: Mark Johnston Content-Type: text/plain; charset=UTF-8 Cc: "dtrace@freebsd.org" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18 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: Tue, 29 Jul 2014 23:17:53 -0000 On 29 July 2014 16:15, Mark Johnston wrote: > On Tue, Jul 29, 2014 at 7:10 PM, Adrian Chadd wrote: >> Ugh, that sent too quickly. >> >> Let me clarify: >> >> [root@darkwatch] /data/blockd# cat test2.d >> >> pid$target:libc*:memcpy:entry >> { >> @[execname] = quantize(arg2); >> } >> >> this doesn't work right (it doesn't count events at all) and it has a >> 100% chance of SIGSEGV'ing the monitored process when you finish >> sampling (via ctrl-C.) > > What program are you tracing? > > This should be fixed when I MFC r264434 in the next day or so: > http://svnweb.freebsd.org/base?view=revision&revision=264434 find / Thanks! I'll give this a whirl later. -a