• Andrew Gallatin's avatar
    pmcstat: fix log analysis · 0aa15077
    Andrew Gallatin authored
    pmcstat has been broken for analyzing logs since D35342 / b6e28991.
    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