Blame src/libpfm4/lib/events/sparc_ultra12_events.h

Packit 577717
static const sparc_entry_t ultra12_pe[] = {
Packit 577717
	/* These two must always be first.  */
Packit 577717
	{	.name = "Cycle_cnt",
Packit 577717
		.desc = "Accumulated cycles",
Packit 577717
		.ctrl = PME_CTRL_S0 | PME_CTRL_S1,
Packit 577717
		.code = 0x0,
Packit 577717
	},
Packit 577717
	{	.name = "Instr_cnt",
Packit 577717
		.desc = "Number of instructions completed",
Packit 577717
		.ctrl = PME_CTRL_S0 | PME_CTRL_S1,
Packit 577717
		.code = 0x1,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "Dispatch0_IC_miss",
Packit 577717
		.desc = "I-buffer is empty from I-Cache miss",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0x2,
Packit 577717
	},
Packit 577717
Packit 577717
	/* PIC0 events for UltraSPARC-I/II/IIi/IIe */
Packit 577717
	{
Packit 577717
		.name = "Dispatch0_storeBuf",
Packit 577717
		.desc = "Store buffer can not hold additional stores",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0x3,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "IC_ref",
Packit 577717
		.desc = "I-cache references",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0x8,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "DC_rd",
Packit 577717
		.desc = "D-cache read references (including accesses that subsequently trap)",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0x9,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "DC_wr",
Packit 577717
		.desc = "D-cache write references (including accesses that subsequently trap)",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0xa,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "Load_use",
Packit 577717
		.desc = "An instruction in the execute stage depends on an earlier load result that is not yet available",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0xb,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "EC_ref",
Packit 577717
		.desc = "Total E-cache references",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0xc,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "EC_write_hit_RDO",
Packit 577717
		.desc = "E-cache hits that do a read for ownership UPA transaction",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0xd,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "EC_snoop_inv",
Packit 577717
		.desc = "E-cache invalidates from the following UPA transactions: S_INV_REQ, S_CPI_REQ",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0xe,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "EC_rd_hit",
Packit 577717
		.desc = "E-cache read hits from D-cache misses",
Packit 577717
		.ctrl = PME_CTRL_S0,
Packit 577717
		.code = 0xf,
Packit 577717
	},
Packit 577717
Packit 577717
	/* PIC1 events for UltraSPARC-I/II/IIi/IIe */
Packit 577717
	{
Packit 577717
		.name = "Dispatch0_mispred",
Packit 577717
		.desc = "I-buffer is empty from Branch misprediction",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0x2,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "Dispatch0_FP_use",
Packit 577717
		.desc = "First instruction in the group depends on an earlier floating point result that is not yet available",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0x3,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "IC_hit",
Packit 577717
		.desc = "I-cache hits",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0x8,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "DC_rd_hit",
Packit 577717
		.desc = "D-cache read hits",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0x9,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "DC_wr_hit",
Packit 577717
		.desc = "D-cache write hits",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0xa,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "Load_use_RAW",
Packit 577717
		.desc = "There is a load use in the execute stage and there is a read-after-write hazard on the oldest outstanding load",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0xb,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "EC_hit",
Packit 577717
		.desc = "Total E-cache hits",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0xc,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "EC_wb",
Packit 577717
		.desc = "E-cache misses that do writebacks",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0xd,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "EC_snoop_cb",
Packit 577717
		.desc = "E-cache snoop copy-backs from the following UPA transactions: S_CPB_REQ, S_CPI_REQ, S_CPD_REQ, S_CPB_MIS_REQ",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0xe,
Packit 577717
	},
Packit 577717
	{
Packit 577717
		.name = "EC_ic_hit",
Packit 577717
		.desc = "E-cache read hits from I-cache misses",
Packit 577717
		.ctrl = PME_CTRL_S1,
Packit 577717
		.code = 0xf,
Packit 577717
	},
Packit 577717
};
Packit 577717
#define PME_SPARC_ULTRA12_EVENT_COUNT	   (sizeof(ultra12_pe)/sizeof(sparc_entry_t))