svn commit: r292033 - head/sys/dev/hwpmc

Randall Stewart rrs at FreeBSD.org
Wed Dec 9 22:46:42 UTC 2015


Author: rrs
Date: Wed Dec  9 22:46:40 2015
New Revision: 292033
URL: https://svnweb.freebsd.org/changeset/base/292033

Log:
  Fix the tunable in logging so that if its pre-11 we have the proper
  line so the tunable is present.
  
  Sponsored by:	Netflix Inc.

Modified:
  head/sys/dev/hwpmc/hwpmc_logging.c

Modified: head/sys/dev/hwpmc/hwpmc_logging.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_logging.c	Wed Dec  9 22:46:00 2015	(r292032)
+++ head/sys/dev/hwpmc/hwpmc_logging.c	Wed Dec  9 22:46:40 2015	(r292033)
@@ -70,6 +70,9 @@ SYSCTL_DECL(_kern_hwpmc);
  */
 
 static int pmclog_buffer_size = PMC_LOG_BUFFER_SIZE;
+#if (__FreeBSD_version < 1100000)
+TUNABLE_INT(PMC_SYSCTL_NAME_PREFIX "logbuffersize", &pmclog_buffer_size);
+#endif
 SYSCTL_INT(_kern_hwpmc, OID_AUTO, logbuffersize, CTLFLAG_RDTUN,
     &pmclog_buffer_size, 0, "size of log buffers in kilobytes");
 
@@ -78,6 +81,9 @@ SYSCTL_INT(_kern_hwpmc, OID_AUTO, logbuf
  */
 
 static int pmc_nlogbuffers = PMC_NLOGBUFFERS;
+#if (__FreeBSD_version < 1100000)
+TUNABLE_INT(PMC_SYSCTL_NAME_PREFIX "nbuffers", &pmc_nlogbuffers);
+#endif
 SYSCTL_INT(_kern_hwpmc, OID_AUTO, nbuffers, CTLFLAG_RDTUN,
     &pmc_nlogbuffers, 0, "number of global log buffers");
 


More information about the svn-src-head mailing list