man.bsd.lv manual page server

Manual Page Search Parameters

PMC.OCTEON(3) Library Functions Manual PMC.OCTEON(3)

pmc.octeonmeasurement events for Octeon family CPUs

library “libpmc”

#include <pmc.h>

There are two counters per core supported by the hardware and each is 64 bits wide.

MIPS programmable PMCs support the following events:

(Event 1) Conditionally clocked cycles (as opposed to count/cvm_count which count even with no clocks)
(Event 2) Instructions issued but not retired
(Event 3) Instructions retired
(Event 4) Cycles no issue
(Event 5) Cycles single issue
(Event 6) Cycles dual issue
(Event 7) Cycle ifetch issued (but not necessarily commit to pp_mem)
(Event 8) Branches retired
(Event 9) Branch mispredicts
(Event 10) Jumps retired
(Event 11) Jumps mispredicted
(Event 12) Mem Replays
(Event 13) Cycles idle due to unaligned_replays
(Event 14) trap_6a signal
(Event 16) Unexpected unaligned loads (REPUN=1)
(Event 17) Unexpected unaligned store (REPUN=1)
(Event 18) Unaligned loads (REPUN=1 or USEUN=1)
(Event 19) Unaligned store (REPUN=1 or USEUN=1)
(Event 20) Exec clocks(must set CvmCtl[DISCE] for accurate timing)
(Event 21) Mul clocks(must set CvmCtl[DISCE] for accurate timing)
(Event 22) Crypto clocks(must set CvmCtl[DISCE] for accurate timing)
(Event 23) Issue_csr clocks(must set CvmCtl[DISCE] for accurate timing)
(Event 24) Icache committed fetches (demand+prefetch)
(Event 25) Icache committed prefetches
(Event 26) Icache aliases
(Event 27) Icache invalidates
(Event 28) Icache parity error
(Event 29) Cycles idle due to imiss (must set CvmCtl[DISCE] for accurate timing)
(Event 32) Number of write buffer entries created
(Event 33) Number of write buffer data cycles used (may need to set CvmCtl[DISCE] for accurate counts)
(Event 34) Number of write buffer entries forced out by loads
(Event 35) Number of cycles that there was no available write buffer entry (may need to set CvmCtl[DISCE] and CvmMemCtl[MCLK] for accurate counts)
(Event 36) Number of stores that found no available write buffer entries
(Event 37) Number of address bus cycles used (may need to set CvmCtl[DISCE] for accurate counts)
(Event 38) Number of address bus cycles not reflected (i.e. destined for L2) (may need to set CvmCtl[DISCE] for accurate counts)
(Event 39) Number of fill bus cycles used (may need to set CvmCtl[DISCE] for accurate counts)
(Event 40) Number of Dstream DIDs created
(Event 41) Number of Istream DIDs created
(Event 42) Number of cycles that no DIDs were available (may need to set CvmCtl[DISCE] and CvmMemCtl[MCLK] for accurate counts)
(Event 43) Number of load issues
(Event 44) Number of local memory load
(Event 45) Number of I/O load issues
(Event 46) Number of loads that were not prefetches and missed in the cache
(Event 48) Number of store issues
(Event 49) Number of local memory store issues
(Event 50) Number of I/O store issues
(Event 51) Number of IOBDMAs
(Event 53) Number of dstream TLB refill, invalid, or modified exceptions
(Event 54) Number of dstream TLB address errors
(Event 55) Number of istream TLB refill, invalid, or address error exceptions
(Event 56) Number of SYNC stall cycles (may need to set CvmCtl[DISCE] for accurate counts)
(Event 57) Number of SYNCIOBDMA stall cycles (may need to set CvmCtl[DISCE] for accurate counts)
(Event 58) Number of SYNCWs
(Event 64) D/eret mispredicts (CN63XX specific)
(Event 65) Branch likely mispredicts (CN63XX specific)
(Event 66) Hazard traps due to *MTC0 to CvmCtl, Perf counter control, EntryHi, or CvmMemCtl registers (CN63XX specific)

The following table shows the mapping between the PMC-independent aliases supported by library “libpmc” and the underlying hardware events used.

pmc(3), pmc.atom(3), pmc.core(3), pmc.iaf(3), pmc.k7(3), pmc.k8(3), pmc.mips24k(3), pmc.p4(3), pmc.p5(3), pmc.p6(3), pmc.soft(3), pmc.tsc(3), pmc_cpuinfo(3), pmclog(3), hwpmc(4)

The pmc library first appeared in FreeBSD 6.0.

The library “libpmc” library was written by Joseph Koshy <jkoshy@FreeBSD.org>. MIPS support was added by George Neville-Neil <gnn@FreeBSD.org>.

March 24, 2012 FreeBSD-12.0