From owner-freebsd-dtrace@FreeBSD.ORG Tue Jul 29 23:15:06 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 3D18FB0C; Tue, 29 Jul 2014 23:15:06 +0000 (UTC) Received: from mail-vc0-x22f.google.com (mail-vc0-x22f.google.com [IPv6:2607:f8b0:400c:c03::22f]) (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 DF2822493; Tue, 29 Jul 2014 23:15:05 +0000 (UTC) Received: by mail-vc0-f175.google.com with SMTP id ik5so646669vcb.6 for ; Tue, 29 Jul 2014 16:15:05 -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=ix4CyxGFXwAUI977oljo/4qntgsXqnJe6dve7bF6wKo=; b=ASIlIeA+YM3jYcghtuTLkMqZnnShEyN/Y+GQ3ZjeeISJx5E8MkmGoDs88+sWgm8WfV UquJU9iZWvySKR2paFw6hU1acpbAEXDJ6QbX1+FQSQrpicBQNP1M6yv7E79Dm4arycIN 5Ta5b+k/f6HzU7ujg95gK1/Kua8tkVWyISO1003ltCjavMLZCilw3VsltDK7ulddWeSu tLCLEgQxmf3EFnV4V5u4QpbXCB2qoAKeFSHMnGBBqzMAAGgoGWwwuX3VLzH9D+efWi28 FHvr4N6Px7cDkq760VLDdln8narYKhQrWbNXYFDrtoLMpiFSO4HEb5hUCzqZ8je89Lim YwxA== MIME-Version: 1.0 X-Received: by 10.52.246.11 with SMTP id xs11mr3307649vdc.96.1406675704919; Tue, 29 Jul 2014 16:15:04 -0700 (PDT) Sender: markjdb@gmail.com Received: by 10.221.31.137 with HTTP; Tue, 29 Jul 2014 16:15:04 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Jul 2014 19:15:04 -0400 X-Google-Sender-Auth: lUR-2v57JBJ3FJnCVyYPGRn4Ufw Message-ID: Subject: Re: dtrace pid provider on entry == segfault process From: Mark Johnston To: Adrian Chadd 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:15:06 -0000 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 Thanks, -Mark