From owner-freebsd-dtrace@FreeBSD.ORG Mon Jul 28 22:05:06 2014 Return-Path: Delivered-To: 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 892F24C0 for ; Mon, 28 Jul 2014 22:05:06 +0000 (UTC) Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (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 49BB12958 for ; Mon, 28 Jul 2014 22:05:06 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id m5so8341746qaj.7 for ; Mon, 28 Jul 2014 15:05:04 -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=+B5IBRFhmq33WdWZmAe4jhP3+EA/JNY4kYCBAAbM70c=; b=X/QDBudhKrnSGJVwSlT+bkSN1RS46HpHIwe4pp8diklzVdPv9rMuDco2+MQXsUxOcH hhN/m+ssaviN1W9dUb6hzM1zPp8+tqBUJjk0livaAVhetWzWWhmfa4DBW8bhYdz7DAFM mt1OmTR47f+5fw2sYs3HDuC12zggN+uGQvDGwbbaTOkXfhzs11bzct21vNfM/jrJJ2uq jS1BuzYctGpW0xtaXT4hFzOhRw7cvmnjufYxaL1YSpkZzyoxc9dKh9/PvlagJwAhAZVw GnC85J9FWWzHncmB084n7bp2hIrt3L2S7gfpMos0EnMP0McSdKsTSct/pERxAuc4gKzG p1vw== MIME-Version: 1.0 X-Received: by 10.140.81.51 with SMTP id e48mr35058351qgd.31.1406585104246; Mon, 28 Jul 2014 15:05:04 -0700 (PDT) Sender: sjk4015@gmail.com Received: by 10.140.89.234 with HTTP; Mon, 28 Jul 2014 15:05:04 -0700 (PDT) In-Reply-To: <5C34A9D1-2D55-49A5-9400-4BEEC7B61A7D@neville-neil.com> References: <40272D9D-3CA1-4092-9CBB-D035D10C0407@neville-neil.com> <5C34A9D1-2D55-49A5-9400-4BEEC7B61A7D@neville-neil.com> Date: Mon, 28 Jul 2014 18:05:04 -0400 X-Google-Sender-Auth: NKUK3ZbxE98rhupkrCidLLN5cjY Message-ID: Subject: Re: Updating of DTraceToolkit for FreeBSD From: Steven Kreuzer To: George Neville-Neil 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: Mon, 28 Jul 2014 22:05:06 -0000 On Sat, Jul 26, 2014 at 4:45 PM, George Neville-Neil wrote: > Hi, > > Note that I'll be updating bits of the DTraceToolkit in our cddl/contrib > directory to work > with FreeBSD. Changes will include removing the dependency on ksh in all > scripts that I touch > along with the conversion of probes to match those on FreeBSD. I have been maintaining sysutils/DTraceToolkit for a while and it doesn't seem to make sure to duplicate the effort. Can you merge the changes for opensnoop and shellsnoop from the port into the version in base and I will delete the port. Thanks From owner-freebsd-dtrace@FreeBSD.ORG Mon Jul 28 22:21:28 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 E7DECE5 for ; Mon, 28 Jul 2014 22:21:28 +0000 (UTC) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) (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 AA20F2B73 for ; Mon, 28 Jul 2014 22:21:28 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id s7so8452925qap.23 for ; Mon, 28 Jul 2014 15:21:27 -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=e5TqU1G7JcgHRdTg4hDev3ELOY8kBRupiS2OQvJGlso=; b=XbzhEAk3TmL7JhIdZlqPqxotCSPg5nLJHzPrpMh0s8JBMwD8wtYBnZKWYLiGuxFrgi QOXTcZvDWij73fVRVpKkMZBEEclGc2OqkQEyv+UW+tAUllOT1JMzbrT5vupV+F8/EClF dSVo23Qi14Ad1YSifDC4TmaKuo49cYSemxrEcDekJzc/E81jz4WSccw24WHghS1gFRV8 B4icTmvOgrECE7BKLDglLQxuE6kfSqTRvCCMhINpnAxBXFkN6ka7QmQtA5Rbc3dHlf49 ktcIOAwN/drrGW4Su6C8fyQonnqFtzR7pbfje6LE0fIYlhelbRe5f9/dlwikcILrooCH nPog== MIME-Version: 1.0 X-Received: by 10.224.16.212 with SMTP id p20mr47656744qaa.1.1406586087724; Mon, 28 Jul 2014 15:21:27 -0700 (PDT) Sender: sjk4015@gmail.com Received: by 10.140.89.234 with HTTP; Mon, 28 Jul 2014 15:21:27 -0700 (PDT) In-Reply-To: References: <40272D9D-3CA1-4092-9CBB-D035D10C0407@neville-neil.com> <5C34A9D1-2D55-49A5-9400-4BEEC7B61A7D@neville-neil.com> Date: Mon, 28 Jul 2014 18:21:27 -0400 X-Google-Sender-Auth: oO3KU-01Od0qL_tAE9D96gOhnZ4 Message-ID: Subject: Re: Updating of DTraceToolkit for FreeBSD From: Steven Kreuzer To: George Neville-Neil 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: Mon, 28 Jul 2014 22:21:29 -0000 On Mon, Jul 28, 2014 at 6:05 PM, Steven Kreuzer wrote: > On Sat, Jul 26, 2014 at 4:45 PM, George Neville-Neil > wrote: >> Hi, >> >> Note that I'll be updating bits of the DTraceToolkit in our cddl/contrib >> directory to work >> with FreeBSD. Changes will include removing the dependency on ksh in all >> scripts that I touch >> along with the conversion of probes to match those on FreeBSD. > > > I have been maintaining sysutils/DTraceToolkit for a while and it > doesn't seem to make sure to duplicate the effort. Can you merge the > changes for opensnoop and shellsnoop from the port into the version in > base and I will delete the port. Actually, it looks like you already have the opensnoop stuff fixed. Can you review this: https://phabric.freebsd.org/D497 From owner-freebsd-dtrace@FreeBSD.ORG Tue Jul 29 16:19:12 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 C9BE134B; Tue, 29 Jul 2014 16:19:12 +0000 (UTC) Received: from vps.hungerhost.com (vps.hungerhost.com [216.38.53.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9E2992415; Tue, 29 Jul 2014 16:19:12 +0000 (UTC) Received: from global-1-26.nat.csx.cam.ac.uk ([131.111.184.26]:63596 helo=[172.17.159.144]) by vps.hungerhost.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1XCA7I-00078E-28; Tue, 29 Jul 2014 12:19:08 -0400 From: "George Neville-Neil" To: "Steven Kreuzer" Subject: Re: Updating of DTraceToolkit for FreeBSD Date: Tue, 29 Jul 2014 17:19:06 +0100 Message-ID: <229CD043-90E1-4126-AFE5-AD1E24C787BB@neville-neil.com> In-Reply-To: References: <40272D9D-3CA1-4092-9CBB-D035D10C0407@neville-neil.com> <5C34A9D1-2D55-49A5-9400-4BEEC7B61A7D@neville-neil.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Mailer: MailMate (1.7.2r3905) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com X-Get-Message-Sender-Via: vps.hungerhost.com: authenticated_id: gnn@neville-neil.com 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 16:19:12 -0000 On 28 Jul 2014, at 23:21, Steven Kreuzer wrote: > On Mon, Jul 28, 2014 at 6:05 PM, Steven Kreuzer > wrote: >> On Sat, Jul 26, 2014 at 4:45 PM, George Neville-Neil >> wrote: >>> Hi, >>> >>> Note that I'll be updating bits of the DTraceToolkit in our >>> cddl/contrib >>> directory to work >>> with FreeBSD. Changes will include removing the dependency on ksh >>> in all >>> scripts that I touch >>> along with the conversion of probes to match those on FreeBSD. >> >> >> I have been maintaining sysutils/DTraceToolkit for a while and it >> doesn't seem to make sure to duplicate the effort. Can you merge the >> changes for opensnoop and shellsnoop from the port into the version >> in >> base and I will delete the port. > > Actually, it looks like you already have the opensnoop stuff fixed. > Can you > review this: https://phabric.freebsd.org/D497 Done. Best, George From owner-freebsd-dtrace@FreeBSD.ORG Tue Jul 29 23:09:07 2014 Return-Path: Delivered-To: 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 7320D8F0 for ; Tue, 29 Jul 2014 23:09:07 +0000 (UTC) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) (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 395E022DF for ; Tue, 29 Jul 2014 23:09:07 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id s7so461351qap.9 for ; Tue, 29 Jul 2014 16:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=9UX5N6N7OBnFbSQuMwjzt2Mn99QGKGQK7s5/lpsIoao=; b=b6CacvZykpG4i82y8ro9aICGtswcBZLXbG8lNNBU8HsJ0Htu3aGDJbl0RJClPYb4JG vB/KVn68J/rxwUHzWrU9h1Lx7e03lkBRxlkZSepfPLWikBEsoRfaS1tyOMWMuqMMf8Zm grbUn1g8gelS8tKYdRViVM92RpFdtVEjPpeuRn5zmew4AsSB7DEuF2M6mFJ4B2SB6SXm oumSSEUplPadodefLdOajfvQM3XeS6B1VBvmwS2m5TSTtmyVK3oSbvH0Md1P34yheuh4 FgVGqerRxa/edX596kQinCn0Ah5+DnuNGlpWpRdyj7U5l4m5nC8Pw4ZJ/6+/T+r4i3HQ lDNw== MIME-Version: 1.0 X-Received: by 10.140.19.176 with SMTP id 45mr425381qgh.46.1406675346406; Tue, 29 Jul 2014 16:09:06 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.1.6 with HTTP; Tue, 29 Jul 2014 16:09:06 -0700 (PDT) Date: Tue, 29 Jul 2014 16:09:06 -0700 X-Google-Sender-Auth: D4gqlVgWfPNVmF-BMbUUfYCXF44 Message-ID: Subject: dtrace pid provider on entry == segfault process From: Adrian Chadd To: dtrace@freebsd.org Content-Type: text/plain; charset=UTF-8 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:09:07 -0000 Hi! Heres a fun one on stable/10: This one works: [root@darkwatch] /data/blockd# cat test.d pid$target:libc*:memcpy:return { @[execname, ustack()] = count(); } END { trunc(@, 3); } This one however doesn't! [root@darkwatch] /data/blockd# cat test2.d pid$target:libc*:memcpy:entry { [execname] = quantize(arg2); } From owner-freebsd-dtrace@FreeBSD.ORG Tue Jul 29 23:10:40 2014 Return-Path: Delivered-To: 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 B459D937 for ; Tue, 29 Jul 2014 23:10:40 +0000 (UTC) Received: from mail-qa0-x231.google.com (mail-qa0-x231.google.com [IPv6:2607:f8b0:400d:c00::231]) (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 7852C2462 for ; Tue, 29 Jul 2014 23:10:40 +0000 (UTC) Received: by mail-qa0-f49.google.com with SMTP id dc16so457326qab.36 for ; Tue, 29 Jul 2014 16:10:39 -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:content-type; bh=mvSvzQG54MGHUS6PYGk6c2eS1ZI0LJ20rUs70FAFq64=; b=amcQ8wHLsA9MFat+99e1lixWkHFOeoJw9lH1ZxMfPs/YP2I3R3c1+NT5brteue2QYn MTrI1OHfemIVhcDIl7YXKKlJ6KgcIKmzi1IBVgEpjMomsVKXMRBxEBrJNWWkS9LqXTk/ 66ro7APZ5VJFgOcnvboVQC6cvwS4wqq0UTU+tk+xSgpE0TOJqYs0g92/9YD5Me3jzqvA yRHmwNtR7qy58pTLqv/Ihhzs9kjjqphfT7K9HOjFJD2eA2Y7o1gJz3l3YfwQj5CN03th 2zMB4bEUw+/utXb07AuYP8FRo40bShmxzwnULoFSdTpM4DXeTYnPBugw2wfXWUUMT3HD iGnw== MIME-Version: 1.0 X-Received: by 10.224.55.131 with SMTP id u3mr336488qag.98.1406675439584; Tue, 29 Jul 2014 16:10:39 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.1.6 with HTTP; Tue, 29 Jul 2014 16:10:39 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Jul 2014 16:10:39 -0700 X-Google-Sender-Auth: 65IL8M9fmtq2uyaIOcR2ZwKz_Lw Message-ID: Subject: Re: dtrace pid provider on entry == segfault process From: Adrian Chadd To: dtrace@freebsd.org Content-Type: text/plain; charset=UTF-8 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:10:40 -0000 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.) -a 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 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 From owner-freebsd-dtrace@FreeBSD.ORG Tue Jul 29 23:19:21 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 674EACAA; Tue, 29 Jul 2014 23:19:21 +0000 (UTC) Received: from mail-qg0-x235.google.com (mail-qg0-x235.google.com [IPv6:2607:f8b0:400d:c04::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 1696424C1; Tue, 29 Jul 2014 23:19:21 +0000 (UTC) Received: by mail-qg0-f53.google.com with SMTP id q107so518591qgd.26 for ; Tue, 29 Jul 2014 16:19:20 -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=9Nfjd+wnvcoDu+JqTpeFhvOTm0qcPgIH48QGRCovpYc=; b=TuuQiedDCneI8jLAJVUUMFgsMq55NdIN6Lnyvzo40DO7jFeX3pY3Zrp097dzvcyEZG KvfxWLqjj70vqugKtL4u6Dm67ooolWd4fkkanVIgLcEF68tpYXPRT+GbYboYvj7D5Xay BkqGUEUSdsRr8iuguKmZGlB9S7g6BriFy9GDQklhbmr+AoSa9mYwWN9IxkZqRnLxOqdx TFjP7bBvycXqhcr2xnxwwLsyx7LI7NyjWsB94UB5zoDKIr2KPXfqEmF8ZZMn9kCNO56o 4xW2sXhOV2tuc7gRrqt9XNncuBZSKF6SrqwCB/nudzTdRZxUrdPQ9XnqiB2Y4t6c81GF DZjQ== MIME-Version: 1.0 X-Received: by 10.229.171.196 with SMTP id i4mr434175qcz.15.1406675960287; Tue, 29 Jul 2014 16:19:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.1.6 with HTTP; Tue, 29 Jul 2014 16:19:20 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Jul 2014 16:19:20 -0700 X-Google-Sender-Auth: gcJU-qx5zvfSQlmrLtSJxIGiYtc 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:19:21 -0000 ... whilst I'm here, is this supposed to work? [root@darkwatch] /data/blockd# dtrace -s test2.d -p 28686 dtrace: script 'test2.d' matched 1 probe ^C blockd value ------------- Distribution ------------- count -1 | 0 0 | 4676 1 |@ 23715 2 | 7642 4 | 9457 8 |@ 32601 16 | 17893 32 | 8685 64 | 1102 128 | 1315 256 | 0 512 | 0 1024 | 0 2048 | 0 4096 | 0 8192 | 0 16384 | 0 32768 | 0 65536 | 0 131072 | 0 262144 | 0 524288 | 0 1048576 | 0 2097152 | 0 4194304 | 0 8388608 | 0 16777216 | 0 33554432 | 0 67108864 | 0 134217728 | 0 268435456 | 0 536870912 | 0 1073741824 | 0 2147483648 | 0 4294967296 | 0 8589934592 | 0 17179869184 | 0 34359738368 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1335242 68719476736 | 0 137438953472 | 0 274877906944 | 0 549755813888 | 0 1099511627776 | 0 2199023255552 | 0 4398046511104 | 0 8796093022208 | 0 17592186044416 | 0 35184372088832 | 0 70368744177664 | 2630 140737488355328 | 0 [root@darkwatch] /data/blockd# cat test2.d pid$target:libc*:memcpy:return { @[execname] = quantize(arg2); } From owner-freebsd-dtrace@FreeBSD.ORG Tue Jul 29 23:23:43 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 5F35DE30; Tue, 29 Jul 2014 23:23:43 +0000 (UTC) Received: from mail-vc0-x22d.google.com (mail-vc0-x22d.google.com [IPv6:2607:f8b0:400c:c03::22d]) (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 EC1312572; Tue, 29 Jul 2014 23:23:42 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id hy10so649261vcb.32 for ; Tue, 29 Jul 2014 16:23:42 -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=jMq8aUUBcbsgnW4vcImg9Al0bVO1oPQo4AHA1ZBU8ko=; b=SrAQGyLKN6Y8yZd+d5ig+uCP0LWpGloG/WnZCjuLKowCSjZIeuca3lVteZSlRZRBt2 LPRw0kQ9CZrD+lbfirhfPaz+Ua0PR5ZOOCc60b+2pwDl8UfczJnN8wUm5eEH3tVRiBWT rcDAFDHbkmu+28IvHAWdWOR5YxbK/zkf/iX1pUd6W5fwuV/1TMPVCrRF2hO9Z266TYd0 ns0lTovzwFmqmj1jZCWqBqHgnp7DOO6pqnXu1s2kW+gY/kxjzL5cvXfVOzuDQXczV/Hk VzqNh310LSHIk7SZwPIF7wiVg3LaPT4wt1rNaC403JfbJF0rXsbr/qHOZauqFxTV0tbO 2wlA== MIME-Version: 1.0 X-Received: by 10.52.9.68 with SMTP id x4mr4373011vda.20.1406676222069; Tue, 29 Jul 2014 16:23:42 -0700 (PDT) Sender: markjdb@gmail.com Received: by 10.221.31.137 with HTTP; Tue, 29 Jul 2014 16:23:42 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Jul 2014 19:23:42 -0400 X-Google-Sender-Auth: 9i9n57cXL7U4xk8DMJ6M2HpZrAU 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:23:43 -0000 On Tue, Jul 29, 2014 at 7:19 PM, Adrian Chadd wrote: > ... whilst I'm here, is this supposed to work? It might not crash, but I wouldn't expect it to work properly (on amd64 at least) without the change I mentioned. > > [root@darkwatch] /data/blockd# dtrace -s test2.d -p 28686 > > dtrace: script 'test2.d' matched 1 probe > > ^C > > > blockd > > value ------------- Distribution ------------- count > > -1 | 0 > > 0 | 4676 > > 1 |@ 23715 > > 2 | 7642 > > 4 | 9457 > > 8 |@ 32601 > > 16 | 17893 > > 32 | 8685 > > 64 | 1102 > > 128 | 1315 > > 256 | 0 > > 512 | 0 > > 1024 | 0 > > 2048 | 0 > > 4096 | 0 > > 8192 | 0 > > 16384 | 0 > > 32768 | 0 > > 65536 | 0 > > 131072 | 0 > > 262144 | 0 > > 524288 | 0 > > 1048576 | 0 > > 2097152 | 0 > > 4194304 | 0 > > 8388608 | 0 > > 16777216 | 0 > > 33554432 | 0 > > 67108864 | 0 > > 134217728 | 0 > > 268435456 | 0 > > 536870912 | 0 > > 1073741824 | 0 > > 2147483648 | 0 > > 4294967296 | 0 > > 8589934592 | 0 > > 17179869184 | 0 > > 34359738368 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1335242 > > 68719476736 | 0 > > 137438953472 | 0 > > 274877906944 | 0 > > 549755813888 | 0 > > 1099511627776 | 0 > > 2199023255552 | 0 > > 4398046511104 | 0 > > 8796093022208 | 0 > > 17592186044416 | 0 > > 35184372088832 | 0 > > 70368744177664 | 2630 > > 140737488355328 | 0 > > > [root@darkwatch] /data/blockd# cat test2.d > > pid$target:libc*:memcpy:return > > { > > @[execname] = quantize(arg2); > > } From owner-freebsd-dtrace@FreeBSD.ORG Thu Jul 31 17:12:14 2014 Return-Path: Delivered-To: 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 E7ECB793; Thu, 31 Jul 2014 17:12:14 +0000 (UTC) Received: from mail-vc0-x233.google.com (mail-vc0-x233.google.com [IPv6:2607:f8b0:400c:c03::233]) (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 956162BBF; Thu, 31 Jul 2014 17:12:14 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id hq11so4668592vcb.24 for ; Thu, 31 Jul 2014 10:12:13 -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=Siw0+h0LgUPzl7PPZUav2d+nOksRjNh4btejeZc9x80=; b=ZE4j3RQtVBCrMXK5jdZ3D5cnEGI6l00ZVEfeZdy+1jjo20XjnBfwkI/ye1R7GP7GmN cgfoJP43DZatfAE7PVf0IURpM6jjm61MqCw4TBG4hU+/T1mpZDZaqxeSc6+GHcWGSkUm BSOXe3kCbm151xLlW14ivhhjucgpW0yXOGWLpjj+OmMI5j6hHTvIWknkacfQWEw07aa3 0I+p2myoDrgSKyXPzqLrerE493GXImU/xLtzm2m6BA/Yc1Xy7A/E7zLTcCypEUfwH0hi 0LrLWCwTidwk7DrbM4yk0vDydMsNww/AmkOU2QHow3Vyt1Nm6YtGmyGNXyO3AGEFjRNy RThg== MIME-Version: 1.0 X-Received: by 10.52.137.51 with SMTP id qf19mr2251318vdb.97.1406826732450; Thu, 31 Jul 2014 10:12:12 -0700 (PDT) Sender: markjdb@gmail.com Received: by 10.221.31.137 with HTTP; Thu, 31 Jul 2014 10:12:12 -0700 (PDT) In-Reply-To: References: Date: Thu, 31 Jul 2014 13:12:12 -0400 X-Google-Sender-Auth: wIJXvAoQ4QyL7pceF6H4udKVFk0 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: Thu, 31 Jul 2014 17:12:15 -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.) All the relevant changes should be available in stable/10 now. Could you please update and give it another try? Thanks, -Mark