On 1/7/16, David Holland <dholland-tech%netbsd.org@localhost> wrote:
On Fri, Jan 08, 2016 at 07:08:19AM +0000, David Holland wrote:
> For an example of the right way to do this kind of thing, look in
> kern_acct.c.
Better example: sys_fktrace, since that uses a file handle. And it
does virtually the same thing that filemon's trying to do, except much
more thoroughly.
Out of curiousity, I'm trying to use this interface, but getting:
/usr/include/sys/ktrace.h:83:20: error: field '_ts' has incomplete type
struct timespec _ts;
Does this look familiar to anybody ?
I also needed to manually include <sys/param.h> for MAXCOMLEN (used in
<sys/ktrace.h> L66)
Cheers,
-bch
--
David A. Holland
dholland%netbsd.org@localhost
!DSPAM:568f7d53105566048743086!