summaryrefslogtreecommitdiff
path: root/share/examples
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-06-06 02:48:09 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-06-06 02:48:09 +0000
commitb2ca2e50b9aaccc15efaf970f9139310429abfe5 (patch)
tree58fdce4833a3c09b5f49c4ce6d7ae2240621095e /share/examples
parent64fe1b5e1d6bfe76e62871ba2ec8d598641ff92c (diff)
Notes
Diffstat (limited to 'share/examples')
-rw-r--r--share/examples/hwpmc/overhead.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/examples/hwpmc/overhead.c b/share/examples/hwpmc/overhead.c
index 14834bd27c3d..372babee35d0 100644
--- a/share/examples/hwpmc/overhead.c
+++ b/share/examples/hwpmc/overhead.c
@@ -65,7 +65,7 @@ main(int argc, char **argv)
if (pmc_init() != 0)
err(EX_OSERR, "hwpmc(4) not loaded, kldload or update your kernel");
- if (pmc_allocate(counter_name, PMC_MODE_SC, 0, 0, &pmcid) < 0)
+ if (pmc_allocate(counter_name, PMC_MODE_SC, 0, 0, &pmcid, 64*1024) < 0)
err(EX_OSERR, "failed to allocate %s as a system counter in counting mode",
counter_name);