kernel - Expose mpsafe/collision internals of kq token via sysctl
authorSamuel J. Greear <sjg@thesjg.com>
Tue, 7 Sep 2010 02:10:14 +0000 (02:10 +0000)
committerSamuel J. Greear <sjg@thesjg.com>
Tue, 7 Sep 2010 02:10:14 +0000 (02:10 +0000)
sys/kern/kern_event.c

index fe76ed6..f0b5b35 100644 (file)
  * Global token for kqueue subsystem
  */
 struct lwkt_token kq_token = LWKT_TOKEN_UP_INITIALIZER(kq_token);
+SYSCTL_INT(_lwkt, OID_AUTO, kq_mpsafe,
+          CTLFLAG_RW, &kq_token.t_flags, 0, "");
+SYSCTL_LONG(_lwkt, OID_AUTO, kq_collisions,
+           CTLFLAG_RW, &kq_token.t_collisions, 0, "");
 
 MALLOC_DEFINE(M_KQUEUE, "kqueue", "memory for kqueue system");