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