syscalls per process ?

Matt Burke mattblists at icritical.com
Tue Mar 26 10:40:38 UTC 2013


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.


More information about the freebsd-hackers mailing list