Date: Tue, 26 Mar 2013 10:34:10 +0000 From: Matt Burke <mattblists@icritical.com> To: Paul Koch <paul.koch137@gmail.com> Cc: hackers@freebsd.org Subject: Re: syscalls per process ? Message-ID: <515179A2.2090904@icritical.com> In-Reply-To: <20130326115802.15ce1626@speedy> References: <20130326115802.15ce1626@speedy>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?515179A2.2090904>