HomeFreeBSD

pmcstat: fix log analysis

Description

pmcstat: fix log analysis

pmcstat has been broken for analyzing logs since D35342 / b6e28991bf3aadb.

This is because the pmc for the first CPU is not added when reading logs
because unlike its clones, its event id is not invalid. That causes us
to fail the assertion at lib/libpmcstat/libpmcstat_logging.c:293
when encountering samples from cpu0.

Fix this by removing the check that the PMC is invalid

Reviewed by: tsoome
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D35709

Details

Provenance
gallatinAuthored on Jul 4 2022, 4:40 PM
Reviewer
tsoome
Differential Revision
D35709: fix pmcstat
Parents
rGee2324aaf6e3: Add Rockchip PCIe cleanup on attach faulure
Branches
Unknown
Tags
Unknown