Update a sysctl name to nbuffers_pcpu in hwpmc.4 and pmcstat.c

This change was missed in r333509 (e6b475e0af).

(cherry picked from commit 0939f965d8)
This commit is contained in:
Piotr Pawel Stefaniak 2021-08-28 10:01:19 +02:00
parent 485a546a3a
commit a7ce2cf0ff
3 changed files with 3 additions and 3 deletions

View File

@ -426,7 +426,7 @@ The default buffer size is 4KB.
.It Va kern.hwpmc.mtxpoolsize Pq integer, read-only
The size of the spin mutex pool used by the PMC driver.
The default is 32.
.It Va kern.hwpmc.nbuffers Pq integer, read-only
.It Va kern.hwpmc.nbuffers_pcpu Pq integer, read-only
The number of log buffers used by
.Nm
for logging.

View File

@ -86,7 +86,7 @@ SYSCTL_INT(_kern_hwpmc, OID_AUTO, logbuffersize, CTLFLAG_RDTUN,
&pmclog_buffer_size, 0, "size of log buffers in kilobytes");
/*
* kern.hwpmc.nbuffer -- number of global log buffers
* kern.hwpmc.nbuffers_pcpu -- number of global log buffers
*/
static int pmc_nlogbuffers_pcpu = PMC_NLOGBUFFERS_PCPU;

View File

@ -1455,7 +1455,7 @@ main(int argc, char **argv)
args.pa_verbosity > 0)
warnx(
"WARNING: at least %u event%s were discarded while running.\n"
"Please consider tuning the \"kern.hwpmc.nbuffers\" tunable.",
"Please consider tuning the \"kern.hwpmc.nbuffers_pcpu\" tunable.",
ds_end.pm_buffer_requests_failed -
ds_start.pm_buffer_requests_failed,
((ds_end.pm_buffer_requests_failed -