1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401
|
static const sparc_entry_t ultra3_pe[] = {
/* These two must always be first. */
{ .name = "Cycle_cnt",
.desc = "Accumulated cycles",
.ctrl = PME_CTRL_S0 | PME_CTRL_S1,
.code = 0x0,
},
{ .name = "Instr_cnt",
.desc = "Number of instructions completed",
.ctrl = PME_CTRL_S0 | PME_CTRL_S1,
.code = 0x1,
},
/* PIC0 events common to all UltraSPARC processors */
{
.name = "Dispatch0_IC_miss",
.desc = "I-buffer is empty from I-Cache miss",
.ctrl = PME_CTRL_S0,
.code = 0x2,
},
{
.name = "IC_ref",
.desc = "I-cache references",
.ctrl = PME_CTRL_S0,
.code = 0x8,
},
{
.name = "DC_rd",
.desc = "D-cache read references (including accesses that subsequently trap)",
.ctrl = PME_CTRL_S0,
.code = 0x9,
},
{
.name = "DC_wr",
.desc = "D-cache store accesses (including cacheable stores that subsequently trap)",
.ctrl = PME_CTRL_S0,
.code = 0xa,
},
{
.name = "EC_ref",
.desc = "E-cache references",
.ctrl = PME_CTRL_S0,
.code = 0xc,
},
{
.name = "EC_snoop_inv",
.desc = "L2-cache invalidates generated from a snoop by a remote processor",
.ctrl = PME_CTRL_S0,
.code = 0xe,
},
/* PIC1 events common to all UltraSPARC processors */
{
.name = "Dispatch0_mispred",
.desc = "I-buffer is empty from Branch misprediction",
.ctrl = PME_CTRL_S1,
.code = 0x2,
},
{
.name = "EC_wb",
.desc = "Dirty sub-blocks that produce writebacks due to L2-cache miss events",
.ctrl = PME_CTRL_S1,
.code = 0xd,
},
{
.name = "EC_snoop_cb",
.desc = "L2-cache copybacks generated from a snoop by a remote processor",
.ctrl = PME_CTRL_S1,
.code = 0xe,
},
/* PIC0 events common to all UltraSPARC-III/III+/IIIi processors */
{
.name = "Dispatch0_br_target",
.desc = "I-buffer is empty due to a branch target address calculation",
.ctrl = PME_CTRL_S0,
.code = 0x3,
},
{
.name = "Dispatch0_2nd_br",
.desc = "Stall cycles due to having two branch instructions line-up in one 4-instruction group causing the second branch in the group to be re-fetched, delaying it's entrance into the I-buffer",
.ctrl = PME_CTRL_S0,
.code = 0x4,
},
{
.name = "Rstall_storeQ",
.desc = "R-stage stall for a store instruction which is the next instruction to be executed, but it stalled due to the store queue being full",
.ctrl = PME_CTRL_S0,
.code = 0x5,
},
{
.name = "Rstall_IU_use",
.desc = "R-stage stall for an event that the next instruction to be executed depends on the result of a preceding integer instruction in the pipeline that is not yet available",
.ctrl = PME_CTRL_S0,
.code = 0x6,
},
{
.name = "EC_write_hit_RTO",
.desc = "W-cache exclusive requests that hit L2-cache in S, O, or Os state and thus, do a read-to-own bus transaction",
.ctrl = PME_CTRL_S0,
.code = 0xd,
},
{
.name = "EC_rd_miss",
.desc = "L2-cache miss events (including atomics) from D-cache events",
.ctrl = PME_CTRL_S0,
.code = 0xf,
},
{
.name = "PC_port0_rd",
.desc = "P-cache cacheable FP loads to the first port (general purpose load path to D-cache and P-cache via MS pipeline)",
.ctrl = PME_CTRL_S0,
.code = 0x10,
},
{
.name = "SI_snoop",
.desc = "Counts snoops from remote processor(s) including RTS, RTSR, RTO, RTOR, RS, RSR, RTSM, and WS",
.ctrl = PME_CTRL_S0,
.code = 0x11,
},
{
.name = "SI_ciq_flow",
.desc = "Counts system clock cycles when the flow control (PauseOut) signal is asserted",
.ctrl = PME_CTRL_S0,
.code = 0x12,
},
{
.name = "SI_owned",
.desc = "Counts events where owned_in is asserted on bus requests from the local processor",
.ctrl = PME_CTRL_S0,
.code = 0x13,
},
{
.name = "SW_count0",
.desc = "Counts software-generated occurrences of 'sethi %hi(0xfc000), %g0' instruction",
.ctrl = PME_CTRL_S0,
.code = 0x14,
},
{ .name = "IU_Stat_Br_miss_taken",
.desc = "Retired branches that were predicted to be taken, but in fact were not taken",
.ctrl = PME_CTRL_S0,
.code = 0x15,
},
{ .name = "IU_Stat_Br_Count_taken",
.desc = "Retired taken branches",
.ctrl = PME_CTRL_S0,
.code = 0x16,
},
{
.name = "Dispatch0_rs_mispred",
.desc = "I-buffer is empty due to a Return Address Stack misprediction",
.ctrl = PME_CTRL_S1,
.code = 0x4,
},
{
.name = "FA_pipe_completion",
.desc = "Instructions that complete execution on the FPG ALU pipelines",
.ctrl = PME_CTRL_S0,
.code = 0x18,
},
/* PIC1 events common to all UltraSPARC-III/III+/IIIi processors */
{
.name = "IC_miss_cancelled",
.desc = "I-cache misses cancelled due to mis-speculation, recycle, or other events",
.ctrl = PME_CTRL_S1,
.code = 0x3,
},
{
.name = "Re_FPU_bypass",
.desc = "Stall due to recirculation when an FPU bypass condition that does not have a direct bypass path occurs",
.ctrl = PME_CTRL_S1,
.code = 0x5,
},
{
.name = "Re_DC_miss",
.desc = "Stall due to loads that miss D-cache and get recirculated",
.ctrl = PME_CTRL_S1,
.code = 0x6,
},
{
.name = "Re_EC_miss",
.desc = "Stall due to loads that miss L2-cache and get recirculated",
.ctrl = PME_CTRL_S1,
.code = 0x7,
},
{
.name = "IC_miss",
.desc = "I-cache misses, including fetches from mis-speculated execution paths which are later cancelled",
.ctrl = PME_CTRL_S1,
.code = 0x8,
},
{
.name = "DC_rd_miss",
.desc = "Recirculated loads that miss the D-cache",
.ctrl = PME_CTRL_S1,
.code = 0x9,
},
{
.name = "DC_wr_miss",
.desc = "D-cache store accesses that miss D-cache",
.ctrl = PME_CTRL_S1,
.code = 0xa,
},
{
.name = "Rstall_FP_use",
.desc = "R-stage stall for an event that the next instruction to be executed depends on the result of a preceding floating-point instruction in the pipeline that is not yet available",
.ctrl = PME_CTRL_S1,
.code = 0xb,
},
{
.name = "EC_misses",
.desc = "E-cache misses",
.ctrl = PME_CTRL_S1,
.code = 0xc,
},
{
.name = "EC_ic_miss",
.desc = "L2-cache read misses from I-cache requests",
.ctrl = PME_CTRL_S1,
.code = 0xf,
},
{
.name = "Re_PC_miss",
.desc = "Stall due to recirculation when a prefetch cache miss occurs on a prefetch predicted second load",
.ctrl = PME_CTRL_S1,
.code = 0x10,
},
{
.name = "ITLB_miss",
.desc = "I-TLB miss traps taken",
.ctrl = PME_CTRL_S1,
.code = 0x11,
},
{
.name = "DTLB_miss",
.desc = "Memory reference instructions which trap due to D-TLB miss",
.ctrl = PME_CTRL_S1,
.code = 0x12,
},
{
.name = "WC_miss",
.desc = "W-cache misses",
.ctrl = PME_CTRL_S1,
.code = 0x13,
},
{
.name = "WC_snoop_cb",
.desc = "W-cache copybacks generated by a snoop from a remote processor",
.ctrl = PME_CTRL_S1,
.code = 0x14,
},
{
.name = "WC_scrubbed",
.desc = "W-cache hits to clean lines",
.ctrl = PME_CTRL_S1,
.code = 0x15,
},
{
.name = "WC_wb_wo_read",
.desc = "W-cache writebacks not requiring a read",
.ctrl = PME_CTRL_S1,
.code = 0x16,
},
{
.name = "PC_soft_hit",
.desc = "FP loads that hit a P-cache line that was prefetched by a software-prefetch instruction",
.ctrl = PME_CTRL_S1,
.code = 0x18,
},
{
.name = "PC_snoop_inv",
.desc = "P-cache invalidates that were generated by a snoop from a remote processor and stores by a local processor",
.ctrl = PME_CTRL_S1,
.code = 0x19,
},
{
.name = "PC_hard_hit",
.desc = "FP loads that hit a P-cache line that was prefetched by a hardware prefetch",
.ctrl = PME_CTRL_S1,
.code = 0x1a,
},
{
.name = "PC_port1_rd",
.desc = "P-cache cacheable FP loads to the second port (memory and out-of-pipeline instruction execution loads via the A0 and A1 pipelines)",
.ctrl = PME_CTRL_S1,
.code = 0x1b,
},
{
.name = "SW_count1",
.desc = "Counts software-generated occurrences of 'sethi %hi(0xfc000), %g0' instruction",
.ctrl = PME_CTRL_S1,
.code = 0x1c,
},
{ .name = "IU_Stat_Br_miss_untaken",
.desc = "Retired branches that were predicted to be untaken, but in fact were taken",
.ctrl = PME_CTRL_S1,
.code = 0x1d,
},
{ .name = "IU_Stat_Br_Count_untaken",
.desc = "Retired untaken branches",
.ctrl = PME_CTRL_S1,
.code = 0x1e,
},
{
.name = "PC_MS_miss",
.desc = "FP loads through the MS pipeline that miss P-cache",
.ctrl = PME_CTRL_S1,
.code = 0x1f,
},
{
.name = "Re_RAW_miss",
.desc = "Stall due to recirculation when there is a load in the E-stage which has a non-bypassable read-after-write hazard with an earlier store instruction",
.ctrl = PME_CTRL_S1,
.code = 0x26,
},
{
.name = "FM_pipe_completion",
.desc = "Instructions that complete execution on the FPG Multiply pipelines",
.ctrl = PME_CTRL_S0,
.code = 0x27,
},
/* PIC0 memory controller events common to UltraSPARC-III/III+ processors */
{
.name = "MC_reads_0",
.desc = "Read requests completed to memory bank 0",
.ctrl = PME_CTRL_S0,
.code = 0x20,
},
{
.name = "MC_reads_1",
.desc = "Read requests completed to memory bank 1",
.ctrl = PME_CTRL_S0,
.code = 0x21,
},
{
.name = "MC_reads_2",
.desc = "Read requests completed to memory bank 2",
.ctrl = PME_CTRL_S0,
.code = 0x22,
},
{
.name = "MC_reads_3",
.desc = "Read requests completed to memory bank 3",
.ctrl = PME_CTRL_S0,
.code = 0x23,
},
{
.name = "MC_stalls_0",
.desc = "Clock cycles that requests were stalled in the MCU queues because bank 0 was busy with a previous request",
.ctrl = PME_CTRL_S0,
.code = 0x24,
},
{
.name = "MC_stalls_2",
.desc = "Clock cycles that requests were stalled in the MCU queues because bank 2 was busy with a previous request",
.ctrl = PME_CTRL_S0,
.code = 0x25,
},
/* PIC1 memory controller events common to all UltraSPARC-III/III+ processors */
{
.name = "MC_writes_0",
.desc = "Write requests completed to memory bank 0",
.ctrl = PME_CTRL_S1,
.code = 0x20,
},
{
.name = "MC_writes_1",
.desc = "Write requests completed to memory bank 1",
.ctrl = PME_CTRL_S1,
.code = 0x21,
},
{
.name = "MC_writes_2",
.desc = "Write requests completed to memory bank 2",
.ctrl = PME_CTRL_S1,
.code = 0x22,
},
{
.name = "MC_writes_3",
.desc = "Write requests completed to memory bank 3",
.ctrl = PME_CTRL_S1,
.code = 0x23,
},
{
.name = "MC_stalls_1",
.desc = "Clock cycles that requests were stalled in the MCU queues because bank 1 was busy with a previous request",
.ctrl = PME_CTRL_S1,
.code = 0x24,
},
{
.name = "MC_stalls_3",
.desc = "Clock cycles that requests were stalled in the MCU queues because bank 3 was busy with a previous request",
.ctrl = PME_CTRL_S1,
.code = 0x25,
},
};
#define PME_SPARC_ULTRA3_EVENT_COUNT (sizeof(ultra3_pe)/sizeof(sparc_entry_t))
|