From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 26 10:40:38 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2D10A4A4 for ; Tue, 26 Mar 2013 10:40:38 +0000 (UTC) (envelope-from mattblists@icritical.com) Received: from mail1.icritical.com (mail1.icritical.com [93.95.13.41]) by mx1.freebsd.org (Postfix) with SMTP id 9158510B for ; Tue, 26 Mar 2013 10:40:36 +0000 (UTC) Received: (qmail 9626 invoked from network); 26 Mar 2013 10:34:15 -0000 Received: from localhost (127.0.0.1) by mail1.icritical.com with SMTP; 26 Mar 2013 10:34:15 -0000 Received: (qmail 9614 invoked by uid 599); 26 Mar 2013 10:34:15 -0000 Received: from unknown (HELO PDC002.icritical.int) (212.57.254.146) by mail1.icritical.com (qpsmtpd/0.28) with ESMTP; Tue, 26 Mar 2013 10:34:15 +0000 Message-ID: <515179A2.2090904@icritical.com> Date: Tue, 26 Mar 2013 10:34:10 +0000 From: Matt Burke User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130122 Thunderbird/17.0.2 MIME-Version: 1.0 To: Paul Koch Subject: Re: syscalls per process ? References: <20130326115802.15ce1626@speedy> In-Reply-To: <20130326115802.15ce1626@speedy> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-TLS-Incoming: YES X-Virus-Scanned: by iCritical at mail1.icritical.com Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Mar 2013 10:40:38 -0000 On 03/26/13 01:58, Paul Koch wrote: > We don't want to run an external program (eg. truss/dtrace) on each > program. Not exactly what you want, but a single DTrace instance can collect data globally, not just while attached to a specific target: # dtrace -qn 'syscall:::entry{@x[execname,probefunc]=count()} tick-1s{trunc(@x,20); printa(@x); exit(1)}' chrome poll 557 Xorg writev 685 chrome read 690 wine write 700 nvidia-settings read 702 Xorg select 724 conky poll 853 wineserver freebsd32_gettimeofday 1001 wineserver write 1071 wineserver read 1136 wineserver freebsd32_kevent 1163 conky read 1308 chrome gettimeofday 1316 Xorg read 1431 Xorg setitimer 1448 chrome clock_gettime 1685 wine sigprocmask 1810 wine freebsd32_gettimeofday 1872 wine read 2393 Xorg clock_gettime 31594 -- Sorry for the following... iCritical is a brand of Critical Software Ltd. Registered in England & Wales: 04909220. Registered Office: IC2, Keele Science Park, Keele, Staffordshire, ST5 5NH. This message has been scanned for security threats by iCritical. The information contained in this message is confidential and intended for the addressee only. If you have received this message in error, or there are any problems with its content, please contact the sender.