freebsd-dev/usr.sbin/pmcstat
Mitchell Horne edcf9e59c3 pmcstat: set initial counter value to zero
For an infrequent event, pmcstat may report (u_long)-1 for CPUs where
the counter was never incremented. Just set this to zero, instead.

ev->ev_count is passed as the 'count' argument to pmc_allocate(3), but
this wasn't always the case.

Reviewed by:	gnn
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D29887
2021-04-21 17:35:03 -03:00
..
Makefile pmc: Add include path for libpmcstat as it is an internallib 2020-03-25 01:32:16 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pmcpl_annotate_cg.c Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
pmcpl_annotate_cg.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
pmcpl_annotate.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcpl_annotate.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcpl_callgraph.c pmcstat: fix build on non-64 bit platforms 2020-08-05 20:42:08 +00:00
pmcpl_callgraph.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcpl_calltree.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcpl_calltree.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcpl_gprof.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcpl_gprof.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcstat_log.c Add the missing pmcstat log entries 2021-01-05 10:03:05 +00:00
pmcstat_log.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcstat_top.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcstat.8 pmcstat.8: Improve description of -T 2020-08-17 10:51:03 +00:00
pmcstat.c pmcstat: set initial counter value to zero 2021-04-21 17:35:03 -03:00
pmcstat.h libpmcstat: compile in events based on json description 2018-05-24 04:30:06 +00:00