On Tue, Dec 8, 2015 at 9:42 AM, Ted Unangst <t...@tedunangst.com> wrote:
> allow some inspection of the kevent structs.
...
> --- kern/kern_event.c   5 Dec 2015 10:11:53 -0000       1.67
> +++ kern/kern_event.c   8 Dec 2015 17:41:29 -0000
> @@ -508,6 +508,10 @@ sys_kevent(struct proc *p, void *v, regi
>                         goto done;
>                 for (i = 0; i < n; i++) {
>                         kevp = &kq->kq_kev[i];
> +#ifdef KTRACE
> +                       if (KTRPOINT(p, KTR_STRUCT))
> +                               ktrevent(p, kevp);
> +#endif

Can we handle these like iovecs, doing multiple in a single single
ktrstruct call?  I get that kevent() does both input and output in
chunks of KQ_NEVENTS, but it's still cleaner, more efficient, and
displays nicer in the vast majority of cases.


Philip Guenther

Reply via email to