1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00
freebsd/usr.sbin/pmcstat
Andrew Gallatin 0aa1507751 pmcstat: fix log analysis
pmcstat has been broken for analyzing logs since D35342 / b6e28991bf.

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
2022-07-04 12:42:39 -04:00
..
Makefile ncurses: chase dependency changes in the source tree 2021-10-04 11:38:24 +02:00
Makefile.depend
pmcpl_annotate_cg.c
pmcpl_annotate_cg.h
pmcpl_annotate.c
pmcpl_annotate.h
pmcpl_callgraph.c
pmcpl_callgraph.h
pmcpl_calltree.c
pmcpl_calltree.h
pmcpl_gprof.c
pmcpl_gprof.h
pmcstat_log.c
pmcstat_log.h
pmcstat_top.h
pmcstat.8
pmcstat.c pmcstat: fix log analysis 2022-07-04 12:42:39 -04:00
pmcstat.h