pmc filter: avoid spurious gcc uninitialized warning
This commit is contained in:
parent
cda7a5d5ed
commit
b79ce32e4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334609
@ -145,7 +145,7 @@ pmc_filter_handler(uint32_t *lwplist, int lwpcount, uint32_t *pidlist, int pidco
|
|||||||
if ((ps = pmclog_open(infd)) == NULL)
|
if ((ps = pmclog_open(infd)) == NULL)
|
||||||
errx(EX_OSERR, "ERROR: Cannot allocate pmclog parse state: %s\n", strerror(errno));
|
errx(EX_OSERR, "ERROR: Cannot allocate pmclog parse state: %s\n", strerror(errno));
|
||||||
|
|
||||||
pmccount = 0;
|
eventcount = pmccount = 0;
|
||||||
while (pmclog_read(ps, &ev) == 0) {
|
while (pmclog_read(ps, &ev) == 0) {
|
||||||
if (ev.pl_type == PMCLOG_TYPE_INITIALIZE)
|
if (ev.pl_type == PMCLOG_TYPE_INITIALIZE)
|
||||||
memcpy(cpuid, ev.pl_u.pl_i.pl_cpuid, PMC_CPUID_LEN);
|
memcpy(cpuid, ev.pl_u.pl_i.pl_cpuid, PMC_CPUID_LEN);
|
||||||
|
Loading…
Reference in New Issue
Block a user