Date: Tue, 26 Mar 2013 11:58:02 +1000 From: Paul Koch <paul.koch137@gmail.com> To: hackers@freebsd.org Subject: syscalls per process ? Message-ID: <20130326115802.15ce1626@speedy>
next in thread | raw e-mail | index | archive | help
Hi, At the start of all our programs, we set up a SIGALRM signal handler to retrieve rusage stats each second and log this info for analysis. It is useful for long running programs. One of the things we would really really like to get is the number of system calls the process has performed. Is there a simple way for a process to retrieve its own number of syscalls it has performed ? Pity it's not available via getrusage(). We don't want to run an external program (eg. truss/dtrace) on each program. Paul.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130326115802.15ce1626>