Module Name: src Committed By: matt Date: Sat Jan 29 18:21:23 UTC 2011
Modified Files: src/sys/sys: evcnt.h Log Message: Add EVCNT_TYPE_ANY for sysctl. Fix EVCNT_STRING_MAX fencepost error. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/sys/evcnt.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/evcnt.h diff -u src/sys/sys/evcnt.h:1.7 src/sys/sys/evcnt.h:1.8 --- src/sys/sys/evcnt.h:1.7 Sat Dec 11 22:30:55 2010 +++ src/sys/sys/evcnt.h Sat Jan 29 18:21:22 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: evcnt.h,v 1.7 2010/12/11 22:30:55 matt Exp $ */ +/* $NetBSD: evcnt.h,v 1.8 2011/01/29 18:21:22 matt Exp $ */ /* * Copyright (c) 1996, 2000 Christopher G. Demetriou @@ -96,9 +96,10 @@ TAILQ_HEAD(evcntlist, evcnt); /* maximum group/name lengths, including trailing NUL */ -#define EVCNT_STRING_MAX 256 +#define EVCNT_STRING_MAX 255 /* ev_type values */ +#define EVCNT_TYPE_ANY -1 /* for sysctl */ #define EVCNT_TYPE_MISC 0 /* miscellaneous; catch all */ #define EVCNT_TYPE_INTR 1 /* interrupt; count with vmstat -i */ #define EVCNT_TYPE_TRAP 2 /* processor trap/execption */