tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: In-kernel process exit hooks?



On Fri, 8 Jan 2016, bch wrote:

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 ?

Perhaps manually include <sys/timespec.h> ?


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!



+------------------+--------------------------+------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+------------------------+


Home | Main Index | Thread Index | Old Index