xref: /freebsd/lib/libpmc/pmu-events/arch/x86/goldmont/frontend.json (revision 18054d0220cfc8df9c9568c437bd6fbb59d53c3c)
1959826caSMatt Macy[
2959826caSMatt Macy    {
3*18054d02SAlexander Motin        "BriefDescription": "BACLEARs asserted for any branch type",
4959826caSMatt Macy        "CollectPEBSRecord": "1",
5959826caSMatt Macy        "Counter": "0,1,2,3",
6*18054d02SAlexander Motin        "EventCode": "0xE6",
7*18054d02SAlexander Motin        "EventName": "BACLEARS.ALL",
8*18054d02SAlexander Motin        "PublicDescription": "Counts the number of times a BACLEAR is signaled for any reason, including, but not limited to indirect branch/call,  Jcc (Jump on Conditional Code/Jump if Condition is Met) branch, unconditional branch/call, and returns.",
9959826caSMatt Macy        "SampleAfterValue": "200003",
10*18054d02SAlexander Motin        "UMask": "0x1"
11959826caSMatt Macy    },
12959826caSMatt Macy    {
13*18054d02SAlexander Motin        "BriefDescription": "BACLEARs asserted for conditional branch",
14959826caSMatt Macy        "CollectPEBSRecord": "1",
15959826caSMatt Macy        "Counter": "0,1,2,3",
16*18054d02SAlexander Motin        "EventCode": "0xE6",
17*18054d02SAlexander Motin        "EventName": "BACLEARS.COND",
18*18054d02SAlexander Motin        "PublicDescription": "Counts BACLEARS on Jcc (Jump on Conditional Code/Jump if Condition is Met) branches.",
19959826caSMatt Macy        "SampleAfterValue": "200003",
20*18054d02SAlexander Motin        "UMask": "0x10"
21959826caSMatt Macy    },
22959826caSMatt Macy    {
23*18054d02SAlexander Motin        "BriefDescription": "BACLEARs asserted for return branch",
24959826caSMatt Macy        "CollectPEBSRecord": "1",
25959826caSMatt Macy        "Counter": "0,1,2,3",
26*18054d02SAlexander Motin        "EventCode": "0xE6",
27*18054d02SAlexander Motin        "EventName": "BACLEARS.RETURN",
28*18054d02SAlexander Motin        "PublicDescription": "Counts BACLEARS on return instructions.",
29959826caSMatt Macy        "SampleAfterValue": "200003",
30*18054d02SAlexander Motin        "UMask": "0x8"
31959826caSMatt Macy    },
32959826caSMatt Macy    {
33*18054d02SAlexander Motin        "BriefDescription": "Decode restrictions due to predicting wrong instruction length",
34959826caSMatt Macy        "CollectPEBSRecord": "1",
35959826caSMatt Macy        "Counter": "0,1,2,3",
36959826caSMatt Macy        "EventCode": "0xE9",
37959826caSMatt Macy        "EventName": "DECODE_RESTRICTION.PREDECODE_WRONG",
38*18054d02SAlexander Motin        "PublicDescription": "Counts the number of times the prediction (from the predecode cache) for instruction length is incorrect.",
39959826caSMatt Macy        "SampleAfterValue": "200003",
40*18054d02SAlexander Motin        "UMask": "0x1"
41*18054d02SAlexander Motin    },
42*18054d02SAlexander Motin    {
43*18054d02SAlexander Motin        "BriefDescription": "References per ICache line. This event counts differently than Intel processors based on Silvermont microarchitecture",
44*18054d02SAlexander Motin        "CollectPEBSRecord": "1",
45*18054d02SAlexander Motin        "Counter": "0,1,2,3",
46*18054d02SAlexander Motin        "EventCode": "0x80",
47*18054d02SAlexander Motin        "EventName": "ICACHE.ACCESSES",
48*18054d02SAlexander Motin        "PublicDescription": "Counts requests to the Instruction Cache (ICache) for one or more bytes in an ICache Line.  The event strives to count on a cache line basis, so that multiple fetches to a single cache line count as one ICACHE.ACCESS.  Specifically, the event counts when accesses from straight line code crosses the cache line boundary, or when a branch target is to a new line.\r\nThis event counts differently than Intel processors based on Silvermont microarchitecture.",
49*18054d02SAlexander Motin        "SampleAfterValue": "200003",
50*18054d02SAlexander Motin        "UMask": "0x3"
51*18054d02SAlexander Motin    },
52*18054d02SAlexander Motin    {
53*18054d02SAlexander Motin        "BriefDescription": "References per ICache line that are available in the ICache (hit). This event counts differently than Intel processors based on Silvermont microarchitecture",
54*18054d02SAlexander Motin        "CollectPEBSRecord": "1",
55*18054d02SAlexander Motin        "Counter": "0,1,2,3",
56*18054d02SAlexander Motin        "EventCode": "0x80",
57*18054d02SAlexander Motin        "EventName": "ICACHE.HIT",
58*18054d02SAlexander Motin        "PublicDescription": "Counts requests to the Instruction Cache (ICache) for one or more bytes in an ICache Line and that cache line is in the ICache (hit).  The event strives to count on a cache line basis, so that multiple accesses which hit in a single cache line count as one ICACHE.HIT.  Specifically, the event counts when straight line code crosses the cache line boundary, or when a branch target is to a new line, and that cache line is in the ICache. This event counts differently than Intel processors based on Silvermont microarchitecture.",
59*18054d02SAlexander Motin        "SampleAfterValue": "200003",
60*18054d02SAlexander Motin        "UMask": "0x1"
61*18054d02SAlexander Motin    },
62*18054d02SAlexander Motin    {
63*18054d02SAlexander Motin        "BriefDescription": "References per ICache line that are not available in the ICache (miss). This event counts differently than Intel processors based on Silvermont microarchitecture",
64*18054d02SAlexander Motin        "CollectPEBSRecord": "1",
65*18054d02SAlexander Motin        "Counter": "0,1,2,3",
66*18054d02SAlexander Motin        "EventCode": "0x80",
67*18054d02SAlexander Motin        "EventName": "ICACHE.MISSES",
68*18054d02SAlexander Motin        "PublicDescription": "Counts requests to the Instruction Cache (ICache)  for one or more bytes in an ICache Line and that cache line is not in the ICache (miss).  The event strives to count on a cache line basis, so that multiple accesses which miss in a single cache line count as one ICACHE.MISS.  Specifically, the event counts when straight line code crosses the cache line boundary, or when a branch target is to a new line, and that cache line is not in the ICache. This event counts differently than Intel processors based on Silvermont microarchitecture.",
69*18054d02SAlexander Motin        "SampleAfterValue": "200003",
70*18054d02SAlexander Motin        "UMask": "0x2"
71*18054d02SAlexander Motin    },
72*18054d02SAlexander Motin    {
73*18054d02SAlexander Motin        "BriefDescription": "MS decode starts",
74*18054d02SAlexander Motin        "CollectPEBSRecord": "1",
75*18054d02SAlexander Motin        "Counter": "0,1,2,3",
76*18054d02SAlexander Motin        "EventCode": "0xE7",
77*18054d02SAlexander Motin        "EventName": "MS_DECODED.MS_ENTRY",
78*18054d02SAlexander Motin        "PublicDescription": "Counts the number of times the Microcode Sequencer (MS) starts a flow of uops from the MSROM. It does not count every time a uop is read from the MSROM.  The most common case that this counts is when a micro-coded instruction is encountered by the front end of the machine.  Other cases include when an instruction encounters a fault, trap, or microcode assist of any sort that initiates a flow of uops.  The event will count MS startups for uops that are speculative, and subsequently cleared by branch mispredict or a machine clear.",
79*18054d02SAlexander Motin        "SampleAfterValue": "200003",
80*18054d02SAlexander Motin        "UMask": "0x1"
81959826caSMatt Macy    }
82959826caSMatt Macy]