aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pmc
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-06-04 06:30:35 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-06-04 06:30:35 +0000
commitb79ce32e4e345a25ed229635120eb5202f22236f (patch)
treec56d933bd0613a3d2e67483e780ff54d2a2ad0e1 /usr.sbin/pmc
parentcda7a5d5edb5abc9d275ad840cd3336ecd3e2205 (diff)
Notes
Diffstat (limited to 'usr.sbin/pmc')
-rw-r--r--usr.sbin/pmc/cmd_pmc_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pmc/cmd_pmc_filter.c b/usr.sbin/pmc/cmd_pmc_filter.c
index 6d0bc36f1401..c4dbe2a2fe7d 100644
--- a/usr.sbin/pmc/cmd_pmc_filter.c
+++ b/usr.sbin/pmc/cmd_pmc_filter.c
@@ -145,7 +145,7 @@ pmc_filter_handler(uint32_t *lwplist, int lwpcount, uint32_t *pidlist, int pidco
if ((ps = pmclog_open(infd)) == NULL)
errx(EX_OSERR, "ERROR: Cannot allocate pmclog parse state: %s\n", strerror(errno));
- pmccount = 0;
+ eventcount = pmccount = 0;
while (pmclog_read(ps, &ev) == 0) {
if (ev.pl_type == PMCLOG_TYPE_INITIALIZE)
memcpy(cpuid, ev.pl_u.pl_i.pl_cpuid, PMC_CPUID_LEN);