History

Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf updates from Ingo Molnar: "Kernel side changes: - Clean up the x86 instruction decoder (Masami Hiramatsu) - Add new uprobes optimization for PUSH instructions on x86 (Yonghong Song) - Add MSR_IA32_THERM_STATUS to the MSR events (Stephane Eranian) - Fix misc bugs, update documentation, plus various cleanups (Jiri Olsa) There's a large number of tooling side improvements: - Intel-PT/BTS improvements (Adrian Hunter) - Numerous 'perf trace' improvements (Arnaldo Carvalho de Melo) - Introduce an errno code to string facility (Hendrik Brueckner) - Various build system improvements (Jiri Olsa) - Add support for CoreSight trace decoding by making the perf tools use the external openCSD (Mathieu Poirier, Tor Jeremiassen) - Add ARM Statistical Profiling Extensions (SPE) support (Kim Phillips) - libtraceevent updates (Steven Rostedt) - Intel vendor event JSON updates (Andi Kleen) - Introduce 'perf report --mmaps' and 'perf report --tasks' to show info present in 'perf.data' (Jiri Olsa, Arnaldo Carvalho de Melo) - Add infrastructure to record first and last sample time to the perf.data file header, so that when processing all samples in a 'perf record' session, such as when doing build-id processing, or when specifically requesting that that info be recorded, use that in 'perf report --time', that also got support for percent slices in addition to absolute ones. I.e. now it is possible to ask for the samples in the 10%-20% time slice of a perf.data file (Jin Yao) - Allow system wide 'perf stat --per-thread', sorting the result (Jin Yao) E.g.: [root@jouet ~]# perf stat --per-thread --metrics IPC ^C Performance counter stats for 'system wide': make-22229 23,012,094,032 inst_retired.any # 0.8 IPC cc1-22419 692,027,497 inst_retired.any # 0.8 IPC gcc-22418 328,231,855 inst_retired.any # 0.9 IPC cc1-22509 220,853,647 inst_retired.any # 0.8 IPC gcc-22486 199,874,810 inst_retired.any # 1.0 IPC as-22466 177,896,365 inst_retired.any # 0.9 IPC cc1-22465 150,732,374 inst_retired.any # 0.8 IPC gcc-22508 112,555,593 inst_retired.any # 0.9 IPC cc1-22487 108,964,079 inst_retired.any # 0.7 IPC qemu-system-x86-2697 21,330,550 inst_retired.any # 0.3 IPC systemd-journal-551 20,642,951 inst_retired.any # 0.4 IPC docker-containe-17651 9,552,892 inst_retired.any # 0.5 IPC dockerd-current-9809 7,528,586 inst_retired.any # 0.5 IPC make-22153 12,504,194,380 inst_retired.any # 0.8 IPC python2-22429 12,081,290,954 inst_retired.any # 0.8 IPC <SNIP> python2-22429 15,026,328,103 cpu_clk_unhalted.thread cc1-22419 826,660,193 cpu_clk_unhalted.thread gcc-22418 365,321,295 cpu_clk_unhalted.thread cc1-22509 279,169,362 cpu_clk_unhalted.thread gcc-22486 210,156,950 cpu_clk_unhalted.thread <SNIP> 5.638075538 seconds time elapsed [root@jouet ~]# - Improve shell auto-completion of perf events (Jin Yao) - 'perf probe' improvements (Masami Hiramatsu) - Improve PMU infrastructure to support amp64's ThunderX2 implementation defined core events (Ganapatrao Kulkarni) - Various annotation related improvements and fixes (Thomas Richter) - Clarify usage of 'overwrite' and 'backward' in the evlist/mmap code, removing the 'overwrite' parameter from several functions as it was always used it as 'false' (Wang Nan) - Fix/improve 'perf record' reverse recording support (Wang Nan) - Improve command line options documentation (Sihyeon Jang) - Optimize sample parsing for ordering events, where we don't need to parse all the PERF_SAMPLE_ bits, just the ones leading to the timestamp needed to reorder events (Jiri Olsa) - Generalize the annotation code to support other source information besides objdump/DWARF obtained ones, starting with python scripts, that will is slated to be merged soon (Jiri Olsa) - ... and a lot more that I failed to list, see the shortlog and changelog for details" * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (262 commits) perf trace beauty flock: Move to separate object file perf evlist: Remove fcntl.h from evlist.h perf trace beauty futex: Beautify FUTEX_BITSET_MATCH_ANY perf trace: Do not print from time delta for interrupted syscall lines perf trace: Add --print-sample perf bpf: Remove misplaced __maybe_unused attribute MAINTAINERS: Adding entry for CoreSight trace decoding perf tools: Add mechanic to synthesise CoreSight trace packets perf tools: Add full support for CoreSight trace decoding pert tools: Add queue management functionality perf tools: Add functionality to communicate with the openCSD decoder perf tools: Add support for decoding CoreSight trace data perf tools: Add decoder mechanic to support dumping trace data perf tools: Add processing of coresight metadata perf tools: Add initial entry point for decoder CoreSight traces perf tools: Integrating the CoreSight decoding library perf vendor events intel: Update IvyTown files to V20 perf vendor events intel: Update IvyBridge files to V20 perf vendor events intel: Update BroadwellDE events to V7 perf vendor events intel: Update SkylakeX events to V1.06 ...

Linus Torvalds committed 8 years ago

Commit d8b91dd2 parents 5e7481a e4c1091270 files · +18523 −15234Browse files

Unified · Split

270 files
  1. Documentation/process/kernel-enforcement-statement.rst +1 −0
  2. MAINTAINERS +2 −1
  3. arch/x86/events/msr.c +43 −27
  4. arch/x86/include/asm/uprobes.h +4 −0
  5. arch/x86/kernel/uprobes.c +103 −4
  6. arch/x86/tools/Makefile +6 −6
  7. arch/x86/tools/insn_decoder_test.c +25 −18
  8. arch/x86/tools/objdump_reformat.awk +2 −2
  9. include/uapi/linux/perf_event.h +7 −3
  10. kernel/events/callchain.c +0 −15
  11. kernel/events/core.c +39 −15
  12. kernel/events/internal.h +0 −4
  13. tools/arch/alpha/include/uapi/asm/errno.h +128 −0
  14. tools/arch/mips/include/asm/errno.h +17 −0
  15. tools/arch/mips/include/uapi/asm/errno.h +130 −0
  16. tools/arch/parisc/include/uapi/asm/errno.h +128 −0
  17. tools/arch/powerpc/include/uapi/asm/errno.h +10 −0
  18. tools/arch/s390/include/uapi/asm/unistd.h +412 −0
  19. tools/arch/sparc/include/uapi/asm/errno.h +118 −0
  20. tools/arch/x86/include/asm/cpufeatures.h +3 −1
  21. tools/arch/x86/include/asm/disabled-features.h +7 −1
  22. tools/arch/x86/include/uapi/asm/errno.h +1 −0
  23. tools/build/Makefile.feature +3 −1
  24. tools/build/feature/Makefile +10 −1
  25. tools/build/feature/test-all.c +10 −0
  26. tools/build/feature/test-libopencsd.c +8 −0
  27. tools/build/feature/test-pthread-barrier.c +12 −0
  28. tools/include/uapi/asm-generic/errno-base.h +40 −0
  29. tools/include/uapi/asm-generic/errno.h +123 −0
  30. tools/include/uapi/linux/perf_event.h +7 −3
  31. tools/lib/traceevent/event-parse.c +51 −11
  32. tools/lib/traceevent/event-plugin.c +9 −15
  33. tools/lib/traceevent/kbuffer-parse.c +2 −2
  34. tools/lib/traceevent/parse-filter.c +14 −8
  35. tools/perf/Build +2 −2
  36. tools/perf/Documentation/perf-buildid-cache.txt +3 −0
  37. tools/perf/Documentation/perf-evlist.txt +4 −0
  38. tools/perf/Documentation/perf-inject.txt +4 −0
  39. tools/perf/Documentation/perf-lock.txt +4 −0
  40. tools/perf/Documentation/perf-probe.txt +17 −1
  41. tools/perf/Documentation/perf-record.txt +3 −0
  42. tools/perf/Documentation/perf-report.txt +36 −1
  43. tools/perf/Documentation/perf-sched.txt +4 −0
  44. tools/perf/Documentation/perf-script.txt +46 −1
  45. tools/perf/Documentation/perf-timechart.txt +3 −1
  46. tools/perf/Documentation/perf-top.txt +6 −0
  47. tools/perf/Documentation/perf-trace.txt +14 −6
  48. tools/perf/Documentation/perf.data-file-format.txt +27 −0
  49. tools/perf/Documentation/tips.txt +2 −0
  50. tools/perf/Makefile.config +55 −10
  51. tools/perf/Makefile.perf +14 −3
  52. tools/perf/arch/arm/util/auxtrace.c +71 −6
  53. tools/perf/arch/arm/util/pmu.c +6 −0
  54. tools/perf/arch/arm64/util/Build +4 −1
  55. tools/perf/arch/arm64/util/arm-spe.c +225 −0
  56. tools/perf/arch/arm64/util/header.c +65 −0
  57. tools/perf/arch/arm64/util/sym-handling.c +22 −0
  58. tools/perf/arch/common.c +3 −41
  59. tools/perf/arch/common.h +0 −1
  60. tools/perf/arch/powerpc/util/header.c +1 −1
  61. tools/perf/arch/powerpc/util/sym-handling.c +8 −0
  62. tools/perf/arch/s390/Makefile +21 −0
  63. tools/perf/arch/s390/annotate/instructions.c +2 −1
  64. tools/perf/arch/s390/entry/syscalls/mksyscalltbl +36 −0
  65. tools/perf/arch/x86/tests/perf-time-to-tsc.c +1 −1
  66. tools/perf/arch/x86/util/header.c +2 −2
  67. tools/perf/arch/x86/util/unwind-libunwind.c +1 −1
  68. tools/perf/bench/futex-hash.c +12 −8
  69. tools/perf/bench/futex-lock-pi.c +14 −9
  70. tools/perf/bench/futex-requeue.c +13 −9
  71. tools/perf/bench/futex-wake-parallel.c +35 −11
  72. tools/perf/bench/futex-wake.c +11 −7
  73. tools/perf/builtin-buildid-cache.c +2 −2
  74. tools/perf/builtin-c2c.c +7 −9
  75. tools/perf/builtin-help.c +1 −1
  76. tools/perf/builtin-inject.c +1 −2
  77. tools/perf/builtin-kvm.c +8 −5
  78. tools/perf/builtin-record.c +49 −14
  79. tools/perf/builtin-report.c +267 −16
  80. tools/perf/builtin-script.c +229 −37
  81. tools/perf/builtin-stat.c +147 −83
  82. tools/perf/builtin-top.c +7 −3
  83. tools/perf/builtin-trace.c +67 −55
  84. tools/perf/check-headers.sh +10 −1
  85. tools/perf/perf-completion.sh +43 −4
  86. tools/perf/perf.c +2 −2
  87. tools/perf/pmu-events/arch/arm64/cavium/thunderx2-imp-def.json +62 −0
  88. tools/perf/pmu-events/arch/arm64/mapfile.csv +15 −0
  89. tools/perf/pmu-events/arch/powerpc/mapfile.csv +2 −10
  90. tools/perf/pmu-events/arch/powerpc/power9/cache.json +0 −5
  91. tools/perf/pmu-events/arch/powerpc/power9/frontend.json +1 −6
  92. tools/perf/pmu-events/arch/powerpc/power9/marked.json +6 −21
  93. tools/perf/pmu-events/arch/powerpc/power9/other.json +73 −203
  94. tools/perf/pmu-events/arch/powerpc/power9/pipeline.json +7 −7
  95. tools/perf/pmu-events/arch/powerpc/power9/pmc.json +1 −1
  96. tools/perf/pmu-events/arch/powerpc/power9/translation.json +0 −5
  97. tools/perf/pmu-events/arch/x86/broadwell/cache.json +378 −177
  98. tools/perf/pmu-events/arch/x86/broadwell/floating-point.json +51 −57
  99. tools/perf/pmu-events/arch/x86/broadwell/frontend.json +69 −69
  100. tools/perf/pmu-events/arch/x86/broadwell/memory.json +205 −5
  101. tools/perf/pmu-events/arch/x86/broadwell/other.json +10 −10
  102. tools/perf/pmu-events/arch/x86/broadwell/pipeline.json +613 −603
  103. tools/perf/pmu-events/arch/x86/broadwell/virtual-memory.json +75 −75
  104. tools/perf/pmu-events/arch/x86/broadwellde/cache.json +212 −177
  105. tools/perf/pmu-events/arch/x86/broadwellde/floating-point.json +51 −57
  106. tools/perf/pmu-events/arch/x86/broadwellde/frontend.json +69 −69
  107. tools/perf/pmu-events/arch/x86/broadwellde/memory.json +4 −5
  108. tools/perf/pmu-events/arch/x86/broadwellde/other.json +10 −10
  109. tools/perf/pmu-events/arch/x86/broadwellde/pipeline.json +612 −602
  110. tools/perf/pmu-events/arch/x86/broadwellde/virtual-memory.json +75 −75
  111. tools/perf/pmu-events/arch/x86/broadwellx/cache.json +203 −180
  112. tools/perf/pmu-events/arch/x86/broadwellx/floating-point.json +51 −57
  113. tools/perf/pmu-events/arch/x86/broadwellx/frontend.json +69 −69
  114. tools/perf/pmu-events/arch/x86/broadwellx/memory.json +35 −5
  115. tools/perf/pmu-events/arch/x86/broadwellx/other.json +10 −10
  116. tools/perf/pmu-events/arch/x86/broadwellx/pipeline.json +612 −602
  117. tools/perf/pmu-events/arch/x86/broadwellx/virtual-memory.json +75 −75
  118. tools/perf/pmu-events/arch/x86/goldmont/cache.json +1081 −163
  119. tools/perf/pmu-events/arch/x86/goldmont/memory.json +270 −10
  120. tools/perf/pmu-events/arch/x86/goldmont/other.json +42 −12
  121. tools/perf/pmu-events/arch/x86/goldmont/pipeline.json +264 −242
  122. tools/perf/pmu-events/arch/x86/goldmont/virtual-memory.json +30 −30
  123. tools/perf/pmu-events/arch/x86/haswell/cache.json +194 −171
  124. tools/perf/pmu-events/arch/x86/haswell/floating-point.json +10 −10
  125. tools/perf/pmu-events/arch/x86/haswell/frontend.json +66 −66
  126. tools/perf/pmu-events/arch/x86/haswell/memory.json +21 −0
  127. tools/perf/pmu-events/arch/x86/haswell/other.json +10 −10
  128. tools/perf/pmu-events/arch/x86/haswell/pipeline.json +570 −561
  129. tools/perf/pmu-events/arch/x86/haswell/virtual-memory.json +106 −106
  130. tools/perf/pmu-events/arch/x86/haswellx/cache.json +200 −177
  131. tools/perf/pmu-events/arch/x86/haswellx/floating-point.json +10 −10
  132. tools/perf/pmu-events/arch/x86/haswellx/frontend.json +66 −66
  133. tools/perf/pmu-events/arch/x86/haswellx/memory.json +28 −0
  134. tools/perf/pmu-events/arch/x86/haswellx/other.json +10 −10
  135. tools/perf/pmu-events/arch/x86/haswellx/pipeline.json +571 −562
  136. tools/perf/pmu-events/arch/x86/haswellx/virtual-memory.json +106 −106
  137. tools/perf/pmu-events/arch/x86/ivybridge/cache.json +111 −132
  138. tools/perf/pmu-events/arch/x86/ivybridge/frontend.json +61 −61
  139. tools/perf/pmu-events/arch/x86/ivybridge/memory.json +12 −12
  140. tools/perf/pmu-events/arch/x86/ivybridge/other.json +10 −10
  141. tools/perf/pmu-events/arch/x86/ivybridge/pipeline.json +412 −410
  142. tools/perf/pmu-events/arch/x86/ivybridge/virtual-memory.json +30 −30
  143. tools/perf/pmu-events/arch/x86/ivytown/cache.json +112 −124
  144. tools/perf/pmu-events/arch/x86/ivytown/frontend.json +61 −61
  145. tools/perf/pmu-events/arch/x86/ivytown/memory.json +12 −12
  146. tools/perf/pmu-events/arch/x86/ivytown/other.json +10 −10
  147. tools/perf/pmu-events/arch/x86/ivytown/pipeline.json +412 −410
  148. tools/perf/pmu-events/arch/x86/ivytown/virtual-memory.json +30 −30
  149. tools/perf/pmu-events/arch/x86/mapfile.csv +1 −4
  150. tools/perf/pmu-events/arch/x86/silvermont/cache.json +2 −1
  151. tools/perf/pmu-events/arch/x86/skylake/cache.json +515 −3875
  152. tools/perf/pmu-events/arch/x86/skylake/floating-point.json +2 −3
  153. tools/perf/pmu-events/arch/x86/skylake/frontend.json +121 −111
  154. tools/perf/pmu-events/arch/x86/skylake/memory.json +212 −1906
  155. tools/perf/pmu-events/arch/x86/skylake/other.json +38 −2
  156. tools/perf/pmu-events/arch/x86/skylake/pipeline.json +492 −481
  157. tools/perf/pmu-events/arch/x86/skylake/virtual-memory.json +137 −125
  158. tools/perf/pmu-events/arch/x86/skylakex/cache.json +167 −90
  159. tools/perf/pmu-events/arch/x86/skylakex/floating-point.json +1 −2
  160. tools/perf/pmu-events/arch/x86/skylakex/frontend.json +24 −24
  161. tools/perf/pmu-events/arch/x86/skylakex/memory.json +154 −77
  162. tools/perf/pmu-events/arch/x86/skylakex/other.json +93 −1
  163. tools/perf/pmu-events/arch/x86/skylakex/pipeline.json +22 −22
  164. tools/perf/pmu-events/arch/x86/skylakex/virtual-memory.json +21 −21
  165. tools/perf/pmu-events/jevents.c +38 −1
  166. tools/perf/scripts/python/bin/mem-phys-addr-record +19 −0
  167. tools/perf/scripts/python/bin/mem-phys-addr-report +3 −0
  168. tools/perf/scripts/python/mem-phys-addr.py +95 −0
  169. tools/perf/tests/attr.c +6 −0
  170. tools/perf/tests/backward-ring-buffer.c +3 −3
  171. tools/perf/tests/bp_signal.c +1 −1
  172. tools/perf/tests/bpf-script-example.c +2 −2
  173. tools/perf/tests/bpf.c +32 −36
  174. tools/perf/tests/builtin-test.c +5 −5
  175. tools/perf/tests/code-reading.c +1 −1
  176. tools/perf/tests/dwarf-unwind.c +1 −0
  177. tools/perf/tests/keep-tracking.c +1 −1
  178. tools/perf/tests/mmap-basic.c +1 −1
  179. tools/perf/tests/openat-syscall-tp-fields.c +4 −1
  180. tools/perf/tests/parse-events.c +0 −1
  181. tools/perf/tests/perf-record.c +1 −1
  182. tools/perf/tests/sample-parsing.c +1 −1
  183. tools/perf/tests/shell/trace+probe_vfs_getname.sh +3 −4
  184. tools/perf/tests/sw-clock.c +1 −1
  185. tools/perf/tests/switch-tracking.c +1 −1
  186. tools/perf/tests/task-exit.c +1 −1
  187. tools/perf/tests/thread-map.c +1 −1
  188. tools/perf/trace/beauty/Build +1 −0
  189. tools/perf/trace/beauty/arch_errno_names.c +1 −0
  190. tools/perf/trace/beauty/arch_errno_names.sh +100 −0
  191. tools/perf/trace/beauty/beauty.h +5 −0
  192. tools/perf/trace/beauty/flock.c +5 −5
  193. tools/perf/trace/beauty/futex_val3.c +18 −0
  194. tools/perf/ui/browsers/annotate.c +197 −202
  195. tools/perf/ui/gtk/annotate.c +13 −12
  196. tools/perf/util/Build +9 −1
  197. tools/perf/util/annotate.c +340 −312
  198. tools/perf/util/annotate.h +42 −34
  199. tools/perf/util/arm-spe-pkt-decoder.c +462 −0
  200. tools/perf/util/arm-spe-pkt-decoder.h +43 −0
  201. tools/perf/util/arm-spe.c +231 −0
  202. tools/perf/util/arm-spe.h +31 −0
  203. tools/perf/util/auxtrace.c +5 −3
  204. tools/perf/util/auxtrace.h +1 −0
  205. tools/perf/util/bpf-loader.c +2 −2
  206. tools/perf/util/callchain.c +10 −0
  207. tools/perf/util/callchain.h +2 −0
  208. tools/perf/util/cgroup.c +3 −0
  209. tools/perf/util/cs-etm-decoder/Build +1 −0
  210. tools/perf/util/cs-etm-decoder/cs-etm-decoder.c +513 −0
  211. tools/perf/util/cs-etm-decoder/cs-etm-decoder.h +105 −0
  212. tools/perf/util/cs-etm.c +1023 −0
  213. tools/perf/util/cs-etm.h +18 −0
  214. tools/perf/util/data.c +0 −10
  215. tools/perf/util/dso.c +1 −1
  216. tools/perf/util/env.c +47 −0
  217. tools/perf/util/env.h +2 −0
  218. tools/perf/util/event.c +8 −0
  219. tools/perf/util/event.h +2 −2
  220. tools/perf/util/evlist.c +43 −27
  221. tools/perf/util/evlist.h +9 −6
  222. tools/perf/util/evsel.c +163 −64
  223. tools/perf/util/evsel.h +7 −5
  224. tools/perf/util/generate-cmdlist.sh +1 −1
  225. tools/perf/util/header.c +128 −2
  226. tools/perf/util/header.h +8 −1
  227. tools/perf/util/intel-bts.c +1 −5
  228. tools/perf/util/intel-pt-decoder/Build +15 −9
  229. tools/perf/util/intel-pt.c +3 −8
  230. tools/perf/util/machine.c +2 −2
  231. tools/perf/util/map.c +1 −1
  232. tools/perf/util/metricgroup.c +6 −4
  233. tools/perf/util/mmap.c +25 −48
  234. tools/perf/util/mmap.h +2 −2
  235. tools/perf/util/ordered-events.c +1 −2
  236. tools/perf/util/ordered-events.h +1 −1
  237. tools/perf/util/parse-events.c +3 −0
  238. tools/perf/util/path.c +14 −0
  239. tools/perf/util/path.h +3 −0
  240. tools/perf/util/pmu.c +71 −16
  241. tools/perf/util/pmu.h +1 −1
  242. tools/perf/util/probe-event.c +61 −24
  243. tools/perf/util/python-ext-sources +1 −0
  244. tools/perf/util/python.c +1 −1
  245. tools/perf/util/rblist.c +12 −7
  246. tools/perf/util/rblist.h +1 −0
  247. tools/perf/util/scripting-engines/trace-event-python.c +2 −1
  248. tools/perf/util/session.c +26 −28
  249. tools/perf/util/session.h +1 −1
  250. tools/perf/util/sort.c +12 −8
  251. tools/perf/util/srcline.c +5 −4
  252. tools/perf/util/srcline.h +3 −2
  253. tools/perf/util/stat-shadow.c +258 −168
  254. tools/perf/util/stat.c +11 −4
  255. tools/perf/util/stat.h +60 −3
  256. tools/perf/util/string.c +46 −0
  257. tools/perf/util/string2.h +2 −0
  258. tools/perf/util/symbol.c +5 −0
  259. tools/perf/util/symbol.h +1 −0
  260. tools/perf/util/syscalltbl.c +4 −0
  261. tools/perf/util/target.h +7 −0
  262. tools/perf/util/thread_map.c +20 −7
  263. tools/perf/util/thread_map.h +2 −1
  264. tools/perf/util/time-utils.c +289 −12
  265. tools/perf/util/time-utils.h +8 −0
  266. tools/perf/util/tool.h +1 −0
  267. tools/perf/util/unwind-libunwind-local.c +3 −6
  268. tools/perf/util/unwind-libunwind.c +2 −2
  269. tools/perf/util/util.c +1 −1
  270. tools/perf/util/util.h +10 −0
Documentation/process/kernel-enforcement-statement.rst+1−0
@@ -118,6 +118,7 @@ we might work for today, have in the past, or will in the future. · 117 unmodified lines
118 - Mike Marshall118 - Mike Marshall
119 - Chris Mason119 - Chris Mason
120 - Paul E. McKenney120 - Paul E. McKenney
121 - Arnaldo Carvalho de Melo
121 - David S. Miller122 - David S. Miller
122 - Ingo Molnar123 - Ingo Molnar
123 - Kuninori Morimoto124 - Kuninori Morimoto
MAINTAINERS+2−1
@@ -1327,7 +1327,8 @@ F: tools/perf/arch/arm/util/pmu.c · 1326 unmodified lines
1327F: tools/perf/arch/arm/util/auxtrace.c1327F: tools/perf/arch/arm/util/auxtrace.c
1328F: tools/perf/arch/arm/util/cs-etm.c1328F: tools/perf/arch/arm/util/cs-etm.c
1329F: tools/perf/arch/arm/util/cs-etm.h1329F: tools/perf/arch/arm/util/cs-etm.h
1330F: tools/perf/util/cs-etm.h1330F: tools/perf/util/cs-etm.*
1331F: tools/perf/util/cs-etm-decoder/*
1331 1332
1332ARM/CORGI MACHINE SUPPORT1333ARM/CORGI MACHINE SUPPORT
1333M: Richard Purdie <rpurdie@rpsys.net>1334M: Richard Purdie <rpurdie@rpsys.net>
arch/x86/events/msr.c+43−27
@@ -10,7 +10,9 @@ enum perf_msr_id { · 9 unmodified lines
10 PERF_MSR_SMI = 4,10 PERF_MSR_SMI = 4,
11 PERF_MSR_PTSC = 5,11 PERF_MSR_PTSC = 5,
12 PERF_MSR_IRPERF = 6,12 PERF_MSR_IRPERF = 6,
13 13 PERF_MSR_THERM = 7,
14 PERF_MSR_THERM_SNAP = 8,
15 PERF_MSR_THERM_UNIT = 9,
14 PERF_MSR_EVENT_MAX,16 PERF_MSR_EVENT_MAX,
15};17};
16 18
@@ -29,6 +31,11 @@ static bool test_irperf(int idx) · 12 unmodified lines
29 return boot_cpu_has(X86_FEATURE_IRPERF);31 return boot_cpu_has(X86_FEATURE_IRPERF);
30}32}
31 33
34static bool test_therm_status(int idx)
35{
36 return boot_cpu_has(X86_FEATURE_DTHERM);
37}
38
32static bool test_intel(int idx)39static bool test_intel(int idx)
33{40{
34 if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL ||41 if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL ||
@@ -95,22 +102,28 @@ struct perf_msr { · 60 unmodified lines
95 bool (*test)(int idx);102 bool (*test)(int idx);
96};103};
97 104
98PMU_EVENT_ATTR_STRING(tsc, evattr_tsc, "event=0x00");105PMU_EVENT_ATTR_STRING(tsc, evattr_tsc, "event=0x00" );
99PMU_EVENT_ATTR_STRING(aperf, evattr_aperf, "event=0x01");106PMU_EVENT_ATTR_STRING(aperf, evattr_aperf, "event=0x01" );
100PMU_EVENT_ATTR_STRING(mperf, evattr_mperf, "event=0x02");107PMU_EVENT_ATTR_STRING(mperf, evattr_mperf, "event=0x02" );
101PMU_EVENT_ATTR_STRING(pperf, evattr_pperf, "event=0x03");108PMU_EVENT_ATTR_STRING(pperf, evattr_pperf, "event=0x03" );
102PMU_EVENT_ATTR_STRING(smi, evattr_smi, "event=0x04");109PMU_EVENT_ATTR_STRING(smi, evattr_smi, "event=0x04" );
103PMU_EVENT_ATTR_STRING(ptsc, evattr_ptsc, "event=0x05");110PMU_EVENT_ATTR_STRING(ptsc, evattr_ptsc, "event=0x05" );
104PMU_EVENT_ATTR_STRING(irperf, evattr_irperf, "event=0x06");111PMU_EVENT_ATTR_STRING(irperf, evattr_irperf, "event=0x06" );
112PMU_EVENT_ATTR_STRING(cpu_thermal_margin, evattr_therm, "event=0x07" );
113PMU_EVENT_ATTR_STRING(cpu_thermal_margin.snapshot, evattr_therm_snap, "1" );
114PMU_EVENT_ATTR_STRING(cpu_thermal_margin.unit, evattr_therm_unit, "C" );
105 115
106static struct perf_msr msr[] = {116static struct perf_msr msr[] = {
107 [PERF_MSR_TSC] = { 0, &evattr_tsc, NULL, },117 [PERF_MSR_TSC] = { 0, &evattr_tsc, NULL, },
108 [PERF_MSR_APERF] = { MSR_IA32_APERF, &evattr_aperf, test_aperfmperf, },118 [PERF_MSR_APERF] = { MSR_IA32_APERF, &evattr_aperf, test_aperfmperf, },
109 [PERF_MSR_MPERF] = { MSR_IA32_MPERF, &evattr_mperf, test_aperfmperf, },119 [PERF_MSR_MPERF] = { MSR_IA32_MPERF, &evattr_mperf, test_aperfmperf, },
110 [PERF_MSR_PPERF] = { MSR_PPERF, &evattr_pperf, test_intel, },120 [PERF_MSR_PPERF] = { MSR_PPERF, &evattr_pperf, test_intel, },
111 [PERF_MSR_SMI] = { MSR_SMI_COUNT, &evattr_smi, test_intel, },121 [PERF_MSR_SMI] = { MSR_SMI_COUNT, &evattr_smi, test_intel, },
112 [PERF_MSR_PTSC] = { MSR_F15H_PTSC, &evattr_ptsc, test_ptsc, },122 [PERF_MSR_PTSC] = { MSR_F15H_PTSC, &evattr_ptsc, test_ptsc, },
113 [PERF_MSR_IRPERF] = { MSR_F17H_IRPERF, &evattr_irperf, test_irperf, },123 [PERF_MSR_IRPERF] = { MSR_F17H_IRPERF, &evattr_irperf, test_irperf, },
124 [PERF_MSR_THERM] = { MSR_IA32_THERM_STATUS, &evattr_therm, test_therm_status, },
125 [PERF_MSR_THERM_SNAP] = { MSR_IA32_THERM_STATUS, &evattr_therm_snap, test_therm_status, },
126 [PERF_MSR_THERM_UNIT] = { MSR_IA32_THERM_STATUS, &evattr_therm_unit, test_therm_status, },
114};127};
115 128
116static struct attribute *events_attrs[PERF_MSR_EVENT_MAX + 1] = {129static struct attribute *events_attrs[PERF_MSR_EVENT_MAX + 1] = {
@@ -161,9 +174,9 @@ static int msr_event_init(struct perf_event *event) · 44 unmodified lines
161 if (!msr[cfg].attr)174 if (!msr[cfg].attr)
162 return -EINVAL;175 return -EINVAL;
163 176
164 event->hw.idx = -1;177 event->hw.idx = -1;
165 event->hw.event_base = msr[cfg].msr;178 event->hw.event_base = msr[cfg].msr;
166 event->hw.config = cfg;179 event->hw.config = cfg;
167 180
168 return 0;181 return 0;
169}182}
@@ -184,7 +197,7 @@ static void msr_event_update(struct perf_event *event) · 14 unmodified lines
184 u64 prev, now;197 u64 prev, now;
185 s64 delta;198 s64 delta;
186 199
187 /* Careful, an NMI might modify the previous event value. */200 /* Careful, an NMI might modify the previous event value: */
188again:201again:
189 prev = local64_read(&event->hw.prev_count);202 prev = local64_read(&event->hw.prev_count);
190 now = msr_read_counter(event);203 now = msr_read_counter(event);
@@ -193,17 +206,22 @@ again: · 2 unmodified lines
193 goto again;206 goto again;
194 207
195 delta = now - prev;208 delta = now - prev;
196 if (unlikely(event->hw.event_base == MSR_SMI_COUNT))209 if (unlikely(event->hw.event_base == MSR_SMI_COUNT)) {
197 delta = sign_extend64(delta, 31);210 delta = sign_extend64(delta, 31);
198 211 local64_add(delta, &event->count);
199 local64_add(delta, &event->count);212 } else if (unlikely(event->hw.event_base == MSR_IA32_THERM_STATUS)) {
213 /* If valid, extract digital readout, otherwise set to -1: */
214 now = now & (1ULL << 31) ? (now >> 16) & 0x3f : -1;
215 local64_set(&event->count, now);
216 } else {
217 local64_add(delta, &event->count);
218 }
200}219}
201 220
202static void msr_event_start(struct perf_event *event, int flags)221static void msr_event_start(struct perf_event *event, int flags)
203{222{
204 u64 now;223 u64 now = msr_read_counter(event);
205 224
206 now = msr_read_counter(event);
207 local64_set(&event->hw.prev_count, now);225 local64_set(&event->hw.prev_count, now);
208}226}
209 227
@@ -250,9 +268,7 @@ static int __init msr_init(void) · 40 unmodified lines
250 for (i = PERF_MSR_TSC + 1; i < PERF_MSR_EVENT_MAX; i++) {268 for (i = PERF_MSR_TSC + 1; i < PERF_MSR_EVENT_MAX; i++) {
251 u64 val;269 u64 val;
252 270
253 /*271 /* Virt sucks; you cannot tell if a R/O MSR is present :/ */
254 * Virt sucks arse; you cannot tell if a R/O MSR is present :/
255 */
256 if (!msr[i].test(i) || rdmsrl_safe(msr[i].msr, &val))272 if (!msr[i].test(i) || rdmsrl_safe(msr[i].msr, &val))
257 msr[i].attr = NULL;273 msr[i].attr = NULL;
258 }274 }
arch/x86/include/asm/uprobes.h+4−0
@@ -53,6 +53,10 @@ struct arch_uprobe { · 52 unmodified lines
53 u8 fixups;53 u8 fixups;
54 u8 ilen;54 u8 ilen;
55 } defparam;55 } defparam;
56 struct {
57 u8 reg_offset; /* to the start of pt_regs */
58 u8 ilen;
59 } push;
56 };60 };
57};61};
58 62
arch/x86/kernel/uprobes.c+103−4
@@ -528,11 +528,11 @@ static int default_pre_xol_op(struct arch_uprobe *auprobe, struct pt_regs *regs) · 527 unmodified lines
528 return 0;528 return 0;
529}529}
530 530
531static int push_ret_address(struct pt_regs *regs, unsigned long ip)531static int emulate_push_stack(struct pt_regs *regs, unsigned long val)
532{532{
533 unsigned long new_sp = regs->sp - sizeof_long();533 unsigned long new_sp = regs->sp - sizeof_long();
534 534
535 if (copy_to_user((void __user *)new_sp, &ip, sizeof_long()))535 if (copy_to_user((void __user *)new_sp, &val, sizeof_long()))
536 return -EFAULT;536 return -EFAULT;
537 537
538 regs->sp = new_sp;538 regs->sp = new_sp;
@@ -566,7 +566,7 @@ static int default_post_xol_op(struct arch_uprobe *auprobe, struct pt_regs *regs · 27 unmodified lines
566 regs->ip += correction;566 regs->ip += correction;
567 } else if (auprobe->defparam.fixups & UPROBE_FIX_CALL) {567 } else if (auprobe->defparam.fixups & UPROBE_FIX_CALL) {
568 regs->sp += sizeof_long(); /* Pop incorrect return address */568 regs->sp += sizeof_long(); /* Pop incorrect return address */
569 if (push_ret_address(regs, utask->vaddr + auprobe->defparam.ilen))569 if (emulate_push_stack(regs, utask->vaddr + auprobe->defparam.ilen))
570 return -ERESTART;570 return -ERESTART;
571 }571 }
572 /* popf; tell the caller to not touch TF */572 /* popf; tell the caller to not touch TF */
@@ -655,7 +655,7 @@ static bool branch_emulate_op(struct arch_uprobe *auprobe, struct pt_regs *regs) · 82 unmodified lines
655 *655 *
656 * But there is corner case, see the comment in ->post_xol().656 * But there is corner case, see the comment in ->post_xol().
657 */657 */
658 if (push_ret_address(regs, new_ip))658 if (emulate_push_stack(regs, new_ip))
659 return false;659 return false;
660 } else if (!check_jmp_cond(auprobe, regs)) {660 } else if (!check_jmp_cond(auprobe, regs)) {
661 offs = 0;661 offs = 0;
@@ -665,6 +665,16 @@ static bool branch_emulate_op(struct arch_uprobe *auprobe, struct pt_regs *regs) · 3 unmodified lines
665 return true;665 return true;
666}666}
667 667
668static bool push_emulate_op(struct arch_uprobe *auprobe, struct pt_regs *regs)
669{
670 unsigned long *src_ptr = (void *)regs + auprobe->push.reg_offset;
671
672 if (emulate_push_stack(regs, *src_ptr))
673 return false;
674 regs->ip += auprobe->push.ilen;
675 return true;
676}
677
668static int branch_post_xol_op(struct arch_uprobe *auprobe, struct pt_regs *regs)678static int branch_post_xol_op(struct arch_uprobe *auprobe, struct pt_regs *regs)
669{679{
670 BUG_ON(!branch_is_call(auprobe));680 BUG_ON(!branch_is_call(auprobe));
@@ -703,6 +713,10 @@ static const struct uprobe_xol_ops branch_xol_ops = { · 32 unmodified lines
703 .post_xol = branch_post_xol_op,713 .post_xol = branch_post_xol_op,
704};714};
705 715
716static const struct uprobe_xol_ops push_xol_ops = {
717 .emulate = push_emulate_op,
718};
719
706/* Returns -ENOSYS if branch_xol_ops doesn't handle this insn */720/* Returns -ENOSYS if branch_xol_ops doesn't handle this insn */
707static int branch_setup_xol_ops(struct arch_uprobe *auprobe, struct insn *insn)721static int branch_setup_xol_ops(struct arch_uprobe *auprobe, struct insn *insn)
708{722{
@@ -750,6 +764,87 @@ static int branch_setup_xol_ops(struct arch_uprobe *auprobe, struct insn *insn) · 41 unmodified lines
750 return 0;764 return 0;
751}765}
752 766
767/* Returns -ENOSYS if push_xol_ops doesn't handle this insn */
768static int push_setup_xol_ops(struct arch_uprobe *auprobe, struct insn *insn)
769{
770 u8 opc1 = OPCODE1(insn), reg_offset = 0;
771
772 if (opc1 < 0x50 || opc1 > 0x57)
773 return -ENOSYS;
774
775 if (insn->length > 2)
776 return -ENOSYS;
777 if (insn->length == 2) {
778 /* only support rex_prefix 0x41 (x64 only) */
779#ifdef CONFIG_X86_64
780 if (insn->rex_prefix.nbytes != 1 ||
781 insn->rex_prefix.bytes[0] != 0x41)
782 return -ENOSYS;
783
784 switch (opc1) {
785 case 0x50:
786 reg_offset = offsetof(struct pt_regs, r8);
787 break;
788 case 0x51:
789 reg_offset = offsetof(struct pt_regs, r9);
790 break;
791 case 0x52:
792 reg_offset = offsetof(struct pt_regs, r10);
793 break;
794 case 0x53:
795 reg_offset = offsetof(struct pt_regs, r11);
796 break;
797 case 0x54:
798 reg_offset = offsetof(struct pt_regs, r12);
799 break;
800 case 0x55:
801 reg_offset = offsetof(struct pt_regs, r13);
802 break;
803 case 0x56:
804 reg_offset = offsetof(struct pt_regs, r14);
805 break;
806 case 0x57:
807 reg_offset = offsetof(struct pt_regs, r15);
808 break;
809 }
810#else
811 return -ENOSYS;
812#endif
813 } else {
814 switch (opc1) {
815 case 0x50:
816 reg_offset = offsetof(struct pt_regs, ax);
817 break;
818 case 0x51:
819 reg_offset = offsetof(struct pt_regs, cx);
820 break;
821 case 0x52:
822 reg_offset = offsetof(struct pt_regs, dx);
823 break;
824 case 0x53:
825 reg_offset = offsetof(struct pt_regs, bx);
826 break;
827 case 0x54:
828 reg_offset = offsetof(struct pt_regs, sp);
829 break;
830 case 0x55:
831 reg_offset = offsetof(struct pt_regs, bp);
832 break;
833 case 0x56:
834 reg_offset = offsetof(struct pt_regs, si);
835 break;
836 case 0x57:
837 reg_offset = offsetof(struct pt_regs, di);
838 break;
839 }
840 }
841
842 auprobe->push.reg_offset = reg_offset;
843 auprobe->push.ilen = insn->length;
844 auprobe->ops = &push_xol_ops;
845 return 0;
846}
847
753/**848/**
754 * arch_uprobe_analyze_insn - instruction analysis including validity and fixups.849 * arch_uprobe_analyze_insn - instruction analysis including validity and fixups.
755 * @mm: the probed address space.850 * @mm: the probed address space.
@@ -771,6 +866,10 @@ int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct *mm, · 15 unmodified lines
771 if (ret != -ENOSYS)866 if (ret != -ENOSYS)
772 return ret;867 return ret;
773 868
869 ret = push_setup_xol_ops(auprobe, &insn);
870 if (ret != -ENOSYS)
871 return ret;
872
774 /*873 /*
775 * Figure out which fixups default_post_xol_op() will need to perform,874 * Figure out which fixups default_post_xol_op() will need to perform,
776 * and annotate defparam->fixups accordingly.875 * and annotate defparam->fixups accordingly.
arch/x86/tools/Makefile+6−6
@@ -13,28 +13,28 @@ else · 12 unmodified lines
13 posttest_64bit = -n13 posttest_64bit = -n
14endif14endif
15 15
16distill_awk = $(srctree)/arch/x86/tools/distill.awk16reformatter = $(srctree)/arch/x86/tools/objdump_reformat.awk
17chkobjdump = $(srctree)/arch/x86/tools/chkobjdump.awk17chkobjdump = $(srctree)/arch/x86/tools/chkobjdump.awk
18 18
19quiet_cmd_posttest = TEST $@19quiet_cmd_posttest = TEST $@
20 cmd_posttest = ($(OBJDUMP) -v | $(AWK) -f $(chkobjdump)) || $(OBJDUMP) -d -j .text $(objtree)/vmlinux | $(AWK) -f $(distill_awk) | $(obj)/test_get_len $(posttest_64bit) $(posttest_verbose)20 cmd_posttest = ($(OBJDUMP) -v | $(AWK) -f $(chkobjdump)) || $(OBJDUMP) -d -j .text $(objtree)/vmlinux | $(AWK) -f $(reformatter) | $(obj)/insn_decoder_test $(posttest_64bit) $(posttest_verbose)
21 21
22quiet_cmd_sanitytest = TEST $@22quiet_cmd_sanitytest = TEST $@
23 cmd_sanitytest = $(obj)/insn_sanity $(posttest_64bit) -m 100000023 cmd_sanitytest = $(obj)/insn_sanity $(posttest_64bit) -m 1000000
24 24
25posttest: $(obj)/test_get_len vmlinux $(obj)/insn_sanity25posttest: $(obj)/insn_decoder_test vmlinux $(obj)/insn_sanity
26 $(call cmd,posttest)26 $(call cmd,posttest)
27 $(call cmd,sanitytest)27 $(call cmd,sanitytest)
28 28
29hostprogs-y += test_get_len insn_sanity29hostprogs-y += insn_decoder_test insn_sanity
30 30
31# -I needed for generated C source and C source which in the kernel tree.31# -I needed for generated C source and C source which in the kernel tree.
32HOSTCFLAGS_test_get_len.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/uapi/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/uapi/32HOSTCFLAGS_insn_decoder_test.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/uapi/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/uapi/
33 33
34HOSTCFLAGS_insn_sanity.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/34HOSTCFLAGS_insn_sanity.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/
35 35
36# Dependencies are also needed.36# Dependencies are also needed.
37$(obj)/test_get_len.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/inat.c $(srctree)/arch/x86/include/asm/inat_types.h $(srctree)/arch/x86/include/asm/inat.h $(srctree)/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c37$(obj)/insn_decoder_test.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/inat.c $(srctree)/arch/x86/include/asm/inat_types.h $(srctree)/arch/x86/include/asm/inat.h $(srctree)/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c
38 38
39$(obj)/insn_sanity.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/inat.c $(srctree)/arch/x86/include/asm/inat_types.h $(srctree)/arch/x86/include/asm/inat.h $(srctree)/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c39$(obj)/insn_sanity.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/inat.c $(srctree)/arch/x86/include/asm/inat_types.h $(srctree)/arch/x86/include/asm/inat.h $(srctree)/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c
40 40
arch/x86/tools/insn_decoder_test.crenamed from arch/x86/tools/test_get_len.c+25−18
@@ -9,10 +9,6 @@ · 8 unmodified lines
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.10 * GNU General Public License for more details.
11 *11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 *
16 * Copyright (C) IBM Corporation, 200912 * Copyright (C) IBM Corporation, 2009
17 */13 */
18 14
@@ -21,6 +17,7 @@ · 2 unmodified lines
21#include <string.h>17#include <string.h>
22#include <assert.h>18#include <assert.h>
23#include <unistd.h>19#include <unistd.h>
20#include <stdarg.h>
24 21
25#define unlikely(cond) (cond)22#define unlikely(cond) (cond)
26 23
@@ -33,7 +30,7 @@ · 6 unmodified lines
33 * particular. See if insn_get_length() and the disassembler agree30 * particular. See if insn_get_length() and the disassembler agree
34 * on the length of each instruction in an elf disassembly.31 * on the length of each instruction in an elf disassembly.
35 *32 *
36 * Usage: objdump -d a.out | awk -f distill.awk | ./test_get_len33 * Usage: objdump -d a.out | awk -f objdump_reformat.awk | ./insn_decoder_test
37 */34 */
38 35
39const char *prog;36const char *prog;
@@ -42,8 +39,8 @@ static int x86_64; · 2 unmodified lines
42 39
43static void usage(void)40static void usage(void)
44{41{
45 fprintf(stderr, "Usage: objdump -d a.out | awk -f distill.awk |"42 fprintf(stderr, "Usage: objdump -d a.out | awk -f objdump_reformat.awk"
46 " %s [-y|-n] [-v]\n", prog);43 " | %s [-y|-n] [-v]\n", prog);
47 fprintf(stderr, "\t-y 64bit mode\n");44 fprintf(stderr, "\t-y 64bit mode\n");
48 fprintf(stderr, "\t-n 32bit mode\n");45 fprintf(stderr, "\t-n 32bit mode\n");
49 fprintf(stderr, "\t-v verbose mode\n");46 fprintf(stderr, "\t-v verbose mode\n");
@@ -52,10 +49,21 @@ static void usage(void) · 2 unmodified lines
52 49
53static void malformed_line(const char *line, int line_nr)50static void malformed_line(const char *line, int line_nr)
54{51{
55 fprintf(stderr, "%s: malformed line %d:\n%s", prog, line_nr, line);52 fprintf(stderr, "%s: error: malformed line %d:\n%s",
53 prog, line_nr, line);
56 exit(3);54 exit(3);
57}55}
58 56
57static void pr_warn(const char *fmt, ...)
58{
59 va_list ap;
60
61 fprintf(stderr, "%s: warning: ", prog);
62 va_start(ap, fmt);
63 vfprintf(stderr, fmt, ap);
64 va_end(ap);
65}
66
59static void dump_field(FILE *fp, const char *name, const char *indent,67static void dump_field(FILE *fp, const char *name, const char *indent,
60 struct insn_field *field)68 struct insn_field *field)
61{69{
@@ -153,21 +161,20 @@ int main(int argc, char **argv) · 91 unmodified lines
153 insn_get_length(&insn);161 insn_get_length(&insn);
154 if (insn.length != nb) {162 if (insn.length != nb) {
155 warnings++;163 warnings++;
156 fprintf(stderr, "Warning: %s found difference at %s\n",164 pr_warn("Found an x86 instruction decoder bug, "
157 prog, sym);165 "please report this.\n", sym);
158 fprintf(stderr, "Warning: %s", line);166 pr_warn("%s", line);
159 fprintf(stderr, "Warning: objdump says %d bytes, but "167 pr_warn("objdump says %d bytes, but insn_get_length() "
160 "insn_get_length() says %d\n", nb,168 "says %d\n", nb, insn.length);
161 insn.length);
162 if (verbose)169 if (verbose)
163 dump_insn(stderr, &insn);170 dump_insn(stderr, &insn);
164 }171 }
165 }172 }
166 if (warnings)173 if (warnings)
167 fprintf(stderr, "Warning: decoded and checked %d"174 pr_warn("Decoded and checked %d instructions with %d "
168 " instructions with %d warnings\n", insns, warnings);175 "failures\n", insns, warnings);
169 else176 else
170 fprintf(stdout, "Success: decoded and checked %d"177 fprintf(stdout, "%s: success: Decoded and checked %d"
171 " instructions\n", insns);178 " instructions\n", prog, insns);
172 return 0;179 return 0;
173}180}
arch/x86/tools/objdump_reformat.awkrenamed from arch/x86/tools/distill.awk+2−2
@@ -1,7 +1,7 @@
1#!/bin/awk -f1#!/bin/awk -f
2# SPDX-License-Identifier: GPL-2.02# SPDX-License-Identifier: GPL-2.0
3# Usage: objdump -d a.out | awk -f distill.awk | ./test_get_len3# Usage: objdump -d a.out | awk -f objdump_reformat.awk | ./insn_decoder_test
4# Distills the disassembly as follows:4# Reformats the disassembly as follows:
5# - Removes all lines except the disassembled instructions.5# - Removes all lines except the disassembled instructions.
6# - For instructions that exceed 1 line (7 bytes), crams all the hex bytes6# - For instructions that exceed 1 line (7 bytes), crams all the hex bytes
7# into a single line.7# into a single line.
include/uapi/linux/perf_event.h+7−3
@@ -612,9 +612,12 @@ struct perf_event_mmap_page { · 611 unmodified lines
612 */612 */
613#define PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT (1 << 12)613#define PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT (1 << 12)
614/*614/*
615 * PERF_RECORD_MISC_MMAP_DATA and PERF_RECORD_MISC_COMM_EXEC are used on615 * Following PERF_RECORD_MISC_* are used on different
616 * different events so can reuse the same bit position.616 * events, so can reuse the same bit position:
617 * Ditto PERF_RECORD_MISC_SWITCH_OUT.617 *
618 * PERF_RECORD_MISC_MMAP_DATA - PERF_RECORD_MMAP* events
619 * PERF_RECORD_MISC_COMM_EXEC - PERF_RECORD_COMM event
620 * PERF_RECORD_MISC_SWITCH_OUT - PERF_RECORD_SWITCH* events
618 */621 */
619#define PERF_RECORD_MISC_MMAP_DATA (1 << 13)622#define PERF_RECORD_MISC_MMAP_DATA (1 << 13)
620#define PERF_RECORD_MISC_COMM_EXEC (1 << 13)623#define PERF_RECORD_MISC_COMM_EXEC (1 << 13)
@@ -864,6 +867,7 @@ enum perf_event_type { · 243 unmodified lines
864 * struct perf_event_header header;867 * struct perf_event_header header;
865 * u32 pid;868 * u32 pid;
866 * u32 tid;869 * u32 tid;
870 * struct sample_id sample_id;
867 * };871 * };
868 */872 */
869 PERF_RECORD_ITRACE_START = 12,873 PERF_RECORD_ITRACE_START = 12,
kernel/events/callchain.c+0−15
@@ -178,21 +178,6 @@ put_callchain_entry(int rctx) · 177 unmodified lines
178 put_recursion_context(this_cpu_ptr(callchain_recursion), rctx);178 put_recursion_context(this_cpu_ptr(callchain_recursion), rctx);
179}179}
180 180
181struct perf_callchain_entry *
182perf_callchain(struct perf_event *event, struct pt_regs *regs)
183{
184 bool kernel = !event->attr.exclude_callchain_kernel;
185 bool user = !event->attr.exclude_callchain_user;
186 /* Disallow cross-task user callchains. */
187 bool crosstask = event->ctx->task && event->ctx->task != current;
188 const u32 max_stack = event->attr.sample_max_stack;
189
190 if (!kernel && !user)
191 return NULL;
192
193 return get_perf_callchain(regs, 0, kernel, user, max_stack, crosstask, true);
194}
195
196struct perf_callchain_entry *181struct perf_callchain_entry *
197get_perf_callchain(struct pt_regs *regs, u32 init_nr, bool kernel, bool user,182get_perf_callchain(struct pt_regs *regs, u32 init_nr, bool kernel, bool user,
198 u32 max_stack, bool crosstask, bool add_mark)183 u32 max_stack, bool crosstask, bool add_mark)
kernel/events/core.c+39−15
@@ -5824,19 +5824,11 @@ void perf_output_sample(struct perf_output_handle *handle, · 5823 unmodified lines
5824 perf_output_read(handle, event);5824 perf_output_read(handle, event);
5825 5825
5826 if (sample_type & PERF_SAMPLE_CALLCHAIN) {5826 if (sample_type & PERF_SAMPLE_CALLCHAIN) {
5827 if (data->callchain) {5827 int size = 1;
5828 int size = 1;
5829
5830 if (data->callchain)
5831 size += data->callchain->nr;
5832
5833 size *= sizeof(u64);
5834 5828
5835 __output_copy(handle, data->callchain, size);5829 size += data->callchain->nr;
5836 } else {5830 size *= sizeof(u64);
5837 u64 nr = 0;5831 __output_copy(handle, data->callchain, size);
5838 perf_output_put(handle, nr);
5839 }
5840 }5832 }
5841 5833
5842 if (sample_type & PERF_SAMPLE_RAW) {5834 if (sample_type & PERF_SAMPLE_RAW) {
@@ -5989,6 +5981,26 @@ static u64 perf_virt_to_phys(u64 virt) · 146 unmodified lines
5989 return phys_addr;5981 return phys_addr;
5990}5982}
5991 5983
5984static struct perf_callchain_entry __empty_callchain = { .nr = 0, };
5985
5986static struct perf_callchain_entry *
5987perf_callchain(struct perf_event *event, struct pt_regs *regs)
5988{
5989 bool kernel = !event->attr.exclude_callchain_kernel;
5990 bool user = !event->attr.exclude_callchain_user;
5991 /* Disallow cross-task user callchains. */
5992 bool crosstask = event->ctx->task && event->ctx->task != current;
5993 const u32 max_stack = event->attr.sample_max_stack;
5994 struct perf_callchain_entry *callchain;
5995
5996 if (!kernel && !user)
5997 return &__empty_callchain;
5998
5999 callchain = get_perf_callchain(regs, 0, kernel, user,
6000 max_stack, crosstask, true);
6001 return callchain ?: &__empty_callchain;
6002}
6003
5992void perf_prepare_sample(struct perf_event_header *header,6004void perf_prepare_sample(struct perf_event_header *header,
5993 struct perf_sample_data *data,6005 struct perf_sample_data *data,
5994 struct perf_event *event,6006 struct perf_event *event,
@@ -6011,9 +6023,7 @@ void perf_prepare_sample(struct perf_event_header *header, · 16 unmodified lines
6011 int size = 1;6023 int size = 1;
6012 6024
6013 data->callchain = perf_callchain(event, regs);6025 data->callchain = perf_callchain(event, regs);
6014 6026 size += data->callchain->nr;
6015 if (data->callchain)
6016 size += data->callchain->nr;
6017 6027
6018 header->size += size * sizeof(u64);6028 header->size += size * sizeof(u64);
6019 }6029 }
@@ -10740,6 +10750,19 @@ inherit_event(struct perf_event *parent_event, · 4720 unmodified lines
10740 if (IS_ERR(child_event))10750 if (IS_ERR(child_event))
10741 return child_event;10751 return child_event;
10742 10752
10753
10754 if ((child_event->attach_state & PERF_ATTACH_TASK_DATA) &&
10755 !child_ctx->task_ctx_data) {
10756 struct pmu *pmu = child_event->pmu;
10757
10758 child_ctx->task_ctx_data = kzalloc(pmu->task_ctx_size,
10759 GFP_KERNEL);
10760 if (!child_ctx->task_ctx_data) {
10761 free_event(child_event);
10762 return NULL;
10763 }
10764 }
10765
10743 /*10766 /*
10744 * is_orphaned_event() and list_add_tail(&parent_event->child_list)10767 * is_orphaned_event() and list_add_tail(&parent_event->child_list)
10745 * must be under the same lock in order to serialize against10768 * must be under the same lock in order to serialize against
@@ -10750,6 +10773,7 @@ inherit_event(struct perf_event *parent_event, · 4 unmodified lines
10750 if (is_orphaned_event(parent_event) ||10773 if (is_orphaned_event(parent_event) ||
10751 !atomic_long_inc_not_zero(&parent_event->refcount)) {10774 !atomic_long_inc_not_zero(&parent_event->refcount)) {
10752 mutex_unlock(&parent_event->child_mutex);10775 mutex_unlock(&parent_event->child_mutex);
10776 /* task_ctx_data is freed with child_ctx */
10753 free_event(child_event);10777 free_event(child_event);
10754 return NULL;10778 return NULL;
10755 }10779 }
kernel/events/internal.h+0−4
@@ -201,10 +201,6 @@ arch_perf_out_copy_user(void *dst, const void *src, unsigned long n) · 200 unmodified lines
201 201
202DEFINE_OUTPUT_COPY(__output_copy_user, arch_perf_out_copy_user)202DEFINE_OUTPUT_COPY(__output_copy_user, arch_perf_out_copy_user)
203 203
204/* Callchain handling */
205extern struct perf_callchain_entry *
206perf_callchain(struct perf_event *event, struct pt_regs *regs);
207
208static inline int get_recursion_context(int *recursion)204static inline int get_recursion_context(int *recursion)
209{205{
210 int rctx;206 int rctx;
tools/arch/alpha/include/uapi/asm/errno.h+128−0
@@ -0,0 +1,128 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _ALPHA_ERRNO_H
3#define _ALPHA_ERRNO_H
4
5#include <asm-generic/errno-base.h>
6
7#undef EAGAIN /* 11 in errno-base.h */
8
9#define EDEADLK 11 /* Resource deadlock would occur */
10
11#define EAGAIN 35 /* Try again */
12#define EWOULDBLOCK EAGAIN /* Operation would block */
13#define EINPROGRESS 36 /* Operation now in progress */
14#define EALREADY 37 /* Operation already in progress */
15#define ENOTSOCK 38 /* Socket operation on non-socket */
16#define EDESTADDRREQ 39 /* Destination address required */
17#define EMSGSIZE 40 /* Message too long */
18#define EPROTOTYPE 41 /* Protocol wrong type for socket */
19#define ENOPROTOOPT 42 /* Protocol not available */
20#define EPROTONOSUPPORT 43 /* Protocol not supported */
21#define ESOCKTNOSUPPORT 44 /* Socket type not supported */
22#define EOPNOTSUPP 45 /* Operation not supported on transport endpoint */
23#define EPFNOSUPPORT 46 /* Protocol family not supported */
24#define EAFNOSUPPORT 47 /* Address family not supported by protocol */
25#define EADDRINUSE 48 /* Address already in use */
26#define EADDRNOTAVAIL 49 /* Cannot assign requested address */
27#define ENETDOWN 50 /* Network is down */
28#define ENETUNREACH 51 /* Network is unreachable */
29#define ENETRESET 52 /* Network dropped connection because of reset */
30#define ECONNABORTED 53 /* Software caused connection abort */
31#define ECONNRESET 54 /* Connection reset by peer */
32#define ENOBUFS 55 /* No buffer space available */
33#define EISCONN 56 /* Transport endpoint is already connected */
34#define ENOTCONN 57 /* Transport endpoint is not connected */
35#define ESHUTDOWN 58 /* Cannot send after transport endpoint shutdown */
36#define ETOOMANYREFS 59 /* Too many references: cannot splice */
37#define ETIMEDOUT 60 /* Connection timed out */
38#define ECONNREFUSED 61 /* Connection refused */
39#define ELOOP 62 /* Too many symbolic links encountered */
40#define ENAMETOOLONG 63 /* File name too long */
41#define EHOSTDOWN 64 /* Host is down */
42#define EHOSTUNREACH 65 /* No route to host */
43#define ENOTEMPTY 66 /* Directory not empty */
44
45#define EUSERS 68 /* Too many users */
46#define EDQUOT 69 /* Quota exceeded */
47#define ESTALE 70 /* Stale file handle */
48#define EREMOTE 71 /* Object is remote */
49
50#define ENOLCK 77 /* No record locks available */
51#define ENOSYS 78 /* Function not implemented */
52
53#define ENOMSG 80 /* No message of desired type */
54#define EIDRM 81 /* Identifier removed */
55#define ENOSR 82 /* Out of streams resources */
56#define ETIME 83 /* Timer expired */
57#define EBADMSG 84 /* Not a data message */
58#define EPROTO 85 /* Protocol error */
59#define ENODATA 86 /* No data available */
60#define ENOSTR 87 /* Device not a stream */
61
62#define ENOPKG 92 /* Package not installed */
63
64#define EILSEQ 116 /* Illegal byte sequence */
65
66/* The following are just random noise.. */
67#define ECHRNG 88 /* Channel number out of range */
68#define EL2NSYNC 89 /* Level 2 not synchronized */
69#define EL3HLT 90 /* Level 3 halted */
70#define EL3RST 91 /* Level 3 reset */
71
72#define ELNRNG 93 /* Link number out of range */
73#define EUNATCH 94 /* Protocol driver not attached */
74#define ENOCSI 95 /* No CSI structure available */
75#define EL2HLT 96 /* Level 2 halted */
76#define EBADE 97 /* Invalid exchange */
77#define EBADR 98 /* Invalid request descriptor */
78#define EXFULL 99 /* Exchange full */
79#define ENOANO 100 /* No anode */
80#define EBADRQC 101 /* Invalid request code */
81#define EBADSLT 102 /* Invalid slot */
82
83#define EDEADLOCK EDEADLK
84
85#define EBFONT 104 /* Bad font file format */
86#define ENONET 105 /* Machine is not on the network */
87#define ENOLINK 106 /* Link has been severed */
88#define EADV 107 /* Advertise error */
89#define ESRMNT 108 /* Srmount error */
90#define ECOMM 109 /* Communication error on send */
91#define EMULTIHOP 110 /* Multihop attempted */
92#define EDOTDOT 111 /* RFS specific error */
93#define EOVERFLOW 112 /* Value too large for defined data type */
94#define ENOTUNIQ 113 /* Name not unique on network */
95#define EBADFD 114 /* File descriptor in bad state */
96#define EREMCHG 115 /* Remote address changed */
97
98#define EUCLEAN 117 /* Structure needs cleaning */
99#define ENOTNAM 118 /* Not a XENIX named type file */
100#define ENAVAIL 119 /* No XENIX semaphores available */
101#define EISNAM 120 /* Is a named type file */
102#define EREMOTEIO 121 /* Remote I/O error */
103
104#define ELIBACC 122 /* Can not access a needed shared library */
105#define ELIBBAD 123 /* Accessing a corrupted shared library */
106#define ELIBSCN 124 /* .lib section in a.out corrupted */
107#define ELIBMAX 125 /* Attempting to link in too many shared libraries */
108#define ELIBEXEC 126 /* Cannot exec a shared library directly */
109#define ERESTART 127 /* Interrupted system call should be restarted */
110#define ESTRPIPE 128 /* Streams pipe error */
111
112#define ENOMEDIUM 129 /* No medium found */
113#define EMEDIUMTYPE 130 /* Wrong medium type */
114#define ECANCELED 131 /* Operation Cancelled */
115#define ENOKEY 132 /* Required key not available */
116#define EKEYEXPIRED 133 /* Key has expired */
117#define EKEYREVOKED 134 /* Key has been revoked */
118#define EKEYREJECTED 135 /* Key was rejected by service */
119
120/* for robust mutexes */
121#define EOWNERDEAD 136 /* Owner died */
122#define ENOTRECOVERABLE 137 /* State not recoverable */
123
124#define ERFKILL 138 /* Operation not possible due to RF-kill */
125
126#define EHWPOISON 139 /* Memory page has hardware error */
127
128#endif
tools/arch/mips/include/asm/errno.h+17−0
@@ -0,0 +1,17 @@
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995, 1999, 2001, 2002 by Ralf Baechle
7 */
8#ifndef _ASM_ERRNO_H
9#define _ASM_ERRNO_H
10
11#include <uapi/asm/errno.h>
12
13
14/* The biggest error number defined here or in <linux/errno.h>. */
15#define EMAXERRNO 1133
16
17#endif /* _ASM_ERRNO_H */
tools/arch/mips/include/uapi/asm/errno.h+130−0
@@ -0,0 +1,130 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2/*
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
6 *
7 * Copyright (C) 1995, 1999, 2001, 2002 by Ralf Baechle
8 */
9#ifndef _UAPI_ASM_ERRNO_H
10#define _UAPI_ASM_ERRNO_H
11
12/*
13 * These error numbers are intended to be MIPS ABI compatible
14 */
15
16#include <asm-generic/errno-base.h>
17
18#define ENOMSG 35 /* No message of desired type */
19#define EIDRM 36 /* Identifier removed */
20#define ECHRNG 37 /* Channel number out of range */
21#define EL2NSYNC 38 /* Level 2 not synchronized */
22#define EL3HLT 39 /* Level 3 halted */
23#define EL3RST 40 /* Level 3 reset */
24#define ELNRNG 41 /* Link number out of range */
25#define EUNATCH 42 /* Protocol driver not attached */
26#define ENOCSI 43 /* No CSI structure available */
27#define EL2HLT 44 /* Level 2 halted */
28#define EDEADLK 45 /* Resource deadlock would occur */
29#define ENOLCK 46 /* No record locks available */
30#define EBADE 50 /* Invalid exchange */
31#define EBADR 51 /* Invalid request descriptor */
32#define EXFULL 52 /* Exchange full */
33#define ENOANO 53 /* No anode */
34#define EBADRQC 54 /* Invalid request code */
35#define EBADSLT 55 /* Invalid slot */
36#define EDEADLOCK 56 /* File locking deadlock error */
37#define EBFONT 59 /* Bad font file format */
38#define ENOSTR 60 /* Device not a stream */
39#define ENODATA 61 /* No data available */
40#define ETIME 62 /* Timer expired */
41#define ENOSR 63 /* Out of streams resources */
42#define ENONET 64 /* Machine is not on the network */
43#define ENOPKG 65 /* Package not installed */
44#define EREMOTE 66 /* Object is remote */
45#define ENOLINK 67 /* Link has been severed */
46#define EADV 68 /* Advertise error */
47#define ESRMNT 69 /* Srmount error */
48#define ECOMM 70 /* Communication error on send */
49#define EPROTO 71 /* Protocol error */
50#define EDOTDOT 73 /* RFS specific error */
51#define EMULTIHOP 74 /* Multihop attempted */
52#define EBADMSG 77 /* Not a data message */
53#define ENAMETOOLONG 78 /* File name too long */
54#define EOVERFLOW 79 /* Value too large for defined data type */
55#define ENOTUNIQ 80 /* Name not unique on network */
56#define EBADFD 81 /* File descriptor in bad state */
57#define EREMCHG 82 /* Remote address changed */
58#define ELIBACC 83 /* Can not access a needed shared library */
59#define ELIBBAD 84 /* Accessing a corrupted shared library */
60#define ELIBSCN 85 /* .lib section in a.out corrupted */
61#define ELIBMAX 86 /* Attempting to link in too many shared libraries */
62#define ELIBEXEC 87 /* Cannot exec a shared library directly */
63#define EILSEQ 88 /* Illegal byte sequence */
64#define ENOSYS 89 /* Function not implemented */
65#define ELOOP 90 /* Too many symbolic links encountered */
66#define ERESTART 91 /* Interrupted system call should be restarted */
67#define ESTRPIPE 92 /* Streams pipe error */
68#define ENOTEMPTY 93 /* Directory not empty */
69#define EUSERS 94 /* Too many users */
70#define ENOTSOCK 95 /* Socket operation on non-socket */
71#define EDESTADDRREQ 96 /* Destination address required */
72#define EMSGSIZE 97 /* Message too long */
73#define EPROTOTYPE 98 /* Protocol wrong type for socket */
74#define ENOPROTOOPT 99 /* Protocol not available */
75#define EPROTONOSUPPORT 120 /* Protocol not supported */
76#define ESOCKTNOSUPPORT 121 /* Socket type not supported */
77#define EOPNOTSUPP 122 /* Operation not supported on transport endpoint */
78#define EPFNOSUPPORT 123 /* Protocol family not supported */
79#define EAFNOSUPPORT 124 /* Address family not supported by protocol */
80#define EADDRINUSE 125 /* Address already in use */
81#define EADDRNOTAVAIL 126 /* Cannot assign requested address */
82#define ENETDOWN 127 /* Network is down */
83#define ENETUNREACH 128 /* Network is unreachable */
84#define ENETRESET 129 /* Network dropped connection because of reset */
85#define ECONNABORTED 130 /* Software caused connection abort */
86#define ECONNRESET 131 /* Connection reset by peer */
87#define ENOBUFS 132 /* No buffer space available */
88#define EISCONN 133 /* Transport endpoint is already connected */
89#define ENOTCONN 134 /* Transport endpoint is not connected */
90#define EUCLEAN 135 /* Structure needs cleaning */
91#define ENOTNAM 137 /* Not a XENIX named type file */
92#define ENAVAIL 138 /* No XENIX semaphores available */
93#define EISNAM 139 /* Is a named type file */
94#define EREMOTEIO 140 /* Remote I/O error */
95#define EINIT 141 /* Reserved */
96#define EREMDEV 142 /* Error 142 */
97#define ESHUTDOWN 143 /* Cannot send after transport endpoint shutdown */
98#define ETOOMANYREFS 144 /* Too many references: cannot splice */
99#define ETIMEDOUT 145 /* Connection timed out */
100#define ECONNREFUSED 146 /* Connection refused */
101#define EHOSTDOWN 147 /* Host is down */
102#define EHOSTUNREACH 148 /* No route to host */
103#define EWOULDBLOCK EAGAIN /* Operation would block */
104#define EALREADY 149 /* Operation already in progress */
105#define EINPROGRESS 150 /* Operation now in progress */
106#define ESTALE 151 /* Stale file handle */
107#define ECANCELED 158 /* AIO operation canceled */
108
109/*
110 * These error are Linux extensions.
111 */
112#define ENOMEDIUM 159 /* No medium found */
113#define EMEDIUMTYPE 160 /* Wrong medium type */
114#define ENOKEY 161 /* Required key not available */
115#define EKEYEXPIRED 162 /* Key has expired */
116#define EKEYREVOKED 163 /* Key has been revoked */
117#define EKEYREJECTED 164 /* Key was rejected by service */
118
119/* for robust mutexes */
120#define EOWNERDEAD 165 /* Owner died */
121#define ENOTRECOVERABLE 166 /* State not recoverable */
122
123#define ERFKILL 167 /* Operation not possible due to RF-kill */
124
125#define EHWPOISON 168 /* Memory page has hardware error */
126
127#define EDQUOT 1133 /* Quota exceeded */
128
129
130#endif /* _UAPI_ASM_ERRNO_H */
tools/arch/parisc/include/uapi/asm/errno.h+128−0
@@ -0,0 +1,128 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _PARISC_ERRNO_H
3#define _PARISC_ERRNO_H
4
5#include <asm-generic/errno-base.h>
6
7#define ENOMSG 35 /* No message of desired type */
8#define EIDRM 36 /* Identifier removed */
9#define ECHRNG 37 /* Channel number out of range */
10#define EL2NSYNC 38 /* Level 2 not synchronized */
11#define EL3HLT 39 /* Level 3 halted */
12#define EL3RST 40 /* Level 3 reset */
13#define ELNRNG 41 /* Link number out of range */
14#define EUNATCH 42 /* Protocol driver not attached */
15#define ENOCSI 43 /* No CSI structure available */
16#define EL2HLT 44 /* Level 2 halted */
17#define EDEADLK 45 /* Resource deadlock would occur */
18#define EDEADLOCK EDEADLK
19#define ENOLCK 46 /* No record locks available */
20#define EILSEQ 47 /* Illegal byte sequence */
21
22#define ENONET 50 /* Machine is not on the network */
23#define ENODATA 51 /* No data available */
24#define ETIME 52 /* Timer expired */
25#define ENOSR 53 /* Out of streams resources */
26#define ENOSTR 54 /* Device not a stream */
27#define ENOPKG 55 /* Package not installed */
28
29#define ENOLINK 57 /* Link has been severed */
30#define EADV 58 /* Advertise error */
31#define ESRMNT 59 /* Srmount error */
32#define ECOMM 60 /* Communication error on send */
33#define EPROTO 61 /* Protocol error */
34
35#define EMULTIHOP 64 /* Multihop attempted */
36
37#define EDOTDOT 66 /* RFS specific error */
38#define EBADMSG 67 /* Not a data message */
39#define EUSERS 68 /* Too many users */
40#define EDQUOT 69 /* Quota exceeded */
41#define ESTALE 70 /* Stale file handle */
42#define EREMOTE 71 /* Object is remote */
43#define EOVERFLOW 72 /* Value too large for defined data type */
44
45/* these errnos are defined by Linux but not HPUX. */
46
47#define EBADE 160 /* Invalid exchange */
48#define EBADR 161 /* Invalid request descriptor */
49#define EXFULL 162 /* Exchange full */
50#define ENOANO 163 /* No anode */
51#define EBADRQC 164 /* Invalid request code */
52#define EBADSLT 165 /* Invalid slot */
53#define EBFONT 166 /* Bad font file format */
54#define ENOTUNIQ 167 /* Name not unique on network */
55#define EBADFD 168 /* File descriptor in bad state */
56#define EREMCHG 169 /* Remote address changed */
57#define ELIBACC 170 /* Can not access a needed shared library */
58#define ELIBBAD 171 /* Accessing a corrupted shared library */
59#define ELIBSCN 172 /* .lib section in a.out corrupted */
60#define ELIBMAX 173 /* Attempting to link in too many shared libraries */
61#define ELIBEXEC 174 /* Cannot exec a shared library directly */
62#define ERESTART 175 /* Interrupted system call should be restarted */
63#define ESTRPIPE 176 /* Streams pipe error */
64#define EUCLEAN 177 /* Structure needs cleaning */
65#define ENOTNAM 178 /* Not a XENIX named type file */
66#define ENAVAIL 179 /* No XENIX semaphores available */
67#define EISNAM 180 /* Is a named type file */
68#define EREMOTEIO 181 /* Remote I/O error */
69#define ENOMEDIUM 182 /* No medium found */
70#define EMEDIUMTYPE 183 /* Wrong medium type */
71#define ENOKEY 184 /* Required key not available */
72#define EKEYEXPIRED 185 /* Key has expired */
73#define EKEYREVOKED 186 /* Key has been revoked */
74#define EKEYREJECTED 187 /* Key was rejected by service */
75
76/* We now return you to your regularly scheduled HPUX. */
77
78#define ENOSYM 215 /* symbol does not exist in executable */
79#define ENOTSOCK 216 /* Socket operation on non-socket */
80#define EDESTADDRREQ 217 /* Destination address required */
81#define EMSGSIZE 218 /* Message too long */
82#define EPROTOTYPE 219 /* Protocol wrong type for socket */
83#define ENOPROTOOPT 220 /* Protocol not available */
84#define EPROTONOSUPPORT 221 /* Protocol not supported */
85#define ESOCKTNOSUPPORT 222 /* Socket type not supported */
86#define EOPNOTSUPP 223 /* Operation not supported on transport endpoint */
87#define EPFNOSUPPORT 224 /* Protocol family not supported */
88#define EAFNOSUPPORT 225 /* Address family not supported by protocol */
89#define EADDRINUSE 226 /* Address already in use */
90#define EADDRNOTAVAIL 227 /* Cannot assign requested address */
91#define ENETDOWN 228 /* Network is down */
92#define ENETUNREACH 229 /* Network is unreachable */
93#define ENETRESET 230 /* Network dropped connection because of reset */
94#define ECONNABORTED 231 /* Software caused connection abort */
95#define ECONNRESET 232 /* Connection reset by peer */
96#define ENOBUFS 233 /* No buffer space available */
97#define EISCONN 234 /* Transport endpoint is already connected */
98#define ENOTCONN 235 /* Transport endpoint is not connected */
99#define ESHUTDOWN 236 /* Cannot send after transport endpoint shutdown */
100#define ETOOMANYREFS 237 /* Too many references: cannot splice */
101#define ETIMEDOUT 238 /* Connection timed out */
102#define ECONNREFUSED 239 /* Connection refused */
103#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
104#define EREMOTERELEASE 240 /* Remote peer released connection */
105#define EHOSTDOWN 241 /* Host is down */
106#define EHOSTUNREACH 242 /* No route to host */
107
108#define EALREADY 244 /* Operation already in progress */
109#define EINPROGRESS 245 /* Operation now in progress */
110#define EWOULDBLOCK EAGAIN /* Operation would block (Not HPUX compliant) */
111#define ENOTEMPTY 247 /* Directory not empty */
112#define ENAMETOOLONG 248 /* File name too long */
113#define ELOOP 249 /* Too many symbolic links encountered */
114#define ENOSYS 251 /* Function not implemented */
115
116#define ENOTSUP 252 /* Function not implemented (POSIX.4 / HPUX) */
117#define ECANCELLED 253 /* aio request was canceled before complete (POSIX.4 / HPUX) */
118#define ECANCELED ECANCELLED /* SuSv3 and Solaris wants one 'L' */
119
120/* for robust mutexes */
121#define EOWNERDEAD 254 /* Owner died */
122#define ENOTRECOVERABLE 255 /* State not recoverable */
123
124#define ERFKILL 256 /* Operation not possible due to RF-kill */
125
126#define EHWPOISON 257 /* Memory page has hardware error */
127
128#endif
tools/arch/powerpc/include/uapi/asm/errno.h+10−0
@@ -0,0 +1,10 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _ASM_POWERPC_ERRNO_H
3#define _ASM_POWERPC_ERRNO_H
4
5#include <asm-generic/errno.h>
6
7#undef EDEADLOCK
8#define EDEADLOCK 58 /* File locking deadlock error */
9
10#endif /* _ASM_POWERPC_ERRNO_H */
tools/arch/s390/include/uapi/asm/unistd.h+412−0
@@ -0,0 +1,412 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2/*
3 * S390 version
4 *
5 * Derived from "include/asm-i386/unistd.h"
6 */
7
8#ifndef _UAPI_ASM_S390_UNISTD_H_
9#define _UAPI_ASM_S390_UNISTD_H_
10
11/*
12 * This file contains the system call numbers.
13 */
14
15#define __NR_exit 1
16#define __NR_fork 2
17#define __NR_read 3
18#define __NR_write 4
19#define __NR_open 5
20#define __NR_close 6
21#define __NR_restart_syscall 7
22#define __NR_creat 8
23#define __NR_link 9
24#define __NR_unlink 10
25#define __NR_execve 11
26#define __NR_chdir 12
27#define __NR_mknod 14
28#define __NR_chmod 15
29#define __NR_lseek 19
30#define __NR_getpid 20
31#define __NR_mount 21
32#define __NR_umount 22
33#define __NR_ptrace 26
34#define __NR_alarm 27
35#define __NR_pause 29
36#define __NR_utime 30
37#define __NR_access 33
38#define __NR_nice 34
39#define __NR_sync 36
40#define __NR_kill 37
41#define __NR_rename 38
42#define __NR_mkdir 39
43#define __NR_rmdir 40
44#define __NR_dup 41
45#define __NR_pipe 42
46#define __NR_times 43
47#define __NR_brk 45
48#define __NR_signal 48
49#define __NR_acct 51
50#define __NR_umount2 52
51#define __NR_ioctl 54
52#define __NR_fcntl 55
53#define __NR_setpgid 57
54#define __NR_umask 60
55#define __NR_chroot 61
56#define __NR_ustat 62
57#define __NR_dup2 63
58#define __NR_getppid 64
59#define __NR_getpgrp 65
60#define __NR_setsid 66
61#define __NR_sigaction 67
62#define __NR_sigsuspend 72
63#define __NR_sigpending 73
64#define __NR_sethostname 74
65#define __NR_setrlimit 75
66#define __NR_getrusage 77
67#define __NR_gettimeofday 78
68#define __NR_settimeofday 79
69#define __NR_symlink 83
70#define __NR_readlink 85
71#define __NR_uselib 86
72#define __NR_swapon 87
73#define __NR_reboot 88
74#define __NR_readdir 89
75#define __NR_mmap 90
76#define __NR_munmap 91
77#define __NR_truncate 92
78#define __NR_ftruncate 93
79#define __NR_fchmod 94
80#define __NR_getpriority 96
81#define __NR_setpriority 97
82#define __NR_statfs 99
83#define __NR_fstatfs 100
84#define __NR_socketcall 102
85#define __NR_syslog 103
86#define __NR_setitimer 104
87#define __NR_getitimer 105
88#define __NR_stat 106
89#define __NR_lstat 107
90#define __NR_fstat 108
91#define __NR_lookup_dcookie 110
92#define __NR_vhangup 111
93#define __NR_idle 112
94#define __NR_wait4 114
95#define __NR_swapoff 115
96#define __NR_sysinfo 116
97#define __NR_ipc 117
98#define __NR_fsync 118
99#define __NR_sigreturn 119
100#define __NR_clone 120
101#define __NR_setdomainname 121
102#define __NR_uname 122
103#define __NR_adjtimex 124
104#define __NR_mprotect 125
105#define __NR_sigprocmask 126
106#define __NR_create_module 127
107#define __NR_init_module 128
108#define __NR_delete_module 129
109#define __NR_get_kernel_syms 130
110#define __NR_quotactl 131
111#define __NR_getpgid 132
112#define __NR_fchdir 133
113#define __NR_bdflush 134
114#define __NR_sysfs 135
115#define __NR_personality 136
116#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
117#define __NR_getdents 141
118#define __NR_flock 143
119#define __NR_msync 144
120#define __NR_readv 145
121#define __NR_writev 146
122#define __NR_getsid 147
123#define __NR_fdatasync 148
124#define __NR__sysctl 149
125#define __NR_mlock 150
126#define __NR_munlock 151
127#define __NR_mlockall 152
128#define __NR_munlockall 153
129#define __NR_sched_setparam 154
130#define __NR_sched_getparam 155
131#define __NR_sched_setscheduler 156
132#define __NR_sched_getscheduler 157
133#define __NR_sched_yield 158
134#define __NR_sched_get_priority_max 159
135#define __NR_sched_get_priority_min 160
136#define __NR_sched_rr_get_interval 161
137#define __NR_nanosleep 162
138#define __NR_mremap 163
139#define __NR_query_module 167
140#define __NR_poll 168
141#define __NR_nfsservctl 169
142#define __NR_prctl 172
143#define __NR_rt_sigreturn 173
144#define __NR_rt_sigaction 174
145#define __NR_rt_sigprocmask 175
146#define __NR_rt_sigpending 176
147#define __NR_rt_sigtimedwait 177
148#define __NR_rt_sigqueueinfo 178
149#define __NR_rt_sigsuspend 179
150#define __NR_pread64 180
151#define __NR_pwrite64 181
152#define __NR_getcwd 183
153#define __NR_capget 184
154#define __NR_capset 185
155#define __NR_sigaltstack 186
156#define __NR_sendfile 187
157#define __NR_getpmsg 188
158#define __NR_putpmsg 189
159#define __NR_vfork 190
160#define __NR_pivot_root 217
161#define __NR_mincore 218
162#define __NR_madvise 219
163#define __NR_getdents64 220
164#define __NR_readahead 222
165#define __NR_setxattr 224
166#define __NR_lsetxattr 225
167#define __NR_fsetxattr 226
168#define __NR_getxattr 227
169#define __NR_lgetxattr 228
170#define __NR_fgetxattr 229
171#define __NR_listxattr 230
172#define __NR_llistxattr 231
173#define __NR_flistxattr 232
174#define __NR_removexattr 233
175#define __NR_lremovexattr 234
176#define __NR_fremovexattr 235
177#define __NR_gettid 236
178#define __NR_tkill 237
179#define __NR_futex 238
180#define __NR_sched_setaffinity 239
181#define __NR_sched_getaffinity 240
182#define __NR_tgkill 241
183/* Number 242 is reserved for tux */
184#define __NR_io_setup 243
185#define __NR_io_destroy 244
186#define __NR_io_getevents 245
187#define __NR_io_submit 246
188#define __NR_io_cancel 247
189#define __NR_exit_group 248
190#define __NR_epoll_create 249
191#define __NR_epoll_ctl 250
192#define __NR_epoll_wait 251
193#define __NR_set_tid_address 252
194#define __NR_fadvise64 253
195#define __NR_timer_create 254
196#define __NR_timer_settime 255
197#define __NR_timer_gettime 256
198#define __NR_timer_getoverrun 257
199#define __NR_timer_delete 258
200#define __NR_clock_settime 259
201#define __NR_clock_gettime 260
202#define __NR_clock_getres 261
203#define __NR_clock_nanosleep 262
204/* Number 263 is reserved for vserver */
205#define __NR_statfs64 265
206#define __NR_fstatfs64 266
207#define __NR_remap_file_pages 267
208#define __NR_mbind 268
209#define __NR_get_mempolicy 269
210#define __NR_set_mempolicy 270
211#define __NR_mq_open 271
212#define __NR_mq_unlink 272
213#define __NR_mq_timedsend 273
214#define __NR_mq_timedreceive 274
215#define __NR_mq_notify 275
216#define __NR_mq_getsetattr 276
217#define __NR_kexec_load 277
218#define __NR_add_key 278
219#define __NR_request_key 279
220#define __NR_keyctl 280
221#define __NR_waitid 281
222#define __NR_ioprio_set 282
223#define __NR_ioprio_get 283
224#define __NR_inotify_init 284
225#define __NR_inotify_add_watch 285
226#define __NR_inotify_rm_watch 286
227#define __NR_migrate_pages 287
228#define __NR_openat 288
229#define __NR_mkdirat 289
230#define __NR_mknodat 290
231#define __NR_fchownat 291
232#define __NR_futimesat 292
233#define __NR_unlinkat 294
234#define __NR_renameat 295
235#define __NR_linkat 296
236#define __NR_symlinkat 297
237#define __NR_readlinkat 298
238#define __NR_fchmodat 299
239#define __NR_faccessat 300
240#define __NR_pselect6 301
241#define __NR_ppoll 302
242#define __NR_unshare 303
243#define __NR_set_robust_list 304
244#define __NR_get_robust_list 305
245#define __NR_splice 306
246#define __NR_sync_file_range 307
247#define __NR_tee 308
248#define __NR_vmsplice 309
249#define __NR_move_pages 310
250#define __NR_getcpu 311
251#define __NR_epoll_pwait 312
252#define __NR_utimes 313
253#define __NR_fallocate 314
254#define __NR_utimensat 315
255#define __NR_signalfd 316
256#define __NR_timerfd 317
257#define __NR_eventfd 318
258#define __NR_timerfd_create 319
259#define __NR_timerfd_settime 320
260#define __NR_timerfd_gettime 321
261#define __NR_signalfd4 322
262#define __NR_eventfd2 323
263#define __NR_inotify_init1 324
264#define __NR_pipe2 325
265#define __NR_dup3 326
266#define __NR_epoll_create1 327
267#define __NR_preadv 328
268#define __NR_pwritev 329
269#define __NR_rt_tgsigqueueinfo 330
270#define __NR_perf_event_open 331
271#define __NR_fanotify_init 332
272#define __NR_fanotify_mark 333
273#define __NR_prlimit64 334
274#define __NR_name_to_handle_at 335
275#define __NR_open_by_handle_at 336
276#define __NR_clock_adjtime 337
277#define __NR_syncfs 338
278#define __NR_setns 339
279#define __NR_process_vm_readv 340
280#define __NR_process_vm_writev 341
281#define __NR_s390_runtime_instr 342
282#define __NR_kcmp 343
283#define __NR_finit_module 344
284#define __NR_sched_setattr 345
285#define __NR_sched_getattr 346
286#define __NR_renameat2 347
287#define __NR_seccomp 348
288#define __NR_getrandom 349
289#define __NR_memfd_create 350
290#define __NR_bpf 351
291#define __NR_s390_pci_mmio_write 352
292#define __NR_s390_pci_mmio_read 353
293#define __NR_execveat 354
294#define __NR_userfaultfd 355
295#define __NR_membarrier 356
296#define __NR_recvmmsg 357
297#define __NR_sendmmsg 358
298#define __NR_socket 359
299#define __NR_socketpair 360
300#define __NR_bind 361
301#define __NR_connect 362
302#define __NR_listen 363
303#define __NR_accept4 364
304#define __NR_getsockopt 365
305#define __NR_setsockopt 366
306#define __NR_getsockname 367
307#define __NR_getpeername 368
308#define __NR_sendto 369
309#define __NR_sendmsg 370
310#define __NR_recvfrom 371
311#define __NR_recvmsg 372
312#define __NR_shutdown 373
313#define __NR_mlock2 374
314#define __NR_copy_file_range 375
315#define __NR_preadv2 376
316#define __NR_pwritev2 377
317#define __NR_s390_guarded_storage 378
318#define __NR_statx 379
319#define __NR_s390_sthyi 380
320#define NR_syscalls 381
321
322/*
323 * There are some system calls that are not present on 64 bit, some
324 * have a different name although they do the same (e.g. __NR_chown32
325 * is __NR_chown on 64 bit).
326 */
327#ifndef __s390x__
328
329#define __NR_time 13
330#define __NR_lchown 16
331#define __NR_setuid 23
332#define __NR_getuid 24
333#define __NR_stime 25
334#define __NR_setgid 46
335#define __NR_getgid 47
336#define __NR_geteuid 49
337#define __NR_getegid 50
338#define __NR_setreuid 70
339#define __NR_setregid 71
340#define __NR_getrlimit 76
341#define __NR_getgroups 80
342#define __NR_setgroups 81
343#define __NR_fchown 95
344#define __NR_ioperm 101
345#define __NR_setfsuid 138
346#define __NR_setfsgid 139
347#define __NR__llseek 140
348#define __NR__newselect 142
349#define __NR_setresuid 164
350#define __NR_getresuid 165
351#define __NR_setresgid 170
352#define __NR_getresgid 171
353#define __NR_chown 182
354#define __NR_ugetrlimit 191 /* SuS compliant getrlimit */
355#define __NR_mmap2 192
356#define __NR_truncate64 193
357#define __NR_ftruncate64 194
358#define __NR_stat64 195
359#define __NR_lstat64 196
360#define __NR_fstat64 197
361#define __NR_lchown32 198
362#define __NR_getuid32 199
363#define __NR_getgid32 200
364#define __NR_geteuid32 201
365#define __NR_getegid32 202
366#define __NR_setreuid32 203
367#define __NR_setregid32 204
368#define __NR_getgroups32 205
369#define __NR_setgroups32 206
370#define __NR_fchown32 207
371#define __NR_setresuid32 208
372#define __NR_getresuid32 209
373#define __NR_setresgid32 210
374#define __NR_getresgid32 211
375#define __NR_chown32 212
376#define __NR_setuid32 213
377#define __NR_setgid32 214
378#define __NR_setfsuid32 215
379#define __NR_setfsgid32 216
380#define __NR_fcntl64 221
381#define __NR_sendfile64 223
382#define __NR_fadvise64_64 264
383#define __NR_fstatat64 293
384
385#else
386
387#define __NR_select 142
388#define __NR_getrlimit 191 /* SuS compliant getrlimit */
389#define __NR_lchown 198
390#define __NR_getuid 199
391#define __NR_getgid 200
392#define __NR_geteuid 201
393#define __NR_getegid 202
394#define __NR_setreuid 203
395#define __NR_setregid 204
396#define __NR_getgroups 205
397#define __NR_setgroups 206
398#define __NR_fchown 207
399#define __NR_setresuid 208
400#define __NR_getresuid 209
401#define __NR_setresgid 210
402#define __NR_getresgid 211
403#define __NR_chown 212
404#define __NR_setuid 213
405#define __NR_setgid 214
406#define __NR_setfsuid 215
407#define __NR_setfsgid 216
408#define __NR_newfstatat 293
409
410#endif
411
412#endif /* _UAPI_ASM_S390_UNISTD_H_ */
tools/arch/sparc/include/uapi/asm/errno.h+118−0
@@ -0,0 +1,118 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _SPARC_ERRNO_H
3#define _SPARC_ERRNO_H
4
5/* These match the SunOS error numbering scheme. */
6
7#include <asm-generic/errno-base.h>
8
9#define EWOULDBLOCK EAGAIN /* Operation would block */
10#define EINPROGRESS 36 /* Operation now in progress */
11#define EALREADY 37 /* Operation already in progress */
12#define ENOTSOCK 38 /* Socket operation on non-socket */
13#define EDESTADDRREQ 39 /* Destination address required */
14#define EMSGSIZE 40 /* Message too long */
15#define EPROTOTYPE 41 /* Protocol wrong type for socket */
16#define ENOPROTOOPT 42 /* Protocol not available */
17#define EPROTONOSUPPORT 43 /* Protocol not supported */
18#define ESOCKTNOSUPPORT 44 /* Socket type not supported */
19#define EOPNOTSUPP 45 /* Op not supported on transport endpoint */
20#define EPFNOSUPPORT 46 /* Protocol family not supported */
21#define EAFNOSUPPORT 47 /* Address family not supported by protocol */
22#define EADDRINUSE 48 /* Address already in use */
23#define EADDRNOTAVAIL 49 /* Cannot assign requested address */
24#define ENETDOWN 50 /* Network is down */
25#define ENETUNREACH 51 /* Network is unreachable */
26#define ENETRESET 52 /* Net dropped connection because of reset */
27#define ECONNABORTED 53 /* Software caused connection abort */
28#define ECONNRESET 54 /* Connection reset by peer */
29#define ENOBUFS 55 /* No buffer space available */
30#define EISCONN 56 /* Transport endpoint is already connected */
31#define ENOTCONN 57 /* Transport endpoint is not connected */
32#define ESHUTDOWN 58 /* No send after transport endpoint shutdown */
33#define ETOOMANYREFS 59 /* Too many references: cannot splice */
34#define ETIMEDOUT 60 /* Connection timed out */
35#define ECONNREFUSED 61 /* Connection refused */
36#define ELOOP 62 /* Too many symbolic links encountered */
37#define ENAMETOOLONG 63 /* File name too long */
38#define EHOSTDOWN 64 /* Host is down */
39#define EHOSTUNREACH 65 /* No route to host */
40#define ENOTEMPTY 66 /* Directory not empty */
41#define EPROCLIM 67 /* SUNOS: Too many processes */
42#define EUSERS 68 /* Too many users */
43#define EDQUOT 69 /* Quota exceeded */
44#define ESTALE 70 /* Stale file handle */
45#define EREMOTE 71 /* Object is remote */
46#define ENOSTR 72 /* Device not a stream */
47#define ETIME 73 /* Timer expired */
48#define ENOSR 74 /* Out of streams resources */
49#define ENOMSG 75 /* No message of desired type */
50#define EBADMSG 76 /* Not a data message */
51#define EIDRM 77 /* Identifier removed */
52#define EDEADLK 78 /* Resource deadlock would occur */
53#define ENOLCK 79 /* No record locks available */
54#define ENONET 80 /* Machine is not on the network */
55#define ERREMOTE 81 /* SunOS: Too many lvls of remote in path */
56#define ENOLINK 82 /* Link has been severed */
57#define EADV 83 /* Advertise error */
58#define ESRMNT 84 /* Srmount error */
59#define ECOMM 85 /* Communication error on send */
60#define EPROTO 86 /* Protocol error */
61#define EMULTIHOP 87 /* Multihop attempted */
62#define EDOTDOT 88 /* RFS specific error */
63#define EREMCHG 89 /* Remote address changed */
64#define ENOSYS 90 /* Function not implemented */
65
66/* The rest have no SunOS equivalent. */
67#define ESTRPIPE 91 /* Streams pipe error */
68#define EOVERFLOW 92 /* Value too large for defined data type */
69#define EBADFD 93 /* File descriptor in bad state */
70#define ECHRNG 94 /* Channel number out of range */
71#define EL2NSYNC 95 /* Level 2 not synchronized */
72#define EL3HLT 96 /* Level 3 halted */
73#define EL3RST 97 /* Level 3 reset */
74#define ELNRNG 98 /* Link number out of range */
75#define EUNATCH 99 /* Protocol driver not attached */
76#define ENOCSI 100 /* No CSI structure available */
77#define EL2HLT 101 /* Level 2 halted */
78#define EBADE 102 /* Invalid exchange */
79#define EBADR 103 /* Invalid request descriptor */
80#define EXFULL 104 /* Exchange full */
81#define ENOANO 105 /* No anode */
82#define EBADRQC 106 /* Invalid request code */
83#define EBADSLT 107 /* Invalid slot */
84#define EDEADLOCK 108 /* File locking deadlock error */
85#define EBFONT 109 /* Bad font file format */
86#define ELIBEXEC 110 /* Cannot exec a shared library directly */
87#define ENODATA 111 /* No data available */
88#define ELIBBAD 112 /* Accessing a corrupted shared library */
89#define ENOPKG 113 /* Package not installed */
90#define ELIBACC 114 /* Can not access a needed shared library */
91#define ENOTUNIQ 115 /* Name not unique on network */
92#define ERESTART 116 /* Interrupted syscall should be restarted */
93#define EUCLEAN 117 /* Structure needs cleaning */
94#define ENOTNAM 118 /* Not a XENIX named type file */
95#define ENAVAIL 119 /* No XENIX semaphores available */
96#define EISNAM 120 /* Is a named type file */
97#define EREMOTEIO 121 /* Remote I/O error */
98#define EILSEQ 122 /* Illegal byte sequence */
99#define ELIBMAX 123 /* Atmpt to link in too many shared libs */
100#define ELIBSCN 124 /* .lib section in a.out corrupted */
101
102#define ENOMEDIUM 125 /* No medium found */
103#define EMEDIUMTYPE 126 /* Wrong medium type */
104#define ECANCELED 127 /* Operation Cancelled */
105#define ENOKEY 128 /* Required key not available */
106#define EKEYEXPIRED 129 /* Key has expired */
107#define EKEYREVOKED 130 /* Key has been revoked */
108#define EKEYREJECTED 131 /* Key was rejected by service */
109
110/* for robust mutexes */
111#define EOWNERDEAD 132 /* Owner died */
112#define ENOTRECOVERABLE 133 /* State not recoverable */
113
114#define ERFKILL 134 /* Operation not possible due to RF-kill */
115
116#define EHWPOISON 135 /* Memory page has hardware error */
117
118#endif
tools/arch/x86/include/asm/cpufeatures.h+3−1
@@ -197,11 +197,12 @@ · 196 unmodified lines
197#define X86_FEATURE_CAT_L3 ( 7*32+ 4) /* Cache Allocation Technology L3 */197#define X86_FEATURE_CAT_L3 ( 7*32+ 4) /* Cache Allocation Technology L3 */
198#define X86_FEATURE_CAT_L2 ( 7*32+ 5) /* Cache Allocation Technology L2 */198#define X86_FEATURE_CAT_L2 ( 7*32+ 5) /* Cache Allocation Technology L2 */
199#define X86_FEATURE_CDP_L3 ( 7*32+ 6) /* Code and Data Prioritization L3 */199#define X86_FEATURE_CDP_L3 ( 7*32+ 6) /* Code and Data Prioritization L3 */
200#define X86_FEATURE_INVPCID_SINGLE ( 7*32+ 7) /* Effectively INVPCID && CR4.PCIDE=1 */
200 201
201#define X86_FEATURE_HW_PSTATE ( 7*32+ 8) /* AMD HW-PState */202#define X86_FEATURE_HW_PSTATE ( 7*32+ 8) /* AMD HW-PState */
202#define X86_FEATURE_PROC_FEEDBACK ( 7*32+ 9) /* AMD ProcFeedbackInterface */203#define X86_FEATURE_PROC_FEEDBACK ( 7*32+ 9) /* AMD ProcFeedbackInterface */
203#define X86_FEATURE_SME ( 7*32+10) /* AMD Secure Memory Encryption */204#define X86_FEATURE_SME ( 7*32+10) /* AMD Secure Memory Encryption */
204 205#define X86_FEATURE_PTI ( 7*32+11) /* Kernel Page Table Isolation enabled */
205#define X86_FEATURE_INTEL_PPIN ( 7*32+14) /* Intel Processor Inventory Number */206#define X86_FEATURE_INTEL_PPIN ( 7*32+14) /* Intel Processor Inventory Number */
206#define X86_FEATURE_INTEL_PT ( 7*32+15) /* Intel Processor Trace */207#define X86_FEATURE_INTEL_PT ( 7*32+15) /* Intel Processor Trace */
207#define X86_FEATURE_AVX512_4VNNIW ( 7*32+16) /* AVX-512 Neural Network Instructions */208#define X86_FEATURE_AVX512_4VNNIW ( 7*32+16) /* AVX-512 Neural Network Instructions */
@@ -340,5 +341,6 @@ · 132 unmodified lines
340#define X86_BUG_SWAPGS_FENCE X86_BUG(11) /* SWAPGS without input dep on GS */341#define X86_BUG_SWAPGS_FENCE X86_BUG(11) /* SWAPGS without input dep on GS */
341#define X86_BUG_MONITOR X86_BUG(12) /* IPI required to wake up remote CPU */342#define X86_BUG_MONITOR X86_BUG(12) /* IPI required to wake up remote CPU */
342#define X86_BUG_AMD_E400 X86_BUG(13) /* CPU is among the affected by Erratum 400 */343#define X86_BUG_AMD_E400 X86_BUG(13) /* CPU is among the affected by Erratum 400 */
344#define X86_BUG_CPU_MELTDOWN X86_BUG(14) /* CPU is affected by meltdown attack and needs kernel page table isolation */
343 345
344#endif /* _ASM_X86_CPUFEATURES_H */346#endif /* _ASM_X86_CPUFEATURES_H */
tools/arch/x86/include/asm/disabled-features.h+7−1
@@ -50,6 +50,12 @@ · 49 unmodified lines
50# define DISABLE_LA57 (1<<(X86_FEATURE_LA57 & 31))50# define DISABLE_LA57 (1<<(X86_FEATURE_LA57 & 31))
51#endif51#endif
52 52
53#ifdef CONFIG_PAGE_TABLE_ISOLATION
54# define DISABLE_PTI 0
55#else
56# define DISABLE_PTI (1 << (X86_FEATURE_PTI & 31))
57#endif
58
53/*59/*
54 * Make sure to add features to the correct mask60 * Make sure to add features to the correct mask
55 */61 */
@@ -60,7 +66,7 @@ · 4 unmodified lines
60#define DISABLED_MASK4 (DISABLE_PCID)66#define DISABLED_MASK4 (DISABLE_PCID)
61#define DISABLED_MASK5 067#define DISABLED_MASK5 0
62#define DISABLED_MASK6 068#define DISABLED_MASK6 0
63#define DISABLED_MASK7 069#define DISABLED_MASK7 (DISABLE_PTI)
64#define DISABLED_MASK8 070#define DISABLED_MASK8 0
65#define DISABLED_MASK9 (DISABLE_MPX)71#define DISABLED_MASK9 (DISABLE_MPX)
66#define DISABLED_MASK10 072#define DISABLED_MASK10 0
tools/arch/x86/include/uapi/asm/errno.h+1−0
@@ -0,0 +1 @@
1#include <asm-generic/errno.h>
tools/build/Makefile.feature+3−1
@@ -56,6 +56,7 @@ FEATURE_TESTS_BASIC := \ · 55 unmodified lines
56 libunwind-arm \56 libunwind-arm \
57 libunwind-aarch64 \57 libunwind-aarch64 \
58 pthread-attr-setaffinity-np \58 pthread-attr-setaffinity-np \
59 pthread-barrier \
59 stackprotector-all \60 stackprotector-all \
60 timerfd \61 timerfd \
61 libdw-dwarf-unwind \62 libdw-dwarf-unwind \
@@ -65,7 +66,8 @@ FEATURE_TESTS_BASIC := \ · 3 unmodified lines
65 bpf \66 bpf \
66 sched_getcpu \67 sched_getcpu \
67 sdt \68 sdt \
68 setns69 setns \
70 libopencsd
69 71
70# FEATURE_TESTS_BASIC + FEATURE_TESTS_EXTRA is the complete list72# FEATURE_TESTS_BASIC + FEATURE_TESTS_EXTRA is the complete list
71# of all feature tests73# of all feature tests
tools/build/feature/Makefile+10−1
@@ -37,6 +37,7 @@ FILES= \ · 36 unmodified lines
37 test-libunwind-debug-frame-arm.bin \37 test-libunwind-debug-frame-arm.bin \
38 test-libunwind-debug-frame-aarch64.bin \38 test-libunwind-debug-frame-aarch64.bin \
39 test-pthread-attr-setaffinity-np.bin \39 test-pthread-attr-setaffinity-np.bin \
40 test-pthread-barrier.bin \
40 test-stackprotector-all.bin \41 test-stackprotector-all.bin \
41 test-timerfd.bin \42 test-timerfd.bin \
42 test-libdw-dwarf-unwind.bin \43 test-libdw-dwarf-unwind.bin \
@@ -51,7 +52,8 @@ FILES= \ · 8 unmodified lines
51 test-cxx.bin \52 test-cxx.bin \
52 test-jvmti.bin \53 test-jvmti.bin \
53 test-sched_getcpu.bin \54 test-sched_getcpu.bin \
54 test-setns.bin55 test-setns.bin \
56 test-libopencsd.bin
55 57
56FILES := $(addprefix $(OUTPUT),$(FILES))58FILES := $(addprefix $(OUTPUT),$(FILES))
57 59
@@ -79,6 +81,9 @@ $(OUTPUT)test-hello.bin: · 21 unmodified lines
79$(OUTPUT)test-pthread-attr-setaffinity-np.bin:81$(OUTPUT)test-pthread-attr-setaffinity-np.bin:
80 $(BUILD) -D_GNU_SOURCE -lpthread82 $(BUILD) -D_GNU_SOURCE -lpthread
81 83
84$(OUTPUT)test-pthread-barrier.bin:
85 $(BUILD) -lpthread
86
82$(OUTPUT)test-stackprotector-all.bin:87$(OUTPUT)test-stackprotector-all.bin:
83 $(BUILD) -fstack-protector-all88 $(BUILD) -fstack-protector-all
84 89
@@ -100,6 +105,10 @@ $(OUTPUT)test-sched_getcpu.bin: · 15 unmodified lines
100$(OUTPUT)test-setns.bin:105$(OUTPUT)test-setns.bin:
101 $(BUILD)106 $(BUILD)
102 107
108$(OUTPUT)test-libopencsd.bin:
109 $(BUILD) # -lopencsd_c_api -lopencsd provided by
110 # $(FEATURE_CHECK_LDFLAGS-libopencsd)
111
103DWARFLIBS := -ldw112DWARFLIBS := -ldw
104ifeq ($(findstring -static,${LDFLAGS}),-static)113ifeq ($(findstring -static,${LDFLAGS}),-static)
105DWARFLIBS += -lelf -lebl -lz -llzma -lbz2114DWARFLIBS += -lelf -lebl -lz -llzma -lbz2
tools/build/feature/test-all.c+10−0
@@ -118,6 +118,10 @@ · 117 unmodified lines
118# include "test-pthread-attr-setaffinity-np.c"118# include "test-pthread-attr-setaffinity-np.c"
119#undef main119#undef main
120 120
121#define main main_test_pthread_barrier
122# include "test-pthread-barrier.c"
123#undef main
124
121#define main main_test_sched_getcpu125#define main main_test_sched_getcpu
122# include "test-sched_getcpu.c"126# include "test-sched_getcpu.c"
123#undef main127#undef main
@@ -158,6 +162,10 @@ · 34 unmodified lines
158# include "test-setns.c"162# include "test-setns.c"
159#undef main163#undef main
160 164
165#define main main_test_libopencsd
166# include "test-libopencsd.c"
167#undef main
168
161int main(int argc, char *argv[])169int main(int argc, char *argv[])
162{170{
163 main_test_libpython();171 main_test_libpython();
@@ -187,6 +195,7 @@ int main(int argc, char *argv[]) · 23 unmodified lines
187 main_test_sync_compare_and_swap(argc, argv);195 main_test_sync_compare_and_swap(argc, argv);
188 main_test_zlib();196 main_test_zlib();
189 main_test_pthread_attr_setaffinity_np();197 main_test_pthread_attr_setaffinity_np();
198 main_test_pthread_barrier();
190 main_test_lzma();199 main_test_lzma();
191 main_test_get_cpuid();200 main_test_get_cpuid();
192 main_test_bpf();201 main_test_bpf();
@@ -194,6 +203,7 @@ int main(int argc, char *argv[]) · 1 unmodified line
194 main_test_sched_getcpu();203 main_test_sched_getcpu();
195 main_test_sdt();204 main_test_sdt();
196 main_test_setns();205 main_test_setns();
206 main_test_libopencsd();
197 207
198 return 0;208 return 0;
199}209}
tools/build/feature/test-libopencsd.c+8−0
@@ -0,0 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0
2#include <opencsd/c_api/opencsd_c_api.h>
3
4int main(void)
5{
6 (void)ocsd_get_version();
7 return 0;
8}
tools/build/feature/test-pthread-barrier.c+12−0
@@ -0,0 +1,12 @@
1// SPDX-License-Identifier: GPL-2.0
2#include <stdint.h>
3#include <pthread.h>
4
5int main(void)
6{
7 pthread_barrier_t barrier;
8
9 pthread_barrier_init(&barrier, NULL, 1);
10 pthread_barrier_wait(&barrier);
11 return pthread_barrier_destroy(&barrier);
12}
tools/include/uapi/asm-generic/errno-base.h+40−0
@@ -0,0 +1,40 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _ASM_GENERIC_ERRNO_BASE_H
3#define _ASM_GENERIC_ERRNO_BASE_H
4
5#define EPERM 1 /* Operation not permitted */
6#define ENOENT 2 /* No such file or directory */
7#define ESRCH 3 /* No such process */
8#define EINTR 4 /* Interrupted system call */
9#define EIO 5 /* I/O error */
10#define ENXIO 6 /* No such device or address */
11#define E2BIG 7 /* Argument list too long */
12#define ENOEXEC 8 /* Exec format error */
13#define EBADF 9 /* Bad file number */
14#define ECHILD 10 /* No child processes */
15#define EAGAIN 11 /* Try again */
16#define ENOMEM 12 /* Out of memory */
17#define EACCES 13 /* Permission denied */
18#define EFAULT 14 /* Bad address */
19#define ENOTBLK 15 /* Block device required */
20#define EBUSY 16 /* Device or resource busy */
21#define EEXIST 17 /* File exists */
22#define EXDEV 18 /* Cross-device link */
23#define ENODEV 19 /* No such device */
24#define ENOTDIR 20 /* Not a directory */
25#define EISDIR 21 /* Is a directory */
26#define EINVAL 22 /* Invalid argument */
27#define ENFILE 23 /* File table overflow */
28#define EMFILE 24 /* Too many open files */
29#define ENOTTY 25 /* Not a typewriter */
30#define ETXTBSY 26 /* Text file busy */
31#define EFBIG 27 /* File too large */
32#define ENOSPC 28 /* No space left on device */
33#define ESPIPE 29 /* Illegal seek */
34#define EROFS 30 /* Read-only file system */
35#define EMLINK 31 /* Too many links */
36#define EPIPE 32 /* Broken pipe */
37#define EDOM 33 /* Math argument out of domain of func */
38#define ERANGE 34 /* Math result not representable */
39
40#endif
tools/include/uapi/asm-generic/errno.h+123−0
@@ -0,0 +1,123 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _ASM_GENERIC_ERRNO_H
3#define _ASM_GENERIC_ERRNO_H
4
5#include <asm-generic/errno-base.h>
6
7#define EDEADLK 35 /* Resource deadlock would occur */
8#define ENAMETOOLONG 36 /* File name too long */
9#define ENOLCK 37 /* No record locks available */
10
11/*
12 * This error code is special: arch syscall entry code will return
13 * -ENOSYS if users try to call a syscall that doesn't exist. To keep
14 * failures of syscalls that really do exist distinguishable from
15 * failures due to attempts to use a nonexistent syscall, syscall
16 * implementations should refrain from returning -ENOSYS.
17 */
18#define ENOSYS 38 /* Invalid system call number */
19
20#define ENOTEMPTY 39 /* Directory not empty */
21#define ELOOP 40 /* Too many symbolic links encountered */
22#define EWOULDBLOCK EAGAIN /* Operation would block */
23#define ENOMSG 42 /* No message of desired type */
24#define EIDRM 43 /* Identifier removed */
25#define ECHRNG 44 /* Channel number out of range */
26#define EL2NSYNC 45 /* Level 2 not synchronized */
27#define EL3HLT 46 /* Level 3 halted */
28#define EL3RST 47 /* Level 3 reset */
29#define ELNRNG 48 /* Link number out of range */
30#define EUNATCH 49 /* Protocol driver not attached */
31#define ENOCSI 50 /* No CSI structure available */
32#define EL2HLT 51 /* Level 2 halted */
33#define EBADE 52 /* Invalid exchange */
34#define EBADR 53 /* Invalid request descriptor */
35#define EXFULL 54 /* Exchange full */
36#define ENOANO 55 /* No anode */
37#define EBADRQC 56 /* Invalid request code */
38#define EBADSLT 57 /* Invalid slot */
39
40#define EDEADLOCK EDEADLK
41
42#define EBFONT 59 /* Bad font file format */
43#define ENOSTR 60 /* Device not a stream */
44#define ENODATA 61 /* No data available */
45#define ETIME 62 /* Timer expired */
46#define ENOSR 63 /* Out of streams resources */
47#define ENONET 64 /* Machine is not on the network */
48#define ENOPKG 65 /* Package not installed */
49#define EREMOTE 66 /* Object is remote */
50#define ENOLINK 67 /* Link has been severed */
51#define EADV 68 /* Advertise error */
52#define ESRMNT 69 /* Srmount error */
53#define ECOMM 70 /* Communication error on send */
54#define EPROTO 71 /* Protocol error */
55#define EMULTIHOP 72 /* Multihop attempted */
56#define EDOTDOT 73 /* RFS specific error */
57#define EBADMSG 74 /* Not a data message */
58#define EOVERFLOW 75 /* Value too large for defined data type */
59#define ENOTUNIQ 76 /* Name not unique on network */
60#define EBADFD 77 /* File descriptor in bad state */
61#define EREMCHG 78 /* Remote address changed */
62#define ELIBACC 79 /* Can not access a needed shared library */
63#define ELIBBAD 80 /* Accessing a corrupted shared library */
64#define ELIBSCN 81 /* .lib section in a.out corrupted */
65#define ELIBMAX 82 /* Attempting to link in too many shared libraries */
66#define ELIBEXEC 83 /* Cannot exec a shared library directly */
67#define EILSEQ 84 /* Illegal byte sequence */
68#define ERESTART 85 /* Interrupted system call should be restarted */
69#define ESTRPIPE 86 /* Streams pipe error */
70#define EUSERS 87 /* Too many users */
71#define ENOTSOCK 88 /* Socket operation on non-socket */
72#define EDESTADDRREQ 89 /* Destination address required */
73#define EMSGSIZE 90 /* Message too long */
74#define EPROTOTYPE 91 /* Protocol wrong type for socket */
75#define ENOPROTOOPT 92 /* Protocol not available */
76#define EPROTONOSUPPORT 93 /* Protocol not supported */
77#define ESOCKTNOSUPPORT 94 /* Socket type not supported */
78#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
79#define EPFNOSUPPORT 96 /* Protocol family not supported */
80#define EAFNOSUPPORT 97 /* Address family not supported by protocol */
81#define EADDRINUSE 98 /* Address already in use */
82#define EADDRNOTAVAIL 99 /* Cannot assign requested address */
83#define ENETDOWN 100 /* Network is down */
84#define ENETUNREACH 101 /* Network is unreachable */
85#define ENETRESET 102 /* Network dropped connection because of reset */
86#define ECONNABORTED 103 /* Software caused connection abort */
87#define ECONNRESET 104 /* Connection reset by peer */
88#define ENOBUFS 105 /* No buffer space available */
89#define EISCONN 106 /* Transport endpoint is already connected */
90#define ENOTCONN 107 /* Transport endpoint is not connected */
91#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
92#define ETOOMANYREFS 109 /* Too many references: cannot splice */
93#define ETIMEDOUT 110 /* Connection timed out */
94#define ECONNREFUSED 111 /* Connection refused */
95#define EHOSTDOWN 112 /* Host is down */
96#define EHOSTUNREACH 113 /* No route to host */
97#define EALREADY 114 /* Operation already in progress */
98#define EINPROGRESS 115 /* Operation now in progress */
99#define ESTALE 116 /* Stale file handle */
100#define EUCLEAN 117 /* Structure needs cleaning */
101#define ENOTNAM 118 /* Not a XENIX named type file */
102#define ENAVAIL 119 /* No XENIX semaphores available */
103#define EISNAM 120 /* Is a named type file */
104#define EREMOTEIO 121 /* Remote I/O error */
105#define EDQUOT 122 /* Quota exceeded */
106
107#define ENOMEDIUM 123 /* No medium found */
108#define EMEDIUMTYPE 124 /* Wrong medium type */
109#define ECANCELED 125 /* Operation Canceled */
110#define ENOKEY 126 /* Required key not available */
111#define EKEYEXPIRED 127 /* Key has expired */
112#define EKEYREVOKED 128 /* Key has been revoked */
113#define EKEYREJECTED 129 /* Key was rejected by service */
114
115/* for robust mutexes */
116#define EOWNERDEAD 130 /* Owner died */
117#define ENOTRECOVERABLE 131 /* State not recoverable */
118
119#define ERFKILL 132 /* Operation not possible due to RF-kill */
120
121#define EHWPOISON 133 /* Memory page has hardware error */
122
123#endif
tools/include/uapi/linux/perf_event.h+7−3
@@ -612,9 +612,12 @@ struct perf_event_mmap_page { · 611 unmodified lines
612 */612 */
613#define PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT (1 << 12)613#define PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT (1 << 12)
614/*614/*
615 * PERF_RECORD_MISC_MMAP_DATA and PERF_RECORD_MISC_COMM_EXEC are used on615 * Following PERF_RECORD_MISC_* are used on different
616 * different events so can reuse the same bit position.616 * events, so can reuse the same bit position:
617 * Ditto PERF_RECORD_MISC_SWITCH_OUT.617 *
618 * PERF_RECORD_MISC_MMAP_DATA - PERF_RECORD_MMAP* events
619 * PERF_RECORD_MISC_COMM_EXEC - PERF_RECORD_COMM event
620 * PERF_RECORD_MISC_SWITCH_OUT - PERF_RECORD_SWITCH* events
618 */621 */
619#define PERF_RECORD_MISC_MMAP_DATA (1 << 13)622#define PERF_RECORD_MISC_MMAP_DATA (1 << 13)
620#define PERF_RECORD_MISC_COMM_EXEC (1 << 13)623#define PERF_RECORD_MISC_COMM_EXEC (1 << 13)
@@ -864,6 +867,7 @@ enum perf_event_type { · 243 unmodified lines
864 * struct perf_event_header header;867 * struct perf_event_header header;
865 * u32 pid;868 * u32 pid;
866 * u32 tid;869 * u32 tid;
870 * struct sample_id sample_id;
867 * };871 * };
868 */872 */
869 PERF_RECORD_ITRACE_START = 12,873 PERF_RECORD_ITRACE_START = 12,
tools/lib/traceevent/event-parse.c+51−11
@@ -1094,7 +1094,7 @@ static enum event_type __read_token(char **tok) · 1093 unmodified lines
1094 if (strcmp(*tok, "LOCAL_PR_FMT") == 0) {1094 if (strcmp(*tok, "LOCAL_PR_FMT") == 0) {
1095 free(*tok);1095 free(*tok);
1096 *tok = NULL;1096 *tok = NULL;
1097 return force_token("\"\%s\" ", tok);1097 return force_token("\"%s\" ", tok);
1098 } else if (strcmp(*tok, "STA_PR_FMT") == 0) {1098 } else if (strcmp(*tok, "STA_PR_FMT") == 0) {
1099 free(*tok);1099 free(*tok);
1100 *tok = NULL;1100 *tok = NULL;
@@ -3970,6 +3970,11 @@ static void print_str_arg(struct trace_seq *s, void *data, int size, · 2869 unmodified lines
3970 val &= ~fval;3970 val &= ~fval;
3971 }3971 }
3972 }3972 }
3973 if (val) {
3974 if (print && arg->flags.delim)
3975 trace_seq_puts(s, arg->flags.delim);
3976 trace_seq_printf(s, "0x%llx", val);
3977 }
3973 break;3978 break;
3974 case PRINT_SYMBOL:3979 case PRINT_SYMBOL:
3975 val = eval_num_arg(data, size, event, arg->symbol.field);3980 val = eval_num_arg(data, size, event, arg->symbol.field);
@@ -3980,6 +3985,8 @@ static void print_str_arg(struct trace_seq *s, void *data, int size, · 4 unmodified lines
3980 break;3985 break;
3981 }3986 }
3982 }3987 }
3988 if (!flag)
3989 trace_seq_printf(s, "0x%llx", val);
3983 break;3990 break;
3984 case PRINT_HEX:3991 case PRINT_HEX:
3985 case PRINT_HEX_STR:3992 case PRINT_HEX_STR:
@@ -4293,6 +4300,26 @@ static struct print_arg *make_bprint_args(char *fmt, void *data, int size, struc · 307 unmodified lines
4293 goto process_again;4300 goto process_again;
4294 case 'p':4301 case 'p':
4295 ls = 1;4302 ls = 1;
4303 if (isalnum(ptr[1])) {
4304 ptr++;
4305 /* Check for special pointers */
4306 switch (*ptr) {
4307 case 's':
4308 case 'S':
4309 case 'f':
4310 case 'F':
4311 break;
4312 default:
4313 /*
4314 * Older kernels do not process
4315 * dereferenced pointers.
4316 * Only process if the pointer
4317 * value is a printable.
4318 */
4319 if (isprint(*(char *)bptr))
4320 goto process_string;
4321 }
4322 }
4296 /* fall through */4323 /* fall through */
4297 case 'd':4324 case 'd':
4298 case 'u':4325 case 'u':
@@ -4345,6 +4372,7 @@ static struct print_arg *make_bprint_args(char *fmt, void *data, int size, struc · 46 unmodified lines
4345 4372
4346 break;4373 break;
4347 case 's':4374 case 's':
4375 process_string:
4348 arg = alloc_arg();4376 arg = alloc_arg();
4349 if (!arg) {4377 if (!arg) {
4350 do_warning_event(event, "%s(%d): not enough memory!",4378 do_warning_event(event, "%s(%d): not enough memory!",
@@ -4949,21 +4977,27 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event · 598 unmodified lines
4949 else4977 else
4950 ls = 2;4978 ls = 2;
4951 4979
4952 if (*(ptr+1) == 'F' || *(ptr+1) == 'f' ||4980 if (isalnum(ptr[1]))
4953 *(ptr+1) == 'S' || *(ptr+1) == 's') {
4954 ptr++;4981 ptr++;
4982
4983 if (arg->type == PRINT_BSTRING) {
4984 trace_seq_puts(s, arg->string.string);
4985 break;
4986 }
4987
4988 if (*ptr == 'F' || *ptr == 'f' ||
4989 *ptr == 'S' || *ptr == 's') {
4955 show_func = *ptr;4990 show_func = *ptr;
4956 } else if (*(ptr+1) == 'M' || *(ptr+1) == 'm') {4991 } else if (*ptr == 'M' || *ptr == 'm') {
4957 print_mac_arg(s, *(ptr+1), data, size, event, arg);4992 print_mac_arg(s, *ptr, data, size, event, arg);
4958 ptr++;
4959 arg = arg->next;4993 arg = arg->next;
4960 break;4994 break;
4961 } else if (*(ptr+1) == 'I' || *(ptr+1) == 'i') {4995 } else if (*ptr == 'I' || *ptr == 'i') {
4962 int n;4996 int n;
4963 4997
4964 n = print_ip_arg(s, ptr+1, data, size, event, arg);4998 n = print_ip_arg(s, ptr, data, size, event, arg);
4965 if (n > 0) {4999 if (n > 0) {
4966 ptr += n;5000 ptr += n - 1;
4967 arg = arg->next;5001 arg = arg->next;
4968 break;5002 break;
4969 }5003 }
@@ -5532,8 +5566,14 @@ void pevent_print_event(struct pevent *pevent, struct trace_seq *s, · 562 unmodified lines
5532 5566
5533 event = pevent_find_event_by_record(pevent, record);5567 event = pevent_find_event_by_record(pevent, record);
5534 if (!event) {5568 if (!event) {
5535 do_warning("ug! no event found for type %d",5569 int i;
5536 trace_parse_common_type(pevent, record->data));5570 int type = trace_parse_common_type(pevent, record->data);
5571
5572 do_warning("ug! no event found for type %d", type);
5573 trace_seq_printf(s, "[UNKNOWN TYPE %d]", type);
5574 for (i = 0; i < record->size; i++)
5575 trace_seq_printf(s, " %02x",
5576 ((unsigned char *)record->data)[i]);
5537 return;5577 return;
5538 }5578 }
5539 5579
tools/lib/traceevent/event-plugin.c+9−15
@@ -120,12 +120,12 @@ char **traceevent_plugin_list_options(void) · 119 unmodified lines
120 for (op = reg->options; op->name; op++) {120 for (op = reg->options; op->name; op++) {
121 char *alias = op->plugin_alias ? op->plugin_alias : op->file;121 char *alias = op->plugin_alias ? op->plugin_alias : op->file;
122 char **temp = list;122 char **temp = list;
123 int ret;
123 124
124 name = malloc(strlen(op->name) + strlen(alias) + 2);125 ret = asprintf(&name, "%s:%s", alias, op->name);
125 if (!name)126 if (ret < 0)
126 goto err;127 goto err;
127 128
128 sprintf(name, "%s:%s", alias, op->name);
129 list = realloc(list, count + 2);129 list = realloc(list, count + 2);
130 if (!list) {130 if (!list) {
131 list = temp;131 list = temp;
@@ -290,17 +290,14 @@ load_plugin(struct pevent *pevent, const char *path, · 158 unmodified lines
290 const char *alias;290 const char *alias;
291 char *plugin;291 char *plugin;
292 void *handle;292 void *handle;
293 int ret;
293 294
294 plugin = malloc(strlen(path) + strlen(file) + 2);295 ret = asprintf(&plugin, "%s/%s", path, file);
295 if (!plugin) {296 if (ret < 0) {
296 warning("could not allocate plugin memory\n");297 warning("could not allocate plugin memory\n");
297 return;298 return;
298 }299 }
299 300
300 strcpy(plugin, path);
301 strcat(plugin, "/");
302 strcat(plugin, file);
303
304 handle = dlopen(plugin, RTLD_NOW | RTLD_GLOBAL);301 handle = dlopen(plugin, RTLD_NOW | RTLD_GLOBAL);
305 if (!handle) {302 if (!handle) {
306 warning("could not load plugin '%s'\n%s\n",303 warning("could not load plugin '%s'\n%s\n",
@@ -391,6 +388,7 @@ load_plugins(struct pevent *pevent, const char *suffix, · 84 unmodified lines
391 char *home;388 char *home;
392 char *path;389 char *path;
393 char *envdir;390 char *envdir;
391 int ret;
394 392
395 if (pevent->flags & PEVENT_DISABLE_PLUGINS)393 if (pevent->flags & PEVENT_DISABLE_PLUGINS)
396 return;394 return;
@@ -421,16 +419,12 @@ load_plugins(struct pevent *pevent, const char *suffix, · 24 unmodified lines
421 if (!home)419 if (!home)
422 return;420 return;
423 421
424 path = malloc(strlen(home) + strlen(LOCAL_PLUGIN_DIR) + 2);422 ret = asprintf(&path, "%s/%s", home, LOCAL_PLUGIN_DIR);
425 if (!path) {423 if (ret < 0) {
426 warning("could not allocate plugin memory\n");424 warning("could not allocate plugin memory\n");
427 return;425 return;
428 }426 }
429 427
430 strcpy(path, home);
431 strcat(path, "/");
432 strcat(path, LOCAL_PLUGIN_DIR);
433
434 load_plugins_dir(pevent, suffix, path, load_plugin, data);428 load_plugins_dir(pevent, suffix, path, load_plugin, data);
435 429
436 free(path);430 free(path);
tools/lib/traceevent/kbuffer-parse.c+2−2
@@ -24,8 +24,8 @@ · 23 unmodified lines
24 24
25#include "kbuffer.h"25#include "kbuffer.h"
26 26
27#define MISSING_EVENTS (1 << 31)27#define MISSING_EVENTS (1UL << 31)
28#define MISSING_STORED (1 << 30)28#define MISSING_STORED (1UL << 30)
29 29
30#define COMMIT_MASK ((1 << 27) - 1)30#define COMMIT_MASK ((1 << 27) - 1)
31 31
tools/lib/traceevent/parse-filter.c+14−8
@@ -287,12 +287,10 @@ find_event(struct pevent *pevent, struct event_list **events, · 286 unmodified lines
287 sys_name = NULL;287 sys_name = NULL;
288 }288 }
289 289
290 reg = malloc(strlen(event_name) + 3);290 ret = asprintf(&reg, "^%s$", event_name);
291 if (reg == NULL)291 if (ret < 0)
292 return PEVENT_ERRNO__MEM_ALLOC_FAILED;292 return PEVENT_ERRNO__MEM_ALLOC_FAILED;
293 293
294 sprintf(reg, "^%s$", event_name);
295
296 ret = regcomp(&ereg, reg, REG_ICASE|REG_NOSUB);294 ret = regcomp(&ereg, reg, REG_ICASE|REG_NOSUB);
297 free(reg);295 free(reg);
298 296
@@ -300,13 +298,12 @@ find_event(struct pevent *pevent, struct event_list **events, · 1 unmodified line
300 return PEVENT_ERRNO__INVALID_EVENT_NAME;298 return PEVENT_ERRNO__INVALID_EVENT_NAME;
301 299
302 if (sys_name) {300 if (sys_name) {
303 reg = malloc(strlen(sys_name) + 3);301 ret = asprintf(&reg, "^%s$", sys_name);
304 if (reg == NULL) {302 if (ret < 0) {
305 regfree(&ereg);303 regfree(&ereg);
306 return PEVENT_ERRNO__MEM_ALLOC_FAILED;304 return PEVENT_ERRNO__MEM_ALLOC_FAILED;
307 }305 }
308 306
309 sprintf(reg, "^%s$", sys_name);
310 ret = regcomp(&sreg, reg, REG_ICASE|REG_NOSUB);307 ret = regcomp(&sreg, reg, REG_ICASE|REG_NOSUB);
311 free(reg);308 free(reg);
312 if (ret) {309 if (ret) {
@@ -1634,6 +1631,7 @@ int pevent_filter_clear_trivial(struct event_filter *filter, · 1321 unmodified lines
1634 case FILTER_TRIVIAL_FALSE:1631 case FILTER_TRIVIAL_FALSE:
1635 if (filter_type->filter->boolean.value)1632 if (filter_type->filter->boolean.value)
1636 continue;1633 continue;
1634 break;
1637 case FILTER_TRIVIAL_TRUE:1635 case FILTER_TRIVIAL_TRUE:
1638 if (!filter_type->filter->boolean.value)1636 if (!filter_type->filter->boolean.value)
1639 continue;1637 continue;
@@ -1879,17 +1877,25 @@ static const char *get_field_str(struct filter_arg *arg, struct pevent_record *r · 239 unmodified lines
1879 struct pevent *pevent;1877 struct pevent *pevent;
1880 unsigned long long addr;1878 unsigned long long addr;
1881 const char *val = NULL;1879 const char *val = NULL;
1880 unsigned int size;
1882 char hex[64];1881 char hex[64];
1883 1882
1884 /* If the field is not a string convert it */1883 /* If the field is not a string convert it */
1885 if (arg->str.field->flags & FIELD_IS_STRING) {1884 if (arg->str.field->flags & FIELD_IS_STRING) {
1886 val = record->data + arg->str.field->offset;1885 val = record->data + arg->str.field->offset;
1886 size = arg->str.field->size;
1887
1888 if (arg->str.field->flags & FIELD_IS_DYNAMIC) {
1889 addr = *(unsigned int *)val;
1890 val = record->data + (addr & 0xffff);
1891 size = addr >> 16;
1892 }
1887 1893
1888 /*1894 /*
1889 * We need to copy the data since we can't be sure the field1895 * We need to copy the data since we can't be sure the field
1890 * is null terminated.1896 * is null terminated.
1891 */1897 */
1892 if (*(val + arg->str.field->size - 1)) {1898 if (*(val + size - 1)) {
1893 /* copy it */1899 /* copy it */
1894 memcpy(arg->str.buffer, val, arg->str.field->size);1900 memcpy(arg->str.buffer, val, arg->str.field->size);
1895 /* the buffer is already NULL terminated */1901 /* the buffer is already NULL terminated */
tools/perf/Build+2−2
@@ -25,7 +25,7 @@ perf-y += builtin-data.o · 24 unmodified lines
25perf-y += builtin-version.o25perf-y += builtin-version.o
26perf-y += builtin-c2c.o26perf-y += builtin-c2c.o
27 27
28perf-$(CONFIG_AUDIT) += builtin-trace.o28perf-$(CONFIG_TRACE) += builtin-trace.o
29perf-$(CONFIG_LIBELF) += builtin-probe.o29perf-$(CONFIG_LIBELF) += builtin-probe.o
30 30
31perf-y += bench/31perf-y += bench/
@@ -50,6 +50,6 @@ libperf-y += util/ · 18 unmodified lines
50libperf-y += arch/50libperf-y += arch/
51libperf-y += ui/51libperf-y += ui/
52libperf-y += scripts/52libperf-y += scripts/
53libperf-$(CONFIG_AUDIT) += trace/beauty/53libperf-$(CONFIG_TRACE) += trace/beauty/
54 54
55gtk-y += ui/gtk/55gtk-y += ui/gtk/
tools/perf/Documentation/perf-buildid-cache.txt+3−0
@@ -24,6 +24,9 @@ OPTIONS · 23 unmodified lines
24-a::24-a::
25--add=::25--add=::
26 Add specified file to the cache.26 Add specified file to the cache.
27-f::
28--force::
29 Don't complain, do it.
27-k::30-k::
28--kcore::31--kcore::
29 Add specified kcore file to the cache. For the current host that is32 Add specified kcore file to the cache. For the current host that is
tools/perf/Documentation/perf-evlist.txt+4−0
@@ -20,6 +20,10 @@ OPTIONS · 19 unmodified lines
20--input=::20--input=::
21 Input file name. (default: perf.data unless stdin is a fifo)21 Input file name. (default: perf.data unless stdin is a fifo)
22 22
23-f::
24--force::
25 Don't complain, do it.
26
23-F::27-F::
24--freq=::28--freq=::
25 Show just the sample frequency used for each event.29 Show just the sample frequency used for each event.
tools/perf/Documentation/perf-inject.txt+4−0
@@ -60,6 +60,10 @@ include::itrace.txt[] · 59 unmodified lines
60 found in the jitdumps files captured in the input perf.data file. Use this option60 found in the jitdumps files captured in the input perf.data file. Use this option
61 if you are monitoring environment using JIT runtimes, such as Java, DART or V8.61 if you are monitoring environment using JIT runtimes, such as Java, DART or V8.
62 62
63-f::
64--force::
65 Don't complain, do it.
66
63SEE ALSO67SEE ALSO
64--------68--------
65linkperf:perf-record[1], linkperf:perf-report[1], linkperf:perf-archive[1]69linkperf:perf-record[1], linkperf:perf-report[1], linkperf:perf-archive[1]
tools/perf/Documentation/perf-lock.txt+4−0
@@ -42,6 +42,10 @@ COMMON OPTIONS · 41 unmodified lines
42--dump-raw-trace::42--dump-raw-trace::
43 Dump raw trace in ASCII.43 Dump raw trace in ASCII.
44 44
45-f::
46--force::
47 Don't complan, do it.
48
45REPORT OPTIONS49REPORT OPTIONS
46--------------50--------------
47 51
tools/perf/Documentation/perf-probe.txt+17−1
@@ -170,7 +170,7 @@ Probe points are defined by following syntax. · 169 unmodified lines
170 or,170 or,
171 sdt_PROVIDER:SDTEVENT171 sdt_PROVIDER:SDTEVENT
172 172
173'EVENT' specifies the name of new event, if omitted, it will be set the name of the probed function. You can also specify a group name by 'GROUP', if omitted, set 'probe' is used for kprobe and 'probe_<bin>' is used for uprobe.173'EVENT' specifies the name of new event, if omitted, it will be set the name of the probed function, and for return probes, a "\_\_return" suffix is automatically added to the function name. You can also specify a group name by 'GROUP', if omitted, set 'probe' is used for kprobe and 'probe_<bin>' is used for uprobe.
174Note that using existing group name can conflict with other events. Especially, using the group name reserved for kernel modules can hide embedded events in the174Note that using existing group name can conflict with other events. Especially, using the group name reserved for kernel modules can hide embedded events in the
175modules.175modules.
176'FUNC' specifies a probed function name, and it may have one of the following options; '+OFFS' is the offset from function entry address in bytes, ':RLN' is the relative-line number from function entry line, and '%return' means that it probes function return. And ';PTN' means lazy matching pattern (see LAZY MATCHING). Note that ';PTN' must be the end of the probe point definition. In addition, '@SRC' specifies a source file which has that function.176'FUNC' specifies a probed function name, and it may have one of the following options; '+OFFS' is the offset from function entry address in bytes, ':RLN' is the relative-line number from function entry line, and '%return' means that it probes function return. And ';PTN' means lazy matching pattern (see LAZY MATCHING). Note that ';PTN' must be the end of the probe point definition. In addition, '@SRC' specifies a source file which has that function.
@@ -182,6 +182,14 @@ Note that before using the SDT event, the target binary (on which SDT events are · 5 unmodified lines
182For details of the SDT, see below.182For details of the SDT, see below.
183https://sourceware.org/gdb/onlinedocs/gdb/Static-Probe-Points.html183https://sourceware.org/gdb/onlinedocs/gdb/Static-Probe-Points.html
184 184
185ESCAPED CHARACTER
186-----------------
187
188In the probe syntax, '=', '@', '+', ':' and ';' are treated as a special character. You can use a backslash ('\') to escape the special characters.
189This is useful if you need to probe on a specific versioned symbols, like @GLIBC_... suffixes, or also you need to specify a source file which includes the special characters.
190Note that usually single backslash is consumed by shell, so you might need to pass double backslash (\\) or wrapping with single quotes (\'AAA\@BBB').
191See EXAMPLES how it is used.
192
185PROBE ARGUMENT193PROBE ARGUMENT
186--------------194--------------
187Each probe argument follows below syntax.195Each probe argument follows below syntax.
@@ -277,6 +285,14 @@ Add a USDT probe to a target process running in a different mount namespace · 89 unmodified lines
277 285
278 ./perf probe --target-ns <target pid> -x /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre/lib/amd64/server/libjvm.so %sdt_hotspot:thread__sleep__end286 ./perf probe --target-ns <target pid> -x /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre/lib/amd64/server/libjvm.so %sdt_hotspot:thread__sleep__end
279 287
288Add a probe on specific versioned symbol by backslash escape
289
290 ./perf probe -x /lib64/libc-2.25.so 'malloc_get_state\@GLIBC_2.2.5'
291
292Add a probe in a source file using special characters by backslash escape
293
294 ./perf probe -x /opt/test/a.out 'foo\+bar.c:4'
295
280 296
281SEE ALSO297SEE ALSO
282--------298--------
tools/perf/Documentation/perf-record.txt+3−0
@@ -430,6 +430,9 @@ Configure all used events to run in user space. · 429 unmodified lines
430--timestamp-filename430--timestamp-filename
431Append timestamp to output file name.431Append timestamp to output file name.
432 432
433--timestamp-boundary::
434Record timestamp boundary (time of first/last samples).
435
433--switch-output[=mode]::436--switch-output[=mode]::
434Generate multiple perf.data files, timestamp prefixed, switching to a new one437Generate multiple perf.data files, timestamp prefixed, switching to a new one
435based on 'mode' value:438based on 'mode' value:
tools/perf/Documentation/perf-report.txt+36−1
@@ -402,6 +402,26 @@ OPTIONS · 401 unmodified lines
402 stop time is not given (i.e, time string is 'x.y,') then analysis goes402 stop time is not given (i.e, time string is 'x.y,') then analysis goes
403 to end of file.403 to end of file.
404 404
405 Also support time percent with multiple time range. Time string is
406 'a%/n,b%/m,...' or 'a%-b%,c%-%d,...'.
407
408 For example:
409 Select the second 10% time slice:
410
411 perf report --time 10%/2
412
413 Select from 0% to 10% time slice:
414
415 perf report --time 0%-10%
416
417 Select the first and second 10% time slices:
418
419 perf report --time 10%/1,10%/2
420
421 Select from 0% to 10% and 30% to 40% slices:
422
423 perf report --time 0%-10%,30%-40%
424
405--itrace::425--itrace::
406 Options for decoding instruction tracing data. The options are:426 Options for decoding instruction tracing data. The options are:
407 427
@@ -437,8 +457,23 @@ include::itrace.txt[] · 29 unmodified lines
437 will be printed. Each entry is function name or file/line. Enabled by457 will be printed. Each entry is function name or file/line. Enabled by
438 default, disable with --no-inline.458 default, disable with --no-inline.
439 459
460--mmaps::
461 Show --tasks output plus mmap information in a format similar to
462 /proc/<PID>/maps.
463
464 Please note that not all mmaps are stored, options affecting which ones
465 are include 'perf record --data', for instance.
466
467--stats::
468 Display overall events statistics without any further processing.
469 (like the one at the end of the perf report -D command)
470
471--tasks::
472 Display monitored tasks stored in perf data. Displaying pid/tid/ppid
473 plus the command string aligned to distinguish parent and child tasks.
474
440include::callchain-overhead-calculation.txt[]475include::callchain-overhead-calculation.txt[]
441 476
442SEE ALSO477SEE ALSO
443--------478--------
444linkperf:perf-stat[1], linkperf:perf-annotate[1]479linkperf:perf-stat[1], linkperf:perf-annotate[1], linkperf:perf-record[1]
tools/perf/Documentation/perf-sched.txt+4−0
@@ -74,6 +74,10 @@ OPTIONS · 73 unmodified lines
74--dump-raw-trace=::74--dump-raw-trace=::
75 Display verbose dump of the sched data.75 Display verbose dump of the sched data.
76 76
77-f::
78--force::
79 Don't complain, do it.
80
77OPTIONS for 'perf sched map'81OPTIONS for 'perf sched map'
78----------------------------82----------------------------
79 83
tools/perf/Documentation/perf-script.txt+46−1
@@ -117,7 +117,7 @@ OPTIONS · 116 unmodified lines
117 Comma separated list of fields to print. Options are:117 Comma separated list of fields to print. Options are:
118 comm, tid, pid, time, cpu, event, trace, ip, sym, dso, addr, symoff,118 comm, tid, pid, time, cpu, event, trace, ip, sym, dso, addr, symoff,
119 srcline, period, iregs, uregs, brstack, brstacksym, flags, bpf-output, brstackinsn,119 srcline, period, iregs, uregs, brstack, brstacksym, flags, bpf-output, brstackinsn,
120 brstackoff, callindent, insn, insnlen, synth, phys_addr.120 brstackoff, callindent, insn, insnlen, synth, phys_addr, metric, misc.
121 Field list can be prepended with the type, trace, sw or hw,121 Field list can be prepended with the type, trace, sw or hw,
122 to indicate to which event type the field list applies.122 to indicate to which event type the field list applies.
123 e.g., -F sw:comm,tid,time,ip,sym and -F trace:time,cpu,trace123 e.g., -F sw:comm,tid,time,ip,sym and -F trace:time,cpu,trace
@@ -217,6 +217,32 @@ OPTIONS · 93 unmodified lines
217 217
218 The brstackoff field will print an offset into a specific dso/binary.218 The brstackoff field will print an offset into a specific dso/binary.
219 219
220 With the metric option perf script can compute metrics for
221 sampling periods, similar to perf stat. This requires
222 specifying a group with multiple metrics with the :S option
223 for perf record. perf will sample on the first event, and
224 compute metrics for all the events in the group. Please note
225 that the metric computed is averaged over the whole sampling
226 period, not just for the sample point.
227
228 For sample events it's possible to display misc field with -F +misc option,
229 following letters are displayed for each bit:
230
231 PERF_RECORD_MISC_KERNEL K
232 PERF_RECORD_MISC_USER U
233 PERF_RECORD_MISC_HYPERVISOR H
234 PERF_RECORD_MISC_GUEST_KERNEL G
235 PERF_RECORD_MISC_GUEST_USER g
236 PERF_RECORD_MISC_MMAP_DATA* M
237 PERF_RECORD_MISC_COMM_EXEC E
238 PERF_RECORD_MISC_SWITCH_OUT S
239
240 $ perf script -F +misc ...
241 sched-messaging 1414 K 28690.636582: 4590 cycles ...
242 sched-messaging 1407 U 28690.636600: 325620 cycles ...
243 sched-messaging 1414 K 28690.636608: 19473 cycles ...
244 misc field ___________/
245
220-k::246-k::
221--vmlinux=<file>::247--vmlinux=<file>::
222 vmlinux pathname248 vmlinux pathname
@@ -274,6 +300,9 @@ OPTIONS · 51 unmodified lines
274 Display context switch events i.e. events of type PERF_RECORD_SWITCH or300 Display context switch events i.e. events of type PERF_RECORD_SWITCH or
275 PERF_RECORD_SWITCH_CPU_WIDE.301 PERF_RECORD_SWITCH_CPU_WIDE.
276 302
303--show-lost-events
304 Display lost events i.e. events of type PERF_RECORD_LOST.
305
277--demangle::306--demangle::
278 Demangle symbol names to human readable form. It's enabled by default,307 Demangle symbol names to human readable form. It's enabled by default,
279 disable with --no-demangle.308 disable with --no-demangle.
@@ -321,6 +350,22 @@ include::itrace.txt[] · 41 unmodified lines
321 stop time is not given (i.e, time string is 'x.y,') then analysis goes350 stop time is not given (i.e, time string is 'x.y,') then analysis goes
322 to end of file.351 to end of file.
323 352
353 Also support time percent with multipe time range. Time string is
354 'a%/n,b%/m,...' or 'a%-b%,c%-%d,...'.
355
356 For example:
357 Select the second 10% time slice:
358 perf script --time 10%/2
359
360 Select from 0% to 10% time slice:
361 perf script --time 0%-10%
362
363 Select the first and second 10% time slices:
364 perf script --time 10%/1,10%/2
365
366 Select from 0% to 10% and 30% to 40% slices:
367 perf script --time 0%-10%,30%-40%
368
324--max-blocks::369--max-blocks::
325 Set the maximum number of program blocks to print with brstackasm for370 Set the maximum number of program blocks to print with brstackasm for
326 each sample.371 each sample.
tools/perf/Documentation/perf-timechart.txt+3−1
@@ -50,7 +50,9 @@ TIMECHART OPTIONS · 49 unmodified lines
50-p::50-p::
51--process::51--process::
52 Select the processes to display, by name or PID52 Select the processes to display, by name or PID
53 53-f::
54--force::
55 Don't complain, do it.
54--symfs=<directory>::56--symfs=<directory>::
55 Look for files with symbols relative to this directory.57 Look for files with symbols relative to this directory.
56-n::58-n::
tools/perf/Documentation/perf-top.txt+6−0
@@ -268,6 +268,12 @@ INTERACTIVE PROMPTING KEYS · 267 unmodified lines
268[S]::268[S]::
269 Stop annotation, return to full profile display.269 Stop annotation, return to full profile display.
270 270
271[K]::
272 Hide kernel symbols.
273
274[U]::
275 Hide user symbols.
276
271[z]::277[z]::
272 Toggle event count zeroing across display updates.278 Toggle event count zeroing across display updates.
273 279
tools/perf/Documentation/perf-trace.txt+14−6
@@ -86,18 +86,18 @@ comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0- · 85 unmodified lines
86In per-thread mode with inheritance mode on (default), Events are captured only when86In per-thread mode with inheritance mode on (default), Events are captured only when
87the thread executes on the designated CPUs. Default is to monitor all CPUs.87the thread executes on the designated CPUs. Default is to monitor all CPUs.
88 88
89--duration:89--duration::
90 Show only events that had a duration greater than N.M ms.90 Show only events that had a duration greater than N.M ms.
91 91
92--sched:92--sched::
93 Accrue thread runtime and provide a summary at the end of the session.93 Accrue thread runtime and provide a summary at the end of the session.
94 94
95-i95-i::
96--input96--input::
97 Process events from a given perf data file.97 Process events from a given perf data file.
98 98
99-T99-T::
100--time100--time::
101 Print full timestamp rather time relative to first sample.101 Print full timestamp rather time relative to first sample.
102 102
103--comm::103--comm::
@@ -117,6 +117,10 @@ the thread executes on the designated CPUs. Default is to monitor all CPUs. · 13 unmodified lines
117 Show tool stats such as number of times fd->pathname was discovered thru117 Show tool stats such as number of times fd->pathname was discovered thru
118 hooking the open syscall return + vfs_getname or via reading /proc/pid/fd, etc.118 hooking the open syscall return + vfs_getname or via reading /proc/pid/fd, etc.
119 119
120-f::
121--force::
122 Don't complain, do it.
123
120-F=[all|min|maj]::124-F=[all|min|maj]::
121--pf=[all|min|maj]::125--pf=[all|min|maj]::
122 Trace pagefaults. Optionally, you can specify whether you want minor,126 Trace pagefaults. Optionally, you can specify whether you want minor,
@@ -159,6 +163,10 @@ the thread executes on the designated CPUs. Default is to monitor all CPUs. · 36 unmodified lines
159 Implies '--call-graph dwarf' when --call-graph not present on the163 Implies '--call-graph dwarf' when --call-graph not present on the
160 command line, on systems where DWARF unwinding was built in.164 command line, on systems where DWARF unwinding was built in.
161 165
166--print-sample::
167 Print the PERF_RECORD_SAMPLE PERF_SAMPLE_ info for the
168 raw_syscalls:sys_{enter,exit} tracepoints, for debugging.
169
162--proc-map-timeout::170--proc-map-timeout::
163 When processing pre-existing threads /proc/XXX/mmap, it may take a long time,171 When processing pre-existing threads /proc/XXX/mmap, it may take a long time,
164 because the file may be huge. A time out is needed in such cases.172 because the file may be huge. A time out is needed in such cases.
tools/perf/Documentation/perf.data-file-format.txt+27−0
@@ -238,6 +238,33 @@ struct auxtrace_index { · 237 unmodified lines
238 struct auxtrace_index_entry entries[PERF_AUXTRACE_INDEX_ENTRY_COUNT];238 struct auxtrace_index_entry entries[PERF_AUXTRACE_INDEX_ENTRY_COUNT];
239};239};
240 240
241 HEADER_STAT = 19,
242
243This is merely a flag signifying that the data section contains data
244recorded from perf stat record.
245
246 HEADER_CACHE = 20,
247
248Description of the cache hierarchy. Based on the Linux sysfs format
249in /sys/devices/system/cpu/cpu*/cache/
250
251 u32 version Currently always 1
252 u32 number_of_cache_levels
253
254struct {
255 u32 level;
256 u32 line_size;
257 u32 sets;
258 u32 ways;
259 struct perf_header_string type;
260 struct perf_header_string size;
261 struct perf_header_string map;
262}[number_of_cache_levels];
263
264 HEADER_SAMPLE_TIME = 21,
265
266Two uint64_t for the time of first sample and the time of last sample.
267
241 other bits are reserved and should ignored for now268 other bits are reserved and should ignored for now
242 HEADER_FEAT_BITS = 256,269 HEADER_FEAT_BITS = 256,
243 270
tools/perf/Documentation/tips.txt+2−0
@@ -32,3 +32,5 @@ Order by the overhead of source file name and line number: perf report -s srclin · 31 unmodified lines
32System-wide collection from all CPUs: perf record -a32System-wide collection from all CPUs: perf record -a
33Show current config key-value pairs: perf config --list33Show current config key-value pairs: perf config --list
34Show user configuration overrides: perf config --user --list34Show user configuration overrides: perf config --user --list
35To add Node.js USDT(User-Level Statically Defined Tracing): perf buildid-cache --add `which node`
36To report cacheline events from previous recording: perf c2c report
tools/perf/Makefile.config+55−10
@@ -22,6 +22,7 @@ include $(srctree)/tools/scripts/Makefile.arch · 21 unmodified lines
22$(call detected_var,SRCARCH)22$(call detected_var,SRCARCH)
23 23
24NO_PERF_REGS := 124NO_PERF_REGS := 1
25NO_SYSCALL_TABLE := 1
25 26
26# Additional ARCH settings for ppc27# Additional ARCH settings for ppc
27ifeq ($(SRCARCH),powerpc)28ifeq ($(SRCARCH),powerpc)
@@ -33,7 +34,8 @@ endif · 5 unmodified lines
33ifeq ($(SRCARCH),x86)34ifeq ($(SRCARCH),x86)
34 $(call detected,CONFIG_X86)35 $(call detected,CONFIG_X86)
35 ifeq (${IS_64_BIT}, 1)36 ifeq (${IS_64_BIT}, 1)
36 CFLAGS += -DHAVE_ARCH_X86_64_SUPPORT -DHAVE_SYSCALL_TABLE -I$(OUTPUT)arch/x86/include/generated37 NO_SYSCALL_TABLE := 0
38 CFLAGS += -DHAVE_ARCH_X86_64_SUPPORT -I$(OUTPUT)arch/x86/include/generated
37 ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S39 ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S
38 LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind -llzma40 LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind -llzma
39 $(call detected,CONFIG_X86_64)41 $(call detected,CONFIG_X86_64)
@@ -55,12 +57,18 @@ endif · 15 unmodified lines
55 57
56ifeq ($(ARCH),s390)58ifeq ($(ARCH),s390)
57 NO_PERF_REGS := 059 NO_PERF_REGS := 0
60 NO_SYSCALL_TABLE := 0
61 CFLAGS += -fPIC -I$(OUTPUT)arch/s390/include/generated
58endif62endif
59 63
60ifeq ($(NO_PERF_REGS),0)64ifeq ($(NO_PERF_REGS),0)
61 $(call detected,CONFIG_PERF_REGS)65 $(call detected,CONFIG_PERF_REGS)
62endif66endif
63 67
68ifneq ($(NO_SYSCALL_TABLE),1)
69 CFLAGS += -DHAVE_SYSCALL_TABLE
70endif
71
64# So far there's only x86 and arm libdw unwind support merged in perf.72# So far there's only x86 and arm libdw unwind support merged in perf.
65# Disable it on all other architectures in case libdw unwind73# Disable it on all other architectures in case libdw unwind
66# support is detected in system. Add supported architectures74# support is detected in system. Add supported architectures
@@ -97,6 +105,16 @@ FEATURE_CHECK_LDFLAGS-libunwind = $(LIBUNWIND_LDFLAGS) $(LIBUNWIND_LIBS) · 30 unmodified lines
97FEATURE_CHECK_CFLAGS-libunwind-debug-frame = $(LIBUNWIND_CFLAGS)105FEATURE_CHECK_CFLAGS-libunwind-debug-frame = $(LIBUNWIND_CFLAGS)
98FEATURE_CHECK_LDFLAGS-libunwind-debug-frame = $(LIBUNWIND_LDFLAGS) $(LIBUNWIND_LIBS)106FEATURE_CHECK_LDFLAGS-libunwind-debug-frame = $(LIBUNWIND_LDFLAGS) $(LIBUNWIND_LIBS)
99 107
108ifdef CSINCLUDES
109 LIBOPENCSD_CFLAGS := -I$(CSINCLUDES)
110endif
111OPENCSDLIBS := -lopencsd_c_api -lopencsd
112ifdef CSLIBS
113 LIBOPENCSD_LDFLAGS := -L$(CSLIBS)
114endif
115FEATURE_CHECK_CFLAGS-libopencsd := $(LIBOPENCSD_CFLAGS)
116FEATURE_CHECK_LDFLAGS-libopencsd := $(LIBOPENCSD_LDFLAGS) $(OPENCSDLIBS)
117
100ifeq ($(NO_PERF_REGS),0)118ifeq ($(NO_PERF_REGS),0)
101 CFLAGS += -DHAVE_PERF_REGS_SUPPORT119 CFLAGS += -DHAVE_PERF_REGS_SUPPORT
102endif120endif
@@ -265,6 +283,10 @@ ifeq ($(feature-pthread-attr-setaffinity-np), 1) · 162 unmodified lines
265 CFLAGS += -DHAVE_PTHREAD_ATTR_SETAFFINITY_NP283 CFLAGS += -DHAVE_PTHREAD_ATTR_SETAFFINITY_NP
266endif284endif
267 285
286ifeq ($(feature-pthread-barrier), 1)
287 CFLAGS += -DHAVE_PTHREAD_BARRIER
288endif
289
268ifndef NO_BIONIC290ifndef NO_BIONIC
269 $(call feature_check,bionic)291 $(call feature_check,bionic)
270 ifeq ($(feature-bionic), 1)292 ifeq ($(feature-bionic), 1)
@@ -341,6 +363,21 @@ ifeq ($(feature-setns), 1) · 70 unmodified lines
341 $(call detected,CONFIG_SETNS)363 $(call detected,CONFIG_SETNS)
342endif364endif
343 365
366ifndef NO_CORESIGHT
367 ifeq ($(feature-libopencsd), 1)
368 CFLAGS += -DHAVE_CSTRACE_SUPPORT $(LIBOPENCSD_CFLAGS)
369 LDFLAGS += $(LIBOPENCSD_LDFLAGS)
370 EXTLIBS += $(OPENCSDLIBS)
371 $(call detected,CONFIG_LIBOPENCSD)
372 ifdef CSTRACE_RAW
373 CFLAGS += -DCS_DEBUG_RAW
374 ifeq (${CSTRACE_RAW}, packed)
375 CFLAGS += -DCS_RAW_PACKED
376 endif
377 endif
378 endif
379endif
380
344ifndef NO_LIBELF381ifndef NO_LIBELF
345 CFLAGS += -DHAVE_LIBELF_SUPPORT382 CFLAGS += -DHAVE_LIBELF_SUPPORT
346 EXTLIBS += -lelf383 EXTLIBS += -lelf
@@ -519,14 +556,18 @@ ifndef NO_LIBUNWIND · 172 unmodified lines
519 EXTLIBS += $(EXTLIBS_LIBUNWIND)556 EXTLIBS += $(EXTLIBS_LIBUNWIND)
520endif557endif
521 558
522ifndef NO_LIBAUDIT559ifeq ($(NO_SYSCALL_TABLE),0)
523 ifneq ($(feature-libaudit), 1)560 $(call detected,CONFIG_TRACE)
524 msg := $(warning No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev);561else
525 NO_LIBAUDIT := 1562 ifndef NO_LIBAUDIT
526 else563 ifneq ($(feature-libaudit), 1)
527 CFLAGS += -DHAVE_LIBAUDIT_SUPPORT564 msg := $(warning No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev);
528 EXTLIBS += -laudit565 NO_LIBAUDIT := 1
529 $(call detected,CONFIG_AUDIT)566 else
567 CFLAGS += -DHAVE_LIBAUDIT_SUPPORT
568 EXTLIBS += -laudit
569 $(call detected,CONFIG_TRACE)
570 endif
530 endif571 endif
531endif572endif
532 573
@@ -768,7 +809,7 @@ else · 235 unmodified lines
768 NO_PERF_READ_VDSOX32 := 1809 NO_PERF_READ_VDSOX32 := 1
769endif810endif
770 811
771ifdef LIBBABELTRACE812ifndef NO_LIBBABELTRACE
772 $(call feature_check,libbabeltrace)813 $(call feature_check,libbabeltrace)
773 ifeq ($(feature-libbabeltrace), 1)814 ifeq ($(feature-libbabeltrace), 1)
774 CFLAGS += -DHAVE_LIBBABELTRACE_SUPPORT $(LIBBABELTRACE_CFLAGS)815 CFLAGS += -DHAVE_LIBBABELTRACE_SUPPORT $(LIBBABELTRACE_CFLAGS)
@@ -935,6 +976,10 @@ define print_var_code · 160 unmodified lines
935endef976endef
936 977
937ifeq ($(VF),1)978ifeq ($(VF),1)
979 # Display EXTRA features which are detected manualy
980 # from here with feature_check call and thus cannot
981 # be partof global state output.
982 $(foreach feat,$(FEATURE_TESTS_EXTRA),$(call feature_print_status,$(feat),))
938 $(call print_var,prefix)983 $(call print_var,prefix)
939 $(call print_var,bindir)984 $(call print_var,bindir)
940 $(call print_var,libdir)985 $(call print_var,libdir)
tools/perf/Makefile.perf+14−3
@@ -77,7 +77,7 @@ include ../scripts/utilities.mak · 76 unmodified lines
77#77#
78# Define NO_ZLIB if you do not want to support compressed kernel modules78# Define NO_ZLIB if you do not want to support compressed kernel modules
79#79#
80# Define LIBBABELTRACE if you DO want libbabeltrace support80# Define NO_LIBBABELTRACE if you do not want libbabeltrace support
81# for CTF data format.81# for CTF data format.
82#82#
83# Define NO_LZMA if you do not want to support compressed (xz) kernel modules83# Define NO_LZMA if you do not want to support compressed (xz) kernel modules
@@ -98,6 +98,8 @@ include ../scripts/utilities.mak · 14 unmodified lines
98# When selected, pass LLVM_CONFIG=/path/to/llvm-config to `make' if98# When selected, pass LLVM_CONFIG=/path/to/llvm-config to `make' if
99# llvm-config is not in $PATH.99# llvm-config is not in $PATH.
100 100
101# Define NO_CORESIGHT if you do not want support for CoreSight trace decoding.
102
101# As per kernel Makefile, avoid funny character set dependencies103# As per kernel Makefile, avoid funny character set dependencies
102unexport LC_ALL104unexport LC_ALL
103LC_COLLATE=C105LC_COLLATE=C
@@ -462,6 +464,13 @@ prctl_option_tbl := $(srctree)/tools/perf/trace/beauty/prctl_option.sh · 358 unmodified lines
462$(prctl_option_array): $(prctl_hdr_dir)/prctl.h $(prctl_option_tbl)464$(prctl_option_array): $(prctl_hdr_dir)/prctl.h $(prctl_option_tbl)
463 $(Q)$(SHELL) '$(prctl_option_tbl)' $(prctl_hdr_dir) > $@465 $(Q)$(SHELL) '$(prctl_option_tbl)' $(prctl_hdr_dir) > $@
464 466
467arch_errno_name_array := $(beauty_outdir)/arch_errno_name_array.c
468arch_errno_hdr_dir := $(srctree)/tools
469arch_errno_tbl := $(srctree)/tools/perf/trace/beauty/arch_errno_names.sh
470
471$(arch_errno_name_array): $(arch_errno_tbl)
472 $(Q)$(SHELL) '$(arch_errno_tbl)' $(CC) $(arch_errno_hdr_dir) > $@
473
465all: shell_compatibility_test $(ALL_PROGRAMS) $(LANG_BINDINGS) $(OTHER_PROGRAMS)474all: shell_compatibility_test $(ALL_PROGRAMS) $(LANG_BINDINGS) $(OTHER_PROGRAMS)
466 475
467$(OUTPUT)python/perf.so: $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) $(LIBTRACEEVENT_DYNAMIC_LIST)476$(OUTPUT)python/perf.so: $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) $(LIBTRACEEVENT_DYNAMIC_LIST)
@@ -565,7 +574,8 @@ prepare: $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h archheaders $(drm_ioc · 97 unmodified lines
565 $(vhost_virtio_ioctl_array) \574 $(vhost_virtio_ioctl_array) \
566 $(madvise_behavior_array) \575 $(madvise_behavior_array) \
567 $(perf_ioctl_array) \576 $(perf_ioctl_array) \
568 $(prctl_option_array)577 $(prctl_option_array) \
578 $(arch_errno_name_array)
569 579
570$(OUTPUT)%.o: %.c prepare FORCE580$(OUTPUT)%.o: %.c prepare FORCE
571 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@581 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
@@ -847,7 +857,8 @@ clean:: $(LIBTRACEEVENT)-clean $(LIBAPI)-clean $(LIBBPF)-clean $(LIBSUBCMD)-clea · 275 unmodified lines
847 $(OUTPUT)$(kcmp_type_array) \857 $(OUTPUT)$(kcmp_type_array) \
848 $(OUTPUT)$(vhost_virtio_ioctl_array) \858 $(OUTPUT)$(vhost_virtio_ioctl_array) \
849 $(OUTPUT)$(perf_ioctl_array) \859 $(OUTPUT)$(perf_ioctl_array) \
850 $(OUTPUT)$(prctl_option_array)860 $(OUTPUT)$(prctl_option_array) \
861 $(OUTPUT)$(arch_errno_name_array)
851 $(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) clean862 $(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) clean
852 863
853#864#
tools/perf/arch/arm/util/auxtrace.c+71−6
@@ -22,6 +22,42 @@ · 21 unmodified lines
22#include "../../util/evlist.h"22#include "../../util/evlist.h"
23#include "../../util/pmu.h"23#include "../../util/pmu.h"
24#include "cs-etm.h"24#include "cs-etm.h"
25#include "arm-spe.h"
26
27static struct perf_pmu **find_all_arm_spe_pmus(int *nr_spes, int *err)
28{
29 struct perf_pmu **arm_spe_pmus = NULL;
30 int ret, i, nr_cpus = sysconf(_SC_NPROCESSORS_CONF);
31 /* arm_spe_xxxxxxxxx\0 */
32 char arm_spe_pmu_name[sizeof(ARM_SPE_PMU_NAME) + 10];
33
34 arm_spe_pmus = zalloc(sizeof(struct perf_pmu *) * nr_cpus);
35 if (!arm_spe_pmus) {
36 pr_err("spes alloc failed\n");
37 *err = -ENOMEM;
38 return NULL;
39 }
40
41 for (i = 0; i < nr_cpus; i++) {
42 ret = sprintf(arm_spe_pmu_name, "%s%d", ARM_SPE_PMU_NAME, i);
43 if (ret < 0) {
44 pr_err("sprintf failed\n");
45 *err = -ENOMEM;
46 return NULL;
47 }
48
49 arm_spe_pmus[*nr_spes] = perf_pmu__find(arm_spe_pmu_name);
50 if (arm_spe_pmus[*nr_spes]) {
51 pr_debug2("%s %d: arm_spe_pmu %d type %d name %s\n",
52 __func__, __LINE__, *nr_spes,
53 arm_spe_pmus[*nr_spes]->type,
54 arm_spe_pmus[*nr_spes]->name);
55 (*nr_spes)++;
56 }
57 }
58
59 return arm_spe_pmus;
60}
25 61
26struct auxtrace_record62struct auxtrace_record
27*auxtrace_record__init(struct perf_evlist *evlist, int *err)63*auxtrace_record__init(struct perf_evlist *evlist, int *err)
@@ -29,22 +65,51 @@ struct auxtrace_record · 1 unmodified line
29 struct perf_pmu *cs_etm_pmu;65 struct perf_pmu *cs_etm_pmu;
30 struct perf_evsel *evsel;66 struct perf_evsel *evsel;
31 bool found_etm = false;67 bool found_etm = false;
68 bool found_spe = false;
69 static struct perf_pmu **arm_spe_pmus = NULL;
70 static int nr_spes = 0;
71 int i;
72
73 if (!evlist)
74 return NULL;
32 75
33 cs_etm_pmu = perf_pmu__find(CORESIGHT_ETM_PMU_NAME);76 cs_etm_pmu = perf_pmu__find(CORESIGHT_ETM_PMU_NAME);
34 77
35 if (evlist) {78 if (!arm_spe_pmus)
36 evlist__for_each_entry(evlist, evsel) {79 arm_spe_pmus = find_all_arm_spe_pmus(&nr_spes, err);
37 if (cs_etm_pmu &&80
38 evsel->attr.type == cs_etm_pmu->type)81 evlist__for_each_entry(evlist, evsel) {
39 found_etm = true;82 if (cs_etm_pmu &&
83 evsel->attr.type == cs_etm_pmu->type)
84 found_etm = true;
85
86 if (!nr_spes)
87 continue;
88
89 for (i = 0; i < nr_spes; i++) {
90 if (evsel->attr.type == arm_spe_pmus[i]->type) {
91 found_spe = true;
92 break;
93 }
40 }94 }
41 }95 }
42 96
97 if (found_etm && found_spe) {
98 pr_err("Concurrent ARM Coresight ETM and SPE operation not currently supported\n");
99 *err = -EOPNOTSUPP;
100 return NULL;
101 }
102
43 if (found_etm)103 if (found_etm)
44 return cs_etm_record_init(err);104 return cs_etm_record_init(err);
45 105
106#if defined(__aarch64__)
107 if (found_spe)
108 return arm_spe_recording_init(err, arm_spe_pmus[i]);
109#endif
110
46 /*111 /*
47 * Clear 'err' even if we haven't found a cs_etm event - that way perf112 * Clear 'err' even if we haven't found an event - that way perf
48 * record can still be used even if tracers aren't present. The NULL113 * record can still be used even if tracers aren't present. The NULL
49 * return value will take care of telling the infrastructure HW tracing114 * return value will take care of telling the infrastructure HW tracing
50 * isn't available.115 * isn't available.
tools/perf/arch/arm/util/pmu.c+6−0
@@ -20,6 +20,7 @@ · 19 unmodified lines
20#include <linux/perf_event.h>20#include <linux/perf_event.h>
21 21
22#include "cs-etm.h"22#include "cs-etm.h"
23#include "arm-spe.h"
23#include "../../util/pmu.h"24#include "../../util/pmu.h"
24 25
25struct perf_event_attr26struct perf_event_attr
@@ -30,7 +31,12 @@ struct perf_event_attr · 4 unmodified lines
30 /* add ETM default config here */31 /* add ETM default config here */
31 pmu->selectable = true;32 pmu->selectable = true;
32 pmu->set_drv_config = cs_etm_set_drv_config;33 pmu->set_drv_config = cs_etm_set_drv_config;
34#if defined(__aarch64__)
35 } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) {
36 return arm_spe_pmu_default_config(pmu);
37#endif
33 }38 }
39
34#endif40#endif
35 return NULL;41 return NULL;
36}42}
tools/perf/arch/arm64/util/Build+4−1
@@ -1,6 +1,9 @@
1libperf-y += header.o
2libperf-y += sym-handling.o
1libperf-$(CONFIG_DWARF) += dwarf-regs.o3libperf-$(CONFIG_DWARF) += dwarf-regs.o
2libperf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind.o4libperf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind.o
3 5
4libperf-$(CONFIG_AUXTRACE) += ../../arm/util/pmu.o \6libperf-$(CONFIG_AUXTRACE) += ../../arm/util/pmu.o \
5 ../../arm/util/auxtrace.o \7 ../../arm/util/auxtrace.o \
6 ../../arm/util/cs-etm.o8 ../../arm/util/cs-etm.o \
9 arm-spe.o
tools/perf/arch/arm64/util/arm-spe.c+225−0
@@ -0,0 +1,225 @@
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Arm Statistical Profiling Extensions (SPE) support
4 * Copyright (c) 2017-2018, Arm Ltd.
5 */
6
7#include <linux/kernel.h>
8#include <linux/types.h>
9#include <linux/bitops.h>
10#include <linux/log2.h>
11#include <time.h>
12
13#include "../../util/cpumap.h"
14#include "../../util/evsel.h"
15#include "../../util/evlist.h"
16#include "../../util/session.h"
17#include "../../util/util.h"
18#include "../../util/pmu.h"
19#include "../../util/debug.h"
20#include "../../util/auxtrace.h"
21#include "../../util/arm-spe.h"
22
23#define KiB(x) ((x) * 1024)
24#define MiB(x) ((x) * 1024 * 1024)
25
26struct arm_spe_recording {
27 struct auxtrace_record itr;
28 struct perf_pmu *arm_spe_pmu;
29 struct perf_evlist *evlist;
30};
31
32static size_t
33arm_spe_info_priv_size(struct auxtrace_record *itr __maybe_unused,
34 struct perf_evlist *evlist __maybe_unused)
35{
36 return ARM_SPE_AUXTRACE_PRIV_SIZE;
37}
38
39static int arm_spe_info_fill(struct auxtrace_record *itr,
40 struct perf_session *session,
41 struct auxtrace_info_event *auxtrace_info,
42 size_t priv_size)
43{
44 struct arm_spe_recording *sper =
45 container_of(itr, struct arm_spe_recording, itr);
46 struct perf_pmu *arm_spe_pmu = sper->arm_spe_pmu;
47
48 if (priv_size != ARM_SPE_AUXTRACE_PRIV_SIZE)
49 return -EINVAL;
50
51 if (!session->evlist->nr_mmaps)
52 return -EINVAL;
53
54 auxtrace_info->type = PERF_AUXTRACE_ARM_SPE;
55 auxtrace_info->priv[ARM_SPE_PMU_TYPE] = arm_spe_pmu->type;
56
57 return 0;
58}
59
60static int arm_spe_recording_options(struct auxtrace_record *itr,
61 struct perf_evlist *evlist,
62 struct record_opts *opts)
63{
64 struct arm_spe_recording *sper =
65 container_of(itr, struct arm_spe_recording, itr);
66 struct perf_pmu *arm_spe_pmu = sper->arm_spe_pmu;
67 struct perf_evsel *evsel, *arm_spe_evsel = NULL;
68 bool privileged = geteuid() == 0 || perf_event_paranoid() < 0;
69 struct perf_evsel *tracking_evsel;
70 int err;
71
72 sper->evlist = evlist;
73
74 evlist__for_each_entry(evlist, evsel) {
75 if (evsel->attr.type == arm_spe_pmu->type) {
76 if (arm_spe_evsel) {
77 pr_err("There may be only one " ARM_SPE_PMU_NAME "x event\n");
78 return -EINVAL;
79 }
80 evsel->attr.freq = 0;
81 evsel->attr.sample_period = 1;
82 arm_spe_evsel = evsel;
83 opts->full_auxtrace = true;
84 }
85 }
86
87 if (!opts->full_auxtrace)
88 return 0;
89
90 /* We are in full trace mode but '-m,xyz' wasn't specified */
91 if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) {
92 if (privileged) {
93 opts->auxtrace_mmap_pages = MiB(4) / page_size;
94 } else {
95 opts->auxtrace_mmap_pages = KiB(128) / page_size;
96 if (opts->mmap_pages == UINT_MAX)
97 opts->mmap_pages = KiB(256) / page_size;
98 }
99 }
100
101 /* Validate auxtrace_mmap_pages */
102 if (opts->auxtrace_mmap_pages) {
103 size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size;
104 size_t min_sz = KiB(8);
105
106 if (sz < min_sz || !is_power_of_2(sz)) {
107 pr_err("Invalid mmap size for ARM SPE: must be at least %zuKiB and a power of 2\n",
108 min_sz / 1024);
109 return -EINVAL;
110 }
111 }
112
113
114 /*
115 * To obtain the auxtrace buffer file descriptor, the auxtrace event
116 * must come first.
117 */
118 perf_evlist__to_front(evlist, arm_spe_evsel);
119
120 perf_evsel__set_sample_bit(arm_spe_evsel, CPU);
121 perf_evsel__set_sample_bit(arm_spe_evsel, TIME);
122 perf_evsel__set_sample_bit(arm_spe_evsel, TID);
123
124 /* Add dummy event to keep tracking */
125 err = parse_events(evlist, "dummy:u", NULL);
126 if (err)
127 return err;
128
129 tracking_evsel = perf_evlist__last(evlist);
130 perf_evlist__set_tracking_event(evlist, tracking_evsel);
131
132 tracking_evsel->attr.freq = 0;
133 tracking_evsel->attr.sample_period = 1;
134 perf_evsel__set_sample_bit(tracking_evsel, TIME);
135 perf_evsel__set_sample_bit(tracking_evsel, CPU);
136 perf_evsel__reset_sample_bit(tracking_evsel, BRANCH_STACK);
137
138 return 0;
139}
140
141static u64 arm_spe_reference(struct auxtrace_record *itr __maybe_unused)
142{
143 struct timespec ts;
144
145 clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
146
147 return ts.tv_sec ^ ts.tv_nsec;
148}
149
150static void arm_spe_recording_free(struct auxtrace_record *itr)
151{
152 struct arm_spe_recording *sper =
153 container_of(itr, struct arm_spe_recording, itr);
154
155 free(sper);
156}
157
158static int arm_spe_read_finish(struct auxtrace_record *itr, int idx)
159{
160 struct arm_spe_recording *sper =
161 container_of(itr, struct arm_spe_recording, itr);
162 struct perf_evsel *evsel;
163
164 evlist__for_each_entry(sper->evlist, evsel) {
165 if (evsel->attr.type == sper->arm_spe_pmu->type)
166 return perf_evlist__enable_event_idx(sper->evlist,
167 evsel, idx);
168 }
169 return -EINVAL;
170}
171
172struct auxtrace_record *arm_spe_recording_init(int *err,
173 struct perf_pmu *arm_spe_pmu)
174{
175 struct arm_spe_recording *sper;
176
177 if (!arm_spe_pmu) {
178 *err = -ENODEV;
179 return NULL;
180 }
181
182 sper = zalloc(sizeof(struct arm_spe_recording));
183 if (!sper) {
184 *err = -ENOMEM;
185 return NULL;
186 }
187
188 sper->arm_spe_pmu = arm_spe_pmu;
189 sper->itr.recording_options = arm_spe_recording_options;
190 sper->itr.info_priv_size = arm_spe_info_priv_size;
191 sper->itr.info_fill = arm_spe_info_fill;
192 sper->itr.free = arm_spe_recording_free;
193 sper->itr.reference = arm_spe_reference;
194 sper->itr.read_finish = arm_spe_read_finish;
195 sper->itr.alignment = 0;
196
197 return &sper->itr;
198}
199
200struct perf_event_attr
201*arm_spe_pmu_default_config(struct perf_pmu *arm_spe_pmu)
202{
203 struct perf_event_attr *attr;
204
205 attr = zalloc(sizeof(struct perf_event_attr));
206 if (!attr) {
207 pr_err("arm_spe default config cannot allocate a perf_event_attr\n");
208 return NULL;
209 }
210
211 /*
212 * If kernel driver doesn't advertise a minimum,
213 * use max allowable by PMSIDR_EL1.INTERVAL
214 */
215 if (perf_pmu__scan_file(arm_spe_pmu, "caps/min_interval", "%llu",
216 &attr->sample_period) != 1) {
217 pr_debug("arm_spe driver doesn't advertise a min. interval. Using 4096\n");
218 attr->sample_period = 4096;
219 }
220
221 arm_spe_pmu->selectable = true;
222 arm_spe_pmu->is_uncore = false;
223
224 return attr;
225}
tools/perf/arch/arm64/util/header.c+65−0
@@ -0,0 +1,65 @@
1#include <stdio.h>
2#include <stdlib.h>
3#include <api/fs/fs.h>
4#include "header.h"
5
6#define MIDR "/regs/identification/midr_el1"
7#define MIDR_SIZE 19
8#define MIDR_REVISION_MASK 0xf
9#define MIDR_VARIANT_SHIFT 20
10#define MIDR_VARIANT_MASK (0xf << MIDR_VARIANT_SHIFT)
11
12char *get_cpuid_str(struct perf_pmu *pmu)
13{
14 char *buf = NULL;
15 char path[PATH_MAX];
16 const char *sysfs = sysfs__mountpoint();
17 int cpu;
18 u64 midr = 0;
19 struct cpu_map *cpus;
20 FILE *file;
21
22 if (!sysfs || !pmu || !pmu->cpus)
23 return NULL;
24
25 buf = malloc(MIDR_SIZE);
26 if (!buf)
27 return NULL;
28
29 /* read midr from list of cpus mapped to this pmu */
30 cpus = cpu_map__get(pmu->cpus);
31 for (cpu = 0; cpu < cpus->nr; cpu++) {
32 scnprintf(path, PATH_MAX, "%s/devices/system/cpu/cpu%d"MIDR,
33 sysfs, cpus->map[cpu]);
34
35 file = fopen(path, "r");
36 if (!file) {
37 pr_debug("fopen failed for file %s\n", path);
38 continue;
39 }
40
41 if (!fgets(buf, MIDR_SIZE, file)) {
42 fclose(file);
43 continue;
44 }
45 fclose(file);
46
47 /* Ignore/clear Variant[23:20] and
48 * Revision[3:0] of MIDR
49 */
50 midr = strtoul(buf, NULL, 16);
51 midr &= (~(MIDR_VARIANT_MASK | MIDR_REVISION_MASK));
52 scnprintf(buf, MIDR_SIZE, "0x%016lx", midr);
53 /* got midr break loop */
54 break;
55 }
56
57 if (!midr) {
58 pr_err("failed to get cpuid string for PMU %s\n", pmu->name);
59 free(buf);
60 buf = NULL;
61 }
62
63 cpu_map__put(cpus);
64 return buf;
65}
tools/perf/arch/arm64/util/sym-handling.c+22−0
@@ -0,0 +1,22 @@
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License, version 2, as
4 * published by the Free Software Foundation.
5 *
6 * Copyright (C) 2015 Naveen N. Rao, IBM Corporation
7 */
8
9#include "debug.h"
10#include "symbol.h"
11#include "map.h"
12#include "probe-event.h"
13#include "probe-file.h"
14
15#ifdef HAVE_LIBELF_SUPPORT
16bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
17{
18 return ehdr.e_type == ET_EXEC ||
19 ehdr.e_type == ET_REL ||
20 ehdr.e_type == ET_DYN;
21}
22#endif
tools/perf/arch/common.c+3−41
@@ -1,12 +1,10 @@
1// SPDX-License-Identifier: GPL-2.01// SPDX-License-Identifier: GPL-2.0
2#include <stdio.h>2#include <stdio.h>
3#include <sys/utsname.h>
4#include "common.h"3#include "common.h"
4#include "../util/env.h"
5#include "../util/util.h"5#include "../util/util.h"
6#include "../util/debug.h"6#include "../util/debug.h"
7 7
8#include "sane_ctype.h"
9
10const char *const arm_triplets[] = {8const char *const arm_triplets[] = {
11 "arm-eabi-",9 "arm-eabi-",
12 "arm-linux-androideabi-",10 "arm-linux-androideabi-",
@@ -120,55 +118,19 @@ static int lookup_triplets(const char *const *triplets, const char *name) · 107 unmodified lines
120 return -1;118 return -1;
121}119}
122 120
123/*
124 * Return architecture name in a normalized form.
125 * The conversion logic comes from the Makefile.
126 */
127const char *normalize_arch(char *arch)
128{
129 if (!strcmp(arch, "x86_64"))
130 return "x86";
131 if (arch[0] == 'i' && arch[2] == '8' && arch[3] == '6')
132 return "x86";
133 if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5))
134 return "sparc";
135 if (!strcmp(arch, "aarch64") || !strcmp(arch, "arm64"))
136 return "arm64";
137 if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110"))
138 return "arm";
139 if (!strncmp(arch, "s390", 4))
140 return "s390";
141 if (!strncmp(arch, "parisc", 6))
142 return "parisc";
143 if (!strncmp(arch, "powerpc", 7) || !strncmp(arch, "ppc", 3))
144 return "powerpc";
145 if (!strncmp(arch, "mips", 4))
146 return "mips";
147 if (!strncmp(arch, "sh", 2) && isdigit(arch[2]))
148 return "sh";
149
150 return arch;
151}
152
153static int perf_env__lookup_binutils_path(struct perf_env *env,121static int perf_env__lookup_binutils_path(struct perf_env *env,
154 const char *name, const char **path)122 const char *name, const char **path)
155{123{
156 int idx;124 int idx;
157 const char *arch, *cross_env;125 const char *arch = perf_env__arch(env), *cross_env;
158 struct utsname uts;
159 const char *const *path_list;126 const char *const *path_list;
160 char *buf = NULL;127 char *buf = NULL;
161 128
162 arch = normalize_arch(env->arch);
163
164 if (uname(&uts) < 0)
165 goto out;
166
167 /*129 /*
168 * We don't need to try to find objdump path for native system.130 * We don't need to try to find objdump path for native system.
169 * Just use default binutils path (e.g.: "objdump").131 * Just use default binutils path (e.g.: "objdump").
170 */132 */
171 if (!strcmp(normalize_arch(uts.machine), arch))133 if (!strcmp(perf_env__arch(NULL), arch))
172 goto out;134 goto out;
173 135
174 cross_env = getenv("CROSS_COMPILE");136 cross_env = getenv("CROSS_COMPILE");
tools/perf/arch/common.h+0−1
@@ -7,6 +7,5 @@ · 6 unmodified lines
7extern const char *objdump_path;7extern const char *objdump_path;
8 8
9int perf_env__lookup_objdump(struct perf_env *env);9int perf_env__lookup_objdump(struct perf_env *env);
10const char *normalize_arch(char *arch);
11 10
12#endif /* ARCH_PERF_COMMON_H */11#endif /* ARCH_PERF_COMMON_H */
tools/perf/arch/powerpc/util/header.c+1−1
@@ -35,7 +35,7 @@ get_cpuid(char *buffer, size_t sz) · 34 unmodified lines
35}35}
36 36
37char *37char *
38get_cpuid_str(void)38get_cpuid_str(struct perf_pmu *pmu __maybe_unused)
39{39{
40 char *bufp;40 char *bufp;
41 41
tools/perf/arch/powerpc/util/sym-handling.c+8−0
@@ -64,6 +64,14 @@ int arch__compare_symbol_names_n(const char *namea, const char *nameb, · 63 unmodified lines
64 64
65 return strncmp(namea, nameb, n);65 return strncmp(namea, nameb, n);
66}66}
67
68const char *arch__normalize_symbol_name(const char *name)
69{
70 /* Skip over initial dot */
71 if (name && *name == '.')
72 name++;
73 return name;
74}
67#endif75#endif
68 76
69#if defined(_CALL_ELF) && _CALL_ELF == 277#if defined(_CALL_ELF) && _CALL_ELF == 2
tools/perf/arch/s390/Makefile+21−0
@@ -3,3 +3,24 @@ PERF_HAVE_DWARF_REGS := 1 · 2 unmodified lines
3endif3endif
4HAVE_KVM_STAT_SUPPORT := 14HAVE_KVM_STAT_SUPPORT := 1
5PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 15PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
6
7#
8# Syscall table generation for perf
9#
10
11out := $(OUTPUT)arch/s390/include/generated/asm
12header := $(out)/syscalls_64.c
13sysdef := $(srctree)/tools/arch/s390/include/uapi/asm/unistd.h
14sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls/
15systbl := $(sysprf)/mksyscalltbl
16
17# Create output directory if not already present
18_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
19
20$(header): $(sysdef) $(systbl)
21 $(Q)$(SHELL) '$(systbl)' '$(CC)' $(sysdef) > $@
22
23clean::
24 $(call QUIET_CLEAN, s390) $(RM) $(header)
25
26archheaders: $(header)
tools/perf/arch/s390/annotate/instructions.c+2−1
@@ -18,7 +18,8 @@ static struct ins_ops *s390__associate_ins_ops(struct arch *arch, const char *na · 17 unmodified lines
18 if (!strcmp(name, "br"))18 if (!strcmp(name, "br"))
19 ops = &ret_ops;19 ops = &ret_ops;
20 20
21 arch__associate_ins_ops(arch, name, ops);21 if (ops)
22 arch__associate_ins_ops(arch, name, ops);
22 return ops;23 return ops;
23}24}
24 25
tools/perf/arch/s390/entry/syscalls/mksyscalltbl+36−0
@@ -0,0 +1,36 @@
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3#
4# Generate system call table for perf
5#
6#
7# Copyright IBM Corp. 2017
8# Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
9#
10
11gcc=$1
12input=$2
13
14if ! test -r $input; then
15 echo "Could not read input file" >&2
16 exit 1
17fi
18
19create_table()
20{
21 local max_nr
22
23 echo 'static const char *syscalltbl_s390_64[] = {'
24 while read sc nr; do
25 printf '\t[%d] = "%s",\n' $nr $sc
26 max_nr=$nr
27 done
28 echo '};'
29 echo "#define SYSCALLTBL_S390_64_MAX_ID $max_nr"
30}
31
32
33$gcc -m64 -E -dM -x c $input \
34 |sed -ne 's/^#define __NR_//p' \
35 |sort -t' ' -k2 -nu \
36 |create_table
tools/perf/arch/x86/tests/perf-time-to-tsc.c+1−1
@@ -84,7 +84,7 @@ int test__perf_time_to_tsc(struct test *test __maybe_unused, int subtest __maybe · 83 unmodified lines
84 84
85 CHECK__(perf_evlist__open(evlist));85 CHECK__(perf_evlist__open(evlist));
86 86
87 CHECK__(perf_evlist__mmap(evlist, UINT_MAX, false));87 CHECK__(perf_evlist__mmap(evlist, UINT_MAX));
88 88
89 pc = evlist->mmap[0].base;89 pc = evlist->mmap[0].base;
90 ret = perf_read_tsc_conversion(pc, &tc);90 ret = perf_read_tsc_conversion(pc, &tc);
tools/perf/arch/x86/util/header.c+2−2
@@ -66,11 +66,11 @@ get_cpuid(char *buffer, size_t sz) · 65 unmodified lines
66}66}
67 67
68char *68char *
69get_cpuid_str(void)69get_cpuid_str(struct perf_pmu *pmu __maybe_unused)
70{70{
71 char *buf = malloc(128);71 char *buf = malloc(128);
72 72
73 if (__get_cpuid(buf, 128, "%s-%u-%X$") < 0) {73 if (buf && __get_cpuid(buf, 128, "%s-%u-%X$") < 0) {
74 free(buf);74 free(buf);
75 return NULL;75 return NULL;
76 }76 }
tools/perf/arch/x86/util/unwind-libunwind.c+1−1
@@ -1,7 +1,7 @@
1// SPDX-License-Identifier: GPL-2.01// SPDX-License-Identifier: GPL-2.0
2 2
3#ifndef REMOTE_UNWIND_LIBUNWIND
4#include <errno.h>3#include <errno.h>
4#ifndef REMOTE_UNWIND_LIBUNWIND
5#include <libunwind.h>5#include <libunwind.h>
6#include "perf_regs.h"6#include "perf_regs.h"
7#include "../../util/unwind.h"7#include "../../util/unwind.h"
tools/perf/bench/futex-hash.c+12−8
@@ -24,9 +24,9 @@ · 23 unmodified lines
24#include <subcmd/parse-options.h>24#include <subcmd/parse-options.h>
25#include "bench.h"25#include "bench.h"
26#include "futex.h"26#include "futex.h"
27#include "cpumap.h"
27 28
28#include <err.h>29#include <err.h>
29#include <sys/time.h>
30 30
31static unsigned int nthreads = 0;31static unsigned int nthreads = 0;
32static unsigned int nsecs = 10;32static unsigned int nsecs = 10;
@@ -118,11 +118,12 @@ static void print_summary(void) · 85 unmodified lines
118int bench_futex_hash(int argc, const char **argv)118int bench_futex_hash(int argc, const char **argv)
119{119{
120 int ret = 0;120 int ret = 0;
121 cpu_set_t cpu;121 cpu_set_t cpuset;
122 struct sigaction act;122 struct sigaction act;
123 unsigned int i, ncpus;123 unsigned int i;
124 pthread_attr_t thread_attr;124 pthread_attr_t thread_attr;
125 struct worker *worker = NULL;125 struct worker *worker = NULL;
126 struct cpu_map *cpu;
126 127
127 argc = parse_options(argc, argv, options, bench_futex_hash_usage, 0);128 argc = parse_options(argc, argv, options, bench_futex_hash_usage, 0);
128 if (argc) {129 if (argc) {
@@ -130,14 +131,16 @@ int bench_futex_hash(int argc, const char **argv) · 1 unmodified line
130 exit(EXIT_FAILURE);131 exit(EXIT_FAILURE);
131 }132 }
132 133
133 ncpus = sysconf(_SC_NPROCESSORS_ONLN);134 cpu = cpu_map__new(NULL);
135 if (!cpu)
136 goto errmem;
134 137
135 sigfillset(&act.sa_mask);138 sigfillset(&act.sa_mask);
136 act.sa_sigaction = toggle_done;139 act.sa_sigaction = toggle_done;
137 sigaction(SIGINT, &act, NULL);140 sigaction(SIGINT, &act, NULL);
138 141
139 if (!nthreads) /* default to the number of CPUs */142 if (!nthreads) /* default to the number of CPUs */
140 nthreads = ncpus;143 nthreads = cpu->nr;
141 144
142 worker = calloc(nthreads, sizeof(*worker));145 worker = calloc(nthreads, sizeof(*worker));
143 if (!worker)146 if (!worker)
@@ -163,10 +166,10 @@ int bench_futex_hash(int argc, const char **argv) · 19 unmodified lines
163 if (!worker[i].futex)166 if (!worker[i].futex)
164 goto errmem;167 goto errmem;
165 168
166 CPU_ZERO(&cpu);169 CPU_ZERO(&cpuset);
167 CPU_SET(i % ncpus, &cpu);170 CPU_SET(cpu->map[i % cpu->nr], &cpuset);
168 171
169 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu);172 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset);
170 if (ret)173 if (ret)
171 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");174 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");
172 175
@@ -217,6 +220,7 @@ int bench_futex_hash(int argc, const char **argv) · 44 unmodified lines
217 print_summary();220 print_summary();
218 221
219 free(worker);222 free(worker);
223 free(cpu);
220 return ret;224 return ret;
221errmem:225errmem:
222 err(EXIT_FAILURE, "calloc");226 err(EXIT_FAILURE, "calloc");
tools/perf/bench/futex-lock-pi.c+14−9
@@ -15,6 +15,7 @@ · 14 unmodified lines
15#include <errno.h>15#include <errno.h>
16#include "bench.h"16#include "bench.h"
17#include "futex.h"17#include "futex.h"
18#include "cpumap.h"
18 19
19#include <err.h>20#include <err.h>
20#include <stdlib.h>21#include <stdlib.h>
@@ -32,7 +33,7 @@ static struct worker *worker; · 11 unmodified lines
32static unsigned int nsecs = 10;33static unsigned int nsecs = 10;
33static bool silent = false, multi = false;34static bool silent = false, multi = false;
34static bool done = false, fshared = false;35static bool done = false, fshared = false;
35static unsigned int ncpus, nthreads = 0;36static unsigned int nthreads = 0;
36static int futex_flag = 0;37static int futex_flag = 0;
37struct timeval start, end, runtime;38struct timeval start, end, runtime;
38static pthread_mutex_t thread_lock;39static pthread_mutex_t thread_lock;
@@ -113,9 +114,10 @@ static void *workerfn(void *arg) · 74 unmodified lines
113 return NULL;114 return NULL;
114}115}
115 116
116static void create_threads(struct worker *w, pthread_attr_t thread_attr)117static void create_threads(struct worker *w, pthread_attr_t thread_attr,
118 struct cpu_map *cpu)
117{119{
118 cpu_set_t cpu;120 cpu_set_t cpuset;
119 unsigned int i;121 unsigned int i;
120 122
121 threads_starting = nthreads;123 threads_starting = nthreads;
@@ -130,10 +132,10 @@ static void create_threads(struct worker *w, pthread_attr_t thread_attr) · 8 unmodified lines
130 } else132 } else
131 worker[i].futex = &global_futex;133 worker[i].futex = &global_futex;
132 134
133 CPU_ZERO(&cpu);135 CPU_ZERO(&cpuset);
134 CPU_SET(i % ncpus, &cpu);136 CPU_SET(cpu->map[i % cpu->nr], &cpuset);
135 137
136 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu))138 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset))
137 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");139 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");
138 140
139 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i]))141 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i]))
@@ -147,19 +149,22 @@ int bench_futex_lock_pi(int argc, const char **argv) · 7 unmodified lines
147 unsigned int i;149 unsigned int i;
148 struct sigaction act;150 struct sigaction act;
149 pthread_attr_t thread_attr;151 pthread_attr_t thread_attr;
152 struct cpu_map *cpu;
150 153
151 argc = parse_options(argc, argv, options, bench_futex_lock_pi_usage, 0);154 argc = parse_options(argc, argv, options, bench_futex_lock_pi_usage, 0);
152 if (argc)155 if (argc)
153 goto err;156 goto err;
154 157
155 ncpus = sysconf(_SC_NPROCESSORS_ONLN);158 cpu = cpu_map__new(NULL);
159 if (!cpu)
160 err(EXIT_FAILURE, "calloc");
156 161
157 sigfillset(&act.sa_mask);162 sigfillset(&act.sa_mask);
158 act.sa_sigaction = toggle_done;163 act.sa_sigaction = toggle_done;
159 sigaction(SIGINT, &act, NULL);164 sigaction(SIGINT, &act, NULL);
160 165
161 if (!nthreads)166 if (!nthreads)
162 nthreads = ncpus;167 nthreads = cpu->nr;
163 168
164 worker = calloc(nthreads, sizeof(*worker));169 worker = calloc(nthreads, sizeof(*worker));
165 if (!worker)170 if (!worker)
@@ -180,7 +185,7 @@ int bench_futex_lock_pi(int argc, const char **argv) · 14 unmodified lines
180 pthread_attr_init(&thread_attr);185 pthread_attr_init(&thread_attr);
181 gettimeofday(&start, NULL);186 gettimeofday(&start, NULL);
182 187
183 create_threads(worker, thread_attr);188 create_threads(worker, thread_attr, cpu);
184 pthread_attr_destroy(&thread_attr);189 pthread_attr_destroy(&thread_attr);
185 190
186 pthread_mutex_lock(&thread_lock);191 pthread_mutex_lock(&thread_lock);
tools/perf/bench/futex-requeue.c+13−9
@@ -22,6 +22,7 @@ · 21 unmodified lines
22#include <errno.h>22#include <errno.h>
23#include "bench.h"23#include "bench.h"
24#include "futex.h"24#include "futex.h"
25#include "cpumap.h"
25 26
26#include <err.h>27#include <err.h>
27#include <stdlib.h>28#include <stdlib.h>
@@ -40,7 +41,7 @@ static bool done = false, silent = false, fshared = false; · 12 unmodified lines
40static pthread_mutex_t thread_lock;41static pthread_mutex_t thread_lock;
41static pthread_cond_t thread_parent, thread_worker;42static pthread_cond_t thread_parent, thread_worker;
42static struct stats requeuetime_stats, requeued_stats;43static struct stats requeuetime_stats, requeued_stats;
43static unsigned int ncpus, threads_starting, nthreads = 0;44static unsigned int threads_starting, nthreads = 0;
44static int futex_flag = 0;45static int futex_flag = 0;
45 46
46static const struct option options[] = {47static const struct option options[] = {
@@ -83,19 +84,19 @@ static void *workerfn(void *arg __maybe_unused) · 36 unmodified lines
83}84}
84 85
85static void block_threads(pthread_t *w,86static void block_threads(pthread_t *w,
86 pthread_attr_t thread_attr)87 pthread_attr_t thread_attr, struct cpu_map *cpu)
87{88{
88 cpu_set_t cpu;89 cpu_set_t cpuset;
89 unsigned int i;90 unsigned int i;
90 91
91 threads_starting = nthreads;92 threads_starting = nthreads;
92 93
93 /* create and block all threads */94 /* create and block all threads */
94 for (i = 0; i < nthreads; i++) {95 for (i = 0; i < nthreads; i++) {
95 CPU_ZERO(&cpu);96 CPU_ZERO(&cpuset);
96 CPU_SET(i % ncpus, &cpu);97 CPU_SET(cpu->map[i % cpu->nr], &cpuset);
97 98
98 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu))99 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset))
99 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");100 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");
100 101
101 if (pthread_create(&w[i], &thread_attr, workerfn, NULL))102 if (pthread_create(&w[i], &thread_attr, workerfn, NULL))
@@ -116,19 +117,22 @@ int bench_futex_requeue(int argc, const char **argv) · 14 unmodified lines
116 unsigned int i, j;117 unsigned int i, j;
117 struct sigaction act;118 struct sigaction act;
118 pthread_attr_t thread_attr;119 pthread_attr_t thread_attr;
120 struct cpu_map *cpu;
119 121
120 argc = parse_options(argc, argv, options, bench_futex_requeue_usage, 0);122 argc = parse_options(argc, argv, options, bench_futex_requeue_usage, 0);
121 if (argc)123 if (argc)
122 goto err;124 goto err;
123 125
124 ncpus = sysconf(_SC_NPROCESSORS_ONLN);126 cpu = cpu_map__new(NULL);
127 if (!cpu)
128 err(EXIT_FAILURE, "cpu_map__new");
125 129
126 sigfillset(&act.sa_mask);130 sigfillset(&act.sa_mask);
127 act.sa_sigaction = toggle_done;131 act.sa_sigaction = toggle_done;
128 sigaction(SIGINT, &act, NULL);132 sigaction(SIGINT, &act, NULL);
129 133
130 if (!nthreads)134 if (!nthreads)
131 nthreads = ncpus;135 nthreads = cpu->nr;
132 136
133 worker = calloc(nthreads, sizeof(*worker));137 worker = calloc(nthreads, sizeof(*worker));
134 if (!worker)138 if (!worker)
@@ -156,7 +160,7 @@ int bench_futex_requeue(int argc, const char **argv) · 21 unmodified lines
156 struct timeval start, end, runtime;160 struct timeval start, end, runtime;
157 161
158 /* create, launch & block all threads */162 /* create, launch & block all threads */
159 block_threads(worker, thread_attr);163 block_threads(worker, thread_attr, cpu);
160 164
161 /* make sure all threads are already blocked */165 /* make sure all threads are already blocked */
162 pthread_mutex_lock(&thread_lock);166 pthread_mutex_lock(&thread_lock);
tools/perf/bench/futex-wake-parallel.c+35−11
@@ -7,7 +7,17 @@ · 6 unmodified lines
7 * for each individual thread to service its share of work. Ultimately7 * for each individual thread to service its share of work. Ultimately
8 * it can be used to measure futex_wake() changes.8 * it can be used to measure futex_wake() changes.
9 */9 */
10#include "bench.h"
11#include <linux/compiler.h>
12#include "../util/debug.h"
10 13
14#ifndef HAVE_PTHREAD_BARRIER
15int bench_futex_wake_parallel(int argc __maybe_unused, const char **argv __maybe_unused)
16{
17 pr_err("%s: pthread_barrier_t unavailable, disabling this test...\n", __func__);
18 return 0;
19}
20#else /* HAVE_PTHREAD_BARRIER */
11/* For the CLR_() macros */21/* For the CLR_() macros */
12#include <string.h>22#include <string.h>
13#include <pthread.h>23#include <pthread.h>
@@ -15,12 +25,11 @@ · 1 unmodified line
15#include <signal.h>25#include <signal.h>
16#include "../util/stat.h"26#include "../util/stat.h"
17#include <subcmd/parse-options.h>27#include <subcmd/parse-options.h>
18#include <linux/compiler.h>
19#include <linux/kernel.h>28#include <linux/kernel.h>
20#include <linux/time64.h>29#include <linux/time64.h>
21#include <errno.h>30#include <errno.h>
22#include "bench.h"
23#include "futex.h"31#include "futex.h"
32#include "cpumap.h"
24 33
25#include <err.h>34#include <err.h>
26#include <stdlib.h>35#include <stdlib.h>
@@ -42,8 +51,9 @@ static bool done = false, silent = false, fshared = false; · 15 unmodified lines
42static unsigned int nblocked_threads = 0, nwaking_threads = 0;51static unsigned int nblocked_threads = 0, nwaking_threads = 0;
43static pthread_mutex_t thread_lock;52static pthread_mutex_t thread_lock;
44static pthread_cond_t thread_parent, thread_worker;53static pthread_cond_t thread_parent, thread_worker;
54static pthread_barrier_t barrier;
45static struct stats waketime_stats, wakeup_stats;55static struct stats waketime_stats, wakeup_stats;
46static unsigned int ncpus, threads_starting;56static unsigned int threads_starting;
47static int futex_flag = 0;57static int futex_flag = 0;
48 58
49static const struct option options[] = {59static const struct option options[] = {
@@ -64,6 +74,8 @@ static void *waking_workerfn(void *arg) · 14 unmodified lines
64 struct thread_data *waker = (struct thread_data *) arg;74 struct thread_data *waker = (struct thread_data *) arg;
65 struct timeval start, end;75 struct timeval start, end;
66 76
77 pthread_barrier_wait(&barrier);
78
67 gettimeofday(&start, NULL);79 gettimeofday(&start, NULL);
68 80
69 waker->nwoken = futex_wake(&futex, nwakes, futex_flag);81 waker->nwoken = futex_wake(&futex, nwakes, futex_flag);
@@ -84,6 +96,8 @@ static void wakeup_threads(struct thread_data *td, pthread_attr_t thread_attr) · 14 unmodified lines
84 96
85 pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_JOINABLE);97 pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_JOINABLE);
86 98
99 pthread_barrier_init(&barrier, NULL, nwaking_threads + 1);
100
87 /* create and block all threads */101 /* create and block all threads */
88 for (i = 0; i < nwaking_threads; i++) {102 for (i = 0; i < nwaking_threads; i++) {
89 /*103 /*
@@ -96,9 +110,13 @@ static void wakeup_threads(struct thread_data *td, pthread_attr_t thread_attr) · 6 unmodified lines
96 err(EXIT_FAILURE, "pthread_create");110 err(EXIT_FAILURE, "pthread_create");
97 }111 }
98 112
113 pthread_barrier_wait(&barrier);
114
99 for (i = 0; i < nwaking_threads; i++)115 for (i = 0; i < nwaking_threads; i++)
100 if (pthread_join(td[i].worker, NULL))116 if (pthread_join(td[i].worker, NULL))
101 err(EXIT_FAILURE, "pthread_join");117 err(EXIT_FAILURE, "pthread_join");
118
119 pthread_barrier_destroy(&barrier);
102}120}
103 121
104static void *blocked_workerfn(void *arg __maybe_unused)122static void *blocked_workerfn(void *arg __maybe_unused)
@@ -119,19 +137,20 @@ static void *blocked_workerfn(void *arg __maybe_unused) · 14 unmodified lines
119 return NULL;137 return NULL;
120}138}
121 139
122static void block_threads(pthread_t *w, pthread_attr_t thread_attr)140static void block_threads(pthread_t *w, pthread_attr_t thread_attr,
141 struct cpu_map *cpu)
123{142{
124 cpu_set_t cpu;143 cpu_set_t cpuset;
125 unsigned int i;144 unsigned int i;
126 145
127 threads_starting = nblocked_threads;146 threads_starting = nblocked_threads;
128 147
129 /* create and block all threads */148 /* create and block all threads */
130 for (i = 0; i < nblocked_threads; i++) {149 for (i = 0; i < nblocked_threads; i++) {
131 CPU_ZERO(&cpu);150 CPU_ZERO(&cpuset);
132 CPU_SET(i % ncpus, &cpu);151 CPU_SET(cpu->map[i % cpu->nr], &cpuset);
133 152
134 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu))153 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset))
135 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");154 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");
136 155
137 if (pthread_create(&w[i], &thread_attr, blocked_workerfn, NULL))156 if (pthread_create(&w[i], &thread_attr, blocked_workerfn, NULL))
@@ -205,6 +224,7 @@ int bench_futex_wake_parallel(int argc, const char **argv) · 67 unmodified lines
205 struct sigaction act;224 struct sigaction act;
206 pthread_attr_t thread_attr;225 pthread_attr_t thread_attr;
207 struct thread_data *waking_worker;226 struct thread_data *waking_worker;
227 struct cpu_map *cpu;
208 228
209 argc = parse_options(argc, argv, options,229 argc = parse_options(argc, argv, options,
210 bench_futex_wake_parallel_usage, 0);230 bench_futex_wake_parallel_usage, 0);
@@ -217,9 +237,12 @@ int bench_futex_wake_parallel(int argc, const char **argv) · 6 unmodified lines
217 act.sa_sigaction = toggle_done;237 act.sa_sigaction = toggle_done;
218 sigaction(SIGINT, &act, NULL);238 sigaction(SIGINT, &act, NULL);
219 239
220 ncpus = sysconf(_SC_NPROCESSORS_ONLN);240 cpu = cpu_map__new(NULL);
241 if (!cpu)
242 err(EXIT_FAILURE, "calloc");
243
221 if (!nblocked_threads)244 if (!nblocked_threads)
222 nblocked_threads = ncpus;245 nblocked_threads = cpu->nr;
223 246
224 /* some sanity checks */247 /* some sanity checks */
225 if (nwaking_threads > nblocked_threads || !nwaking_threads)248 if (nwaking_threads > nblocked_threads || !nwaking_threads)
@@ -259,7 +282,7 @@ int bench_futex_wake_parallel(int argc, const char **argv) · 33 unmodified lines
259 err(EXIT_FAILURE, "calloc");282 err(EXIT_FAILURE, "calloc");
260 283
261 /* create, launch & block all threads */284 /* create, launch & block all threads */
262 block_threads(blocked_worker, thread_attr);285 block_threads(blocked_worker, thread_attr, cpu);
263 286
264 /* make sure all threads are already blocked */287 /* make sure all threads are already blocked */
265 pthread_mutex_lock(&thread_lock);288 pthread_mutex_lock(&thread_lock);
@@ -297,3 +320,4 @@ int bench_futex_wake_parallel(int argc, const char **argv) · 31 unmodified lines
297 free(blocked_worker);320 free(blocked_worker);
298 return ret;321 return ret;
299}322}
323#endif /* HAVE_PTHREAD_BARRIER */
tools/perf/bench/futex-wake.c+11−7
@@ -22,6 +22,7 @@ · 21 unmodified lines
22#include <errno.h>22#include <errno.h>
23#include "bench.h"23#include "bench.h"
24#include "futex.h"24#include "futex.h"
25#include "cpumap.h"
25 26
26#include <err.h>27#include <err.h>
27#include <stdlib.h>28#include <stdlib.h>
@@ -89,19 +90,19 @@ static void print_summary(void) · 61 unmodified lines
89}90}
90 91
91static void block_threads(pthread_t *w,92static void block_threads(pthread_t *w,
92 pthread_attr_t thread_attr)93 pthread_attr_t thread_attr, struct cpu_map *cpu)
93{94{
94 cpu_set_t cpu;95 cpu_set_t cpuset;
95 unsigned int i;96 unsigned int i;
96 97
97 threads_starting = nthreads;98 threads_starting = nthreads;
98 99
99 /* create and block all threads */100 /* create and block all threads */
100 for (i = 0; i < nthreads; i++) {101 for (i = 0; i < nthreads; i++) {
101 CPU_ZERO(&cpu);102 CPU_ZERO(&cpuset);
102 CPU_SET(i % ncpus, &cpu);103 CPU_SET(cpu->map[i % cpu->nr], &cpuset);
103 104
104 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu))105 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset))
105 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");106 err(EXIT_FAILURE, "pthread_attr_setaffinity_np");
106 107
107 if (pthread_create(&w[i], &thread_attr, workerfn, NULL))108 if (pthread_create(&w[i], &thread_attr, workerfn, NULL))
@@ -122,6 +123,7 @@ int bench_futex_wake(int argc, const char **argv) · 14 unmodified lines
122 unsigned int i, j;123 unsigned int i, j;
123 struct sigaction act;124 struct sigaction act;
124 pthread_attr_t thread_attr;125 pthread_attr_t thread_attr;
126 struct cpu_map *cpu;
125 127
126 argc = parse_options(argc, argv, options, bench_futex_wake_usage, 0);128 argc = parse_options(argc, argv, options, bench_futex_wake_usage, 0);
127 if (argc) {129 if (argc) {
@@ -129,7 +131,9 @@ int bench_futex_wake(int argc, const char **argv) · 1 unmodified line
129 exit(EXIT_FAILURE);131 exit(EXIT_FAILURE);
130 }132 }
131 133
132 ncpus = sysconf(_SC_NPROCESSORS_ONLN);134 cpu = cpu_map__new(NULL);
135 if (!cpu)
136 err(EXIT_FAILURE, "calloc");
133 137
134 sigfillset(&act.sa_mask);138 sigfillset(&act.sa_mask);
135 act.sa_sigaction = toggle_done;139 act.sa_sigaction = toggle_done;
@@ -161,7 +165,7 @@ int bench_futex_wake(int argc, const char **argv) · 25 unmodified lines
161 struct timeval start, end, runtime;165 struct timeval start, end, runtime;
162 166
163 /* create, launch & block all threads */167 /* create, launch & block all threads */
164 block_threads(worker, thread_attr);168 block_threads(worker, thread_attr, cpu);
165 169
166 /* make sure all threads are already blocked */170 /* make sure all threads are already blocked */
167 pthread_mutex_lock(&thread_lock);171 pthread_mutex_lock(&thread_lock);
tools/perf/builtin-buildid-cache.c+2−2
@@ -325,8 +325,8 @@ int cmd_buildid_cache(int argc, const char **argv) · 324 unmodified lines
325 "file", "kcore file to add"),325 "file", "kcore file to add"),
326 OPT_STRING('r', "remove", &remove_name_list_str, "file list",326 OPT_STRING('r', "remove", &remove_name_list_str, "file list",
327 "file(s) to remove"),327 "file(s) to remove"),
328 OPT_STRING('p', "purge", &purge_name_list_str, "path list",328 OPT_STRING('p', "purge", &purge_name_list_str, "file list",
329 "path(s) to remove (remove old caches too)"),329 "file(s) to remove (remove old caches too)"),
330 OPT_STRING('M', "missing", &missing_filename, "file",330 OPT_STRING('M', "missing", &missing_filename, "file",
331 "to find missing build ids in the cache"),331 "to find missing build ids in the cache"),
332 OPT_BOOLEAN('f', "force", &force, "don't complain, do it"),332 OPT_BOOLEAN('f', "force", &force, "don't complain, do it"),
tools/perf/builtin-c2c.c+7−9
@@ -27,13 +27,10 @@ · 26 unmodified lines
27#include "sort.h"27#include "sort.h"
28#include "tool.h"28#include "tool.h"
29#include "data.h"29#include "data.h"
30#include "sort.h"
31#include "event.h"30#include "event.h"
32#include "evlist.h"31#include "evlist.h"
33#include "evsel.h"32#include "evsel.h"
34#include <asm/bug.h>
35#include "ui/browsers/hists.h"33#include "ui/browsers/hists.h"
36#include "evlist.h"
37#include "thread.h"34#include "thread.h"
38 35
39struct c2c_hists {36struct c2c_hists {
@@ -2224,9 +2221,9 @@ static int perf_c2c__browse_cacheline(struct hist_entry *he) · 2184 unmodified lines
2224 struct hist_browser *browser;2221 struct hist_browser *browser;
2225 int key = -1;2222 int key = -1;
2226 const char help[] =2223 const char help[] =
2227 " ENTER Togle callchains (if present) \n"2224 " ENTER Toggle callchains (if present) \n"
2228 " n Togle Node details info \n"2225 " n Toggle Node details info \n"
2229 " s Togle full lenght of symbol and source line columns \n"2226 " s Toggle full length of symbol and source line columns \n"
2230 " q Return back to cacheline list \n";2227 " q Return back to cacheline list \n";
2231 2228
2232 /* Display compact version first. */2229 /* Display compact version first. */
@@ -2303,7 +2300,7 @@ static int perf_c2c__hists_browse(struct hists *hists) · 70 unmodified lines
2303 int key = -1;2300 int key = -1;
2304 const char help[] =2301 const char help[] =
2305 " d Display cacheline details \n"2302 " d Display cacheline details \n"
2306 " ENTER Togle callchains (if present) \n"2303 " ENTER Toggle callchains (if present) \n"
2307 " q Quit \n";2304 " q Quit \n";
2308 2305
2309 browser = perf_c2c_browser__new(hists);2306 browser = perf_c2c_browser__new(hists);
@@ -2393,9 +2390,10 @@ static int setup_callchain(struct perf_evlist *evlist) · 83 unmodified lines
2393 enum perf_call_graph_mode mode = CALLCHAIN_NONE;2390 enum perf_call_graph_mode mode = CALLCHAIN_NONE;
2394 2391
2395 if ((sample_type & PERF_SAMPLE_REGS_USER) &&2392 if ((sample_type & PERF_SAMPLE_REGS_USER) &&
2396 (sample_type & PERF_SAMPLE_STACK_USER))2393 (sample_type & PERF_SAMPLE_STACK_USER)) {
2397 mode = CALLCHAIN_DWARF;2394 mode = CALLCHAIN_DWARF;
2398 else if (sample_type & PERF_SAMPLE_BRANCH_STACK)2395 dwarf_callchain_users = true;
2396 } else if (sample_type & PERF_SAMPLE_BRANCH_STACK)
2399 mode = CALLCHAIN_LBR;2397 mode = CALLCHAIN_LBR;
2400 else if (sample_type & PERF_SAMPLE_CALLCHAIN)2398 else if (sample_type & PERF_SAMPLE_CALLCHAIN)
2401 mode = CALLCHAIN_FP;2399 mode = CALLCHAIN_FP;
tools/perf/builtin-help.c+1−1
@@ -439,7 +439,7 @@ int cmd_help(int argc, const char **argv) · 438 unmodified lines
439#ifdef HAVE_LIBELF_SUPPORT439#ifdef HAVE_LIBELF_SUPPORT
440 "probe",440 "probe",
441#endif441#endif
442#ifdef HAVE_LIBAUDIT_SUPPORT442#if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE)
443 "trace",443 "trace",
444#endif444#endif
445 NULL };445 NULL };
tools/perf/builtin-inject.c+1−2
@@ -536,8 +536,7 @@ found: · 535 unmodified lines
536 sample_sw.period = sample->period;536 sample_sw.period = sample->period;
537 sample_sw.time = sample->time;537 sample_sw.time = sample->time;
538 perf_event__synthesize_sample(event_sw, evsel->attr.sample_type,538 perf_event__synthesize_sample(event_sw, evsel->attr.sample_type,
539 evsel->attr.read_format, &sample_sw,539 evsel->attr.read_format, &sample_sw);
540 false);
541 build_id__mark_dso_hit(tool, event_sw, &sample_sw, evsel, machine);540 build_id__mark_dso_hit(tool, event_sw, &sample_sw, evsel, machine);
542 return perf_event__repipe(tool, event_sw, &sample_sw, machine);541 return perf_event__repipe(tool, event_sw, &sample_sw, machine);
543}542}
tools/perf/builtin-kvm.c+8−5
@@ -26,6 +26,9 @@ · 25 unmodified lines
26#include <sys/timerfd.h>26#include <sys/timerfd.h>
27#endif27#endif
28#include <sys/time.h>28#include <sys/time.h>
29#include <sys/types.h>
30#include <sys/stat.h>
31#include <fcntl.h>
29 32
30#include <linux/kernel.h>33#include <linux/kernel.h>
31#include <linux/time64.h>34#include <linux/time64.h>
@@ -741,20 +744,20 @@ static s64 perf_kvm__mmap_read_idx(struct perf_kvm_stat *kvm, int idx, · 709 unmodified lines
741 u64 *mmap_time)744 u64 *mmap_time)
742{745{
743 union perf_event *event;746 union perf_event *event;
744 struct perf_sample sample;747 u64 timestamp;
745 s64 n = 0;748 s64 n = 0;
746 int err;749 int err;
747 750
748 *mmap_time = ULLONG_MAX;751 *mmap_time = ULLONG_MAX;
749 while ((event = perf_evlist__mmap_read(kvm->evlist, idx)) != NULL) {752 while ((event = perf_evlist__mmap_read(kvm->evlist, idx)) != NULL) {
750 err = perf_evlist__parse_sample(kvm->evlist, event, &sample);753 err = perf_evlist__parse_sample_timestamp(kvm->evlist, event, &timestamp);
751 if (err) {754 if (err) {
752 perf_evlist__mmap_consume(kvm->evlist, idx);755 perf_evlist__mmap_consume(kvm->evlist, idx);
753 pr_err("Failed to parse sample\n");756 pr_err("Failed to parse sample\n");
754 return -1;757 return -1;
755 }758 }
756 759
757 err = perf_session__queue_event(kvm->session, event, &sample, 0);760 err = perf_session__queue_event(kvm->session, event, timestamp, 0);
758 /*761 /*
759 * FIXME: Here we can't consume the event, as perf_session__queue_event will762 * FIXME: Here we can't consume the event, as perf_session__queue_event will
760 * point to it, and it'll get possibly overwritten by the kernel.763 * point to it, and it'll get possibly overwritten by the kernel.
@@ -768,7 +771,7 @@ static s64 perf_kvm__mmap_read_idx(struct perf_kvm_stat *kvm, int idx, · 7 unmodified lines
768 771
769 /* save time stamp of our first sample for this mmap */772 /* save time stamp of our first sample for this mmap */
770 if (n == 0)773 if (n == 0)
771 *mmap_time = sample.time;774 *mmap_time = timestamp;
772 775
773 /* limit events per mmap handled all at once */776 /* limit events per mmap handled all at once */
774 n++;777 n++;
@@ -1044,7 +1047,7 @@ static int kvm_live_open_events(struct perf_kvm_stat *kvm) · 269 unmodified lines
1044 goto out;1047 goto out;
1045 }1048 }
1046 1049
1047 if (perf_evlist__mmap(evlist, kvm->opts.mmap_pages, false) < 0) {1050 if (perf_evlist__mmap(evlist, kvm->opts.mmap_pages) < 0) {
1048 ui__error("Failed to mmap the events: %s\n",1051 ui__error("Failed to mmap the events: %s\n",
1049 str_error_r(errno, sbuf, sizeof(sbuf)));1052 str_error_r(errno, sbuf, sizeof(sbuf)));
1050 perf_evlist__close(evlist);1053 perf_evlist__close(evlist);
tools/perf/builtin-record.c+49−14
@@ -51,7 +51,6 @@ · 50 unmodified lines
51#include <signal.h>51#include <signal.h>
52#include <sys/mman.h>52#include <sys/mman.h>
53#include <sys/wait.h>53#include <sys/wait.h>
54#include <asm/bug.h>
55#include <linux/time64.h>54#include <linux/time64.h>
56 55
57struct switch_output {56struct switch_output {
@@ -79,6 +78,7 @@ struct record { · 21 unmodified lines
79 bool no_buildid_cache_set;78 bool no_buildid_cache_set;
80 bool buildid_all;79 bool buildid_all;
81 bool timestamp_filename;80 bool timestamp_filename;
81 bool timestamp_boundary;
82 struct switch_output switch_output;82 struct switch_output switch_output;
83 unsigned long long samples;83 unsigned long long samples;
84};84};
@@ -301,7 +301,7 @@ static int record__mmap_evlist(struct record *rec, · 216 unmodified lines
301 struct record_opts *opts = &rec->opts;301 struct record_opts *opts = &rec->opts;
302 char msg[512];302 char msg[512];
303 303
304 if (perf_evlist__mmap_ex(evlist, opts->mmap_pages, false,304 if (perf_evlist__mmap_ex(evlist, opts->mmap_pages,
305 opts->auxtrace_mmap_pages,305 opts->auxtrace_mmap_pages,
306 opts->auxtrace_snapshot_mode) < 0) {306 opts->auxtrace_snapshot_mode) < 0) {
307 if (errno == EPERM) {307 if (errno == EPERM) {
@@ -372,6 +372,8 @@ try_again: · 64 unmodified lines
372 ui__error("%s\n", msg);372 ui__error("%s\n", msg);
373 goto out;373 goto out;
374 }374 }
375
376 pos->supported = true;
375 }377 }
376 378
377 if (perf_evlist__apply_filters(evlist, &pos)) {379 if (perf_evlist__apply_filters(evlist, &pos)) {
@@ -408,8 +410,15 @@ static int process_sample_event(struct perf_tool *tool, · 30 unmodified lines
408{410{
409 struct record *rec = container_of(tool, struct record, tool);411 struct record *rec = container_of(tool, struct record, tool);
410 412
411 rec->samples++;413 if (rec->evlist->first_sample_time == 0)
414 rec->evlist->first_sample_time = sample->time;
415
416 rec->evlist->last_sample_time = sample->time;
412 417
418 if (rec->buildid_all)
419 return 0;
420
421 rec->samples++;
413 return build_id__mark_dso_hit(tool, event, sample, evsel, machine);422 return build_id__mark_dso_hit(tool, event, sample, evsel, machine);
414}423}
415 424
@@ -434,9 +443,11 @@ static int process_buildids(struct record *rec) · 18 unmodified lines
434 443
435 /*444 /*
436 * If --buildid-all is given, it marks all DSO regardless of hits,445 * If --buildid-all is given, it marks all DSO regardless of hits,
437 * so no need to process samples.446 * so no need to process samples. But if timestamp_boundary is enabled,
447 * it still needs to walk on all samples to get the timestamps of
448 * first/last samples.
438 */449 */
439 if (rec->buildid_all)450 if (rec->buildid_all && !rec->timestamp_boundary)
440 rec->tool.sample = NULL;451 rec->tool.sample = NULL;
441 452
442 return perf_session__process_events(session);453 return perf_session__process_events(session);
@@ -477,7 +488,7 @@ static struct perf_event_header finished_round_event = { · 34 unmodified lines
477};488};
478 489
479static int record__mmap_read_evlist(struct record *rec, struct perf_evlist *evlist,490static int record__mmap_read_evlist(struct record *rec, struct perf_evlist *evlist,
480 bool backward)491 bool overwrite)
481{492{
482 u64 bytes_written = rec->bytes_written;493 u64 bytes_written = rec->bytes_written;
483 int i;494 int i;
@@ -487,18 +498,18 @@ static int record__mmap_read_evlist(struct record *rec, struct perf_evlist *evli · 3 unmodified lines
487 if (!evlist)498 if (!evlist)
488 return 0;499 return 0;
489 500
490 maps = backward ? evlist->backward_mmap : evlist->mmap;501 maps = overwrite ? evlist->overwrite_mmap : evlist->mmap;
491 if (!maps)502 if (!maps)
492 return 0;503 return 0;
493 504
494 if (backward && evlist->bkw_mmap_state != BKW_MMAP_DATA_PENDING)505 if (overwrite && evlist->bkw_mmap_state != BKW_MMAP_DATA_PENDING)
495 return 0;506 return 0;
496 507
497 for (i = 0; i < evlist->nr_mmaps; i++) {508 for (i = 0; i < evlist->nr_mmaps; i++) {
498 struct auxtrace_mmap *mm = &maps[i].auxtrace_mmap;509 struct auxtrace_mmap *mm = &maps[i].auxtrace_mmap;
499 510
500 if (maps[i].base) {511 if (maps[i].base) {
501 if (perf_mmap__push(&maps[i], evlist->overwrite, backward, rec, record__pushfn) != 0) {512 if (perf_mmap__push(&maps[i], overwrite, rec, record__pushfn) != 0) {
502 rc = -1;513 rc = -1;
503 goto out;514 goto out;
504 }515 }
@@ -518,7 +529,7 @@ static int record__mmap_read_evlist(struct record *rec, struct perf_evlist *evli · 13 unmodified lines
518 if (bytes_written != rec->bytes_written)529 if (bytes_written != rec->bytes_written)
519 rc = record__write(rec, &finished_round_event, sizeof(finished_round_event));530 rc = record__write(rec, &finished_round_event, sizeof(finished_round_event));
520 531
521 if (backward)532 if (overwrite)
522 perf_evlist__toggle_bkw_mmap(evlist, BKW_MMAP_EMPTY);533 perf_evlist__toggle_bkw_mmap(evlist, BKW_MMAP_EMPTY);
523out:534out:
524 return rc;535 return rc;
@@ -690,8 +701,8 @@ perf_evlist__pick_pc(struct perf_evlist *evlist) · 165 unmodified lines
690 if (evlist) {701 if (evlist) {
691 if (evlist->mmap && evlist->mmap[0].base)702 if (evlist->mmap && evlist->mmap[0].base)
692 return evlist->mmap[0].base;703 return evlist->mmap[0].base;
693 if (evlist->backward_mmap && evlist->backward_mmap[0].base)704 if (evlist->overwrite_mmap && evlist->overwrite_mmap[0].base)
694 return evlist->backward_mmap[0].base;705 return evlist->overwrite_mmap[0].base;
695 }706 }
696 return NULL;707 return NULL;
697}708}
@@ -784,6 +795,28 @@ static int record__synthesize(struct record *rec, bool tail) · 86 unmodified lines
784 perf_event__synthesize_guest_os, tool);795 perf_event__synthesize_guest_os, tool);
785 }796 }
786 797
798 err = perf_event__synthesize_extra_attr(&rec->tool,
799 rec->evlist,
800 process_synthesized_event,
801 data->is_pipe);
802 if (err)
803 goto out;
804
805 err = perf_event__synthesize_thread_map2(&rec->tool, rec->evlist->threads,
806 process_synthesized_event,
807 NULL);
808 if (err < 0) {
809 pr_err("Couldn't synthesize thread map.\n");
810 return err;
811 }
812
813 err = perf_event__synthesize_cpu_map(&rec->tool, rec->evlist->cpus,
814 process_synthesized_event, NULL);
815 if (err < 0) {
816 pr_err("Couldn't synthesize cpu map.\n");
817 return err;
818 }
819
787 err = __machine__synthesize_threads(machine, tool, &opts->target, rec->evlist->threads,820 err = __machine__synthesize_threads(machine, tool, &opts->target, rec->evlist->threads,
788 process_synthesized_event, opts->sample_address,821 process_synthesized_event, opts->sample_address,
789 opts->proc_map_timeout, 1);822 opts->proc_map_timeout, 1);
@@ -1598,6 +1631,8 @@ static struct option __record_options[] = { · 808 unmodified lines
1598 "Record build-id of all DSOs regardless of hits"),1631 "Record build-id of all DSOs regardless of hits"),
1599 OPT_BOOLEAN(0, "timestamp-filename", &record.timestamp_filename,1632 OPT_BOOLEAN(0, "timestamp-filename", &record.timestamp_filename,
1600 "append timestamp to output filename"),1633 "append timestamp to output filename"),
1634 OPT_BOOLEAN(0, "timestamp-boundary", &record.timestamp_boundary,
1635 "Record timestamp boundary (time of first/last samples)"),
1601 OPT_STRING_OPTARG_SET(0, "switch-output", &record.switch_output.str,1636 OPT_STRING_OPTARG_SET(0, "switch-output", &record.switch_output.str,
1602 &record.switch_output.set, "signal,size,time",1637 &record.switch_output.set, "signal,size,time",
1603 "Switch output when receive SIGUSR2 or cross size,time threshold",1638 "Switch output when receive SIGUSR2 or cross size,time threshold",
@@ -1781,8 +1816,8 @@ int cmd_record(int argc, const char **argv) · 177 unmodified lines
1781 goto out;1816 goto out;
1782 }1817 }
1783 1818
1784 /* Enable ignoring missing threads when -u option is defined. */1819 /* Enable ignoring missing threads when -u/-p option is defined. */
1785 rec->opts.ignore_missing_thread = rec->opts.target.uid != UINT_MAX;1820 rec->opts.ignore_missing_thread = rec->opts.target.uid != UINT_MAX || rec->opts.target.pid;
1786 1821
1787 err = -ENOMEM;1822 err = -ENOMEM;
1788 if (perf_evlist__create_maps(rec->evlist, &rec->opts.target) < 0)1823 if (perf_evlist__create_maps(rec->evlist, &rec->opts.target) < 0)
tools/perf/builtin-report.c+267−16
@@ -15,6 +15,7 @@ · 14 unmodified lines
15#include "util/color.h"15#include "util/color.h"
16#include <linux/list.h>16#include <linux/list.h>
17#include <linux/rbtree.h>17#include <linux/rbtree.h>
18#include <linux/err.h>
18#include "util/symbol.h"19#include "util/symbol.h"
19#include "util/callchain.h"20#include "util/callchain.h"
20#include "util/values.h"21#include "util/values.h"
@@ -51,6 +52,7 @@ · 30 unmodified lines
51#include <sys/types.h>52#include <sys/types.h>
52#include <sys/stat.h>53#include <sys/stat.h>
53#include <unistd.h>54#include <unistd.h>
55#include <linux/mman.h>
54 56
55struct report {57struct report {
56 struct perf_tool tool;58 struct perf_tool tool;
@@ -60,6 +62,9 @@ struct report { · 3 unmodified lines
60 bool show_threads;62 bool show_threads;
61 bool inverted_callchain;63 bool inverted_callchain;
62 bool mem_mode;64 bool mem_mode;
65 bool stats_mode;
66 bool tasks_mode;
67 bool mmaps_mode;
63 bool header;68 bool header;
64 bool header_only;69 bool header_only;
65 bool nonany_branch_mode;70 bool nonany_branch_mode;
@@ -69,7 +74,9 @@ struct report { · 3 unmodified lines
69 const char *cpu_list;74 const char *cpu_list;
70 const char *symbol_filter_str;75 const char *symbol_filter_str;
71 const char *time_str;76 const char *time_str;
72 struct perf_time_interval ptime;77 struct perf_time_interval *ptime_range;
78 int range_size;
79 int range_num;
73 float min_percent;80 float min_percent;
74 u64 nr_entries;81 u64 nr_entries;
75 u64 queue_size;82 u64 queue_size;
@@ -162,12 +169,28 @@ static int hist_iter__branch_callback(struct hist_entry_iter *iter, · 86 unmodified lines
162 struct hist_entry *he = iter->he;169 struct hist_entry *he = iter->he;
163 struct report *rep = arg;170 struct report *rep = arg;
164 struct branch_info *bi;171 struct branch_info *bi;
172 struct perf_sample *sample = iter->sample;
173 struct perf_evsel *evsel = iter->evsel;
174 int err;
175
176 if (!ui__has_annotation())
177 return 0;
178
179 hist__account_cycles(sample->branch_stack, al, sample,
180 rep->nonany_branch_mode);
165 181
166 bi = he->branch_info;182 bi = he->branch_info;
183 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel->idx);
184 if (err)
185 goto out;
186
187 err = addr_map_symbol__inc_samples(&bi->to, sample, evsel->idx);
188
167 branch_type_count(&rep->brtype_stat, &bi->flags,189 branch_type_count(&rep->brtype_stat, &bi->flags,
168 bi->from.addr, bi->to.addr);190 bi->from.addr, bi->to.addr);
169 191
170 return 0;192out:
193 return err;
171}194}
172 195
173static int process_sample_event(struct perf_tool *tool,196static int process_sample_event(struct perf_tool *tool,
@@ -186,8 +209,10 @@ static int process_sample_event(struct perf_tool *tool, · 12 unmodified lines
186 };209 };
187 int ret = 0;210 int ret = 0;
188 211
189 if (perf_time__skip_sample(&rep->ptime, sample->time))212 if (perf_time__ranges_skip_sample(rep->ptime_range, rep->range_num,
213 sample->time)) {
190 return 0;214 return 0;
215 }
191 216
192 if (machine__resolve(machine, &al, sample) < 0) {217 if (machine__resolve(machine, &al, sample) < 0) {
193 pr_debug("problem processing %d event, skipping it.\n",218 pr_debug("problem processing %d event, skipping it.\n",
@@ -312,9 +337,10 @@ static int report__setup_sample_type(struct report *rep) · 118 unmodified lines
312 337
313 if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain) {338 if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain) {
314 if ((sample_type & PERF_SAMPLE_REGS_USER) &&339 if ((sample_type & PERF_SAMPLE_REGS_USER) &&
315 (sample_type & PERF_SAMPLE_STACK_USER))340 (sample_type & PERF_SAMPLE_STACK_USER)) {
316 callchain_param.record_mode = CALLCHAIN_DWARF;341 callchain_param.record_mode = CALLCHAIN_DWARF;
317 else if (sample_type & PERF_SAMPLE_BRANCH_STACK)342 dwarf_callchain_users = true;
343 } else if (sample_type & PERF_SAMPLE_BRANCH_STACK)
318 callchain_param.record_mode = CALLCHAIN_LBR;344 callchain_param.record_mode = CALLCHAIN_LBR;
319 else345 else
320 callchain_param.record_mode = CALLCHAIN_FP;346 callchain_param.record_mode = CALLCHAIN_FP;
@@ -377,6 +403,9 @@ static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report · 56 unmodified lines
377 if (evname != NULL)403 if (evname != NULL)
378 ret += fprintf(fp, " of event '%s'", evname);404 ret += fprintf(fp, " of event '%s'", evname);
379 405
406 if (rep->time_str)
407 ret += fprintf(fp, " (time slices: %s)", rep->time_str);
408
380 if (symbol_conf.show_ref_callgraph &&409 if (symbol_conf.show_ref_callgraph &&
381 strstr(evname, "call-graph=no")) {410 strstr(evname, "call-graph=no")) {
382 ret += fprintf(fp, ", show reference callgraph");411 ret += fprintf(fp, ", show reference callgraph");
@@ -567,6 +596,174 @@ static void report__output_resort(struct report *rep) · 184 unmodified lines
567 ui_progress__finish();596 ui_progress__finish();
568}597}
569 598
599static void stats_setup(struct report *rep)
600{
601 memset(&rep->tool, 0, sizeof(rep->tool));
602 rep->tool.no_warn = true;
603}
604
605static int stats_print(struct report *rep)
606{
607 struct perf_session *session = rep->session;
608
609 perf_session__fprintf_nr_events(session, stdout);
610 return 0;
611}
612
613static void tasks_setup(struct report *rep)
614{
615 memset(&rep->tool, 0, sizeof(rep->tool));
616 if (rep->mmaps_mode) {
617 rep->tool.mmap = perf_event__process_mmap;
618 rep->tool.mmap2 = perf_event__process_mmap2;
619 }
620 rep->tool.comm = perf_event__process_comm;
621 rep->tool.exit = perf_event__process_exit;
622 rep->tool.fork = perf_event__process_fork;
623 rep->tool.no_warn = true;
624}
625
626struct task {
627 struct thread *thread;
628 struct list_head list;
629 struct list_head children;
630};
631
632static struct task *tasks_list(struct task *task, struct machine *machine)
633{
634 struct thread *parent_thread, *thread = task->thread;
635 struct task *parent_task;
636
637 /* Already listed. */
638 if (!list_empty(&task->list))
639 return NULL;
640
641 /* Last one in the chain. */
642 if (thread->ppid == -1)
643 return task;
644
645 parent_thread = machine__find_thread(machine, -1, thread->ppid);
646 if (!parent_thread)
647 return ERR_PTR(-ENOENT);
648
649 parent_task = thread__priv(parent_thread);
650 list_add_tail(&task->list, &parent_task->children);
651 return tasks_list(parent_task, machine);
652}
653
654static size_t maps__fprintf_task(struct maps *maps, int indent, FILE *fp)
655{
656 size_t printed = 0;
657 struct rb_node *nd;
658
659 for (nd = rb_first(&maps->entries); nd; nd = rb_next(nd)) {
660 struct map *map = rb_entry(nd, struct map, rb_node);
661
662 printed += fprintf(fp, "%*s %" PRIx64 "-%" PRIx64 " %c%c%c%c %08" PRIx64 " %" PRIu64 " %s\n",
663 indent, "", map->start, map->end,
664 map->prot & PROT_READ ? 'r' : '-',
665 map->prot & PROT_WRITE ? 'w' : '-',
666 map->prot & PROT_EXEC ? 'x' : '-',
667 map->flags & MAP_SHARED ? 's' : 'p',
668 map->pgoff,
669 map->ino, map->dso->name);
670 }
671
672 return printed;
673}
674
675static int map_groups__fprintf_task(struct map_groups *mg, int indent, FILE *fp)
676{
677 int printed = 0, i;
678 for (i = 0; i < MAP__NR_TYPES; ++i)
679 printed += maps__fprintf_task(&mg->maps[i], indent, fp);
680 return printed;
681}
682
683static void task__print_level(struct task *task, FILE *fp, int level)
684{
685 struct thread *thread = task->thread;
686 struct task *child;
687 int comm_indent = fprintf(fp, " %8d %8d %8d |%*s",
688 thread->pid_, thread->tid, thread->ppid,
689 level, "");
690
691 fprintf(fp, "%s\n", thread__comm_str(thread));
692
693 map_groups__fprintf_task(thread->mg, comm_indent, fp);
694
695 if (!list_empty(&task->children)) {
696 list_for_each_entry(child, &task->children, list)
697 task__print_level(child, fp, level + 1);
698 }
699}
700
701static int tasks_print(struct report *rep, FILE *fp)
702{
703 struct perf_session *session = rep->session;
704 struct machine *machine = &session->machines.host;
705 struct task *tasks, *task;
706 unsigned int nr = 0, itask = 0, i;
707 struct rb_node *nd;
708 LIST_HEAD(list);
709
710 /*
711 * No locking needed while accessing machine->threads,
712 * because --tasks is single threaded command.
713 */
714
715 /* Count all the threads. */
716 for (i = 0; i < THREADS__TABLE_SIZE; i++)
717 nr += machine->threads[i].nr;
718
719 tasks = malloc(sizeof(*tasks) * nr);
720 if (!tasks)
721 return -ENOMEM;
722
723 for (i = 0; i < THREADS__TABLE_SIZE; i++) {
724 struct threads *threads = &machine->threads[i];
725
726 for (nd = rb_first(&threads->entries); nd; nd = rb_next(nd)) {
727 task = tasks + itask++;
728
729 task->thread = rb_entry(nd, struct thread, rb_node);
730 INIT_LIST_HEAD(&task->children);
731 INIT_LIST_HEAD(&task->list);
732 thread__set_priv(task->thread, task);
733 }
734 }
735
736 /*
737 * Iterate every task down to the unprocessed parent
738 * and link all in task children list. Task with no
739 * parent is added into 'list'.
740 */
741 for (itask = 0; itask < nr; itask++) {
742 task = tasks + itask;
743
744 if (!list_empty(&task->list))
745 continue;
746
747 task = tasks_list(task, machine);
748 if (IS_ERR(task)) {
749 pr_err("Error: failed to process tasks\n");
750 free(tasks);
751 return PTR_ERR(task);
752 }
753
754 if (task)
755 list_add_tail(&task->list, &list);
756 }
757
758 fprintf(fp, "# %8s %8s %8s %s\n", "pid", "tid", "ppid", "comm");
759
760 list_for_each_entry(task, &list, list)
761 task__print_level(task, fp, 0);
762
763 free(tasks);
764 return 0;
765}
766
570static int __cmd_report(struct report *rep)767static int __cmd_report(struct report *rep)
571{768{
572 int ret;769 int ret;
@@ -598,12 +795,24 @@ static int __cmd_report(struct report *rep) · 25 unmodified lines
598 return ret;795 return ret;
599 }796 }
600 797
798 if (rep->stats_mode)
799 stats_setup(rep);
800
801 if (rep->tasks_mode)
802 tasks_setup(rep);
803
601 ret = perf_session__process_events(session);804 ret = perf_session__process_events(session);
602 if (ret) {805 if (ret) {
603 ui__error("failed to process sample\n");806 ui__error("failed to process sample\n");
604 return ret;807 return ret;
605 }808 }
606 809
810 if (rep->stats_mode)
811 return stats_print(rep);
812
813 if (rep->tasks_mode)
814 return tasks_print(rep, stdout);
815
607 report__warn_kptr_restrict(rep);816 report__warn_kptr_restrict(rep);
608 817
609 evlist__for_each_entry(session->evlist, pos)818 evlist__for_each_entry(session->evlist, pos)
@@ -760,6 +969,9 @@ int cmd_report(int argc, const char **argv) · 150 unmodified lines
760 OPT_BOOLEAN('q', "quiet", &quiet, "Do not show any message"),969 OPT_BOOLEAN('q', "quiet", &quiet, "Do not show any message"),
761 OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,970 OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,
762 "dump raw trace in ASCII"),971 "dump raw trace in ASCII"),
972 OPT_BOOLEAN(0, "stats", &report.stats_mode, "Display event stats"),
973 OPT_BOOLEAN(0, "tasks", &report.tasks_mode, "Display recorded tasks"),
974 OPT_BOOLEAN(0, "mmaps", &report.mmaps_mode, "Display recorded tasks memory maps"),
763 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name,975 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name,
764 "file", "vmlinux pathname"),976 "file", "vmlinux pathname"),
765 OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name,977 OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name,
@@ -907,6 +1119,9 @@ int cmd_report(int argc, const char **argv) · 141 unmodified lines
907 report.symbol_filter_str = argv[0];1119 report.symbol_filter_str = argv[0];
908 }1120 }
909 1121
1122 if (report.mmaps_mode)
1123 report.tasks_mode = true;
1124
910 if (quiet)1125 if (quiet)
911 perf_quiet_option();1126 perf_quiet_option();
912 1127
@@ -921,13 +1136,6 @@ int cmd_report(int argc, const char **argv) · 8 unmodified lines
921 return -EINVAL;1136 return -EINVAL;
922 }1137 }
923 1138
924 if (report.use_stdio)
925 use_browser = 0;
926 else if (report.use_tui)
927 use_browser = 1;
928 else if (report.use_gtk)
929 use_browser = 2;
930
931 if (report.inverted_callchain)1139 if (report.inverted_callchain)
932 callchain_param.order = ORDER_CALLER;1140 callchain_param.order = ORDER_CALLER;
933 if (symbol_conf.cumulate_callchain && !callchain_param.order_set)1141 if (symbol_conf.cumulate_callchain && !callchain_param.order_set)
@@ -1014,6 +1222,13 @@ repeat: · 80 unmodified lines
1014 perf_hpp_list.need_collapse = true;1222 perf_hpp_list.need_collapse = true;
1015 }1223 }
1016 1224
1225 if (report.use_stdio)
1226 use_browser = 0;
1227 else if (report.use_tui)
1228 use_browser = 1;
1229 else if (report.use_gtk)
1230 use_browser = 2;
1231
1017 /* Force tty output for header output and per-thread stat. */1232 /* Force tty output for header output and per-thread stat. */
1018 if (report.header || report.header_only || report.show_threads)1233 if (report.header || report.header_only || report.show_threads)
1019 use_browser = 0;1234 use_browser = 0;
@@ -1021,6 +1236,12 @@ repeat: · 1 unmodified line
1021 report.tool.show_feat_hdr = SHOW_FEAT_HEADER;1236 report.tool.show_feat_hdr = SHOW_FEAT_HEADER;
1022 if (report.show_full_info)1237 if (report.show_full_info)
1023 report.tool.show_feat_hdr = SHOW_FEAT_HEADER_FULL_INFO;1238 report.tool.show_feat_hdr = SHOW_FEAT_HEADER_FULL_INFO;
1239 if (report.stats_mode || report.tasks_mode)
1240 use_browser = 0;
1241 if (report.stats_mode && report.tasks_mode) {
1242 pr_err("Error: --tasks and --mmaps can't be used together with --stats\n");
1243 goto error;
1244 }
1024 1245
1025 if (strcmp(input_name, "-") != 0)1246 if (strcmp(input_name, "-") != 0)
1026 setup_browser(true);1247 setup_browser(true);
@@ -1043,7 +1264,8 @@ repeat: · 16 unmodified lines
1043 ret = 0;1264 ret = 0;
1044 goto error;1265 goto error;
1045 }1266 }
1046 } else if (use_browser == 0 && !quiet) {1267 } else if (use_browser == 0 && !quiet &&
1268 !report.stats_mode && !report.tasks_mode) {
1047 fputs("# To display the perf.data header info, please use --header/--header-only options.\n#\n",1269 fputs("# To display the perf.data header info, please use --header/--header-only options.\n#\n",
1048 stdout);1270 stdout);
1049 }1271 }
@@ -1077,9 +1299,36 @@ repeat: · 27 unmodified lines
1077 if (symbol__init(&session->header.env) < 0)1299 if (symbol__init(&session->header.env) < 0)
1078 goto error;1300 goto error;
1079 1301
1080 if (perf_time__parse_str(&report.ptime, report.time_str) != 0) {1302 report.ptime_range = perf_time__range_alloc(report.time_str,
1081 pr_err("Invalid time string\n");1303 &report.range_size);
1082 return -EINVAL;1304 if (!report.ptime_range) {
1305 ret = -ENOMEM;
1306 goto error;
1307 }
1308
1309 if (perf_time__parse_str(report.ptime_range, report.time_str) != 0) {
1310 if (session->evlist->first_sample_time == 0 &&
1311 session->evlist->last_sample_time == 0) {
1312 pr_err("HINT: no first/last sample time found in perf data.\n"
1313 "Please use latest perf binary to execute 'perf record'\n"
1314 "(if '--buildid-all' is enabled, please set '--timestamp-boundary').\n");
1315 ret = -EINVAL;
1316 goto error;
1317 }
1318
1319 report.range_num = perf_time__percent_parse_str(
1320 report.ptime_range, report.range_size,
1321 report.time_str,
1322 session->evlist->first_sample_time,
1323 session->evlist->last_sample_time);
1324
1325 if (report.range_num < 0) {
1326 pr_err("Invalid time string\n");
1327 ret = -EINVAL;
1328 goto error;
1329 }
1330 } else {
1331 report.range_num = 1;
1083 }1332 }
1084 1333
1085 sort__setup_elide(stdout);1334 sort__setup_elide(stdout);
@@ -1092,6 +1341,8 @@ repeat: · 6 unmodified lines
1092 ret = 0;1341 ret = 0;
1093 1342
1094error:1343error:
1344 zfree(&report.ptime_range);
1345
1095 perf_session__delete(session);1346 perf_session__delete(session);
1096 return ret;1347 return ret;
1097}1348}
tools/perf/builtin-script.c+229−37
@@ -22,9 +22,11 @@ · 21 unmodified lines
22#include "util/cpumap.h"22#include "util/cpumap.h"
23#include "util/thread_map.h"23#include "util/thread_map.h"
24#include "util/stat.h"24#include "util/stat.h"
25#include "util/color.h"
25#include "util/string2.h"26#include "util/string2.h"
26#include "util/thread-stack.h"27#include "util/thread-stack.h"
27#include "util/time-utils.h"28#include "util/time-utils.h"
29#include "util/path.h"
28#include "print_binary.h"30#include "print_binary.h"
29#include <linux/bitmap.h>31#include <linux/bitmap.h>
30#include <linux/kernel.h>32#include <linux/kernel.h>
@@ -40,6 +42,7 @@ · 9 unmodified lines
40#include <sys/param.h>42#include <sys/param.h>
41#include <sys/types.h>43#include <sys/types.h>
42#include <sys/stat.h>44#include <sys/stat.h>
45#include <fcntl.h>
43#include <unistd.h>46#include <unistd.h>
44 47
45#include "sane_ctype.h"48#include "sane_ctype.h"
@@ -90,6 +93,8 @@ enum perf_output_field { · 44 unmodified lines
90 PERF_OUTPUT_SYNTH = 1U << 25,93 PERF_OUTPUT_SYNTH = 1U << 25,
91 PERF_OUTPUT_PHYS_ADDR = 1U << 26,94 PERF_OUTPUT_PHYS_ADDR = 1U << 26,
92 PERF_OUTPUT_UREGS = 1U << 27,95 PERF_OUTPUT_UREGS = 1U << 27,
96 PERF_OUTPUT_METRIC = 1U << 28,
97 PERF_OUTPUT_MISC = 1U << 29,
93};98};
94 99
95struct output_option {100struct output_option {
@@ -124,6 +129,8 @@ struct output_option { · 28 unmodified lines
124 {.str = "brstackoff", .field = PERF_OUTPUT_BRSTACKOFF},129 {.str = "brstackoff", .field = PERF_OUTPUT_BRSTACKOFF},
125 {.str = "synth", .field = PERF_OUTPUT_SYNTH},130 {.str = "synth", .field = PERF_OUTPUT_SYNTH},
126 {.str = "phys_addr", .field = PERF_OUTPUT_PHYS_ADDR},131 {.str = "phys_addr", .field = PERF_OUTPUT_PHYS_ADDR},
132 {.str = "metric", .field = PERF_OUTPUT_METRIC},
133 {.str = "misc", .field = PERF_OUTPUT_MISC},
127};134};
128 135
129enum {136enum {
@@ -215,12 +222,20 @@ struct perf_evsel_script { · 85 unmodified lines
215 char *filename;222 char *filename;
216 FILE *fp;223 FILE *fp;
217 u64 samples;224 u64 samples;
225 /* For metric output */
226 u64 val;
227 int gnum;
218};228};
219 229
230static inline struct perf_evsel_script *evsel_script(struct perf_evsel *evsel)
231{
232 return (struct perf_evsel_script *)evsel->priv;
233}
234
220static struct perf_evsel_script *perf_evsel_script__new(struct perf_evsel *evsel,235static struct perf_evsel_script *perf_evsel_script__new(struct perf_evsel *evsel,
221 struct perf_data *data)236 struct perf_data *data)
222{237{
223 struct perf_evsel_script *es = malloc(sizeof(*es));238 struct perf_evsel_script *es = zalloc(sizeof(*es));
224 239
225 if (es != NULL) {240 if (es != NULL) {
226 if (asprintf(&es->filename, "%s.%s.dump", data->file.path, perf_evsel__name(evsel)) < 0)241 if (asprintf(&es->filename, "%s.%s.dump", data->file.path, perf_evsel__name(evsel)) < 0)
@@ -228,7 +243,6 @@ static struct perf_evsel_script *perf_evsel_script__new(struct perf_evsel *evsel · 1 unmodified line
228 es->fp = fopen(es->filename, "w");243 es->fp = fopen(es->filename, "w");
229 if (es->fp == NULL)244 if (es->fp == NULL)
230 goto out_free_filename;245 goto out_free_filename;
231 es->samples = 0;
232 }246 }
233 247
234 return es;248 return es;
@@ -423,11 +437,6 @@ static int perf_evsel__check_attr(struct perf_evsel *evsel, · 188 unmodified lines
423 PERF_OUTPUT_CPU, allow_user_set))437 PERF_OUTPUT_CPU, allow_user_set))
424 return -EINVAL;438 return -EINVAL;
425 439
426 if (PRINT_FIELD(PERIOD) &&
427 perf_evsel__check_stype(evsel, PERF_SAMPLE_PERIOD, "PERIOD",
428 PERF_OUTPUT_PERIOD))
429 return -EINVAL;
430
431 if (PRINT_FIELD(IREGS) &&440 if (PRINT_FIELD(IREGS) &&
432 perf_evsel__check_stype(evsel, PERF_SAMPLE_REGS_INTR, "IREGS",441 perf_evsel__check_stype(evsel, PERF_SAMPLE_REGS_INTR, "IREGS",
433 PERF_OUTPUT_IREGS))442 PERF_OUTPUT_IREGS))
@@ -588,7 +597,8 @@ static int perf_sample__fprintf_uregs(struct perf_sample *sample, · 154 unmodified lines
588 597
589static int perf_sample__fprintf_start(struct perf_sample *sample,598static int perf_sample__fprintf_start(struct perf_sample *sample,
590 struct thread *thread,599 struct thread *thread,
591 struct perf_evsel *evsel, FILE *fp)600 struct perf_evsel *evsel,
601 u32 type, FILE *fp)
592{602{
593 struct perf_event_attr *attr = &evsel->attr;603 struct perf_event_attr *attr = &evsel->attr;
594 unsigned long secs;604 unsigned long secs;
@@ -618,6 +628,47 @@ static int perf_sample__fprintf_start(struct perf_sample *sample, · 23 unmodified lines
618 printed += fprintf(fp, "[%03d] ", sample->cpu);628 printed += fprintf(fp, "[%03d] ", sample->cpu);
619 }629 }
620 630
631 if (PRINT_FIELD(MISC)) {
632 int ret = 0;
633
634 #define has(m) \
635 (sample->misc & PERF_RECORD_MISC_##m) == PERF_RECORD_MISC_##m
636
637 if (has(KERNEL))
638 ret += fprintf(fp, "K");
639 if (has(USER))
640 ret += fprintf(fp, "U");
641 if (has(HYPERVISOR))
642 ret += fprintf(fp, "H");
643 if (has(GUEST_KERNEL))
644 ret += fprintf(fp, "G");
645 if (has(GUEST_USER))
646 ret += fprintf(fp, "g");
647
648 switch (type) {
649 case PERF_RECORD_MMAP:
650 case PERF_RECORD_MMAP2:
651 if (has(MMAP_DATA))
652 ret += fprintf(fp, "M");
653 break;
654 case PERF_RECORD_COMM:
655 if (has(COMM_EXEC))
656 ret += fprintf(fp, "E");
657 break;
658 case PERF_RECORD_SWITCH:
659 case PERF_RECORD_SWITCH_CPU_WIDE:
660 if (has(SWITCH_OUT))
661 ret += fprintf(fp, "S");
662 default:
663 break;
664 }
665
666 #undef has
667
668 ret += fprintf(fp, "%*s", 6 - ret, " ");
669 printed += ret;
670 }
671
621 if (PRINT_FIELD(TIME)) {672 if (PRINT_FIELD(TIME)) {
622 nsecs = sample->time;673 nsecs = sample->time;
623 secs = nsecs / NSEC_PER_SEC;674 secs = nsecs / NSEC_PER_SEC;
@@ -1437,13 +1488,16 @@ struct perf_script { · 813 unmodified lines
1437 bool show_mmap_events;1488 bool show_mmap_events;
1438 bool show_switch_events;1489 bool show_switch_events;
1439 bool show_namespace_events;1490 bool show_namespace_events;
1491 bool show_lost_events;
1440 bool allocated;1492 bool allocated;
1441 bool per_event_dump;1493 bool per_event_dump;
1442 struct cpu_map *cpus;1494 struct cpu_map *cpus;
1443 struct thread_map *threads;1495 struct thread_map *threads;
1444 int name_width;1496 int name_width;
1445 const char *time_str;1497 const char *time_str;
1446 struct perf_time_interval ptime;1498 struct perf_time_interval *ptime_range;
1499 int range_size;
1500 int range_num;
1447};1501};
1448 1502
1449static int perf_evlist__max_name_len(struct perf_evlist *evlist)1503static int perf_evlist__max_name_len(struct perf_evlist *evlist)
@@ -1477,6 +1531,88 @@ static int data_src__fprintf(u64 data_src, FILE *fp) · 27 unmodified lines
1477 return fprintf(fp, "%-*s", maxlen, out);1531 return fprintf(fp, "%-*s", maxlen, out);
1478}1532}
1479 1533
1534struct metric_ctx {
1535 struct perf_sample *sample;
1536 struct thread *thread;
1537 struct perf_evsel *evsel;
1538 FILE *fp;
1539};
1540
1541static void script_print_metric(void *ctx, const char *color,
1542 const char *fmt,
1543 const char *unit, double val)
1544{
1545 struct metric_ctx *mctx = ctx;
1546
1547 if (!fmt)
1548 return;
1549 perf_sample__fprintf_start(mctx->sample, mctx->thread, mctx->evsel,
1550 PERF_RECORD_SAMPLE, mctx->fp);
1551 fputs("\tmetric: ", mctx->fp);
1552 if (color)
1553 color_fprintf(mctx->fp, color, fmt, val);
1554 else
1555 printf(fmt, val);
1556 fprintf(mctx->fp, " %s\n", unit);
1557}
1558
1559static void script_new_line(void *ctx)
1560{
1561 struct metric_ctx *mctx = ctx;
1562
1563 perf_sample__fprintf_start(mctx->sample, mctx->thread, mctx->evsel,
1564 PERF_RECORD_SAMPLE, mctx->fp);
1565 fputs("\tmetric: ", mctx->fp);
1566}
1567
1568static void perf_sample__fprint_metric(struct perf_script *script,
1569 struct thread *thread,
1570 struct perf_evsel *evsel,
1571 struct perf_sample *sample,
1572 FILE *fp)
1573{
1574 struct perf_stat_output_ctx ctx = {
1575 .print_metric = script_print_metric,
1576 .new_line = script_new_line,
1577 .ctx = &(struct metric_ctx) {
1578 .sample = sample,
1579 .thread = thread,
1580 .evsel = evsel,
1581 .fp = fp,
1582 },
1583 .force_header = false,
1584 };
1585 struct perf_evsel *ev2;
1586 static bool init;
1587 u64 val;
1588
1589 if (!init) {
1590 perf_stat__init_shadow_stats();
1591 init = true;
1592 }
1593 if (!evsel->stats)
1594 perf_evlist__alloc_stats(script->session->evlist, false);
1595 if (evsel_script(evsel->leader)->gnum++ == 0)
1596 perf_stat__reset_shadow_stats();
1597 val = sample->period * evsel->scale;
1598 perf_stat__update_shadow_stats(evsel,
1599 val,
1600 sample->cpu,
1601 &rt_stat);
1602 evsel_script(evsel)->val = val;
1603 if (evsel_script(evsel->leader)->gnum == evsel->leader->nr_members) {
1604 for_each_group_member (ev2, evsel->leader) {
1605 perf_stat__print_shadow_stats(ev2,
1606 evsel_script(ev2)->val,
1607 sample->cpu,
1608 &ctx,
1609 NULL,
1610 &rt_stat);
1611 }
1612 evsel_script(evsel->leader)->gnum = 0;
1613 }
1614}
1615
1480static void process_event(struct perf_script *script,1616static void process_event(struct perf_script *script,
1481 struct perf_sample *sample, struct perf_evsel *evsel,1617 struct perf_sample *sample, struct perf_evsel *evsel,
1482 struct addr_location *al,1618 struct addr_location *al,
@@ -1493,7 +1629,8 @@ static void process_event(struct perf_script *script, · 10 unmodified lines
1493 1629
1494 ++es->samples;1630 ++es->samples;
1495 1631
1496 perf_sample__fprintf_start(sample, thread, evsel, fp);1632 perf_sample__fprintf_start(sample, thread, evsel,
1633 PERF_RECORD_SAMPLE, fp);
1497 1634
1498 if (PRINT_FIELD(PERIOD))1635 if (PRINT_FIELD(PERIOD))
1499 fprintf(fp, "%10" PRIu64 " ", sample->period);1636 fprintf(fp, "%10" PRIu64 " ", sample->period);
@@ -1564,6 +1701,9 @@ static void process_event(struct perf_script *script, · 64 unmodified lines
1564 if (PRINT_FIELD(PHYS_ADDR))1701 if (PRINT_FIELD(PHYS_ADDR))
1565 fprintf(fp, "%16" PRIx64, sample->phys_addr);1702 fprintf(fp, "%16" PRIx64, sample->phys_addr);
1566 fprintf(fp, "\n");1703 fprintf(fp, "\n");
1704
1705 if (PRINT_FIELD(METRIC))
1706 perf_sample__fprint_metric(script, thread, evsel, sample, fp);
1567}1707}
1568 1708
1569static struct scripting_ops *scripting_ops;1709static struct scripting_ops *scripting_ops;
@@ -1643,8 +1783,10 @@ static int process_sample_event(struct perf_tool *tool, · 73 unmodified lines
1643 struct perf_script *scr = container_of(tool, struct perf_script, tool);1783 struct perf_script *scr = container_of(tool, struct perf_script, tool);
1644 struct addr_location al;1784 struct addr_location al;
1645 1785
1646 if (perf_time__skip_sample(&scr->ptime, sample->time))1786 if (perf_time__ranges_skip_sample(scr->ptime_range, scr->range_num,
1787 sample->time)) {
1647 return 0;1788 return 0;
1789 }
1648 1790
1649 if (debug_mode) {1791 if (debug_mode) {
1650 if (sample->time < last_timestamp) {1792 if (sample->time < last_timestamp) {
@@ -1737,7 +1879,8 @@ static int process_comm_event(struct perf_tool *tool, · 86 unmodified lines
1737 sample->tid = event->comm.tid;1879 sample->tid = event->comm.tid;
1738 sample->pid = event->comm.pid;1880 sample->pid = event->comm.pid;
1739 }1881 }
1740 perf_sample__fprintf_start(sample, thread, evsel, stdout);1882 perf_sample__fprintf_start(sample, thread, evsel,
1883 PERF_RECORD_COMM, stdout);
1741 perf_event__fprintf(event, stdout);1884 perf_event__fprintf(event, stdout);
1742 ret = 0;1885 ret = 0;
1743out:1886out:
@@ -1772,7 +1915,8 @@ static int process_namespaces_event(struct perf_tool *tool, · 28 unmodified lines
1772 sample->tid = event->namespaces.tid;1915 sample->tid = event->namespaces.tid;
1773 sample->pid = event->namespaces.pid;1916 sample->pid = event->namespaces.pid;
1774 }1917 }
1775 perf_sample__fprintf_start(sample, thread, evsel, stdout);1918 perf_sample__fprintf_start(sample, thread, evsel,
1919 PERF_RECORD_NAMESPACES, stdout);
1776 perf_event__fprintf(event, stdout);1920 perf_event__fprintf(event, stdout);
1777 ret = 0;1921 ret = 0;
1778out:1922out:
@@ -1805,7 +1949,8 @@ static int process_fork_event(struct perf_tool *tool, · 26 unmodified lines
1805 sample->tid = event->fork.tid;1949 sample->tid = event->fork.tid;
1806 sample->pid = event->fork.pid;1950 sample->pid = event->fork.pid;
1807 }1951 }
1808 perf_sample__fprintf_start(sample, thread, evsel, stdout);1952 perf_sample__fprintf_start(sample, thread, evsel,
1953 PERF_RECORD_FORK, stdout);
1809 perf_event__fprintf(event, stdout);1954 perf_event__fprintf(event, stdout);
1810 thread__put(thread);1955 thread__put(thread);
1811 1956
@@ -1834,7 +1979,8 @@ static int process_exit_event(struct perf_tool *tool, · 22 unmodified lines
1834 sample->tid = event->fork.tid;1979 sample->tid = event->fork.tid;
1835 sample->pid = event->fork.pid;1980 sample->pid = event->fork.pid;
1836 }1981 }
1837 perf_sample__fprintf_start(sample, thread, evsel, stdout);1982 perf_sample__fprintf_start(sample, thread, evsel,
1983 PERF_RECORD_EXIT, stdout);
1838 perf_event__fprintf(event, stdout);1984 perf_event__fprintf(event, stdout);
1839 1985
1840 if (perf_event__process_exit(tool, event, sample, machine) < 0)1986 if (perf_event__process_exit(tool, event, sample, machine) < 0)
@@ -1869,7 +2015,8 @@ static int process_mmap_event(struct perf_tool *tool, · 28 unmodified lines
1869 sample->tid = event->mmap.tid;2015 sample->tid = event->mmap.tid;
1870 sample->pid = event->mmap.pid;2016 sample->pid = event->mmap.pid;
1871 }2017 }
1872 perf_sample__fprintf_start(sample, thread, evsel, stdout);2018 perf_sample__fprintf_start(sample, thread, evsel,
2019 PERF_RECORD_MMAP, stdout);
1873 perf_event__fprintf(event, stdout);2020 perf_event__fprintf(event, stdout);
1874 thread__put(thread);2021 thread__put(thread);
1875 return 0;2022 return 0;
@@ -1900,7 +2047,8 @@ static int process_mmap2_event(struct perf_tool *tool, · 24 unmodified lines
1900 sample->tid = event->mmap2.tid;2047 sample->tid = event->mmap2.tid;
1901 sample->pid = event->mmap2.pid;2048 sample->pid = event->mmap2.pid;
1902 }2049 }
1903 perf_sample__fprintf_start(sample, thread, evsel, stdout);2050 perf_sample__fprintf_start(sample, thread, evsel,
2051 PERF_RECORD_MMAP2, stdout);
1904 perf_event__fprintf(event, stdout);2052 perf_event__fprintf(event, stdout);
1905 thread__put(thread);2053 thread__put(thread);
1906 return 0;2054 return 0;
@@ -1926,7 +2074,31 @@ static int process_switch_event(struct perf_tool *tool, · 19 unmodified lines
1926 return -1;2074 return -1;
1927 }2075 }
1928 2076
1929 perf_sample__fprintf_start(sample, thread, evsel, stdout);2077 perf_sample__fprintf_start(sample, thread, evsel,
2078 PERF_RECORD_SWITCH, stdout);
2079 perf_event__fprintf(event, stdout);
2080 thread__put(thread);
2081 return 0;
2082}
2083
2084static int
2085process_lost_event(struct perf_tool *tool,
2086 union perf_event *event,
2087 struct perf_sample *sample,
2088 struct machine *machine)
2089{
2090 struct perf_script *script = container_of(tool, struct perf_script, tool);
2091 struct perf_session *session = script->session;
2092 struct perf_evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
2093 struct thread *thread;
2094
2095 thread = machine__findnew_thread(machine, sample->pid,
2096 sample->tid);
2097 if (thread == NULL)
2098 return -1;
2099
2100 perf_sample__fprintf_start(sample, thread, evsel,
2101 PERF_RECORD_LOST, stdout);
1930 perf_event__fprintf(event, stdout);2102 perf_event__fprintf(event, stdout);
1931 thread__put(thread);2103 thread__put(thread);
1932 return 0;2104 return 0;
@@ -2026,6 +2198,8 @@ static int __cmd_script(struct perf_script *script) · 93 unmodified lines
2026 script->tool.context_switch = process_switch_event;2198 script->tool.context_switch = process_switch_event;
2027 if (script->show_namespace_events)2199 if (script->show_namespace_events)
2028 script->tool.namespaces = process_namespaces_event;2200 script->tool.namespaces = process_namespaces_event;
2201 if (script->show_lost_events)
2202 script->tool.lost = process_lost_event;
2029 2203
2030 if (perf_script__setup_per_event_dump(script)) {2204 if (perf_script__setup_per_event_dump(script)) {
2031 pr_err("Couldn't create the per event dump files\n");2205 pr_err("Couldn't create the per event dump files\n");
@@ -2311,19 +2485,6 @@ out: · 279 unmodified lines
2311 return rc;2485 return rc;
2312}2486}
2313 2487
2314/* Helper function for filesystems that return a dent->d_type DT_UNKNOWN */
2315static int is_directory(const char *base_path, const struct dirent *dent)
2316{
2317 char path[PATH_MAX];
2318 struct stat st;
2319
2320 sprintf(path, "%s/%s", base_path, dent->d_name);
2321 if (stat(path, &st))
2322 return 0;
2323
2324 return S_ISDIR(st.st_mode);
2325}
2326
2327#define for_each_lang(scripts_path, scripts_dir, lang_dirent) \2488#define for_each_lang(scripts_path, scripts_dir, lang_dirent) \
2328 while ((lang_dirent = readdir(scripts_dir)) != NULL) \2489 while ((lang_dirent = readdir(scripts_dir)) != NULL) \
2329 if ((lang_dirent->d_type == DT_DIR || \2490 if ((lang_dirent->d_type == DT_DIR || \
@@ -2758,9 +2919,10 @@ static void script__setup_sample_type(struct perf_script *script) · 428 unmodified lines
2758 2919
2759 if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain) {2920 if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain) {
2760 if ((sample_type & PERF_SAMPLE_REGS_USER) &&2921 if ((sample_type & PERF_SAMPLE_REGS_USER) &&
2761 (sample_type & PERF_SAMPLE_STACK_USER))2922 (sample_type & PERF_SAMPLE_STACK_USER)) {
2762 callchain_param.record_mode = CALLCHAIN_DWARF;2923 callchain_param.record_mode = CALLCHAIN_DWARF;
2763 else if (sample_type & PERF_SAMPLE_BRANCH_STACK)2924 dwarf_callchain_users = true;
2925 } else if (sample_type & PERF_SAMPLE_BRANCH_STACK)
2764 callchain_param.record_mode = CALLCHAIN_LBR;2926 callchain_param.record_mode = CALLCHAIN_LBR;
2765 else2927 else
2766 callchain_param.record_mode = CALLCHAIN_FP;2928 callchain_param.record_mode = CALLCHAIN_FP;
@@ -2975,6 +3137,8 @@ int cmd_script(int argc, const char **argv) · 208 unmodified lines
2975 "Show context switch events (if recorded)"),3137 "Show context switch events (if recorded)"),
2976 OPT_BOOLEAN('\0', "show-namespace-events", &script.show_namespace_events,3138 OPT_BOOLEAN('\0', "show-namespace-events", &script.show_namespace_events,
2977 "Show namespace events (if recorded)"),3139 "Show namespace events (if recorded)"),
3140 OPT_BOOLEAN('\0', "show-lost-events", &script.show_lost_events,
3141 "Show lost events (if recorded)"),
2978 OPT_BOOLEAN('\0', "per-event-dump", &script.per_event_dump,3142 OPT_BOOLEAN('\0', "per-event-dump", &script.per_event_dump,
2979 "Dump trace output to files named by the monitored events"),3143 "Dump trace output to files named by the monitored events"),
2980 OPT_BOOLEAN('f', "force", &symbol_conf.force, "don't complain, do it"),3144 OPT_BOOLEAN('f', "force", &symbol_conf.force, "don't complain, do it"),
@@ -3281,18 +3445,46 @@ int cmd_script(int argc, const char **argv) · 300 unmodified lines
3281 if (err < 0)3445 if (err < 0)
3282 goto out_delete;3446 goto out_delete;
3283 3447
3284 /* needs to be parsed after looking up reference time */3448 script.ptime_range = perf_time__range_alloc(script.time_str,
3285 if (perf_time__parse_str(&script.ptime, script.time_str) != 0) {3449 &script.range_size);
3286 pr_err("Invalid time string\n");3450 if (!script.ptime_range) {
3287 err = -EINVAL;3451 err = -ENOMEM;
3288 goto out_delete;3452 goto out_delete;
3289 }3453 }
3290 3454
3455 /* needs to be parsed after looking up reference time */
3456 if (perf_time__parse_str(script.ptime_range, script.time_str) != 0) {
3457 if (session->evlist->first_sample_time == 0 &&
3458 session->evlist->last_sample_time == 0) {
3459 pr_err("HINT: no first/last sample time found in perf data.\n"
3460 "Please use latest perf binary to execute 'perf record'\n"
3461 "(if '--buildid-all' is enabled, please set '--timestamp-boundary').\n");
3462 err = -EINVAL;
3463 goto out_delete;
3464 }
3465
3466 script.range_num = perf_time__percent_parse_str(
3467 script.ptime_range, script.range_size,
3468 script.time_str,
3469 session->evlist->first_sample_time,
3470 session->evlist->last_sample_time);
3471
3472 if (script.range_num < 0) {
3473 pr_err("Invalid time string\n");
3474 err = -EINVAL;
3475 goto out_delete;
3476 }
3477 } else {
3478 script.range_num = 1;
3479 }
3480
3291 err = __cmd_script(&script);3481 err = __cmd_script(&script);
3292 3482
3293 flush_scripting();3483 flush_scripting();
3294 3484
3295out_delete:3485out_delete:
3486 zfree(&script.ptime_range);
3487
3296 perf_evlist__free_stats(session->evlist);3488 perf_evlist__free_stats(session->evlist);
3297 perf_session__delete(session);3489 perf_session__delete(session);
3298 3490
tools/perf/builtin-stat.c+147−83
@@ -63,7 +63,6 @@ · 62 unmodified lines
63#include "util/group.h"63#include "util/group.h"
64#include "util/session.h"64#include "util/session.h"
65#include "util/tool.h"65#include "util/tool.h"
66#include "util/group.h"
67#include "util/string2.h"66#include "util/string2.h"
68#include "util/metricgroup.h"67#include "util/metricgroup.h"
69#include "asm/bug.h"68#include "asm/bug.h"
@@ -214,8 +213,13 @@ static inline void diff_timespec(struct timespec *r, struct timespec *a, · 144 unmodified lines
214 213
215static void perf_stat__reset_stats(void)214static void perf_stat__reset_stats(void)
216{215{
216 int i;
217
217 perf_evlist__reset_stats(evsel_list);218 perf_evlist__reset_stats(evsel_list);
218 perf_stat__reset_shadow_stats();219 perf_stat__reset_shadow_stats();
220
221 for (i = 0; i < stat_config.stats_num; i++)
222 perf_stat__reset_shadow_per_stat(&stat_config.stats[i]);
219}223}
220 224
221static int create_perf_stat_counter(struct perf_evsel *evsel)225static int create_perf_stat_counter(struct perf_evsel *evsel)
@@ -272,7 +276,7 @@ static int create_perf_stat_counter(struct perf_evsel *evsel) · 50 unmodified lines
272 attr->enable_on_exec = 1;276 attr->enable_on_exec = 1;
273 }277 }
274 278
275 if (target__has_cpu(&target))279 if (target__has_cpu(&target) && !target__has_per_thread(&target))
276 return perf_evsel__open_per_cpu(evsel, perf_evsel__cpus(evsel));280 return perf_evsel__open_per_cpu(evsel, perf_evsel__cpus(evsel));
277 281
278 return perf_evsel__open_per_thread(evsel, evsel_list->threads);282 return perf_evsel__open_per_thread(evsel, evsel_list->threads);
@@ -335,7 +339,7 @@ static int read_counter(struct perf_evsel *counter) · 56 unmodified lines
335 int nthreads = thread_map__nr(evsel_list->threads);339 int nthreads = thread_map__nr(evsel_list->threads);
336 int ncpus, cpu, thread;340 int ncpus, cpu, thread;
337 341
338 if (target__has_cpu(&target))342 if (target__has_cpu(&target) && !target__has_per_thread(&target))
339 ncpus = perf_evsel__nr_cpus(counter);343 ncpus = perf_evsel__nr_cpus(counter);
340 else344 else
341 ncpus = 1;345 ncpus = 1;
@@ -458,19 +462,8 @@ static void workload_exec_failed_signal(int signo __maybe_unused, siginfo_t *inf · 116 unmodified lines
458 workload_exec_errno = info->si_value.sival_int;462 workload_exec_errno = info->si_value.sival_int;
459}463}
460 464
461static bool has_unit(struct perf_evsel *counter)
462{
463 return counter->unit && *counter->unit;
464}
465
466static bool has_scale(struct perf_evsel *counter)
467{
468 return counter->scale != 1;
469}
470
471static int perf_stat_synthesize_config(bool is_pipe)465static int perf_stat_synthesize_config(bool is_pipe)
472{466{
473 struct perf_evsel *counter;
474 int err;467 int err;
475 468
476 if (is_pipe) {469 if (is_pipe) {
@@ -482,53 +475,10 @@ static int perf_stat_synthesize_config(bool is_pipe) · 5 unmodified lines
482 }475 }
483 }476 }
484 477
485 /*478 err = perf_event__synthesize_extra_attr(NULL,
486 * Synthesize other events stuff not carried within479 evsel_list,
487 * attr event - unit, scale, name480 process_synthesized_event,
488 */481 is_pipe);
489 evlist__for_each_entry(evsel_list, counter) {
490 if (!counter->supported)
491 continue;
492
493 /*
494 * Synthesize unit and scale only if it's defined.
495 */
496 if (has_unit(counter)) {
497 err = perf_event__synthesize_event_update_unit(NULL, counter, process_synthesized_event);
498 if (err < 0) {
499 pr_err("Couldn't synthesize evsel unit.\n");
500 return err;
501 }
502 }
503
504 if (has_scale(counter)) {
505 err = perf_event__synthesize_event_update_scale(NULL, counter, process_synthesized_event);
506 if (err < 0) {
507 pr_err("Couldn't synthesize evsel scale.\n");
508 return err;
509 }
510 }
511
512 if (counter->own_cpus) {
513 err = perf_event__synthesize_event_update_cpus(NULL, counter, process_synthesized_event);
514 if (err < 0) {
515 pr_err("Couldn't synthesize evsel scale.\n");
516 return err;
517 }
518 }
519
520 /*
521 * Name is needed only for pipe output,
522 * perf.data carries event names.
523 */
524 if (is_pipe) {
525 err = perf_event__synthesize_event_update_name(NULL, counter, process_synthesized_event);
526 if (err < 0) {
527 pr_err("Couldn't synthesize evsel name.\n");
528 return err;
529 }
530 }
531 }
532 482
533 err = perf_event__synthesize_thread_map2(NULL, evsel_list->threads,483 err = perf_event__synthesize_thread_map2(NULL, evsel_list->threads,
534 process_synthesized_event,484 process_synthesized_event,
@@ -1151,7 +1101,8 @@ static void abs_printout(int id, int nr, struct perf_evsel *evsel, double avg) · 616 unmodified lines
1151}1101}
1152 1102
1153static void printout(int id, int nr, struct perf_evsel *counter, double uval,1103static void printout(int id, int nr, struct perf_evsel *counter, double uval,
1154 char *prefix, u64 run, u64 ena, double noise)1104 char *prefix, u64 run, u64 ena, double noise,
1105 struct runtime_stat *st)
1155{1106{
1156 struct perf_stat_output_ctx out;1107 struct perf_stat_output_ctx out;
1157 struct outstate os = {1108 struct outstate os = {
@@ -1244,7 +1195,7 @@ static void printout(int id, int nr, struct perf_evsel *counter, double uval, · 86 unmodified lines
1244 1195
1245 perf_stat__print_shadow_stats(counter, uval,1196 perf_stat__print_shadow_stats(counter, uval,
1246 first_shadow_cpu(counter, id),1197 first_shadow_cpu(counter, id),
1247 &out, &metric_events);1198 &out, &metric_events, st);
1248 if (!csv_output && !metric_only) {1199 if (!csv_output && !metric_only) {
1249 print_noise(counter, noise);1200 print_noise(counter, noise);
1250 print_running(run, ena);1201 print_running(run, ena);
@@ -1268,7 +1219,8 @@ static void aggr_update_shadow(void) · 17 unmodified lines
1268 val += perf_counts(counter->counts, cpu, 0)->val;1219 val += perf_counts(counter->counts, cpu, 0)->val;
1269 }1220 }
1270 perf_stat__update_shadow_stats(counter, val,1221 perf_stat__update_shadow_stats(counter, val,
1271 first_shadow_cpu(counter, id));1222 first_shadow_cpu(counter, id),
1223 &rt_stat);
1272 }1224 }
1273 }1225 }
1274}1226}
@@ -1388,7 +1340,8 @@ static void print_aggr(char *prefix) · 113 unmodified lines
1388 fprintf(output, "%s", prefix);1340 fprintf(output, "%s", prefix);
1389 1341
1390 uval = val * counter->scale;1342 uval = val * counter->scale;
1391 printout(id, nr, counter, uval, prefix, run, ena, 1.0);1343 printout(id, nr, counter, uval, prefix, run, ena, 1.0,
1344 &rt_stat);
1392 if (!metric_only)1345 if (!metric_only)
1393 fputc('\n', output);1346 fputc('\n', output);
1394 }1347 }
@@ -1397,13 +1350,24 @@ static void print_aggr(char *prefix) · 2 unmodified lines
1397 }1350 }
1398}1351}
1399 1352
1400static void print_aggr_thread(struct perf_evsel *counter, char *prefix)1353static int cmp_val(const void *a, const void *b)
1401{1354{
1402 FILE *output = stat_config.output;1355 return ((struct perf_aggr_thread_value *)b)->val -
1403 int nthreads = thread_map__nr(counter->threads);1356 ((struct perf_aggr_thread_value *)a)->val;
1404 int ncpus = cpu_map__nr(counter->cpus);1357}
1405 int cpu, thread;1358
1359static struct perf_aggr_thread_value *sort_aggr_thread(
1360 struct perf_evsel *counter,
1361 int nthreads, int ncpus,
1362 int *ret)
1363{
1364 int cpu, thread, i = 0;
1406 double uval;1365 double uval;
1366 struct perf_aggr_thread_value *buf;
1367
1368 buf = calloc(nthreads, sizeof(struct perf_aggr_thread_value));
1369 if (!buf)
1370 return NULL;
1407 1371
1408 for (thread = 0; thread < nthreads; thread++) {1372 for (thread = 0; thread < nthreads; thread++) {
1409 u64 ena = 0, run = 0, val = 0;1373 u64 ena = 0, run = 0, val = 0;
@@ -1414,13 +1378,63 @@ static void print_aggr_thread(struct perf_evsel *counter, char *prefix) · 4 unmodified lines
1414 run += perf_counts(counter->counts, cpu, thread)->run;1378 run += perf_counts(counter->counts, cpu, thread)->run;
1415 }1379 }
1416 1380
1381 uval = val * counter->scale;
1382
1383 /*
1384 * Skip value 0 when enabling --per-thread globally,
1385 * otherwise too many 0 output.
1386 */
1387 if (uval == 0.0 && target__has_per_thread(&target))
1388 continue;
1389
1390 buf[i].counter = counter;
1391 buf[i].id = thread;
1392 buf[i].uval = uval;
1393 buf[i].val = val;
1394 buf[i].run = run;
1395 buf[i].ena = ena;
1396 i++;
1397 }
1398
1399 qsort(buf, i, sizeof(struct perf_aggr_thread_value), cmp_val);
1400
1401 if (ret)
1402 *ret = i;
1403
1404 return buf;
1405}
1406
1407static void print_aggr_thread(struct perf_evsel *counter, char *prefix)
1408{
1409 FILE *output = stat_config.output;
1410 int nthreads = thread_map__nr(counter->threads);
1411 int ncpus = cpu_map__nr(counter->cpus);
1412 int thread, sorted_threads, id;
1413 struct perf_aggr_thread_value *buf;
1414
1415 buf = sort_aggr_thread(counter, nthreads, ncpus, &sorted_threads);
1416 if (!buf) {
1417 perror("cannot sort aggr thread");
1418 return;
1419 }
1420
1421 for (thread = 0; thread < sorted_threads; thread++) {
1417 if (prefix)1422 if (prefix)
1418 fprintf(output, "%s", prefix);1423 fprintf(output, "%s", prefix);
1419 1424
1420 uval = val * counter->scale;1425 id = buf[thread].id;
1421 printout(thread, 0, counter, uval, prefix, run, ena, 1.0);1426 if (stat_config.stats)
1427 printout(id, 0, buf[thread].counter, buf[thread].uval,
1428 prefix, buf[thread].run, buf[thread].ena, 1.0,
1429 &stat_config.stats[id]);
1430 else
1431 printout(id, 0, buf[thread].counter, buf[thread].uval,
1432 prefix, buf[thread].run, buf[thread].ena, 1.0,
1433 &rt_stat);
1422 fputc('\n', output);1434 fputc('\n', output);
1423 }1435 }
1436
1437 free(buf);
1424}1438}
1425 1439
1426struct caggr_data {1440struct caggr_data {
@@ -1455,7 +1469,8 @@ static void print_counter_aggr(struct perf_evsel *counter, char *prefix) · 28 unmodified lines
1455 fprintf(output, "%s", prefix);1469 fprintf(output, "%s", prefix);
1456 1470
1457 uval = cd.avg * counter->scale;1471 uval = cd.avg * counter->scale;
1458 printout(-1, 0, counter, uval, prefix, cd.avg_running, cd.avg_enabled, cd.avg);1472 printout(-1, 0, counter, uval, prefix, cd.avg_running, cd.avg_enabled,
1473 cd.avg, &rt_stat);
1459 if (!metric_only)1474 if (!metric_only)
1460 fprintf(output, "\n");1475 fprintf(output, "\n");
1461}1476}
@@ -1494,7 +1509,8 @@ static void print_counter(struct perf_evsel *counter, char *prefix) · 32 unmodified lines
1494 fprintf(output, "%s", prefix);1509 fprintf(output, "%s", prefix);
1495 1510
1496 uval = val * counter->scale;1511 uval = val * counter->scale;
1497 printout(cpu, 0, counter, uval, prefix, run, ena, 1.0);1512 printout(cpu, 0, counter, uval, prefix, run, ena, 1.0,
1513 &rt_stat);
1498 1514
1499 fputc('\n', output);1515 fputc('\n', output);
1500 }1516 }
@@ -1526,7 +1542,8 @@ static void print_no_aggr_metric(char *prefix) · 25 unmodified lines
1526 run = perf_counts(counter->counts, cpu, 0)->run;1542 run = perf_counts(counter->counts, cpu, 0)->run;
1527 1543
1528 uval = val * counter->scale;1544 uval = val * counter->scale;
1529 printout(cpu, 0, counter, uval, prefix, run, ena, 1.0);1545 printout(cpu, 0, counter, uval, prefix, run, ena, 1.0,
1546 &rt_stat);
1530 }1547 }
1531 fputc('\n', stat_config.output);1548 fputc('\n', stat_config.output);
1532 }1549 }
@@ -1582,7 +1599,8 @@ static void print_metric_headers(const char *prefix, bool no_indent) · 49 unmodified lines
1582 perf_stat__print_shadow_stats(counter, 0,1599 perf_stat__print_shadow_stats(counter, 0,
1583 0,1600 0,
1584 &out,1601 &out,
1585 &metric_events);1602 &metric_events,
1603 &rt_stat);
1586 }1604 }
1587 fputc('\n', stat_config.output);1605 fputc('\n', stat_config.output);
1588}1606}
@@ -2541,6 +2559,35 @@ int process_cpu_map_event(struct perf_tool *tool, · 952 unmodified lines
2541 return set_maps(st);2559 return set_maps(st);
2542}2560}
2543 2561
2562static int runtime_stat_new(struct perf_stat_config *config, int nthreads)
2563{
2564 int i;
2565
2566 config->stats = calloc(nthreads, sizeof(struct runtime_stat));
2567 if (!config->stats)
2568 return -1;
2569
2570 config->stats_num = nthreads;
2571
2572 for (i = 0; i < nthreads; i++)
2573 runtime_stat__init(&config->stats[i]);
2574
2575 return 0;
2576}
2577
2578static void runtime_stat_delete(struct perf_stat_config *config)
2579{
2580 int i;
2581
2582 if (!config->stats)
2583 return;
2584
2585 for (i = 0; i < config->stats_num; i++)
2586 runtime_stat__exit(&config->stats[i]);
2587
2588 free(config->stats);
2589}
2590
2544static const char * const stat_report_usage[] = {2591static const char * const stat_report_usage[] = {
2545 "perf stat report [<options>]",2592 "perf stat report [<options>]",
2546 NULL,2593 NULL,
@@ -2750,12 +2797,16 @@ int cmd_stat(int argc, const char **argv) · 203 unmodified lines
2750 run_count = 1;2797 run_count = 1;
2751 }2798 }
2752 2799
2753 if ((stat_config.aggr_mode == AGGR_THREAD) && !target__has_task(&target)) {2800 if ((stat_config.aggr_mode == AGGR_THREAD) &&
2754 fprintf(stderr, "The --per-thread option is only available "2801 !target__has_task(&target)) {
2755 "when monitoring via -p -t options.\n");2802 if (!target.system_wide || target.cpu_list) {
2756 parse_options_usage(NULL, stat_options, "p", 1);2803 fprintf(stderr, "The --per-thread option is only "
2757 parse_options_usage(NULL, stat_options, "t", 1);2804 "available when monitoring via -p -t -a "
2758 goto out;2805 "options or only --per-thread.\n");
2806 parse_options_usage(NULL, stat_options, "p", 1);
2807 parse_options_usage(NULL, stat_options, "t", 1);
2808 goto out;
2809 }
2759 }2810 }
2760 2811
2761 /*2812 /*
@@ -2779,6 +2830,9 @@ int cmd_stat(int argc, const char **argv) · 17 unmodified lines
2779 2830
2780 target__validate(&target);2831 target__validate(&target);
2781 2832
2833 if ((stat_config.aggr_mode == AGGR_THREAD) && (target.system_wide))
2834 target.per_thread = true;
2835
2782 if (perf_evlist__create_maps(evsel_list, &target) < 0) {2836 if (perf_evlist__create_maps(evsel_list, &target) < 0) {
2783 if (target__has_task(&target)) {2837 if (target__has_task(&target)) {
2784 pr_err("Problems finding threads of monitor\n");2838 pr_err("Problems finding threads of monitor\n");
@@ -2796,8 +2850,15 @@ int cmd_stat(int argc, const char **argv) · 11 unmodified lines
2796 * Initialize thread_map with comm names,2850 * Initialize thread_map with comm names,
2797 * so we could print it out on output.2851 * so we could print it out on output.
2798 */2852 */
2799 if (stat_config.aggr_mode == AGGR_THREAD)2853 if (stat_config.aggr_mode == AGGR_THREAD) {
2800 thread_map__read_comms(evsel_list->threads);2854 thread_map__read_comms(evsel_list->threads);
2855 if (target.system_wide) {
2856 if (runtime_stat_new(&stat_config,
2857 thread_map__nr(evsel_list->threads))) {
2858 goto out;
2859 }
2860 }
2861 }
2801 2862
2802 if (interval && interval < 100) {2863 if (interval && interval < 100) {
2803 if (interval < 10) {2864 if (interval < 10) {
@@ -2887,5 +2948,8 @@ out: · 83 unmodified lines
2887 sysfs__write_int(FREEZE_ON_SMI_PATH, 0);2948 sysfs__write_int(FREEZE_ON_SMI_PATH, 0);
2888 2949
2889 perf_evlist__delete(evsel_list);2950 perf_evlist__delete(evsel_list);
2951
2952 runtime_stat_delete(&stat_config);
2953
2890 return status;2954 return status;
2891}2955}
tools/perf/builtin-top.c+7−3
@@ -99,6 +99,7 @@ static void perf_top__resize(struct perf_top *top) · 98 unmodified lines
99 99
100static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he)100static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he)
101{101{
102 struct perf_evsel *evsel = hists_to_evsel(he->hists);
102 struct symbol *sym;103 struct symbol *sym;
103 struct annotation *notes;104 struct annotation *notes;
104 struct map *map;105 struct map *map;
@@ -137,7 +138,7 @@ static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he) · 32 unmodified lines
137 return err;138 return err;
138 }139 }
139 140
140 err = symbol__disassemble(sym, map, NULL, 0, NULL, NULL);141 err = symbol__annotate(sym, map, evsel, 0, NULL);
141 if (err == 0) {142 if (err == 0) {
142out_assign:143out_assign:
143 top->sym_filter_entry = he;144 top->sym_filter_entry = he;
@@ -229,6 +230,7 @@ static void perf_top__record_precise_ip(struct perf_top *top, · 85 unmodified lines
229static void perf_top__show_details(struct perf_top *top)230static void perf_top__show_details(struct perf_top *top)
230{231{
231 struct hist_entry *he = top->sym_filter_entry;232 struct hist_entry *he = top->sym_filter_entry;
233 struct perf_evsel *evsel = hists_to_evsel(he->hists);
232 struct annotation *notes;234 struct annotation *notes;
233 struct symbol *symbol;235 struct symbol *symbol;
234 int more;236 int more;
@@ -241,6 +243,8 @@ static void perf_top__show_details(struct perf_top *top) · 6 unmodified lines
241 243
242 pthread_mutex_lock(&notes->lock);244 pthread_mutex_lock(&notes->lock);
243 245
246 symbol__calc_percent(symbol, evsel);
247
244 if (notes->src == NULL)248 if (notes->src == NULL)
245 goto out_unlock;249 goto out_unlock;
246 250
@@ -412,7 +416,7 @@ static void perf_top__print_mapped_keys(struct perf_top *top) · 165 unmodified lines
412 fprintf(stdout, "\t[S] stop annotation.\n");416 fprintf(stdout, "\t[S] stop annotation.\n");
413 417
414 fprintf(stdout,418 fprintf(stdout,
415 "\t[K] hide kernel_symbols symbols. \t(%s)\n",419 "\t[K] hide kernel symbols. \t(%s)\n",
416 top->hide_kernel_symbols ? "yes" : "no");420 top->hide_kernel_symbols ? "yes" : "no");
417 fprintf(stdout,421 fprintf(stdout,
418 "\t[U] hide user symbols. \t(%s)\n",422 "\t[U] hide user symbols. \t(%s)\n",
@@ -903,7 +907,7 @@ try_again: · 484 unmodified lines
903 }907 }
904 }908 }
905 909
906 if (perf_evlist__mmap(evlist, opts->mmap_pages, false) < 0) {910 if (perf_evlist__mmap(evlist, opts->mmap_pages) < 0) {
907 ui__error("Failed to mmap with %d (%s)\n",911 ui__error("Failed to mmap with %d (%s)\n",
908 errno, str_error_r(errno, msg, sizeof(msg)));912 errno, str_error_r(errno, msg, sizeof(msg)));
909 goto out_err;913 goto out_err;
tools/perf/builtin-trace.c+67−55
@@ -21,6 +21,7 @@ · 20 unmodified lines
21#include "builtin.h"21#include "builtin.h"
22#include "util/color.h"22#include "util/color.h"
23#include "util/debug.h"23#include "util/debug.h"
24#include "util/env.h"
24#include "util/event.h"25#include "util/event.h"
25#include "util/evlist.h"26#include "util/evlist.h"
26#include <subcmd/exec-cmd.h>27#include <subcmd/exec-cmd.h>
@@ -45,18 +46,17 @@ · 18 unmodified lines
45 46
46#include <errno.h>47#include <errno.h>
47#include <inttypes.h>48#include <inttypes.h>
48#include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */
49#include <poll.h>49#include <poll.h>
50#include <signal.h>50#include <signal.h>
51#include <stdlib.h>51#include <stdlib.h>
52#include <string.h>52#include <string.h>
53#include <linux/err.h>53#include <linux/err.h>
54#include <linux/filter.h>54#include <linux/filter.h>
55#include <linux/audit.h>
56#include <linux/kernel.h>55#include <linux/kernel.h>
57#include <linux/random.h>56#include <linux/random.h>
58#include <linux/stringify.h>57#include <linux/stringify.h>
59#include <linux/time64.h>58#include <linux/time64.h>
59#include <fcntl.h>
60 60
61#include "sane_ctype.h"61#include "sane_ctype.h"
62 62
@@ -111,6 +111,7 @@ struct trace { · 48 unmodified lines
111 bool summary;111 bool summary;
112 bool summary_only;112 bool summary_only;
113 bool show_comm;113 bool show_comm;
114 bool print_sample;
114 bool show_tool_stats;115 bool show_tool_stats;
115 bool trace_syscalls;116 bool trace_syscalls;
116 bool kernel_syscallchains;117 bool kernel_syscallchains;
@@ -545,9 +546,10 @@ static size_t syscall_arg__scnprintf_getrandom_flags(char *bf, size_t size, · 428 unmodified lines
545 { .scnprintf = SCA_STRARRAY, \546 { .scnprintf = SCA_STRARRAY, \
546 .parm = &strarray__##array, }547 .parm = &strarray__##array, }
547 548
549#include "trace/beauty/arch_errno_names.c"
548#include "trace/beauty/eventfd.c"550#include "trace/beauty/eventfd.c"
549#include "trace/beauty/flock.c"
550#include "trace/beauty/futex_op.c"551#include "trace/beauty/futex_op.c"
552#include "trace/beauty/futex_val3.c"
551#include "trace/beauty/mmap.c"553#include "trace/beauty/mmap.c"
552#include "trace/beauty/mode_t.c"554#include "trace/beauty/mode_t.c"
553#include "trace/beauty/msg_flags.c"555#include "trace/beauty/msg_flags.c"
@@ -610,7 +612,8 @@ static struct syscall_fmt { · 56 unmodified lines
610 { .name = "fstat", .alias = "newfstat", },612 { .name = "fstat", .alias = "newfstat", },
611 { .name = "fstatat", .alias = "newfstatat", },613 { .name = "fstatat", .alias = "newfstatat", },
612 { .name = "futex",614 { .name = "futex",
613 .arg = { [1] = { .scnprintf = SCA_FUTEX_OP, /* op */ }, }, },615 .arg = { [1] = { .scnprintf = SCA_FUTEX_OP, /* op */ },
616 [5] = { .scnprintf = SCA_FUTEX_VAL3, /* val3 */ }, }, },
614 { .name = "futimesat",617 { .name = "futimesat",
615 .arg = { [0] = { .scnprintf = SCA_FDAT, /* fd */ }, }, },618 .arg = { [0] = { .scnprintf = SCA_FDAT, /* fd */ }, }, },
616 { .name = "getitimer",619 { .name = "getitimer",
@@ -622,6 +625,7 @@ static struct syscall_fmt { · 5 unmodified lines
622 .arg = { [2] = { .scnprintf = SCA_GETRANDOM_FLAGS, /* flags */ }, }, },625 .arg = { [2] = { .scnprintf = SCA_GETRANDOM_FLAGS, /* flags */ }, }, },
623 { .name = "getrlimit",626 { .name = "getrlimit",
624 .arg = { [0] = STRARRAY(resource, rlimit_resources), }, },627 .arg = { [0] = STRARRAY(resource, rlimit_resources), }, },
628 { .name = "gettid", .errpid = true, },
625 { .name = "ioctl",629 { .name = "ioctl",
626 .arg = {630 .arg = {
627#if defined(__i386__) || defined(__x86_64__)631#if defined(__i386__) || defined(__x86_64__)
@@ -819,7 +823,7 @@ static size_t fprintf_duration(unsigned long t, bool calculated, FILE *fp) · 191 unmodified lines
819 size_t printed = fprintf(fp, "(");823 size_t printed = fprintf(fp, "(");
820 824
821 if (!calculated)825 if (!calculated)
822 printed += fprintf(fp, " ? ");826 printed += fprintf(fp, " ");
823 else if (duration >= 1.0)827 else if (duration >= 1.0)
824 printed += color_fprintf(fp, PERF_COLOR_RED, "%6.3f ms", duration);828 printed += color_fprintf(fp, PERF_COLOR_RED, "%6.3f ms", duration);
825 else if (duration >= 0.01)829 else if (duration >= 0.01)
@@ -1554,10 +1558,9 @@ static void thread__update_stats(struct thread_trace *ttrace, · 728 unmodified lines
1554 update_stats(stats, duration);1558 update_stats(stats, duration);
1555}1559}
1556 1560
1557static int trace__printf_interrupted_entry(struct trace *trace, struct perf_sample *sample)1561static int trace__printf_interrupted_entry(struct trace *trace)
1558{1562{
1559 struct thread_trace *ttrace;1563 struct thread_trace *ttrace;
1560 u64 duration;
1561 size_t printed;1564 size_t printed;
1562 1565
1563 if (trace->current == NULL)1566 if (trace->current == NULL)
@@ -1568,15 +1571,30 @@ static int trace__printf_interrupted_entry(struct trace *trace, struct perf_samp · 4 unmodified lines
1568 if (!ttrace->entry_pending)1571 if (!ttrace->entry_pending)
1569 return 0;1572 return 0;
1570 1573
1571 duration = sample->time - ttrace->entry_time;1574 printed = trace__fprintf_entry_head(trace, trace->current, 0, false, ttrace->entry_time, trace->output);
1572
1573 printed = trace__fprintf_entry_head(trace, trace->current, duration, true, ttrace->entry_time, trace->output);
1574 printed += fprintf(trace->output, "%-70s) ...\n", ttrace->entry_str);1575 printed += fprintf(trace->output, "%-70s) ...\n", ttrace->entry_str);
1575 ttrace->entry_pending = false;1576 ttrace->entry_pending = false;
1576 1577
1577 return printed;1578 return printed;
1578}1579}
1579 1580
1581static int trace__fprintf_sample(struct trace *trace, struct perf_evsel *evsel,
1582 struct perf_sample *sample, struct thread *thread)
1583{
1584 int printed = 0;
1585
1586 if (trace->print_sample) {
1587 double ts = (double)sample->time / NSEC_PER_MSEC;
1588
1589 printed += fprintf(trace->output, "%22s %10.3f %s %d/%d [%d]\n",
1590 perf_evsel__name(evsel), ts,
1591 thread__comm_str(thread),
1592 sample->pid, sample->tid, sample->cpu);
1593 }
1594
1595 return printed;
1596}
1597
1580static int trace__sys_enter(struct trace *trace, struct perf_evsel *evsel,1598static int trace__sys_enter(struct trace *trace, struct perf_evsel *evsel,
1581 union perf_event *event __maybe_unused,1599 union perf_event *event __maybe_unused,
1582 struct perf_sample *sample)1600 struct perf_sample *sample)
@@ -1597,6 +1615,8 @@ static int trace__sys_enter(struct trace *trace, struct perf_evsel *evsel, · 14 unmodified lines
1597 if (ttrace == NULL)1615 if (ttrace == NULL)
1598 goto out_put;1616 goto out_put;
1599 1617
1618 trace__fprintf_sample(trace, evsel, sample, thread);
1619
1600 args = perf_evsel__sc_tp_ptr(evsel, args, sample);1620 args = perf_evsel__sc_tp_ptr(evsel, args, sample);
1601 1621
1602 if (ttrace->entry_str == NULL) {1622 if (ttrace->entry_str == NULL) {
@@ -1606,7 +1626,7 @@ static int trace__sys_enter(struct trace *trace, struct perf_evsel *evsel, · 3 unmodified lines
1606 }1626 }
1607 1627
1608 if (!(trace->duration_filter || trace->summary_only || trace->min_stack))1628 if (!(trace->duration_filter || trace->summary_only || trace->min_stack))
1609 trace__printf_interrupted_entry(trace, sample);1629 trace__printf_interrupted_entry(trace);
1610 1630
1611 ttrace->entry_time = sample->time;1631 ttrace->entry_time = sample->time;
1612 msg = ttrace->entry_str;1632 msg = ttrace->entry_str;
@@ -1643,7 +1663,7 @@ static int trace__resolve_callchain(struct trace *trace, struct perf_evsel *evse · 30 unmodified lines
1643 struct addr_location al;1663 struct addr_location al;
1644 1664
1645 if (machine__resolve(trace->host, &al, sample) < 0 ||1665 if (machine__resolve(trace->host, &al, sample) < 0 ||
1646 thread__resolve_callchain(al.thread, cursor, evsel, sample, NULL, NULL, trace->max_stack))1666 thread__resolve_callchain(al.thread, cursor, evsel, sample, NULL, NULL, evsel->attr.sample_max_stack))
1647 return -1;1667 return -1;
1648 1668
1649 return 0;1669 return 0;
@@ -1659,6 +1679,14 @@ static int trace__fprintf_callchain(struct trace *trace, struct perf_sample *sam · 9 unmodified lines
1659 return sample__fprintf_callchain(sample, 38, print_opts, &callchain_cursor, trace->output);1679 return sample__fprintf_callchain(sample, 38, print_opts, &callchain_cursor, trace->output);
1660}1680}
1661 1681
1682static const char *errno_to_name(struct perf_evsel *evsel, int err)
1683{
1684 struct perf_env *env = perf_evsel__env(evsel);
1685 const char *arch_name = perf_env__arch(env);
1686
1687 return arch_syscalls__strerrno(arch_name, err);
1688}
1689
1662static int trace__sys_exit(struct trace *trace, struct perf_evsel *evsel,1690static int trace__sys_exit(struct trace *trace, struct perf_evsel *evsel,
1663 union perf_event *event __maybe_unused,1691 union perf_event *event __maybe_unused,
1664 struct perf_sample *sample)1692 struct perf_sample *sample)
@@ -1679,6 +1707,8 @@ static int trace__sys_exit(struct trace *trace, struct perf_evsel *evsel, · 14 unmodified lines
1679 if (ttrace == NULL)1707 if (ttrace == NULL)
1680 goto out_put;1708 goto out_put;
1681 1709
1710 trace__fprintf_sample(trace, evsel, sample, thread);
1711
1682 if (trace->summary)1712 if (trace->summary)
1683 thread__update_stats(ttrace, id, sample);1713 thread__update_stats(ttrace, id, sample);
1684 1714
@@ -1729,7 +1759,7 @@ signed_print: · 44 unmodified lines
1729errno_print: {1759errno_print: {
1730 char bf[STRERR_BUFSIZE];1760 char bf[STRERR_BUFSIZE];
1731 const char *emsg = str_error_r(-ret, bf, sizeof(bf)),1761 const char *emsg = str_error_r(-ret, bf, sizeof(bf)),
1732 *e = audit_errno_to_name(-ret);1762 *e = errno_to_name(evsel, -ret);
1733 1763
1734 fprintf(trace->output, ") = -1 %s %s", e, emsg);1764 fprintf(trace->output, ") = -1 %s %s", e, emsg);
1735 }1765 }
@@ -1910,7 +1940,7 @@ static int trace__event_handler(struct trace *trace, struct perf_evsel *evsel, · 174 unmodified lines
1910 }1940 }
1911 }1941 }
1912 1942
1913 trace__printf_interrupted_entry(trace, sample);1943 trace__printf_interrupted_entry(trace);
1914 trace__fprintf_tstamp(trace, sample->time, trace->output);1944 trace__fprintf_tstamp(trace, sample->time, trace->output);
1915 1945
1916 if (trace->trace_syscalls)1946 if (trace->trace_syscalls)
@@ -2221,6 +2251,9 @@ static int trace__add_syscall_newtp(struct trace *trace) · 304 unmodified lines
2221 if (perf_evsel__init_sc_tp_uint_field(sys_exit, ret))2251 if (perf_evsel__init_sc_tp_uint_field(sys_exit, ret))
2222 goto out_delete_sys_exit;2252 goto out_delete_sys_exit;
2223 2253
2254 perf_evsel__config_callchain(sys_enter, &trace->opts, &callchain_param);
2255 perf_evsel__config_callchain(sys_exit, &trace->opts, &callchain_param);
2256
2224 perf_evlist__add(evlist, sys_enter);2257 perf_evlist__add(evlist, sys_enter);
2225 perf_evlist__add(evlist, sys_exit);2258 perf_evlist__add(evlist, sys_exit);
2226 2259
@@ -2317,6 +2350,7 @@ static int trace__run(struct trace *trace, int argc, const char **argv) · 90 unmodified lines
2317 pgfault_maj = perf_evsel__new_pgfault(PERF_COUNT_SW_PAGE_FAULTS_MAJ);2350 pgfault_maj = perf_evsel__new_pgfault(PERF_COUNT_SW_PAGE_FAULTS_MAJ);
2318 if (pgfault_maj == NULL)2351 if (pgfault_maj == NULL)
2319 goto out_error_mem;2352 goto out_error_mem;
2353 perf_evsel__config_callchain(pgfault_maj, &trace->opts, &callchain_param);
2320 perf_evlist__add(evlist, pgfault_maj);2354 perf_evlist__add(evlist, pgfault_maj);
2321 }2355 }
2322 2356
@@ -2324,6 +2358,7 @@ static int trace__run(struct trace *trace, int argc, const char **argv) · 1 unmodified line
2324 pgfault_min = perf_evsel__new_pgfault(PERF_COUNT_SW_PAGE_FAULTS_MIN);2358 pgfault_min = perf_evsel__new_pgfault(PERF_COUNT_SW_PAGE_FAULTS_MIN);
2325 if (pgfault_min == NULL)2359 if (pgfault_min == NULL)
2326 goto out_error_mem;2360 goto out_error_mem;
2361 perf_evsel__config_callchain(pgfault_min, &trace->opts, &callchain_param);
2327 perf_evlist__add(evlist, pgfault_min);2362 perf_evlist__add(evlist, pgfault_min);
2328 }2363 }
2329 2364
@@ -2344,45 +2379,7 @@ static int trace__run(struct trace *trace, int argc, const char **argv) · 14 unmodified lines
2344 goto out_delete_evlist;2379 goto out_delete_evlist;
2345 }2380 }
2346 2381
2347 perf_evlist__config(evlist, &trace->opts, NULL);2382 perf_evlist__config(evlist, &trace->opts, &callchain_param);
2348
2349 if (callchain_param.enabled) {
2350 bool use_identifier = false;
2351
2352 if (trace->syscalls.events.sys_exit) {
2353 perf_evsel__config_callchain(trace->syscalls.events.sys_exit,
2354 &trace->opts, &callchain_param);
2355 use_identifier = true;
2356 }
2357
2358 if (pgfault_maj) {
2359 perf_evsel__config_callchain(pgfault_maj, &trace->opts, &callchain_param);
2360 use_identifier = true;
2361 }
2362
2363 if (pgfault_min) {
2364 perf_evsel__config_callchain(pgfault_min, &trace->opts, &callchain_param);
2365 use_identifier = true;
2366 }
2367
2368 if (use_identifier) {
2369 /*
2370 * Now we have evsels with different sample_ids, use
2371 * PERF_SAMPLE_IDENTIFIER to map from sample to evsel
2372 * from a fixed position in each ring buffer record.
2373 *
2374 * As of this the changeset introducing this comment, this
2375 * isn't strictly needed, as the fields that can come before
2376 * PERF_SAMPLE_ID are all used, but we'll probably disable
2377 * some of those for things like copying the payload of
2378 * pointer syscall arguments, and for vfs_getname we don't
2379 * need PERF_SAMPLE_ADDR and PERF_SAMPLE_IP, so do this
2380 * here as a warning we need to use PERF_SAMPLE_IDENTIFIER.
2381 */
2382 perf_evlist__set_sample_bit(evlist, IDENTIFIER);
2383 perf_evlist__reset_sample_bit(evlist, ID);
2384 }
2385 }
2386 2383
2387 signal(SIGCHLD, sig_handler);2384 signal(SIGCHLD, sig_handler);
2388 signal(SIGINT, sig_handler);2385 signal(SIGINT, sig_handler);
@@ -2437,7 +2434,7 @@ static int trace__run(struct trace *trace, int argc, const char **argv) · 48 unmodified lines
2437 if (err < 0)2434 if (err < 0)
2438 goto out_error_apply_filters;2435 goto out_error_apply_filters;
2439 2436
2440 err = perf_evlist__mmap(evlist, trace->opts.mmap_pages, false);2437 err = perf_evlist__mmap(evlist, trace->opts.mmap_pages);
2441 if (err < 0)2438 if (err < 0)
2442 goto out_error_mmap;2439 goto out_error_mmap;
2443 2440
@@ -2455,6 +2452,18 @@ static int trace__run(struct trace *trace, int argc, const char **argv) · 11 unmodified lines
2455 trace->multiple_threads = thread_map__pid(evlist->threads, 0) == -1 ||2452 trace->multiple_threads = thread_map__pid(evlist->threads, 0) == -1 ||
2456 evlist->threads->nr > 1 ||2453 evlist->threads->nr > 1 ||
2457 perf_evlist__first(evlist)->attr.inherit;2454 perf_evlist__first(evlist)->attr.inherit;
2455
2456 /*
2457 * Now that we already used evsel->attr to ask the kernel to setup the
2458 * events, lets reuse evsel->attr.sample_max_stack as the limit in
2459 * trace__resolve_callchain(), allowing per-event max-stack settings
2460 * to override an explicitely set --max-stack global setting.
2461 */
2462 evlist__for_each_entry(evlist, evsel) {
2463 if ((evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN) &&
2464 evsel->attr.sample_max_stack == 0)
2465 evsel->attr.sample_max_stack = trace->max_stack;
2466 }
2458again:2467again:
2459 before = trace->nr_events;2468 before = trace->nr_events;
2460 2469
@@ -3046,6 +3055,8 @@ int cmd_trace(int argc, const char **argv) · 585 unmodified lines
3046 "Set the maximum stack depth when parsing the callchain, "3055 "Set the maximum stack depth when parsing the callchain, "
3047 "anything beyond the specified depth will be ignored. "3056 "anything beyond the specified depth will be ignored. "
3048 "Default: kernel.perf_event_max_stack or " __stringify(PERF_MAX_STACK_DEPTH)),3057 "Default: kernel.perf_event_max_stack or " __stringify(PERF_MAX_STACK_DEPTH)),
3058 OPT_BOOLEAN(0, "print-sample", &trace.print_sample,
3059 "print the PERF_RECORD_SAMPLE PERF_SAMPLE_ info, for debugging"),
3049 OPT_UINTEGER(0, "proc-map-timeout", &trace.opts.proc_map_timeout,3060 OPT_UINTEGER(0, "proc-map-timeout", &trace.opts.proc_map_timeout,
3050 "per thread proc mmap processing timeout in ms"),3061 "per thread proc mmap processing timeout in ms"),
3051 OPT_UINTEGER('D', "delay", &trace.opts.initial_delay,3062 OPT_UINTEGER('D', "delay", &trace.opts.initial_delay,
@@ -3097,8 +3108,9 @@ int cmd_trace(int argc, const char **argv) · 45 unmodified lines
3097 }3108 }
3098 3109
3099#ifdef HAVE_DWARF_UNWIND_SUPPORT3110#ifdef HAVE_DWARF_UNWIND_SUPPORT
3100 if ((trace.min_stack || max_stack_user_set) && !callchain_param.enabled && trace.trace_syscalls)3111 if ((trace.min_stack || max_stack_user_set) && !callchain_param.enabled) {
3101 record_opts__parse_callchain(&trace.opts, &callchain_param, "dwarf", false);3112 record_opts__parse_callchain(&trace.opts, &callchain_param, "dwarf", false);
3113 }
3102#endif3114#endif
3103 3115
3104 if (callchain_param.enabled) {3116 if (callchain_param.enabled) {
tools/perf/check-headers.sh+10−1
@@ -33,21 +33,30 @@ arch/s390/include/uapi/asm/kvm.h · 32 unmodified lines
33arch/s390/include/uapi/asm/kvm_perf.h33arch/s390/include/uapi/asm/kvm_perf.h
34arch/s390/include/uapi/asm/ptrace.h34arch/s390/include/uapi/asm/ptrace.h
35arch/s390/include/uapi/asm/sie.h35arch/s390/include/uapi/asm/sie.h
36arch/s390/include/uapi/asm/unistd.h
36arch/arm/include/uapi/asm/kvm.h37arch/arm/include/uapi/asm/kvm.h
37arch/arm64/include/uapi/asm/kvm.h38arch/arm64/include/uapi/asm/kvm.h
39arch/alpha/include/uapi/asm/errno.h
40arch/mips/include/asm/errno.h
41arch/mips/include/uapi/asm/errno.h
42arch/parisc/include/uapi/asm/errno.h
43arch/powerpc/include/uapi/asm/errno.h
44arch/sparc/include/uapi/asm/errno.h
45arch/x86/include/uapi/asm/errno.h
38include/asm-generic/bitops/arch_hweight.h46include/asm-generic/bitops/arch_hweight.h
39include/asm-generic/bitops/const_hweight.h47include/asm-generic/bitops/const_hweight.h
40include/asm-generic/bitops/__fls.h48include/asm-generic/bitops/__fls.h
41include/asm-generic/bitops/fls.h49include/asm-generic/bitops/fls.h
42include/asm-generic/bitops/fls64.h50include/asm-generic/bitops/fls64.h
43include/linux/coresight-pmu.h51include/linux/coresight-pmu.h
52include/uapi/asm-generic/errno.h
53include/uapi/asm-generic/errno-base.h
44include/uapi/asm-generic/ioctls.h54include/uapi/asm-generic/ioctls.h
45include/uapi/asm-generic/mman-common.h55include/uapi/asm-generic/mman-common.h
46'56'
47 57
48check () {58check () {
49 file=$159 file=$1
50 opts="--ignore-blank-lines --ignore-space-change"
51 60
52 shift61 shift
53 while [ -n "$*" ]; do62 while [ -n "$*" ]; do
tools/perf/perf-completion.sh+43−4
@@ -162,8 +162,37 @@ __perf_main () · 161 unmodified lines
162 # List possible events for -e option162 # List possible events for -e option
163 elif [[ $prev == @("-e"|"--event") &&163 elif [[ $prev == @("-e"|"--event") &&
164 $prev_skip_opts == @(record|stat|top) ]]; then164 $prev_skip_opts == @(record|stat|top) ]]; then
165 evts=$($cmd list --raw-dump)165
166 __perfcomp_colon "$evts" "$cur"166 local cur1=${COMP_WORDS[COMP_CWORD]}
167 local raw_evts=$($cmd list --raw-dump)
168 local arr s tmp result
169
170 if [[ "$cur1" == */* && ${cur1#*/} =~ ^[A-Z] ]]; then
171 OLD_IFS="$IFS"
172 IFS=" "
173 arr=($raw_evts)
174 IFS="$OLD_IFS"
175
176 for s in ${arr[@]}
177 do
178 if [[ "$s" == *cpu/* ]]; then
179 tmp=${s#*cpu/}
180 result=$result" ""cpu/"${tmp^^}
181 else
182 result=$result" "$s
183 fi
184 done
185
186 evts=${result}" "$(ls /sys/bus/event_source/devices/cpu/events)
187 else
188 evts=${raw_evts}" "$(ls /sys/bus/event_source/devices/cpu/events)
189 fi
190
191 if [[ "$cur1" == , ]]; then
192 __perfcomp_colon "$evts" ""
193 else
194 __perfcomp_colon "$evts" "$cur1"
195 fi
167 else196 else
168 # List subcommands for perf commands197 # List subcommands for perf commands
169 if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched|198 if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched|
@@ -246,11 +275,21 @@ fi · 76 unmodified lines
246type perf &>/dev/null &&275type perf &>/dev/null &&
247_perf()276_perf()
248{277{
278 if [[ "$COMP_WORDBREAKS" != *,* ]]; then
279 COMP_WORDBREAKS="${COMP_WORDBREAKS},"
280 export COMP_WORDBREAKS
281 fi
282
283 if [[ "$COMP_WORDBREAKS" == *:* ]]; then
284 COMP_WORDBREAKS="${COMP_WORDBREAKS/:/}"
285 export COMP_WORDBREAKS
286 fi
287
249 local cur words cword prev288 local cur words cword prev
250 if [ $preload_get_comp_words_by_ref = "true" ]; then289 if [ $preload_get_comp_words_by_ref = "true" ]; then
251 _get_comp_words_by_ref -n =: cur words cword prev290 _get_comp_words_by_ref -n =:, cur words cword prev
252 else291 else
253 __perf_get_comp_words_by_ref -n =: cur words cword prev292 __perf_get_comp_words_by_ref -n =:, cur words cword prev
254 fi293 fi
255 __perf_main294 __perf_main
256} &&295} &&
tools/perf/perf.c+2−2
@@ -73,7 +73,7 @@ static struct cmd_struct commands[] = { · 72 unmodified lines
73 { "lock", cmd_lock, 0 },73 { "lock", cmd_lock, 0 },
74 { "kvm", cmd_kvm, 0 },74 { "kvm", cmd_kvm, 0 },
75 { "test", cmd_test, 0 },75 { "test", cmd_test, 0 },
76#ifdef HAVE_LIBAUDIT_SUPPORT76#if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE)
77 { "trace", cmd_trace, 0 },77 { "trace", cmd_trace, 0 },
78#endif78#endif
79 { "inject", cmd_inject, 0 },79 { "inject", cmd_inject, 0 },
@@ -485,7 +485,7 @@ int main(int argc, const char **argv) · 405 unmodified lines
485 argv[0] = cmd;485 argv[0] = cmd;
486 }486 }
487 if (strstarts(cmd, "trace")) {487 if (strstarts(cmd, "trace")) {
488#ifdef HAVE_LIBAUDIT_SUPPORT488#if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE)
489 setup_path();489 setup_path();
490 argv[0] = "trace";490 argv[0] = "trace";
491 return cmd_trace(argc, argv);491 return cmd_trace(argc, argv);
tools/perf/pmu-events/arch/arm64/cavium/thunderx2-imp-def.json+62−0
@@ -0,0 +1,62 @@
1[
2 {
3 "PublicDescription": "Attributable Level 1 data cache access, read",
4 "EventCode": "0x40",
5 "EventName": "l1d_cache_rd",
6 "BriefDescription": "L1D cache read",
7 },
8 {
9 "PublicDescription": "Attributable Level 1 data cache access, write ",
10 "EventCode": "0x41",
11 "EventName": "l1d_cache_wr",
12 "BriefDescription": "L1D cache write",
13 },
14 {
15 "PublicDescription": "Attributable Level 1 data cache refill, read",
16 "EventCode": "0x42",
17 "EventName": "l1d_cache_refill_rd",
18 "BriefDescription": "L1D cache refill read",
19 },
20 {
21 "PublicDescription": "Attributable Level 1 data cache refill, write",
22 "EventCode": "0x43",
23 "EventName": "l1d_cache_refill_wr",
24 "BriefDescription": "L1D refill write",
25 },
26 {
27 "PublicDescription": "Attributable Level 1 data TLB refill, read",
28 "EventCode": "0x4C",
29 "EventName": "l1d_tlb_refill_rd",
30 "BriefDescription": "L1D tlb refill read",
31 },
32 {
33 "PublicDescription": "Attributable Level 1 data TLB refill, write",
34 "EventCode": "0x4D",
35 "EventName": "l1d_tlb_refill_wr",
36 "BriefDescription": "L1D tlb refill write",
37 },
38 {
39 "PublicDescription": "Attributable Level 1 data or unified TLB access, read",
40 "EventCode": "0x4E",
41 "EventName": "l1d_tlb_rd",
42 "BriefDescription": "L1D tlb read",
43 },
44 {
45 "PublicDescription": "Attributable Level 1 data or unified TLB access, write",
46 "EventCode": "0x4F",
47 "EventName": "l1d_tlb_wr",
48 "BriefDescription": "L1D tlb write",
49 },
50 {
51 "PublicDescription": "Bus access read",
52 "EventCode": "0x60",
53 "EventName": "bus_access_rd",
54 "BriefDescription": "Bus access read",
55 },
56 {
57 "PublicDescription": "Bus access write",
58 "EventCode": "0x61",
59 "EventName": "bus_access_wr",
60 "BriefDescription": "Bus access write",
61 }
62]
tools/perf/pmu-events/arch/arm64/mapfile.csv+15−0
@@ -0,0 +1,15 @@
1# Format:
2# MIDR,Version,JSON/file/pathname,Type
3#
4# where
5# MIDR Processor version
6# Variant[23:20] and Revision [3:0] should be zero.
7# Version could be used to track version of of JSON file
8# but currently unused.
9# JSON/file/pathname is the path to JSON file, relative
10# to tools/perf/pmu-events/arch/arm64/.
11# Type is core, uncore etc
12#
13#
14#Family-model,Version,Filename,EventType
150x00000000420f5160,v1,cavium,core
tools/perf/pmu-events/arch/powerpc/mapfile.csv+2−10
@@ -13,13 +13,5 @@ · 12 unmodified lines
13#13#
14 14
15# Power8 entries15# Power8 entries
16004b0000,1,power8,core16004[bcd][[:xdigit:]]{4},1,power8,core
17004b0201,1,power8,core17004e[[:xdigit:]]{4},1,power9,core
18004c0000,1,power8,core
19004d0000,1,power8,core
20004d0100,1,power8,core
21004d0200,1,power8,core
22004c0100,1,power8,core
23004e0100,1,power9,core
24004e0200,1,power9,core
25004e1200,1,power9,core
tools/perf/pmu-events/arch/powerpc/power9/cache.json+0−5
@@ -124,11 +124,6 @@ · 123 unmodified lines
124 "EventName": "PM_CMPLU_STALL_LARX",124 "EventName": "PM_CMPLU_STALL_LARX",
125 "BriefDescription": "Finish stall because the NTF instruction was a larx waiting to be satisfied"125 "BriefDescription": "Finish stall because the NTF instruction was a larx waiting to be satisfied"
126 },126 },
127 {,
128 "EventCode": "0x3006C",
129 "EventName": "PM_RUN_CYC_SMT2_MODE",
130 "BriefDescription": "Cycles in which this thread's run latch is set and the core is in SMT2 mode"
131 },
132 {,127 {,
133 "EventCode": "0x1C058",128 "EventCode": "0x1C058",
134 "EventName": "PM_DTLB_MISS_16G",129 "EventName": "PM_DTLB_MISS_16G",
tools/perf/pmu-events/arch/powerpc/power9/frontend.json+1−6
@@ -1,9 +1,4 @@
1[1[
2 {,
3 "EventCode": "0x3E15C",
4 "EventName": "PM_MRK_L2_TM_ST_ABORT_SISTER",
5 "BriefDescription": "TM marked store abort for this thread"
6 },
7 {,2 {,
8 "EventCode": "0x25044",3 "EventCode": "0x25044",
9 "EventName": "PM_IPTEG_FROM_L31_MOD",4 "EventName": "PM_IPTEG_FROM_L31_MOD",
@@ -369,4 +364,4 @@ · 359 unmodified lines
369 "EventName": "PM_IPTEG_FROM_L31_ECO_MOD",364 "EventName": "PM_IPTEG_FROM_L31_ECO_MOD",
370 "BriefDescription": "A Page Table Entry was loaded into the TLB with Modified (M) data from another core's ECO L3 on the same chip due to a instruction side request"365 "BriefDescription": "A Page Table Entry was loaded into the TLB with Modified (M) data from another core's ECO L3 on the same chip due to a instruction side request"
371 }366 }
372]367]
tools/perf/pmu-events/arch/powerpc/power9/marked.json+6−21
@@ -1,9 +1,4 @@
1[1[
2 {,
3 "EventCode": "0x3C052",
4 "EventName": "PM_DATA_SYS_PUMP_MPRED",
5 "BriefDescription": "Final Pump Scope (system) mispredicted. Either the original scope was too small (Chip/Group) or the original scope was System and it should have been smaller. Counts for a demand load"
6 },
7 {,2 {,
8 "EventCode": "0x3013E",3 "EventCode": "0x3013E",
9 "EventName": "PM_MRK_STALL_CMPLU_CYC",4 "EventName": "PM_MRK_STALL_CMPLU_CYC",
@@ -254,6 +249,11 @@ · 244 unmodified lines
254 "EventName": "PM_RADIX_PWC_L1_PDE_FROM_L3",249 "EventName": "PM_RADIX_PWC_L1_PDE_FROM_L3",
255 "BriefDescription": "A Page Directory Entry was reloaded to a level 1 page walk cache from the core's L3 data cache"250 "BriefDescription": "A Page Directory Entry was reloaded to a level 1 page walk cache from the core's L3 data cache"
256 },251 },
252 {,
253 "EventCode": "0x3C052",
254 "EventName": "PM_DATA_SYS_PUMP_MPRED",
255 "BriefDescription": "Final Pump Scope (system) mispredicted. Either the original scope was too small (Chip/Group) or the original scope was System and it should have been smaller. Counts for a demand load"
256 },
257 {,257 {,
258 "EventCode": "0x4D142",258 "EventCode": "0x4D142",
259 "EventName": "PM_MRK_DATA_FROM_L3",259 "EventName": "PM_MRK_DATA_FROM_L3",
@@ -434,21 +434,6 @@ · 174 unmodified lines
434 "EventName": "PM_ITLB_MISS",434 "EventName": "PM_ITLB_MISS",
435 "BriefDescription": "ITLB Reloaded. Counts 1 per ITLB miss for HPT but multiple for radix depending on number of levels traveresed"435 "BriefDescription": "ITLB Reloaded. Counts 1 per ITLB miss for HPT but multiple for radix depending on number of levels traveresed"
436 },436 },
437 {,
438 "EventCode": "0x2D024",
439 "EventName": "PM_RADIX_PWC_L2_HIT",
440 "BriefDescription": "A radix translation attempt missed in the TLB but hit on both the first and second levels of page walk cache."
441 },
442 {,
443 "EventCode": "0x3F056",
444 "EventName": "PM_RADIX_PWC_L3_HIT",
445 "BriefDescription": "A radix translation attempt missed in the TLB but hit on the first, second, and third levels of page walk cache."
446 },
447 {,
448 "EventCode": "0x4E014",
449 "EventName": "PM_TM_TX_PASS_RUN_INST",
450 "BriefDescription": "Run instructions spent in successful transactions"
451 },
452 {,437 {,
453 "EventCode": "0x1E044",438 "EventCode": "0x1E044",
454 "EventName": "PM_DPTEG_FROM_L3_NO_CONFLICT",439 "EventName": "PM_DPTEG_FROM_L3_NO_CONFLICT",
@@ -644,4 +629,4 @@ · 189 unmodified lines
644 "EventName": "PM_MRK_BR_MPRED_CMPL",629 "EventName": "PM_MRK_BR_MPRED_CMPL",
645 "BriefDescription": "Marked Branch Mispredicted"630 "BriefDescription": "Marked Branch Mispredicted"
646 }631 }
647]632]
tools/perf/pmu-events/arch/powerpc/power9/other.json+73−203
@@ -79,6 +79,11 @@ · 78 unmodified lines
79 "EventName": "PM_RADIX_PWC_MISS",79 "EventName": "PM_RADIX_PWC_MISS",
80 "BriefDescription": "A radix translation attempt missed in the TLB and all levels of page walk cache."80 "BriefDescription": "A radix translation attempt missed in the TLB and all levels of page walk cache."
81 },81 },
82 {,
83 "EventCode": "0x26882",
84 "EventName": "PM_L2_DC_INV",
85 "BriefDescription": "D-cache invalidates sent over the reload bus to the core"
86 },
82 {,87 {,
83 "EventCode": "0x24048",88 "EventCode": "0x24048",
84 "EventName": "PM_INST_FROM_LMEM",89 "EventName": "PM_INST_FROM_LMEM",
@@ -94,11 +99,6 @@ · 9 unmodified lines
94 "EventName": "PM_TM_PASSED",99 "EventName": "PM_TM_PASSED",
95 "BriefDescription": "Number of TM transactions that passed"100 "BriefDescription": "Number of TM transactions that passed"
96 },101 },
97 {,
98 "EventCode": "0xD1A0",
99 "EventName": "PM_MRK_LSU_FLUSH_LHS",
100 "BriefDescription": "Effective Address alias flush : no EA match but Real Address match. If the data has not yet been returned for this load, the instruction will just be rejected, but if it has returned data, it will be flushed"
101 },
102 {,102 {,
103 "EventCode": "0xF088",103 "EventCode": "0xF088",
104 "EventName": "PM_LSU0_STORE_REJECT",104 "EventName": "PM_LSU0_STORE_REJECT",
@@ -127,7 +127,7 @@ · 22 unmodified lines
127 {,127 {,
128 "EventCode": "0xD08C",128 "EventCode": "0xD08C",
129 "EventName": "PM_LSU2_LDMX_FIN",129 "EventName": "PM_LSU2_LDMX_FIN",
130 "BriefDescription": "New P9 instruction LDMX. The definition of this new PMU event is (from the ldmx RFC02491): The thread has executed an ldmx instruction that accessed a doubleword that contains an effective address within an enabled section of the Load Monitored region. This event, therefore, should not occur if the FSCR has disabled the load monitored facility (FSCR[52]) or disabled the EBB facility (FSCR[56])"130 "BriefDescription": "New P9 instruction LDMX. The definition of this new PMU event is (from the ldmx RFC02491): The thread has executed an ldmx instruction that accessed a doubleword that contains an effective address within an enabled section of the Load Monitored region. This event, therefore, should not occur if the FSCR has disabled the load monitored facility (FSCR[52]) or disabled the EBB facility (FSCR[56])."
131 },131 },
132 {,132 {,
133 "EventCode": "0x300F8",133 "EventCode": "0x300F8",
@@ -204,11 +204,6 @@ · 70 unmodified lines
204 "EventName": "PM_MRK_DATA_FROM_L31_ECO_MOD_CYC",204 "EventName": "PM_MRK_DATA_FROM_L31_ECO_MOD_CYC",
205 "BriefDescription": "Duration in cycles to reload with Modified (M) data from another core's ECO L3 on the same chip due to a marked load"205 "BriefDescription": "Duration in cycles to reload with Modified (M) data from another core's ECO L3 on the same chip due to a marked load"
206 },206 },
207 {,
208 "EventCode": "0xF0B4",
209 "EventName": "PM_DC_PREF_CONS_ALLOC",
210 "BriefDescription": "Prefetch stream allocated in the conservative phase by either the hardware prefetch mechanism or software prefetch"
211 },
212 {,207 {,
213 "EventCode": "0xF894",208 "EventCode": "0xF894",
214 "EventName": "PM_LSU3_L1_CAM_CANCEL",209 "EventName": "PM_LSU3_L1_CAM_CANCEL",
@@ -219,21 +214,11 @@ · 4 unmodified lines
219 "EventName": "PM_FLUSH_DISP_TLBIE",214 "EventName": "PM_FLUSH_DISP_TLBIE",
220 "BriefDescription": "Dispatch Flush: TLBIE"215 "BriefDescription": "Dispatch Flush: TLBIE"
221 },216 },
222 {,
223 "EventCode": "0xD1A4",
224 "EventName": "PM_MRK_LSU_FLUSH_SAO",
225 "BriefDescription": "A load-hit-load condition with Strong Address Ordering will have address compare disabled and flush"
226 },
227 {,217 {,
228 "EventCode": "0x4E11E",218 "EventCode": "0x4E11E",
229 "EventName": "PM_MRK_DATA_FROM_DMEM_CYC",219 "EventName": "PM_MRK_DATA_FROM_DMEM_CYC",
230 "BriefDescription": "Duration in cycles to reload from another chip's memory on the same Node or Group (Distant) due to a marked load"220 "BriefDescription": "Duration in cycles to reload from another chip's memory on the same Node or Group (Distant) due to a marked load"
231 },221 },
232 {,
233 "EventCode": "0x5894",
234 "EventName": "PM_LWSYNC",
235 "BriefDescription": "Lwsync instruction decoded and transferred"
236 },
237 {,222 {,
238 "EventCode": "0x14156",223 "EventCode": "0x14156",
239 "EventName": "PM_MRK_DATA_FROM_L2_CYC",224 "EventName": "PM_MRK_DATA_FROM_L2_CYC",
@@ -244,11 +229,6 @@ · 4 unmodified lines
244 "EventName": "PM_RD_CLEARING_SC",229 "EventName": "PM_RD_CLEARING_SC",
245 "BriefDescription": "Read clearing SC"230 "BriefDescription": "Read clearing SC"
246 },231 },
247 {,
248 "EventCode": "0x50A0",
249 "EventName": "PM_HWSYNC",
250 "BriefDescription": "Hwsync instruction decoded and transferred"
251 },
252 {,232 {,
253 "EventCode": "0x168B0",233 "EventCode": "0x168B0",
254 "EventName": "PM_L3_P1_NODE_PUMP",234 "EventName": "PM_L3_P1_NODE_PUMP",
@@ -264,6 +244,11 @@ · 9 unmodified lines
264 "EventName": "PM_MRK_DATA_FROM_L2_DISP_CONFLICT_LDHITST",244 "EventName": "PM_MRK_DATA_FROM_L2_DISP_CONFLICT_LDHITST",
265 "BriefDescription": "The processor's data cache was reloaded from local core's L2 with load hit store conflict due to a marked load"245 "BriefDescription": "The processor's data cache was reloaded from local core's L2 with load hit store conflict due to a marked load"
266 },246 },
247 {,
248 "EventCode": "0x468AE",
249 "EventName": "PM_L3_P3_CO_RTY",
250 "BriefDescription": "L3 CO received retry port 3 (memory only), every retry counted"
251 },
267 {,252 {,
268 "EventCode": "0x460A8",253 "EventCode": "0x460A8",
269 "EventName": "PM_SN_HIT",254 "EventName": "PM_SN_HIT",
@@ -279,11 +264,6 @@ · 9 unmodified lines
279 "EventName": "PM_DC_PREF_HW_ALLOC",264 "EventName": "PM_DC_PREF_HW_ALLOC",
280 "BriefDescription": "Prefetch stream allocated by the hardware prefetch mechanism"265 "BriefDescription": "Prefetch stream allocated by the hardware prefetch mechanism"
281 },266 },
282 {,
283 "EventCode": "0xF0BC",
284 "EventName": "PM_LS2_UNALIGNED_ST",
285 "BriefDescription": "Store instructions whose data crosses a double-word boundary, which causes it to require an additional slice than than what normally would be required of the Store of that size. If the Store wraps from slice 3 to slice 0, thee is an additional 3-cycle penalty"
286 },
287 {,267 {,
288 "EventCode": "0xD0AC",268 "EventCode": "0xD0AC",
289 "EventName": "PM_SRQ_SYNC_CYC",269 "EventName": "PM_SRQ_SYNC_CYC",
@@ -379,26 +359,11 @@ · 89 unmodified lines
379 "EventName": "PM_RUN_CYC_SMT4_MODE",359 "EventName": "PM_RUN_CYC_SMT4_MODE",
380 "BriefDescription": "Cycles in which this thread's run latch is set and the core is in SMT4 mode"360 "BriefDescription": "Cycles in which this thread's run latch is set and the core is in SMT4 mode"
381 },361 },
382 {,
383 "EventCode": "0x5088",
384 "EventName": "PM_DECODE_FUSION_OP_PRESERV",
385 "BriefDescription": "Destructive op operand preservation"
386 },
387 {,362 {,
388 "EventCode": "0x1D14E",363 "EventCode": "0x1D14E",
389 "EventName": "PM_MRK_DATA_FROM_OFF_CHIP_CACHE_CYC",364 "EventName": "PM_MRK_DATA_FROM_OFF_CHIP_CACHE_CYC",
390 "BriefDescription": "Duration in cycles to reload either shared or modified data from another core's L2/L3 on a different chip (remote or distant) due to a marked load"365 "BriefDescription": "Duration in cycles to reload either shared or modified data from another core's L2/L3 on a different chip (remote or distant) due to a marked load"
391 },366 },
392 {,
393 "EventCode": "0x509C",
394 "EventName": "PM_FORCED_NOP",
395 "BriefDescription": "Instruction was forced to execute as a nop because it was found to behave like a nop (have no effect) at decode time"
396 },
397 {,
398 "EventCode": "0xC098",
399 "EventName": "PM_LS2_UNALIGNED_LD",
400 "BriefDescription": "Load instructions whose data crosses a double-word boundary, which causes it to require an additional slice than than what normally would be required of the load of that size. If the load wraps from slice 3 to slice 0, thee is an additional 3-cycle penalty"
401 },
402 {,367 {,
403 "EventCode": "0x20058",368 "EventCode": "0x20058",
404 "EventName": "PM_DARQ1_10_12_ENTRIES",369 "EventName": "PM_DARQ1_10_12_ENTRIES",
@@ -434,11 +399,6 @@ · 29 unmodified lines
434 "EventName": "PM_LSU1_STORE_REJECT",399 "EventName": "PM_LSU1_STORE_REJECT",
435 "BriefDescription": "All internal store rejects cause the instruction to go back to the SRQ and go to sleep until woken up to try again after the condition has been met"400 "BriefDescription": "All internal store rejects cause the instruction to go back to the SRQ and go to sleep until woken up to try again after the condition has been met"
436 },401 },
437 {,
438 "EventCode": "0x4505E",
439 "EventName": "PM_FLOP_CMPL",
440 "BriefDescription": "Floating Point Operation Finished"
441 },
442 {,402 {,
443 "EventCode": "0x1D144",403 "EventCode": "0x1D144",
444 "EventName": "PM_MRK_DATA_FROM_L3_DISP_CONFLICT",404 "EventName": "PM_MRK_DATA_FROM_L3_DISP_CONFLICT",
@@ -480,14 +440,9 @@ · 35 unmodified lines
480 "BriefDescription": "XL-form branch was mispredicted due to the predicted target address missing from EAT. The EAT forces a mispredict in this case since there is no predicated target to validate. This is a rare case that may occur when the EAT is full and a branch is issued"440 "BriefDescription": "XL-form branch was mispredicted due to the predicted target address missing from EAT. The EAT forces a mispredict in this case since there is no predicated target to validate. This is a rare case that may occur when the EAT is full and a branch is issued"
481 },441 },
482 {,442 {,
483 "EventCode": "0xC094",443 "EventCode": "0x460AE",
484 "EventName": "PM_LS0_UNALIGNED_LD",444 "EventName": "PM_L3_P2_CO_RTY",
485 "BriefDescription": "Load instructions whose data crosses a double-word boundary, which causes it to require an additional slice than than what normally would be required of the load of that size. If the load wraps from slice 3 to slice 0, thee is an additional 3-cycle penalty"445 "BriefDescription": "L3 CO received retry port 2 (memory only), every retry counted"
486 },
487 {,
488 "EventCode": "0xF8BC",
489 "EventName": "PM_LS3_UNALIGNED_ST",
490 "BriefDescription": "Store instructions whose data crosses a double-word boundary, which causes it to require an additional slice than than what normally would be required of the Store of that size. If the Store wraps from slice 3 to slice 0, thee is an additional 3-cycle penalty"
491 },446 },
492 {,447 {,
493 "EventCode": "0x58B0",448 "EventCode": "0x58B0",
@@ -504,11 +459,6 @@ · 10 unmodified lines
504 "EventName": "PM_TM_ST_CONF",459 "EventName": "PM_TM_ST_CONF",
505 "BriefDescription": "TM Store (fav or non-fav) ran into conflict (failed)"460 "BriefDescription": "TM Store (fav or non-fav) ran into conflict (failed)"
506 },461 },
507 {,
508 "EventCode": "0xD998",
509 "EventName": "PM_MRK_LSU_FLUSH_EMSH",
510 "BriefDescription": "An ERAT miss was detected after a set-p hit. Erat tracker indicates fail due to tlbmiss and the instruction gets flushed because the instruction was working on the wrong address"
511 },
512 {,462 {,
513 "EventCode": "0xF8A0",463 "EventCode": "0xF8A0",
514 "EventName": "PM_NON_DATA_STORE",464 "EventName": "PM_NON_DATA_STORE",
@@ -524,11 +474,6 @@ · 9 unmodified lines
524 "EventName": "PM_BR_UNCOND",474 "EventName": "PM_BR_UNCOND",
525 "BriefDescription": "Unconditional Branch Completed. HW branch prediction was not used for this branch. This can be an I-form branch, a B-form branch with BO-field set to branch always, or a B-form branch which was covenrted to a Resolve."475 "BriefDescription": "Unconditional Branch Completed. HW branch prediction was not used for this branch. This can be an I-form branch, a B-form branch with BO-field set to branch always, or a B-form branch which was covenrted to a Resolve."
526 },476 },
527 {,
528 "EventCode": "0x1F056",
529 "EventName": "PM_RADIX_PWC_L1_HIT",
530 "BriefDescription": "A radix translation attempt missed in the TLB and only the first level page walk cache was a hit."
531 },
532 {,477 {,
533 "EventCode": "0xF8A8",478 "EventCode": "0xF8A8",
534 "EventName": "PM_DC_PREF_FUZZY_CONF",479 "EventName": "PM_DC_PREF_FUZZY_CONF",
@@ -544,6 +489,11 @@ · 9 unmodified lines
544 "EventName": "PM_LSU2_TM_L1_MISS",489 "EventName": "PM_LSU2_TM_L1_MISS",
545 "BriefDescription": "Load tm L1 miss"490 "BriefDescription": "Load tm L1 miss"
546 },491 },
492 {,
493 "EventCode": "0xC880",
494 "EventName": "PM_LS1_LD_VECTOR_FIN",
495 "BriefDescription": ""
496 },
547 {,497 {,
548 "EventCode": "0x2894",498 "EventCode": "0x2894",
549 "EventName": "PM_TM_OUTER_TEND",499 "EventName": "PM_TM_OUTER_TEND",
@@ -564,21 +514,11 @@ · 14 unmodified lines
564 "EventName": "PM_MRK_LSU_DERAT_MISS",514 "EventName": "PM_MRK_LSU_DERAT_MISS",
565 "BriefDescription": "Marked derat reload (miss) for any page size"515 "BriefDescription": "Marked derat reload (miss) for any page size"
566 },516 },
567 {,
568 "EventCode": "0x160A0",
569 "EventName": "PM_L3_PF_MISS_L3",
570 "BriefDescription": "L3 PF missed in L3"
571 },
572 {,517 {,
573 "EventCode": "0x1C04A",518 "EventCode": "0x1C04A",
574 "EventName": "PM_DATA_FROM_RL2L3_SHR",519 "EventName": "PM_DATA_FROM_RL2L3_SHR",
575 "BriefDescription": "The processor's data cache was reloaded with Shared (S) data from another chip's L2 or L3 on the same Node or Group (Remote), as this chip due to a demand load"520 "BriefDescription": "The processor's data cache was reloaded with Shared (S) data from another chip's L2 or L3 on the same Node or Group (Remote), as this chip due to a demand load"
576 },521 },
577 {,
578 "EventCode": "0xD99C",
579 "EventName": "PM_MRK_LSU_FLUSH_UE",
580 "BriefDescription": "Correctable ECC error on reload data, reported at critical data forward time"
581 },
582 {,522 {,
583 "EventCode": "0x268B0",523 "EventCode": "0x268B0",
584 "EventName": "PM_L3_P1_GRP_PUMP",524 "EventName": "PM_L3_P1_GRP_PUMP",
@@ -629,11 +569,6 @@ · 44 unmodified lines
629 "EventName": "PM_TMA_REQ_L2",569 "EventName": "PM_TMA_REQ_L2",
630 "BriefDescription": "addrs only req to L2 only on the first one,Indication that Load footprint is not expanding"570 "BriefDescription": "addrs only req to L2 only on the first one,Indication that Load footprint is not expanding"
631 },571 },
632 {,
633 "EventCode": "0x5884",
634 "EventName": "PM_DECODE_LANES_NOT_AVAIL",
635 "BriefDescription": "Decode has something to transmit but dispatch lanes are not available"
636 },
637 {,572 {,
638 "EventCode": "0x3C042",573 "EventCode": "0x3C042",
639 "EventName": "PM_DATA_FROM_L3_DISP_CONFLICT",574 "EventName": "PM_DATA_FROM_L3_DISP_CONFLICT",
@@ -690,9 +625,9 @@ · 50 unmodified lines
690 "BriefDescription": "False LHS match detected"625 "BriefDescription": "False LHS match detected"
691 },626 },
692 {,627 {,
693 "EventCode": "0xD9A4",628 "EventCode": "0xF0B0",
694 "EventName": "PM_MRK_LSU_FLUSH_LARX_STCX",629 "EventName": "PM_L3_LD_PREF",
695 "BriefDescription": "A larx is flushed because an older larx has an LMQ reservation for the same thread. A stcx is flushed because an older stcx is in the LMQ. The flush happens when the older larx/stcx relaunches"630 "BriefDescription": "L3 load prefetch, sourced from a hardware or software stream, was sent to the nest"
696 },631 },
697 {,632 {,
698 "EventCode": "0x4D012",633 "EventCode": "0x4D012",
@@ -715,9 +650,9 @@ · 16 unmodified lines
715 "BriefDescription": "All successful Ld/St dispatches for this thread that were an L2 miss (excludes i_l2mru_tch_reqs)"650 "BriefDescription": "All successful Ld/St dispatches for this thread that were an L2 miss (excludes i_l2mru_tch_reqs)"
716 },651 },
717 {,652 {,
718 "EventCode": "0xF8B8",653 "EventCode": "0x160A0",
719 "EventName": "PM_LS1_UNALIGNED_ST",654 "EventName": "PM_L3_PF_MISS_L3",
720 "BriefDescription": "Store instructions whose data crosses a double-word boundary, which causes it to require an additional slice than than what normally would be required of the Store of that size. If the Store wraps from slice 3 to slice 0, thee is an additional 3-cycle penalty"655 "BriefDescription": "L3 PF missed in L3"
721 },656 },
722 {,657 {,
723 "EventCode": "0x408C",658 "EventCode": "0x408C",
@@ -764,11 +699,6 @@ · 40 unmodified lines
764 "EventName": "PM_TM_NESTED_TEND",699 "EventName": "PM_TM_NESTED_TEND",
765 "BriefDescription": "Completion time nested tend"700 "BriefDescription": "Completion time nested tend"
766 },701 },
767 {,
768 "EventCode": "0x36084",
769 "EventName": "PM_L2_RCST_DISP",
770 "BriefDescription": "All D-side store dispatch attempts for this thread"
771 },
772 {,702 {,
773 "EventCode": "0x368A0",703 "EventCode": "0x368A0",
774 "EventName": "PM_L3_PF_OFF_CHIP_CACHE",704 "EventName": "PM_L3_PF_OFF_CHIP_CACHE",
@@ -829,11 +759,6 @@ · 54 unmodified lines
829 "EventName": "PM_L3_SN_USAGE",759 "EventName": "PM_L3_SN_USAGE",
830 "BriefDescription": "Rotating sample of 16 snoop valids"760 "BriefDescription": "Rotating sample of 16 snoop valids"
831 },761 },
832 {,
833 "EventCode": "0x16084",
834 "EventName": "PM_L2_RCLD_DISP",
835 "BriefDescription": "All I-or-D side load dispatch attempts for this thread (excludes i_l2mru_tch_reqs)"
836 },
837 {,762 {,
838 "EventCode": "0x1608C",763 "EventCode": "0x1608C",
839 "EventName": "PM_RC0_BUSY",764 "EventName": "PM_RC0_BUSY",
@@ -842,7 +767,7 @@ · 2 unmodified lines
842 {,767 {,
843 "EventCode": "0x36082",768 "EventCode": "0x36082",
844 "EventName": "PM_L2_LD_DISP",769 "EventName": "PM_L2_LD_DISP",
845 "BriefDescription": "All successful I-or-D side load dispatches for this thread (excludes i_l2mru_tch_reqs)."770 "BriefDescription": "All successful I-or-D side load dispatches for this thread (excludes i_l2mru_tch_reqs)"
846 },771 },
847 {,772 {,
848 "EventCode": "0xF8B0",773 "EventCode": "0xF8B0",
@@ -904,11 +829,6 @@ · 55 unmodified lines
904 "EventName": "PM_IC_PREF_REQ",829 "EventName": "PM_IC_PREF_REQ",
905 "BriefDescription": "Instruction prefetch requests"830 "BriefDescription": "Instruction prefetch requests"
906 },831 },
907 {,
908 "EventCode": "0xC898",
909 "EventName": "PM_LS3_UNALIGNED_LD",
910 "BriefDescription": "Load instructions whose data crosses a double-word boundary, which causes it to require an additional slice than than what normally would be required of the load of that size. If the load wraps from slice 3 to slice 0, thee is an additional 3-cycle penalty"
911 },
912 {,832 {,
913 "EventCode": "0x488C",833 "EventCode": "0x488C",
914 "EventName": "PM_IC_PREF_WRITE",834 "EventName": "PM_IC_PREF_WRITE",
@@ -1017,7 +937,7 @@ · 102 unmodified lines
1017 {,937 {,
1018 "EventCode": "0x3E05E",938 "EventCode": "0x3E05E",
1019 "EventName": "PM_L3_CO_MEPF",939 "EventName": "PM_L3_CO_MEPF",
1020 "BriefDescription": "L3 castouts in Mepf state for this thread"940 "BriefDescription": "L3 CO of line in Mep state (includes casthrough to memory). The Mepf state indicates that a line was brought in to satisfy an L3 prefetch request"
1021 },941 },
1022 {,942 {,
1023 "EventCode": "0x460A2",943 "EventCode": "0x460A2",
@@ -1204,11 +1124,6 @@ · 180 unmodified lines
1204 "EventName": "PM_TM_FAIL_NON_TX_CONFLICT",1124 "EventName": "PM_TM_FAIL_NON_TX_CONFLICT",
1205 "BriefDescription": "Non transactional conflict from LSU, gets reported to TEXASR"1125 "BriefDescription": "Non transactional conflict from LSU, gets reported to TEXASR"
1206 },1126 },
1207 {,
1208 "EventCode": "0xD198",
1209 "EventName": "PM_MRK_LSU_FLUSH_ATOMIC",
1210 "BriefDescription": "Quad-word loads (lq) are considered atomic because they always span at least 2 slices. If a snoop or store from another thread changes the data the load is accessing between the 2 or 3 pieces of the lq instruction, the lq will be flushed"
1211 },
1212 {,1127 {,
1213 "EventCode": "0x201E0",1128 "EventCode": "0x201E0",
1214 "EventName": "PM_MRK_DATA_FROM_MEMORY",1129 "EventName": "PM_MRK_DATA_FROM_MEMORY",
@@ -1294,11 +1209,6 @@ · 79 unmodified lines
1294 "EventName": "PM_ICT_NOSLOT_DISP_HELD_HB_FULL",1209 "EventName": "PM_ICT_NOSLOT_DISP_HELD_HB_FULL",
1295 "BriefDescription": "Ict empty for this thread due to dispatch holds because the History Buffer was full. Could be GPR/VSR/VMR/FPR/CR/XVF; CR; XVF (XER/VSCR/FPSCR)"1210 "BriefDescription": "Ict empty for this thread due to dispatch holds because the History Buffer was full. Could be GPR/VSR/VMR/FPR/CR/XVF; CR; XVF (XER/VSCR/FPSCR)"
1296 },1211 },
1297 {,
1298 "EventCode": "0xC894",
1299 "EventName": "PM_LS1_UNALIGNED_LD",
1300 "BriefDescription": "Load instructions whose data crosses a double-word boundary, which causes it to require an additional slice than than what normally would be required of the load of that size. If the load wraps from slice 3 to slice 0, thee is an additional 3-cycle penalty"
1301 },
1302 {,1212 {,
1303 "EventCode": "0x360A2",1213 "EventCode": "0x360A2",
1304 "EventName": "PM_L3_L2_CO_HIT",1214 "EventName": "PM_L3_L2_CO_HIT",
@@ -1324,11 +1234,6 @@ · 19 unmodified lines
1324 "EventName": "PM_L2_CASTOUT_SHR",1234 "EventName": "PM_L2_CASTOUT_SHR",
1325 "BriefDescription": "L2 Castouts - Shared (Tx,Sx)"1235 "BriefDescription": "L2 Castouts - Shared (Tx,Sx)"
1326 },1236 },
1327 {,
1328 "EventCode": "0xD884",
1329 "EventName": "PM_LSU3_SET_MPRED",
1330 "BriefDescription": "Set prediction(set-p) miss. The entry was not found in the Set prediction table"
1331 },
1332 {,1237 {,
1333 "EventCode": "0x26092",1238 "EventCode": "0x26092",
1334 "EventName": "PM_L2_LD_MISS_64B",1239 "EventName": "PM_L2_LD_MISS_64B",
@@ -1362,12 +1267,12 @@ · 27 unmodified lines
1362 {,1267 {,
1363 "EventCode": "0xD8A8",1268 "EventCode": "0xD8A8",
1364 "EventName": "PM_ISLB_MISS",1269 "EventName": "PM_ISLB_MISS",
1365 "BriefDescription": "Instruction SLB miss - Total of all segment sizes"1270 "BriefDescription": "Instruction SLB Miss - Total of all segment sizes"
1366 },1271 },
1367 {,1272 {,
1368 "EventCode": "0xD19C",1273 "EventCode": "0x368AE",
1369 "EventName": "PM_MRK_LSU_FLUSH_RELAUNCH_MISS",1274 "EventName": "PM_L3_P1_CO_RTY",
1370 "BriefDescription": "If a load that has already returned data and has to relaunch for any reason then gets a miss (erat, setp, data cache), it will often be flushed at relaunch time because the data might be inconsistent"1275 "BriefDescription": "L3 CO received retry port 1 (memory only), every retry counted"
1371 },1276 },
1372 {,1277 {,
1373 "EventCode": "0x260A2",1278 "EventCode": "0x260A2",
@@ -1384,6 +1289,11 @@ · 10 unmodified lines
1384 "EventName": "PM_CMPLU_STALL_NESTED_TBEGIN",1289 "EventName": "PM_CMPLU_STALL_NESTED_TBEGIN",
1385 "BriefDescription": "Completion stall because the ISU is updating the TEXASR to keep track of the nested tbegin. This is a short delay, and it includes ROT"1290 "BriefDescription": "Completion stall because the ISU is updating the TEXASR to keep track of the nested tbegin. This is a short delay, and it includes ROT"
1386 },1291 },
1292 {,
1293 "EventCode": "0xC084",
1294 "EventName": "PM_LS2_LD_VECTOR_FIN",
1295 "BriefDescription": ""
1296 },
1387 {,1297 {,
1388 "EventCode": "0x1608E",1298 "EventCode": "0x1608E",
1389 "EventName": "PM_ST_CAUSED_FAIL",1299 "EventName": "PM_ST_CAUSED_FAIL",
@@ -1409,11 +1319,6 @@ · 19 unmodified lines
1409 "EventName": "PM_CO_USAGE",1319 "EventName": "PM_CO_USAGE",
1410 "BriefDescription": "Continuous 16 cycle (2to1) window where this signals rotates thru sampling each CO machine busy. PMU uses this wave to then do 16 cyc count to sample total number of machs running"1320 "BriefDescription": "Continuous 16 cycle (2to1) window where this signals rotates thru sampling each CO machine busy. PMU uses this wave to then do 16 cyc count to sample total number of machs running"
1411 },1321 },
1412 {,
1413 "EventCode": "0xD084",
1414 "EventName": "PM_LSU2_SET_MPRED",
1415 "BriefDescription": "Set prediction(set-p) miss. The entry was not found in the Set prediction table"
1416 },
1417 {,1322 {,
1418 "EventCode": "0x48B8",1323 "EventCode": "0x48B8",
1419 "EventName": "PM_BR_MPRED_TAKEN_TA",1324 "EventName": "PM_BR_MPRED_TAKEN_TA",
@@ -1449,30 +1354,25 @@ · 29 unmodified lines
1449 "EventName": "PM_DC_PREF_STRIDED_CONF",1354 "EventName": "PM_DC_PREF_STRIDED_CONF",
1450 "BriefDescription": "A demand load referenced a line in an active strided prefetch stream. The stream could have been allocated through the hardware prefetch mechanism or through software."1355 "BriefDescription": "A demand load referenced a line in an active strided prefetch stream. The stream could have been allocated through the hardware prefetch mechanism or through software."
1451 },1356 },
1357 {,
1358 "EventCode": "0x36084",
1359 "EventName": "PM_L2_RCST_DISP",
1360 "BriefDescription": "All D-side store dispatch attempts for this thread"
1361 },
1452 {,1362 {,
1453 "EventCode": "0x45054",1363 "EventCode": "0x45054",
1454 "EventName": "PM_FMA_CMPL",1364 "EventName": "PM_FMA_CMPL",
1455 "BriefDescription": "two flops operation completed (fmadd, fnmadd, fmsub, fnmsub) Scalar instructions only. "1365 "BriefDescription": "two flops operation completed (fmadd, fnmadd, fmsub, fnmsub) Scalar instructions only. "
1456 },1366 },
1457 {,
1458 "EventCode": "0x5090",
1459 "EventName": "PM_SHL_ST_DISABLE",
1460 "BriefDescription": "Store-Hit-Load Table Read Hit with entry Disabled (entry was disabled due to the entry shown to not prevent the flush)"
1461 },
1462 {,1367 {,
1463 "EventCode": "0x201E8",1368 "EventCode": "0x201E8",
1464 "EventName": "PM_THRESH_EXC_512",1369 "EventName": "PM_THRESH_EXC_512",
1465 "BriefDescription": "Threshold counter exceeded a value of 512"1370 "BriefDescription": "Threshold counter exceeded a value of 512"
1466 },1371 },
1467 {,
1468 "EventCode": "0x5084",
1469 "EventName": "PM_DECODE_FUSION_EXT_ADD",
1470 "BriefDescription": "32-bit extended addition"
1471 },
1472 {,1372 {,
1473 "EventCode": "0x36080",1373 "EventCode": "0x36080",
1474 "EventName": "PM_L2_INST",1374 "EventName": "PM_L2_INST",
1475 "BriefDescription": "All successful I-side dispatches for this thread (excludes i_l2mru_tch reqs)."1375 "BriefDescription": "All successful I-side dispatches for this thread (excludes i_l2mru_tch reqs)"
1476 },1376 },
1477 {,1377 {,
1478 "EventCode": "0x3504C",1378 "EventCode": "0x3504C",
@@ -1554,21 +1454,11 @@ · 75 unmodified lines
1554 "EventName": "PM_MEM_RWITM",1454 "EventName": "PM_MEM_RWITM",
1555 "BriefDescription": "Memory Read With Intent to Modify for this thread"1455 "BriefDescription": "Memory Read With Intent to Modify for this thread"
1556 },1456 },
1557 {,
1558 "EventCode": "0x26882",
1559 "EventName": "PM_L2_DC_INV",
1560 "BriefDescription": "D-cache invalidates sent over the reload bus to the core"
1561 },
1562 {,1457 {,
1563 "EventCode": "0xC090",1458 "EventCode": "0xC090",
1564 "EventName": "PM_LSU_STCX",1459 "EventName": "PM_LSU_STCX",
1565 "BriefDescription": "STCX sent to nest, i.e. total"1460 "BriefDescription": "STCX sent to nest, i.e. total"
1566 },1461 },
1567 {,
1568 "EventCode": "0xD080",
1569 "EventName": "PM_LSU0_SET_MPRED",
1570 "BriefDescription": "Set prediction(set-p) miss. The entry was not found in the Set prediction table"
1571 },
1572 {,1462 {,
1573 "EventCode": "0x2C120",1463 "EventCode": "0x2C120",
1574 "EventName": "PM_MRK_DATA_FROM_L2_NO_CONFLICT",1464 "EventName": "PM_MRK_DATA_FROM_L2_NO_CONFLICT",
@@ -1609,11 +1499,6 @@ · 34 unmodified lines
1609 "EventName": "PM_IPTEG_FROM_L2_NO_CONFLICT",1499 "EventName": "PM_IPTEG_FROM_L2_NO_CONFLICT",
1610 "BriefDescription": "A Page Table Entry was loaded into the TLB from local core's L2 without conflict due to a instruction side request"1500 "BriefDescription": "A Page Table Entry was loaded into the TLB from local core's L2 without conflict due to a instruction side request"
1611 },1501 },
1612 {,
1613 "EventCode": "0xD9A0",
1614 "EventName": "PM_MRK_LSU_FLUSH_LHL_SHL",
1615 "BriefDescription": "The instruction was flushed because of a sequential load/store consistency. If a load or store hits on an older load that has either been snooped (for loads) or has stale data (for stores)."
1616 },
1617 {,1502 {,
1618 "EventCode": "0x35042",1503 "EventCode": "0x35042",
1619 "EventName": "PM_IPTEG_FROM_L3_DISP_CONFLICT",1504 "EventName": "PM_IPTEG_FROM_L3_DISP_CONFLICT",
@@ -1692,7 +1577,7 @@ · 72 unmodified lines
1692 {,1577 {,
1693 "EventCode": "0x2001A",1578 "EventCode": "0x2001A",
1694 "EventName": "PM_NTC_ALL_FIN",1579 "EventName": "PM_NTC_ALL_FIN",
1695 "BriefDescription": "Cycles after all instructions have finished to group completed"1580 "BriefDescription": "Cycles after instruction finished to instruction completed."
1696 },1581 },
1697 {,1582 {,
1698 "EventCode": "0x3005A",1583 "EventCode": "0x3005A",
@@ -1709,6 +1594,11 @@ · 10 unmodified lines
1709 "EventName": "PM_LSU1_L1_CAM_CANCEL",1594 "EventName": "PM_LSU1_L1_CAM_CANCEL",
1710 "BriefDescription": "ls1 l1 tm cam cancel"1595 "BriefDescription": "ls1 l1 tm cam cancel"
1711 },1596 },
1597 {,
1598 "EventCode": "0x268AE",
1599 "EventName": "PM_L3_P3_PF_RTY",
1600 "BriefDescription": "L3 PF received retry port 3, every retry counted"
1601 },
1712 {,1602 {,
1713 "EventCode": "0xE884",1603 "EventCode": "0xE884",
1714 "EventName": "PM_LS1_ERAT_MISS_PREF",1604 "EventName": "PM_LS1_ERAT_MISS_PREF",
@@ -1742,7 +1632,7 @@ · 27 unmodified lines
1742 {,1632 {,
1743 "EventCode": "0x160B6",1633 "EventCode": "0x160B6",
1744 "EventName": "PM_L3_WI0_BUSY",1634 "EventName": "PM_L3_WI0_BUSY",
1745 "BriefDescription": "Rotating sample of 8 WI valid"1635 "BriefDescription": "Rotating sample of 8 WI valid (duplicate)"
1746 },1636 },
1747 {,1637 {,
1748 "EventCode": "0x368AC",1638 "EventCode": "0x368AC",
@@ -1790,9 +1680,9 @@ · 41 unmodified lines
1790 "BriefDescription": "L2 guess system (VGS or RNS) and guess was correct (ie data beyond-group)"1680 "BriefDescription": "L2 guess system (VGS or RNS) and guess was correct (ie data beyond-group)"
1791 },1681 },
1792 {,1682 {,
1793 "EventCode": "0x589C",1683 "EventCode": "0x260AE",
1794 "EventName": "PM_PTESYNC",1684 "EventName": "PM_L3_P2_PF_RTY",
1795 "BriefDescription": "ptesync instruction counted when the instruction is decoded and transmitted"1685 "BriefDescription": "L3 PF received retry port 2, every retry counted"
1796 },1686 },
1797 {,1687 {,
1798 "EventCode": "0x26086",1688 "EventCode": "0x26086",
@@ -1824,6 +1714,11 @@ · 25 unmodified lines
1824 "EventName": "PM_SHL_ST_DEP_CREATED",1714 "EventName": "PM_SHL_ST_DEP_CREATED",
1825 "BriefDescription": "Store-Hit-Load Table Read Hit with entry Enabled"1715 "BriefDescription": "Store-Hit-Load Table Read Hit with entry Enabled"
1826 },1716 },
1717 {,
1718 "EventCode": "0x46882",
1719 "EventName": "PM_L2_ST_HIT",
1720 "BriefDescription": "All successful D-side store dispatches for this thread that were L2 hits"
1721 },
1827 {,1722 {,
1828 "EventCode": "0x360AC",1723 "EventCode": "0x360AC",
1829 "EventName": "PM_L3_SN0_BUSY",1724 "EventName": "PM_L3_SN0_BUSY",
@@ -1844,11 +1739,6 @@ · 14 unmodified lines
1844 "EventName": "PM_L2_ST_MISS",1739 "EventName": "PM_L2_ST_MISS",
1845 "BriefDescription": "All successful D-Side Store dispatches that were an L2 miss for this thread"1740 "BriefDescription": "All successful D-Side Store dispatches that were an L2 miss for this thread"
1846 },1741 },
1847 {,
1848 "EventCode": "0xF8B4",
1849 "EventName": "PM_DC_PREF_XCONS_ALLOC",
1850 "BriefDescription": "Prefetch stream allocated in the Ultra conservative phase by either the hardware prefetch mechanism or software prefetch"
1851 },
1852 {,1742 {,
1853 "EventCode": "0x35048",1743 "EventCode": "0x35048",
1854 "EventName": "PM_IPTEG_FROM_DL2L3_SHR",1744 "EventName": "PM_IPTEG_FROM_DL2L3_SHR",
@@ -1969,11 +1859,6 @@ · 114 unmodified lines
1969 "EventName": "PM_THRD_PRIO_2_3_CYC",1859 "EventName": "PM_THRD_PRIO_2_3_CYC",
1970 "BriefDescription": "Cycles thread running at priority level 2 or 3"1860 "BriefDescription": "Cycles thread running at priority level 2 or 3"
1971 },1861 },
1972 {,
1973 "EventCode": "0x10134",
1974 "EventName": "PM_MRK_ST_DONE_L2",
1975 "BriefDescription": "marked store completed in L2 ( RC machine done)"
1976 },
1977 {,1862 {,
1978 "EventCode": "0x368B2",1863 "EventCode": "0x368B2",
1979 "EventName": "PM_L3_GRP_GUESS_WRONG_HIGH",1864 "EventName": "PM_L3_GRP_GUESS_WRONG_HIGH",
@@ -2004,11 +1889,6 @@ · 24 unmodified lines
2004 "EventName": "PM_L2_GRP_GUESS_WRONG",1889 "EventName": "PM_L2_GRP_GUESS_WRONG",
2005 "BriefDescription": "L2 guess grp (GS or NNS) and guess was not correct (ie data on-chip OR beyond-group)"1890 "BriefDescription": "L2 guess grp (GS or NNS) and guess was not correct (ie data on-chip OR beyond-group)"
2006 },1891 },
2007 {,
2008 "EventCode": "0x368AE",
2009 "EventName": "PM_L3_P1_CO_RTY",
2010 "BriefDescription": "L3 CO received retry port 1 (memory only), every retry counted"
2011 },
2012 {,1892 {,
2013 "EventCode": "0xC0AC",1893 "EventCode": "0xC0AC",
2014 "EventName": "PM_LSU_FLUSH_EMSH",1894 "EventName": "PM_LSU_FLUSH_EMSH",
@@ -2034,11 +1914,6 @@ · 19 unmodified lines
2034 "EventName": "PM_L2_GROUP_PUMP",1914 "EventName": "PM_L2_GROUP_PUMP",
2035 "BriefDescription": "RC requests that were on group (aka nodel) pump attempts"1915 "BriefDescription": "RC requests that were on group (aka nodel) pump attempts"
2036 },1916 },
2037 {,
2038 "EventCode": "0xF0B0",
2039 "EventName": "PM_L3_LD_PREF",
2040 "BriefDescription": "L3 load prefetch, sourced from a hardware or software stream, was sent to the nest"
2041 },
2042 {,1917 {,
2043 "EventCode": "0x16080",1918 "EventCode": "0x16080",
2044 "EventName": "PM_L2_LD",1919 "EventName": "PM_L2_LD",
@@ -2049,6 +1924,11 @@ · 4 unmodified lines
2049 "EventName": "PM_MATH_FLOP_CMPL",1924 "EventName": "PM_MATH_FLOP_CMPL",
2050 "BriefDescription": "Math flop instruction completed"1925 "BriefDescription": "Math flop instruction completed"
2051 },1926 },
1927 {,
1928 "EventCode": "0xC080",
1929 "EventName": "PM_LS0_LD_VECTOR_FIN",
1930 "BriefDescription": ""
1931 },
2052 {,1932 {,
2053 "EventCode": "0x368B0",1933 "EventCode": "0x368B0",
2054 "EventName": "PM_L3_P1_SYS_PUMP",1934 "EventName": "PM_L3_P1_SYS_PUMP",
@@ -2119,11 +1999,6 @@ · 64 unmodified lines
2119 "EventName": "PM_BR_CORECT_PRED_TAKEN_CMPL",1999 "EventName": "PM_BR_CORECT_PRED_TAKEN_CMPL",
2120 "BriefDescription": "Conditional Branch Completed in which the HW correctly predicted the direction as taken. Counted at completion time"2000 "BriefDescription": "Conditional Branch Completed in which the HW correctly predicted the direction as taken. Counted at completion time"
2121 },2001 },
2122 {,
2123 "EventCode": "0xF0B8",
2124 "EventName": "PM_LS0_UNALIGNED_ST",
2125 "BriefDescription": "Store instructions whose data crosses a double-word boundary, which causes it to require an additional slice than than what normally would be required of the Store of that size. If the Store wraps from slice 3 to slice 0, thee is an additional 3-cycle penalty"
2126 },
2127 {,2002 {,
2128 "EventCode": "0x20132",2003 "EventCode": "0x20132",
2129 "EventName": "PM_MRK_DFU_FIN",2004 "EventName": "PM_MRK_DFU_FIN",
@@ -2139,6 +2014,11 @@ · 9 unmodified lines
2139 "EventName": "PM_LSU_FLUSH_LHS",2014 "EventName": "PM_LSU_FLUSH_LHS",
2140 "BriefDescription": "Effective Address alias flush : no EA match but Real Address match. If the data has not yet been returned for this load, the instruction will just be rejected, but if it has returned data, it will be flushed"2015 "BriefDescription": "Effective Address alias flush : no EA match but Real Address match. If the data has not yet been returned for this load, the instruction will just be rejected, but if it has returned data, it will be flushed"
2141 },2016 },
2017 {,
2018 "EventCode": "0x16084",
2019 "EventName": "PM_L2_RCLD_DISP",
2020 "BriefDescription": "All I-or-D side load dispatch attempts for this thread (excludes i_l2mru_tch_reqs)"
2021 },
2142 {,2022 {,
2143 "EventCode": "0x3F150",2023 "EventCode": "0x3F150",
2144 "EventName": "PM_MRK_ST_DRAIN_TO_L2DISP_CYC",2024 "EventName": "PM_MRK_ST_DRAIN_TO_L2DISP_CYC",
@@ -2224,11 +2104,6 @@ · 79 unmodified lines
2224 "EventName": "PM_IC_PREF_CANCEL_PAGE",2104 "EventName": "PM_IC_PREF_CANCEL_PAGE",
2225 "BriefDescription": "Prefetch Canceled due to page boundary"2105 "BriefDescription": "Prefetch Canceled due to page boundary"
2226 },2106 },
2227 {,
2228 "EventCode": "0xF09C",
2229 "EventName": "PM_SLB_TABLEWALK_CYC",
2230 "BriefDescription": "Cycles when a tablewalk is pending on this thread on the SLB table"
2231 },
2232 {,2107 {,
2233 "EventCode": "0x460AA",2108 "EventCode": "0x460AA",
2234 "EventName": "PM_L3_P0_CO_L31",2109 "EventName": "PM_L3_P0_CO_L31",
@@ -2247,10 +2122,10 @@ · 12 unmodified lines
2247 {,2122 {,
2248 "EventCode": "0x46082",2123 "EventCode": "0x46082",
2249 "EventName": "PM_L2_ST_DISP",2124 "EventName": "PM_L2_ST_DISP",
2250 "BriefDescription": "All successful D-side store dispatches for this thread "2125 "BriefDescription": "All successful D-side store dispatches for this thread (L2 miss + L2 hits)"
2251 },2126 },
2252 {,2127 {,
2253 "EventCode": "0x4609E",2128 "EventCode": "0x36880",
2254 "EventName": "PM_L2_INST_MISS",2129 "EventName": "PM_L2_INST_MISS",
2255 "BriefDescription": "All successful I-side dispatches that were an L2 miss for this thread (excludes i_l2mru_tch reqs)"2130 "BriefDescription": "All successful I-side dispatches that were an L2 miss for this thread (excludes i_l2mru_tch reqs)"
2256 },2131 },
@@ -2340,9 +2215,9 @@ · 83 unmodified lines
2340 "BriefDescription": "All ISU rejects"2215 "BriefDescription": "All ISU rejects"
2341 },2216 },
2342 {,2217 {,
2343 "EventCode": "0x46882",2218 "EventCode": "0xC884",
2344 "EventName": "PM_L2_ST_HIT",2219 "EventName": "PM_LS3_LD_VECTOR_FIN",
2345 "BriefDescription": "All successful D-side store dispatches for this thread that were L2 hits"2220 "BriefDescription": ""
2346 },2221 },
2347 {,2222 {,
2348 "EventCode": "0x360A8",2223 "EventCode": "0x360A8",
@@ -2359,11 +2234,6 @@ · 10 unmodified lines
2359 "EventName": "PM_LSU_NCST",2234 "EventName": "PM_LSU_NCST",
2360 "BriefDescription": "Asserts when a i=1 store op is sent to the nest. No record of issue pipe (LS0/LS1) is maintained so this is for both pipes. Probably don't need separate LS0 and LS1"2235 "BriefDescription": "Asserts when a i=1 store op is sent to the nest. No record of issue pipe (LS0/LS1) is maintained so this is for both pipes. Probably don't need separate LS0 and LS1"
2361 },2236 },
2362 {,
2363 "EventCode": "0xD880",
2364 "EventName": "PM_LSU1_SET_MPRED",
2365 "BriefDescription": "Set prediction(set-p) miss. The entry was not found in the Set prediction table"
2366 },
2367 {,2237 {,
2368 "EventCode": "0xD0B8",2238 "EventCode": "0xD0B8",
2369 "EventName": "PM_LSU_LMQ_FULL_CYC",2239 "EventName": "PM_LSU_LMQ_FULL_CYC",
@@ -2389,4 +2259,4 @@ · 19 unmodified lines
2389 "EventName": "PM_L3_PF_USAGE",2259 "EventName": "PM_L3_PF_USAGE",
2390 "BriefDescription": "Rotating sample of 32 PF actives"2260 "BriefDescription": "Rotating sample of 32 PF actives"
2391 }2261 }
2392]2262]
tools/perf/pmu-events/arch/powerpc/power9/pipeline.json+7−7
@@ -124,6 +124,11 @@ · 123 unmodified lines
124 "EventName": "PM_PMC5_OVERFLOW",124 "EventName": "PM_PMC5_OVERFLOW",
125 "BriefDescription": "Overflow from counter 5"125 "BriefDescription": "Overflow from counter 5"
126 },126 },
127 {,
128 "EventCode": "0x4505E",
129 "EventName": "PM_FLOP_CMPL",
130 "BriefDescription": "Floating Point Operation Finished"
131 },
127 {,132 {,
128 "EventCode": "0x2C018",133 "EventCode": "0x2C018",
129 "EventName": "PM_CMPLU_STALL_DMISS_L21_L31",134 "EventName": "PM_CMPLU_STALL_DMISS_L21_L31",
@@ -389,11 +394,6 @@ · 259 unmodified lines
389 "EventName": "PM_ICT_NOSLOT_BR_MPRED",394 "EventName": "PM_ICT_NOSLOT_BR_MPRED",
390 "BriefDescription": "Ict empty for this thread due to branch mispred"395 "BriefDescription": "Ict empty for this thread due to branch mispred"
391 },396 },
392 {,
393 "EventCode": "0x3405E",
394 "EventName": "PM_IFETCH_THROTTLE",
395 "BriefDescription": "Cycles in which Instruction fetch throttle was active."
396 },
397 {,397 {,
398 "EventCode": "0x1F148",398 "EventCode": "0x1F148",
399 "EventName": "PM_MRK_DPTEG_FROM_ON_CHIP_CACHE",399 "EventName": "PM_MRK_DPTEG_FROM_ON_CHIP_CACHE",
@@ -422,7 +422,7 @@ · 22 unmodified lines
422 {,422 {,
423 "EventCode": "0xD0A8",423 "EventCode": "0xD0A8",
424 "EventName": "PM_DSLB_MISS",424 "EventName": "PM_DSLB_MISS",
425 "BriefDescription": "Data SLB Miss - Total of all segment sizes"425 "BriefDescription": "gate_and(sd_pc_c0_comp_valid AND sd_pc_c0_comp_thread(0:1)=tid,sd_pc_c0_comp_ppc_count(0:3)) + gate_and(sd_pc_c1_comp_valid AND sd_pc_c1_comp_thread(0:1)=tid,sd_pc_c1_comp_ppc_count(0:3))"
426 },426 },
427 {,427 {,
428 "EventCode": "0x4C058",428 "EventCode": "0x4C058",
@@ -549,4 +549,4 @@ · 120 unmodified lines
549 "EventName": "PM_MRK_DATA_FROM_L21_SHR_CYC",549 "EventName": "PM_MRK_DATA_FROM_L21_SHR_CYC",
550 "BriefDescription": "Duration in cycles to reload with Shared (S) data from another core's L2 on the same chip due to a marked load"550 "BriefDescription": "Duration in cycles to reload with Shared (S) data from another core's L2 on the same chip due to a marked load"
551 }551 }
552]552]
tools/perf/pmu-events/arch/powerpc/power9/pmc.json+1−1
@@ -119,4 +119,4 @@ · 118 unmodified lines
119 "EventName": "PM_1FLOP_CMPL",119 "EventName": "PM_1FLOP_CMPL",
120 "BriefDescription": "one flop (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg) operation completed"120 "BriefDescription": "one flop (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg) operation completed"
121 }121 }
122]122]
tools/perf/pmu-events/arch/powerpc/power9/translation.json+0−5
@@ -89,11 +89,6 @@ · 88 unmodified lines
89 "EventName": "PM_STCX_FAIL",89 "EventName": "PM_STCX_FAIL",
90 "BriefDescription": "stcx failed"90 "BriefDescription": "stcx failed"
91 },91 },
92 {,
93 "EventCode": "0x20112",
94 "EventName": "PM_MRK_NTF_FIN",
95 "BriefDescription": "Marked next to finish instruction finished"
96 },
97 {,92 {,
98 "EventCode": "0x300F0",93 "EventCode": "0x300F0",
99 "EventName": "PM_ST_MISS_L1",94 "EventName": "PM_ST_MISS_L1",
tools/perf/pmu-events/arch/x86/broadwell/cache.json+378−177
@@ -10,13 +10,30 @@ · 9 unmodified lines
10 "CounterHTOff": "0,1,2,3,4,5,6,7"10 "CounterHTOff": "0,1,2,3,4,5,6,7"
11 },11 },
12 {12 {
13 "PublicDescription": "This event counts the number of demand Data Read requests that hit L2 cache. Only not rejected loads are counted.",
14 "EventCode": "0x24",13 "EventCode": "0x24",
15 "Counter": "0,1,2,3",14 "Counter": "0,1,2,3",
16 "UMask": "0x41",15 "UMask": "0x22",
17 "EventName": "L2_RQSTS.DEMAND_DATA_RD_HIT",16 "EventName": "L2_RQSTS.RFO_MISS",
18 "SampleAfterValue": "200003",17 "SampleAfterValue": "200003",
19 "BriefDescription": "Demand Data Read requests that hit L2 cache",18 "BriefDescription": "RFO requests that miss L2 cache.",
19 "CounterHTOff": "0,1,2,3,4,5,6,7"
20 },
21 {
22 "EventCode": "0x24",
23 "Counter": "0,1,2,3",
24 "UMask": "0x24",
25 "EventName": "L2_RQSTS.CODE_RD_MISS",
26 "SampleAfterValue": "200003",
27 "BriefDescription": "L2 cache misses when fetching instructions.",
28 "CounterHTOff": "0,1,2,3,4,5,6,7"
29 },
30 {
31 "EventCode": "0x24",
32 "Counter": "0,1,2,3",
33 "UMask": "0x27",
34 "EventName": "L2_RQSTS.ALL_DEMAND_MISS",
35 "SampleAfterValue": "200003",
36 "BriefDescription": "Demand requests that miss L2 cache.",
20 "CounterHTOff": "0,1,2,3,4,5,6,7"37 "CounterHTOff": "0,1,2,3,4,5,6,7"
21 },38 },
22 {39 {
@@ -29,6 +46,43 @@ · 6 unmodified lines
29 "BriefDescription": "L2 prefetch requests that miss L2 cache",46 "BriefDescription": "L2 prefetch requests that miss L2 cache",
30 "CounterHTOff": "0,1,2,3,4,5,6,7"47 "CounterHTOff": "0,1,2,3,4,5,6,7"
31 },48 },
49 {
50 "EventCode": "0x24",
51 "Counter": "0,1,2,3",
52 "UMask": "0x3f",
53 "EventName": "L2_RQSTS.MISS",
54 "SampleAfterValue": "200003",
55 "BriefDescription": "All requests that miss L2 cache.",
56 "CounterHTOff": "0,1,2,3,4,5,6,7"
57 },
58 {
59 "PublicDescription": "This event counts the number of demand Data Read requests that hit L2 cache. Only not rejected loads are counted.",
60 "EventCode": "0x24",
61 "Counter": "0,1,2,3",
62 "UMask": "0x41",
63 "EventName": "L2_RQSTS.DEMAND_DATA_RD_HIT",
64 "SampleAfterValue": "200003",
65 "BriefDescription": "Demand Data Read requests that hit L2 cache",
66 "CounterHTOff": "0,1,2,3,4,5,6,7"
67 },
68 {
69 "EventCode": "0x24",
70 "Counter": "0,1,2,3",
71 "UMask": "0x42",
72 "EventName": "L2_RQSTS.RFO_HIT",
73 "SampleAfterValue": "200003",
74 "BriefDescription": "RFO requests that hit L2 cache.",
75 "CounterHTOff": "0,1,2,3,4,5,6,7"
76 },
77 {
78 "EventCode": "0x24",
79 "Counter": "0,1,2,3",
80 "UMask": "0x44",
81 "EventName": "L2_RQSTS.CODE_RD_HIT",
82 "SampleAfterValue": "200003",
83 "BriefDescription": "L2 cache hits when fetching instructions, code reads.",
84 "CounterHTOff": "0,1,2,3,4,5,6,7"
85 },
32 {86 {
33 "PublicDescription": "This event counts the number of requests from the L2 hardware prefetchers that hit L2 cache. L3 prefetch new types.",87 "PublicDescription": "This event counts the number of requests from the L2 hardware prefetchers that hit L2 cache. L3 prefetch new types.",
34 "EventCode": "0x24",88 "EventCode": "0x24",
@@ -69,6 +123,15 @@ · 34 unmodified lines
69 "BriefDescription": "L2 code requests",123 "BriefDescription": "L2 code requests",
70 "CounterHTOff": "0,1,2,3,4,5,6,7"124 "CounterHTOff": "0,1,2,3,4,5,6,7"
71 },125 },
126 {
127 "EventCode": "0x24",
128 "Counter": "0,1,2,3",
129 "UMask": "0xe7",
130 "EventName": "L2_RQSTS.ALL_DEMAND_REFERENCES",
131 "SampleAfterValue": "200003",
132 "BriefDescription": "Demand requests to L2 cache.",
133 "CounterHTOff": "0,1,2,3,4,5,6,7"
134 },
72 {135 {
73 "PublicDescription": "This event counts the total number of requests from the L2 hardware prefetchers.",136 "PublicDescription": "This event counts the total number of requests from the L2 hardware prefetchers.",
74 "EventCode": "0x24",137 "EventCode": "0x24",
@@ -79,6 +142,15 @@ · 4 unmodified lines
79 "BriefDescription": "Requests from L2 hardware prefetchers",142 "BriefDescription": "Requests from L2 hardware prefetchers",
80 "CounterHTOff": "0,1,2,3,4,5,6,7"143 "CounterHTOff": "0,1,2,3,4,5,6,7"
81 },144 },
145 {
146 "EventCode": "0x24",
147 "Counter": "0,1,2,3",
148 "UMask": "0xff",
149 "EventName": "L2_RQSTS.REFERENCES",
150 "SampleAfterValue": "200003",
151 "BriefDescription": "All L2 requests.",
152 "CounterHTOff": "0,1,2,3,4,5,6,7"
153 },
82 {154 {
83 "PublicDescription": "This event counts the number of WB requests that hit L2 cache.",155 "PublicDescription": "This event counts the number of WB requests that hit L2 cache.",
84 "EventCode": "0x27",156 "EventCode": "0x27",
@@ -130,6 +202,27 @@ · 45 unmodified lines
130 "CounterMask": "1",202 "CounterMask": "1",
131 "CounterHTOff": "2"203 "CounterHTOff": "2"
132 },204 },
205 {
206 "EventCode": "0x48",
207 "Counter": "2",
208 "UMask": "0x1",
209 "AnyThread": "1",
210 "EventName": "L1D_PEND_MISS.PENDING_CYCLES_ANY",
211 "SampleAfterValue": "2000003",
212 "BriefDescription": "Cycles with L1D load Misses outstanding from any thread on physical core.",
213 "CounterMask": "1",
214 "CounterHTOff": "2"
215 },
216 {
217 "EventCode": "0x48",
218 "Counter": "0,1,2,3",
219 "UMask": "0x2",
220 "EventName": "L1D_PEND_MISS.FB_FULL",
221 "SampleAfterValue": "2000003",
222 "BriefDescription": "Cycles a demand request was blocked due to Fill Buffers inavailability.",
223 "CounterMask": "1",
224 "CounterHTOff": "0,1,2,3,4,5,6,7"
225 },
133 {226 {
134 "PublicDescription": "This event counts L1D data line replacements including opportunistic replacements, and replacements that require stall-for-replace or block-for-replace.",227 "PublicDescription": "This event counts L1D data line replacements including opportunistic replacements, and replacements that require stall-for-replace or block-for-replace.",
135 "EventCode": "0x51",228 "EventCode": "0x51",
@@ -152,7 +245,30 @@ · 16 unmodified lines
152 "CounterHTOff": "0,1,2,3,4,5,6,7"245 "CounterHTOff": "0,1,2,3,4,5,6,7"
153 },246 },
154 {247 {
155 "PublicDescription": "This event counts the number of offcore outstanding Code Reads transactions in the super queue every cycle. The \"Offcore outstanding\" state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",248 "PublicDescription": "This event counts cycles when offcore outstanding Demand Data Read transactions are present in the super queue (SQ). A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation).",
249 "EventCode": "0x60",
250 "Counter": "0,1,2,3",
251 "UMask": "0x1",
252 "Errata": "BDM76",
253 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
254 "SampleAfterValue": "2000003",
255 "BriefDescription": "Cycles when offcore outstanding Demand Data Read transactions are present in SuperQueue (SQ), queue to uncore",
256 "CounterMask": "1",
257 "CounterHTOff": "0,1,2,3,4,5,6,7"
258 },
259 {
260 "EventCode": "0x60",
261 "Counter": "0,1,2,3",
262 "UMask": "0x1",
263 "Errata": "BDM76",
264 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD_GE_6",
265 "SampleAfterValue": "2000003",
266 "BriefDescription": "Cycles with at least 6 offcore outstanding Demand Data Read transactions in uncore queue.",
267 "CounterMask": "6",
268 "CounterHTOff": "0,1,2,3,4,5,6,7"
269 },
270 {
271 "PublicDescription": "This event counts the number of offcore outstanding Code Reads transactions in the super queue every cycle. The Offcore outstanding state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",
156 "EventCode": "0x60",272 "EventCode": "0x60",
157 "Counter": "0,1,2,3",273 "Counter": "0,1,2,3",
158 "UMask": "0x2",274 "UMask": "0x2",
@@ -174,26 +290,26 @@ · 15 unmodified lines
174 "CounterHTOff": "0,1,2,3,4,5,6,7"290 "CounterHTOff": "0,1,2,3,4,5,6,7"
175 },291 },
176 {292 {
177 "PublicDescription": "This event counts the number of offcore outstanding cacheable Core Data Read transactions in the super queue every cycle. A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation). See corresponding Umask under OFFCORE_REQUESTS.",293 "PublicDescription": "This event counts the number of offcore outstanding demand rfo Reads transactions in the super queue every cycle. The Offcore outstanding state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",
178 "EventCode": "0x60",294 "EventCode": "0x60",
179 "Counter": "0,1,2,3",295 "Counter": "0,1,2,3",
180 "UMask": "0x8",296 "UMask": "0x4",
181 "Errata": "BDM76",297 "Errata": "BDM76",
182 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD",298 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO",
183 "SampleAfterValue": "2000003",299 "SampleAfterValue": "2000003",
184 "BriefDescription": "Offcore outstanding cacheable Core Data Read transactions in SuperQueue (SQ), queue to uncore",300 "BriefDescription": "Offcore outstanding demand rfo reads transactions in SuperQueue (SQ), queue to uncore, every cycle",
301 "CounterMask": "1",
185 "CounterHTOff": "0,1,2,3,4,5,6,7"302 "CounterHTOff": "0,1,2,3,4,5,6,7"
186 },303 },
187 {304 {
188 "PublicDescription": "This event counts cycles when offcore outstanding Demand Data Read transactions are present in the super queue (SQ). A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation).",305 "PublicDescription": "This event counts the number of offcore outstanding cacheable Core Data Read transactions in the super queue every cycle. A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation). See corresponding Umask under OFFCORE_REQUESTS.",
189 "EventCode": "0x60",306 "EventCode": "0x60",
190 "Counter": "0,1,2,3",307 "Counter": "0,1,2,3",
191 "UMask": "0x1",308 "UMask": "0x8",
192 "Errata": "BDM76",309 "Errata": "BDM76",
193 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",310 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD",
194 "SampleAfterValue": "2000003",311 "SampleAfterValue": "2000003",
195 "BriefDescription": "Cycles when offcore outstanding Demand Data Read transactions are present in SuperQueue (SQ), queue to uncore",312 "BriefDescription": "Offcore outstanding cacheable Core Data Read transactions in SuperQueue (SQ), queue to uncore",
196 "CounterMask": "1",
197 "CounterHTOff": "0,1,2,3,4,5,6,7"313 "CounterHTOff": "0,1,2,3,4,5,6,7"
198 },314 },
199 {315 {
@@ -208,18 +324,6 @@ · 8 unmodified lines
208 "CounterMask": "1",324 "CounterMask": "1",
209 "CounterHTOff": "0,1,2,3,4,5,6,7"325 "CounterHTOff": "0,1,2,3,4,5,6,7"
210 },326 },
211 {
212 "PublicDescription": "This event counts the number of offcore outstanding demand rfo Reads transactions in the super queue every cycle. The \"Offcore outstanding\" state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",
213 "EventCode": "0x60",
214 "Counter": "0,1,2,3",
215 "UMask": "0x4",
216 "Errata": "BDM76",
217 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO",
218 "SampleAfterValue": "2000003",
219 "BriefDescription": "Offcore outstanding demand rfo reads transactions in SuperQueue (SQ), queue to uncore, every cycle",
220 "CounterMask": "1",
221 "CounterHTOff": "0,1,2,3,4,5,6,7"
222 },
223 {327 {
224 "PublicDescription": "This event counts the number of cycles when the L1D is locked. It is a superset of the 0x1 mask (BUS_LOCK_CLOCKS.BUS_LOCK_DURATION).",328 "PublicDescription": "This event counts the number of cycles when the L1D is locked. It is a superset of the 0x1 mask (BUS_LOCK_CLOCKS.BUS_LOCK_DURATION).",
225 "EventCode": "0x63",329 "EventCode": "0x63",
@@ -261,7 +365,7 @@ · 35 unmodified lines
261 "CounterHTOff": "0,1,2,3,4,5,6,7"365 "CounterHTOff": "0,1,2,3,4,5,6,7"
262 },366 },
263 {367 {
264 "PublicDescription": "This event counts the demand and prefetch data reads. All Core Data Reads include cacheable \"Demands\" and L2 prefetchers (not L3 prefetchers). Counting also covers reads due to page walks resulted from any request type.",368 "PublicDescription": "This event counts the demand and prefetch data reads. All Core Data Reads include cacheable Demands and L2 prefetchers (not L3 prefetchers). Counting also covers reads due to page walks resulted from any request type.",
265 "EventCode": "0xB0",369 "EventCode": "0xB0",
266 "Counter": "0,1,2,3",370 "Counter": "0,1,2,3",
267 "UMask": "0x8",371 "UMask": "0x8",
@@ -280,153 +384,162 @@ · 12 unmodified lines
280 "BriefDescription": "Offcore requests buffer cannot take more entries for this thread core.",384 "BriefDescription": "Offcore requests buffer cannot take more entries for this thread core.",
281 "CounterHTOff": "0,1,2,3,4,5,6,7"385 "CounterHTOff": "0,1,2,3,4,5,6,7"
282 },386 },
387 {
388 "EventCode": "0xB7, 0xBB",
389 "Counter": "0,1,2,3",
390 "UMask": "0x1",
391 "EventName": "OFFCORE_RESPONSE",
392 "SampleAfterValue": "100003",
393 "BriefDescription": "Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
394 "CounterHTOff": "0,1,2,3"
395 },
283 {396 {
284 "PEBS": "1",397 "PEBS": "1",
285 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts load uops with true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",398 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts load uops with true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",
286 "EventCode": "0xD0",399 "EventCode": "0xD0",
287 "Counter": "0,1,2,3",400 "Counter": "0,1,2,3",
288 "UMask": "0x11",401 "UMask": "0x11",
289 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_LOADS",402 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_LOADS",
290 "SampleAfterValue": "100003",403 "SampleAfterValue": "100003",
291 "BriefDescription": "Retired load uops that miss the STLB.",404 "BriefDescription": "Retired load uops that miss the STLB. (Precise Event - PEBS)",
292 "CounterHTOff": "0,1,2,3",405 "CounterHTOff": "0,1,2,3",
293 "Data_LA": "1"406 "Data_LA": "1"
294 },407 },
295 {408 {
296 "PEBS": "1",409 "PEBS": "1",
297 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts store uops with true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",410 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts store uops true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",
298 "EventCode": "0xD0",411 "EventCode": "0xD0",
299 "Counter": "0,1,2,3",412 "Counter": "0,1,2,3",
300 "UMask": "0x12",413 "UMask": "0x12",
301 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_STORES",414 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_STORES",
302 "SampleAfterValue": "100003",415 "SampleAfterValue": "100003",
303 "BriefDescription": "Retired store uops that miss the STLB.",416 "BriefDescription": "Retired store uops that miss the STLB. (Precise Event - PEBS)",
304 "CounterHTOff": "0,1,2,3",417 "CounterHTOff": "0,1,2,3",
305 "Data_LA": "1",418 "Data_LA": "1",
306 "L1_Hit_Indication": "1"419 "L1_Hit_Indication": "1"
307 },420 },
308 {421 {
309 "PEBS": "1",422 "PEBS": "1",
310 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts load uops with locked access retired to the architected path.",423 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts load uops with locked access retired to the architected path.",
311 "EventCode": "0xD0",424 "EventCode": "0xD0",
312 "Counter": "0,1,2,3",425 "Counter": "0,1,2,3",
313 "UMask": "0x21",426 "UMask": "0x21",
314 "Errata": "BDM35",427 "Errata": "BDM35",
315 "EventName": "MEM_UOPS_RETIRED.LOCK_LOADS",428 "EventName": "MEM_UOPS_RETIRED.LOCK_LOADS",
316 "SampleAfterValue": "100007",429 "SampleAfterValue": "100007",
317 "BriefDescription": "Retired load uops with locked access.",430 "BriefDescription": "Retired load uops with locked access. (Precise Event - PEBS)",
318 "CounterHTOff": "0,1,2,3",431 "CounterHTOff": "0,1,2,3",
319 "Data_LA": "1"432 "Data_LA": "1"
320 },433 },
321 {434 {
322 "PEBS": "1",435 "PEBS": "1",
323 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts line-splitted load uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",436 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts line-splitted load uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",
324 "EventCode": "0xD0",437 "EventCode": "0xD0",
325 "Counter": "0,1,2,3",438 "Counter": "0,1,2,3",
326 "UMask": "0x41",439 "UMask": "0x41",
327 "EventName": "MEM_UOPS_RETIRED.SPLIT_LOADS",440 "EventName": "MEM_UOPS_RETIRED.SPLIT_LOADS",
328 "SampleAfterValue": "100003",441 "SampleAfterValue": "100003",
329 "BriefDescription": "Retired load uops that split across a cacheline boundary.",442 "BriefDescription": "Retired load uops that split across a cacheline boundary.(Precise Event - PEBS)",
330 "CounterHTOff": "0,1,2,3",443 "CounterHTOff": "0,1,2,3",
331 "Data_LA": "1"444 "Data_LA": "1"
332 },445 },
333 {446 {
334 "PEBS": "1",447 "PEBS": "1",
335 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts line-splitted store uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",448 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts line-splitted store uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",
336 "EventCode": "0xD0",449 "EventCode": "0xD0",
337 "Counter": "0,1,2,3",450 "Counter": "0,1,2,3",
338 "UMask": "0x42",451 "UMask": "0x42",
339 "EventName": "MEM_UOPS_RETIRED.SPLIT_STORES",452 "EventName": "MEM_UOPS_RETIRED.SPLIT_STORES",
340 "SampleAfterValue": "100003",453 "SampleAfterValue": "100003",
341 "BriefDescription": "Retired store uops that split across a cacheline boundary.",454 "BriefDescription": "Retired store uops that split across a cacheline boundary. (Precise Event - PEBS)",
342 "CounterHTOff": "0,1,2,3",455 "CounterHTOff": "0,1,2,3",
343 "Data_LA": "1",456 "Data_LA": "1",
344 "L1_Hit_Indication": "1"457 "L1_Hit_Indication": "1"
345 },458 },
346 {459 {
347 "PEBS": "1",460 "PEBS": "1",
348 "PublicDescription": "This event counts load uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event counts AVX-256bit load/store double-pump memory uops as a single uop at retirement. This event also counts SW prefetches.",461 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts load uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event ?ounts AVX-256bit load/store double-pump memory uops as a single uop at retirement. This event also counts SW prefetches.",
349 "EventCode": "0xD0",462 "EventCode": "0xD0",
350 "Counter": "0,1,2,3",463 "Counter": "0,1,2,3",
351 "UMask": "0x81",464 "UMask": "0x81",
352 "EventName": "MEM_UOPS_RETIRED.ALL_LOADS",465 "EventName": "MEM_UOPS_RETIRED.ALL_LOADS",
353 "SampleAfterValue": "2000003",466 "SampleAfterValue": "2000003",
354 "BriefDescription": "All retired load uops.",467 "BriefDescription": "All retired load uops. (Precise Event - PEBS)",
355 "CounterHTOff": "0,1,2,3",468 "CounterHTOff": "0,1,2,3",
356 "Data_LA": "1"469 "Data_LA": "1"
357 },470 },
358 {471 {
359 "PEBS": "1",472 "PEBS": "1",
360 "PublicDescription": "This event counts store uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event counts AVX-256bit load/store double-pump memory uops as a single uop at retirement.",473 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts store uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event ?ounts AVX-256bit load/store double-pump memory uops as a single uop at retirement.",
361 "EventCode": "0xD0",474 "EventCode": "0xD0",
362 "Counter": "0,1,2,3",475 "Counter": "0,1,2,3",
363 "UMask": "0x82",476 "UMask": "0x82",
364 "EventName": "MEM_UOPS_RETIRED.ALL_STORES",477 "EventName": "MEM_UOPS_RETIRED.ALL_STORES",
365 "SampleAfterValue": "2000003",478 "SampleAfterValue": "2000003",
366 "BriefDescription": "All retired store uops.",479 "BriefDescription": "Retired store uops that split across a cacheline boundary. (Precise Event - PEBS)",
367 "CounterHTOff": "0,1,2,3",480 "CounterHTOff": "0,1,2,3",
368 "Data_LA": "1",481 "Data_LA": "1",
369 "L1_Hit_Indication": "1"482 "L1_Hit_Indication": "1"
370 },483 },
371 {484 {
372 "PEBS": "1",485 "PEBS": "1",
373 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were hits in the nearest-level (L1) cache.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load. This event also counts SW prefetches independent of the actual data source.",486 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data source were hits in the nearest-level (L1) cache.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load. This event also counts SW prefetches independent of the actual data source.",
374 "EventCode": "0xD1",487 "EventCode": "0xD1",
375 "Counter": "0,1,2,3",488 "Counter": "0,1,2,3",
376 "UMask": "0x1",489 "UMask": "0x1",
377 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_HIT",490 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_HIT",
378 "SampleAfterValue": "2000003",491 "SampleAfterValue": "2000003",
379 "BriefDescription": "Retired load uops with L1 cache hits as data sources.",492 "BriefDescription": "Retired load uops with L1 cache hits as data sources. (Precise Event - PEBS)",
380 "CounterHTOff": "0,1,2,3",493 "CounterHTOff": "0,1,2,3",
381 "Data_LA": "1"494 "Data_LA": "1"
382 },495 },
383 {496 {
384 "PEBS": "1",497 "PEBS": "1",
385 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were hits in the mid-level (L2) cache.",498 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were hits in the mid-level (L2) cache.",
386 "EventCode": "0xD1",499 "EventCode": "0xD1",
387 "Counter": "0,1,2,3",500 "Counter": "0,1,2,3",
388 "UMask": "0x2",501 "UMask": "0x2",
389 "Errata": "BDM35",502 "Errata": "BDM35",
390 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT",503 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT",
391 "SampleAfterValue": "100003",504 "SampleAfterValue": "100003",
392 "BriefDescription": "Retired load uops with L2 cache hits as data sources.",505 "BriefDescription": "Retired load uops with L2 cache hits as data sources. (Precise Event - PEBS)",
393 "CounterHTOff": "0,1,2,3",506 "CounterHTOff": "0,1,2,3",
394 "Data_LA": "1"507 "Data_LA": "1"
395 },508 },
396 {509 {
397 "PEBS": "1",510 "PEBS": "1",
398 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were data hits in the last-level (L3) cache without snoops required.",511 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were data hits in the last-level (L3) cache without snoops required.",
399 "EventCode": "0xD1",512 "EventCode": "0xD1",
400 "Counter": "0,1,2,3",513 "Counter": "0,1,2,3",
401 "UMask": "0x4",514 "UMask": "0x4",
402 "Errata": "BDM100",515 "Errata": "BDM100",
403 "EventName": "MEM_LOAD_UOPS_RETIRED.L3_HIT",516 "EventName": "MEM_LOAD_UOPS_RETIRED.L3_HIT",
404 "SampleAfterValue": "50021",517 "SampleAfterValue": "50021",
405 "BriefDescription": "Retired load uops which data sources were data hits in L3 without snoops required.",518 "BriefDescription": "Hit in last-level (L3) cache. Excludes Unknown data-source. (Precise Event - PEBS)",
406 "CounterHTOff": "0,1,2,3",519 "CounterHTOff": "0,1,2,3",
407 "Data_LA": "1"520 "Data_LA": "1"
408 },521 },
409 {522 {
410 "PEBS": "1",523 "PEBS": "1",
411 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were misses in the nearest-level (L1) cache. Counting excludes unknown and UC data source.",524 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were misses in the nearest-level (L1) cache. Counting excludes unknown and UC data source.",
412 "EventCode": "0xD1",525 "EventCode": "0xD1",
413 "Counter": "0,1,2,3",526 "Counter": "0,1,2,3",
414 "UMask": "0x8",527 "UMask": "0x8",
415 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS",528 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS",
416 "SampleAfterValue": "100003",529 "SampleAfterValue": "100003",
417 "BriefDescription": "Retired load uops misses in L1 cache as data sources.",530 "BriefDescription": "Retired load uops misses in L1 cache as data sources. Uses PEBS.",
418 "CounterHTOff": "0,1,2,3",531 "CounterHTOff": "0,1,2,3",
419 "Data_LA": "1"532 "Data_LA": "1"
420 },533 },
421 {534 {
422 "PEBS": "1",535 "PEBS": "1",
423 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were misses in the mid-level (L2) cache. Counting excludes unknown and UC data source.",536 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were misses in the mid-level (L2) cache. Counting excludes unknown and UC data source.",
424 "EventCode": "0xD1",537 "EventCode": "0xD1",
425 "Counter": "0,1,2,3",538 "Counter": "0,1,2,3",
426 "UMask": "0x10",539 "UMask": "0x10",
427 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_MISS",540 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_MISS",
428 "SampleAfterValue": "50021",541 "SampleAfterValue": "50021",
429 "BriefDescription": "Miss in mid-level (L2) cache. Excludes Unknown data-source.",542 "BriefDescription": "Retired load uops with L2 cache misses as data sources. Uses PEBS.",
430 "CounterHTOff": "0,1,2,3",543 "CounterHTOff": "0,1,2,3",
431 "Data_LA": "1"544 "Data_LA": "1"
432 },545 },
@@ -438,84 +551,83 @@ · 5 unmodified lines
438 "Errata": "BDM100, BDE70",551 "Errata": "BDM100, BDE70",
439 "EventName": "MEM_LOAD_UOPS_RETIRED.L3_MISS",552 "EventName": "MEM_LOAD_UOPS_RETIRED.L3_MISS",
440 "SampleAfterValue": "100007",553 "SampleAfterValue": "100007",
441 "BriefDescription": "Miss in last-level (L3) cache. Excludes Unknown data-source.",554 "BriefDescription": "Miss in last-level (L3) cache. Excludes Unknown data-source. (Precise Event - PEBS).",
442 "CounterHTOff": "0,1,2,3",555 "CounterHTOff": "0,1,2,3",
443 "Data_LA": "1"556 "Data_LA": "1"
444 },557 },
445 {558 {
446 "PEBS": "1",559 "PEBS": "1",
447 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were load uops missed L1 but hit a fill buffer due to a preceding miss to the same cache line with the data not ready.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load.",560 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were load uops missed L1 but hit a fill buffer due to a preceding miss to the same cache line with the data not ready.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load.",
448 "EventCode": "0xD1",561 "EventCode": "0xD1",
449 "Counter": "0,1,2,3",562 "Counter": "0,1,2,3",
450 "UMask": "0x40",563 "UMask": "0x40",
451 "EventName": "MEM_LOAD_UOPS_RETIRED.HIT_LFB",564 "EventName": "MEM_LOAD_UOPS_RETIRED.HIT_LFB",
452 "SampleAfterValue": "100003",565 "SampleAfterValue": "100003",
453 "BriefDescription": "Retired load uops which data sources were load uops missed L1 but hit FB due to preceding miss to the same cache line with data not ready.",566 "BriefDescription": "Retired load uops which data sources were load uops missed L1 but hit FB due to preceding miss to the same cache line with data not ready. (Precise Event - PEBS)",
454 "CounterHTOff": "0,1,2,3",567 "CounterHTOff": "0,1,2,3",
455 "Data_LA": "1"568 "Data_LA": "1"
456 },569 },
457 {570 {
458 "PEBS": "1",571 "PEBS": "1",
459 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were L3 Hit and a cross-core snoop missed in the on-pkg core cache.",572 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were L3 Hit and a cross-core snoop missed in the on-pkg core cache.",
460 "EventCode": "0xD2",573 "EventCode": "0xD2",
461 "Counter": "0,1,2,3",574 "Counter": "0,1,2,3",
462 "UMask": "0x1",575 "UMask": "0x1",
463 "Errata": "BDM100",576 "Errata": "BDM100",
464 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS",577 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS",
465 "SampleAfterValue": "20011",578 "SampleAfterValue": "20011",
466 "BriefDescription": "Retired load uops which data sources were L3 hit and cross-core snoop missed in on-pkg core cache.",579 "BriefDescription": "Retired load uops which data sources were L3 hit and cross-core snoop missed in on-pkg core cache. (Precise Event - PEBS)",
467 "CounterHTOff": "0,1,2,3",580 "CounterHTOff": "0,1,2,3",
468 "Data_LA": "1"581 "Data_LA": "1"
469 },582 },
470 {583 {
471 "PEBS": "1",584 "PEBS": "1",
472 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were L3 hit and a cross-core snoop hit in the on-pkg core cache.",585 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were L3 hit and a cross-core snoop hit in the on-pkg core cache.",
473 "EventCode": "0xD2",586 "EventCode": "0xD2",
474 "Counter": "0,1,2,3",587 "Counter": "0,1,2,3",
475 "UMask": "0x2",588 "UMask": "0x2",
476 "Errata": "BDM100",589 "Errata": "BDM100",
477 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT",590 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT",
478 "SampleAfterValue": "20011",591 "SampleAfterValue": "20011",
479 "BriefDescription": "Retired load uops which data sources were L3 and cross-core snoop hits in on-pkg core cache.",592 "BriefDescription": "Retired load uops which data sources were L3 and cross-core snoop hits in on-pkg core cache. (Precise Event - PEBS)",
480 "CounterHTOff": "0,1,2,3",593 "CounterHTOff": "0,1,2,3",
481 "Data_LA": "1"594 "Data_LA": "1"
482 },595 },
483 {596 {
484 "PEBS": "1",597 "PEBS": "1",
485 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were HitM responses from a core on same socket (shared L3).",598 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were HitM responses from a core on same socket (shared L3).",
486 "EventCode": "0xD2",599 "EventCode": "0xD2",
487 "Counter": "0,1,2,3",600 "Counter": "0,1,2,3",
488 "UMask": "0x4",601 "UMask": "0x4",
489 "Errata": "BDM100",602 "Errata": "BDM100",
490 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM",603 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM",
491 "SampleAfterValue": "20011",604 "SampleAfterValue": "20011",
492 "BriefDescription": "Retired load uops which data sources were HitM responses from shared L3.",605 "BriefDescription": "Retired load uops which data sources were HitM responses from shared L3. (Precise Event - PEBS)",
493 "CounterHTOff": "0,1,2,3",606 "CounterHTOff": "0,1,2,3",
494 "Data_LA": "1"607 "Data_LA": "1"
495 },608 },
496 {609 {
497 "PEBS": "1",610 "PEBS": "1",
498 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were hits in the last-level (L3) cache without snoops required.",611 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were hits in the last-level (L3) cache without snoops required.",
499 "EventCode": "0xD2",612 "EventCode": "0xD2",
500 "Counter": "0,1,2,3",613 "Counter": "0,1,2,3",
501 "UMask": "0x8",614 "UMask": "0x8",
502 "Errata": "BDM100",615 "Errata": "BDM100",
503 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_NONE",616 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_NONE",
504 "SampleAfterValue": "100003",617 "SampleAfterValue": "100003",
505 "BriefDescription": "Retired load uops which data sources were hits in L3 without snoops required.",618 "BriefDescription": "Retired load uops which data sources were hits in L3 without snoops required. (Precise Event - PEBS)",
506 "CounterHTOff": "0,1,2,3",619 "CounterHTOff": "0,1,2,3",
507 "Data_LA": "1"620 "Data_LA": "1"
508 },621 },
509 {622 {
510 "PEBS": "1",623 "PEBS": "1",
511 "PublicDescription": "Retired load uop whose Data Source was: local DRAM either Snoop not needed or Snoop Miss (RspI).",624 "PublicDescription": "This event counts retired load uops where the data came from local DRAM. This does not include hardware prefetches. This is a precise event.",
512 "EventCode": "0xD3",625 "EventCode": "0xD3",
513 "Counter": "0,1,2,3",626 "Counter": "0,1,2,3",
514 "UMask": "0x1",627 "UMask": "0x1",
515 "Errata": "BDE70, BDM100",628 "Errata": "BDE70, BDM100",
516 "EventName": "MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM",629 "EventName": "MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM",
517 "SampleAfterValue": "100007",630 "SampleAfterValue": "100007",
518 "BriefDescription": "Data from local DRAM either Snoop not needed or Snoop Miss (RspI)",
519 "CounterHTOff": "0,1,2,3",631 "CounterHTOff": "0,1,2,3",
520 "Data_LA": "1"632 "Data_LA": "1"
521 },633 },
@@ -659,119 +771,7 @@ · 137 unmodified lines
659 "CounterHTOff": "0,1,2,3,4,5,6,7"771 "CounterHTOff": "0,1,2,3,4,5,6,7"
660 },772 },
661 {773 {
662 "EventCode": "0x24",774 "PublicDescription": "Counts demand data reads that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
663 "Counter": "0,1,2,3",
664 "UMask": "0x42",
665 "EventName": "L2_RQSTS.RFO_HIT",
666 "SampleAfterValue": "200003",
667 "BriefDescription": "RFO requests that hit L2 cache.",
668 "CounterHTOff": "0,1,2,3,4,5,6,7"
669 },
670 {
671 "EventCode": "0x24",
672 "Counter": "0,1,2,3",
673 "UMask": "0x22",
674 "EventName": "L2_RQSTS.RFO_MISS",
675 "SampleAfterValue": "200003",
676 "BriefDescription": "RFO requests that miss L2 cache.",
677 "CounterHTOff": "0,1,2,3,4,5,6,7"
678 },
679 {
680 "EventCode": "0x24",
681 "Counter": "0,1,2,3",
682 "UMask": "0x44",
683 "EventName": "L2_RQSTS.CODE_RD_HIT",
684 "SampleAfterValue": "200003",
685 "BriefDescription": "L2 cache hits when fetching instructions, code reads.",
686 "CounterHTOff": "0,1,2,3,4,5,6,7"
687 },
688 {
689 "EventCode": "0x24",
690 "Counter": "0,1,2,3",
691 "UMask": "0x24",
692 "EventName": "L2_RQSTS.CODE_RD_MISS",
693 "SampleAfterValue": "200003",
694 "BriefDescription": "L2 cache misses when fetching instructions.",
695 "CounterHTOff": "0,1,2,3,4,5,6,7"
696 },
697 {
698 "EventCode": "0x24",
699 "Counter": "0,1,2,3",
700 "UMask": "0x27",
701 "EventName": "L2_RQSTS.ALL_DEMAND_MISS",
702 "SampleAfterValue": "200003",
703 "BriefDescription": "Demand requests that miss L2 cache.",
704 "CounterHTOff": "0,1,2,3,4,5,6,7"
705 },
706 {
707 "EventCode": "0x24",
708 "Counter": "0,1,2,3",
709 "UMask": "0xe7",
710 "EventName": "L2_RQSTS.ALL_DEMAND_REFERENCES",
711 "SampleAfterValue": "200003",
712 "BriefDescription": "Demand requests to L2 cache.",
713 "CounterHTOff": "0,1,2,3,4,5,6,7"
714 },
715 {
716 "EventCode": "0x24",
717 "Counter": "0,1,2,3",
718 "UMask": "0x3f",
719 "EventName": "L2_RQSTS.MISS",
720 "SampleAfterValue": "200003",
721 "BriefDescription": "All requests that miss L2 cache.",
722 "CounterHTOff": "0,1,2,3,4,5,6,7"
723 },
724 {
725 "EventCode": "0x24",
726 "Counter": "0,1,2,3",
727 "UMask": "0xff",
728 "EventName": "L2_RQSTS.REFERENCES",
729 "SampleAfterValue": "200003",
730 "BriefDescription": "All L2 requests.",
731 "CounterHTOff": "0,1,2,3,4,5,6,7"
732 },
733 {
734 "EventCode": "0xB7, 0xBB",
735 "Counter": "0,1,2,3",
736 "UMask": "0x1",
737 "EventName": "OFFCORE_RESPONSE",
738 "SampleAfterValue": "100003",
739 "BriefDescription": "Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
740 "CounterHTOff": "0,1,2,3"
741 },
742 {
743 "EventCode": "0x60",
744 "Counter": "0,1,2,3",
745 "UMask": "0x1",
746 "Errata": "BDM76",
747 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD_GE_6",
748 "SampleAfterValue": "2000003",
749 "BriefDescription": "Cycles with at least 6 offcore outstanding Demand Data Read transactions in uncore queue.",
750 "CounterMask": "6",
751 "CounterHTOff": "0,1,2,3,4,5,6,7"
752 },
753 {
754 "EventCode": "0x48",
755 "Counter": "2",
756 "UMask": "0x1",
757 "AnyThread": "1",
758 "EventName": "L1D_PEND_MISS.PENDING_CYCLES_ANY",
759 "SampleAfterValue": "2000003",
760 "BriefDescription": "Cycles with L1D load Misses outstanding from any thread on physical core.",
761 "CounterMask": "1",
762 "CounterHTOff": "2"
763 },
764 {
765 "EventCode": "0x48",
766 "Counter": "0,1,2,3",
767 "UMask": "0x2",
768 "EventName": "L1D_PEND_MISS.FB_FULL",
769 "SampleAfterValue": "2000003",
770 "BriefDescription": "Cycles a demand request was blocked due to Fill Buffers inavailability.",
771 "CounterMask": "1",
772 "CounterHTOff": "0,1,2,3,4,5,6,7"
773 },
774 {
775 "EventCode": "0xB7, 0xBB",775 "EventCode": "0xB7, 0xBB",
776 "MSRValue": "0x0000010001 ",776 "MSRValue": "0x0000010001 ",
777 "Counter": "0,1,2,3",777 "Counter": "0,1,2,3",
@@ -784,6 +784,7 @@ · 6 unmodified lines
784 "CounterHTOff": "0,1,2,3"784 "CounterHTOff": "0,1,2,3"
785 },785 },
786 {786 {
787 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
787 "EventCode": "0xB7, 0xBB",788 "EventCode": "0xB7, 0xBB",
788 "MSRValue": "0x0080020001 ",789 "MSRValue": "0x0080020001 ",
789 "Counter": "0,1,2,3",790 "Counter": "0,1,2,3",
@@ -796,6 +797,7 @@ · 6 unmodified lines
796 "CounterHTOff": "0,1,2,3"797 "CounterHTOff": "0,1,2,3"
797 },798 },
798 {799 {
800 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
799 "EventCode": "0xB7, 0xBB",801 "EventCode": "0xB7, 0xBB",
800 "MSRValue": "0x0100020001 ",802 "MSRValue": "0x0100020001 ",
801 "Counter": "0,1,2,3",803 "Counter": "0,1,2,3",
@@ -808,6 +810,7 @@ · 6 unmodified lines
808 "CounterHTOff": "0,1,2,3"810 "CounterHTOff": "0,1,2,3"
809 },811 },
810 {812 {
813 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
811 "EventCode": "0xB7, 0xBB",814 "EventCode": "0xB7, 0xBB",
812 "MSRValue": "0x0200020001 ",815 "MSRValue": "0x0200020001 ",
813 "Counter": "0,1,2,3",816 "Counter": "0,1,2,3",
@@ -820,6 +823,7 @@ · 6 unmodified lines
820 "CounterHTOff": "0,1,2,3"823 "CounterHTOff": "0,1,2,3"
821 },824 },
822 {825 {
826 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
823 "EventCode": "0xB7, 0xBB",827 "EventCode": "0xB7, 0xBB",
824 "MSRValue": "0x0400020001 ",828 "MSRValue": "0x0400020001 ",
825 "Counter": "0,1,2,3",829 "Counter": "0,1,2,3",
@@ -832,6 +836,7 @@ · 6 unmodified lines
832 "CounterHTOff": "0,1,2,3"836 "CounterHTOff": "0,1,2,3"
833 },837 },
834 {838 {
839 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
835 "EventCode": "0xB7, 0xBB",840 "EventCode": "0xB7, 0xBB",
836 "MSRValue": "0x1000020001 ",841 "MSRValue": "0x1000020001 ",
837 "Counter": "0,1,2,3",842 "Counter": "0,1,2,3",
@@ -844,6 +849,7 @@ · 6 unmodified lines
844 "CounterHTOff": "0,1,2,3"849 "CounterHTOff": "0,1,2,3"
845 },850 },
846 {851 {
852 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
847 "EventCode": "0xB7, 0xBB",853 "EventCode": "0xB7, 0xBB",
848 "MSRValue": "0x3f80020001 ",854 "MSRValue": "0x3f80020001 ",
849 "Counter": "0,1,2,3",855 "Counter": "0,1,2,3",
@@ -856,6 +862,7 @@ · 6 unmodified lines
856 "CounterHTOff": "0,1,2,3"862 "CounterHTOff": "0,1,2,3"
857 },863 },
858 {864 {
865 "PublicDescription": "Counts demand data reads that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
859 "EventCode": "0xB7, 0xBB",866 "EventCode": "0xB7, 0xBB",
860 "MSRValue": "0x00803c0001 ",867 "MSRValue": "0x00803c0001 ",
861 "Counter": "0,1,2,3",868 "Counter": "0,1,2,3",
@@ -868,6 +875,7 @@ · 6 unmodified lines
868 "CounterHTOff": "0,1,2,3"875 "CounterHTOff": "0,1,2,3"
869 },876 },
870 {877 {
878 "PublicDescription": "Counts demand data reads that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
871 "EventCode": "0xB7, 0xBB",879 "EventCode": "0xB7, 0xBB",
872 "MSRValue": "0x01003c0001 ",880 "MSRValue": "0x01003c0001 ",
873 "Counter": "0,1,2,3",881 "Counter": "0,1,2,3",
@@ -880,6 +888,7 @@ · 6 unmodified lines
880 "CounterHTOff": "0,1,2,3"888 "CounterHTOff": "0,1,2,3"
881 },889 },
882 {890 {
891 "PublicDescription": "Counts demand data reads that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
883 "EventCode": "0xB7, 0xBB",892 "EventCode": "0xB7, 0xBB",
884 "MSRValue": "0x02003c0001 ",893 "MSRValue": "0x02003c0001 ",
885 "Counter": "0,1,2,3",894 "Counter": "0,1,2,3",
@@ -892,6 +901,7 @@ · 6 unmodified lines
892 "CounterHTOff": "0,1,2,3"901 "CounterHTOff": "0,1,2,3"
893 },902 },
894 {903 {
904 "PublicDescription": "Counts demand data reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
895 "EventCode": "0xB7, 0xBB",905 "EventCode": "0xB7, 0xBB",
896 "MSRValue": "0x04003c0001 ",906 "MSRValue": "0x04003c0001 ",
897 "Counter": "0,1,2,3",907 "Counter": "0,1,2,3",
@@ -904,6 +914,7 @@ · 6 unmodified lines
904 "CounterHTOff": "0,1,2,3"914 "CounterHTOff": "0,1,2,3"
905 },915 },
906 {916 {
917 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
907 "EventCode": "0xB7, 0xBB",918 "EventCode": "0xB7, 0xBB",
908 "MSRValue": "0x10003c0001 ",919 "MSRValue": "0x10003c0001 ",
909 "Counter": "0,1,2,3",920 "Counter": "0,1,2,3",
@@ -916,6 +927,7 @@ · 6 unmodified lines
916 "CounterHTOff": "0,1,2,3"927 "CounterHTOff": "0,1,2,3"
917 },928 },
918 {929 {
930 "PublicDescription": "Counts demand data reads that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
919 "EventCode": "0xB7, 0xBB",931 "EventCode": "0xB7, 0xBB",
920 "MSRValue": "0x3f803c0001 ",932 "MSRValue": "0x3f803c0001 ",
921 "Counter": "0,1,2,3",933 "Counter": "0,1,2,3",
@@ -928,6 +940,7 @@ · 6 unmodified lines
928 "CounterHTOff": "0,1,2,3"940 "CounterHTOff": "0,1,2,3"
929 },941 },
930 {942 {
943 "PublicDescription": "Counts all demand data writes (RFOs) that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
931 "EventCode": "0xB7, 0xBB",944 "EventCode": "0xB7, 0xBB",
932 "MSRValue": "0x0000010002 ",945 "MSRValue": "0x0000010002 ",
933 "Counter": "0,1,2,3",946 "Counter": "0,1,2,3",
@@ -940,6 +953,7 @@ · 6 unmodified lines
940 "CounterHTOff": "0,1,2,3"953 "CounterHTOff": "0,1,2,3"
941 },954 },
942 {955 {
956 "PublicDescription": "Counts all demand data writes (RFOs) that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
943 "EventCode": "0xB7, 0xBB",957 "EventCode": "0xB7, 0xBB",
944 "MSRValue": "0x00803c0002 ",958 "MSRValue": "0x00803c0002 ",
945 "Counter": "0,1,2,3",959 "Counter": "0,1,2,3",
@@ -952,6 +966,7 @@ · 6 unmodified lines
952 "CounterHTOff": "0,1,2,3"966 "CounterHTOff": "0,1,2,3"
953 },967 },
954 {968 {
969 "PublicDescription": "Counts all demand data writes (RFOs) that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
955 "EventCode": "0xB7, 0xBB",970 "EventCode": "0xB7, 0xBB",
956 "MSRValue": "0x01003c0002 ",971 "MSRValue": "0x01003c0002 ",
957 "Counter": "0,1,2,3",972 "Counter": "0,1,2,3",
@@ -964,6 +979,7 @@ · 6 unmodified lines
964 "CounterHTOff": "0,1,2,3"979 "CounterHTOff": "0,1,2,3"
965 },980 },
966 {981 {
982 "PublicDescription": "Counts all demand data writes (RFOs) that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
967 "EventCode": "0xB7, 0xBB",983 "EventCode": "0xB7, 0xBB",
968 "MSRValue": "0x02003c0002 ",984 "MSRValue": "0x02003c0002 ",
969 "Counter": "0,1,2,3",985 "Counter": "0,1,2,3",
@@ -976,6 +992,7 @@ · 6 unmodified lines
976 "CounterHTOff": "0,1,2,3"992 "CounterHTOff": "0,1,2,3"
977 },993 },
978 {994 {
995 "PublicDescription": "Counts all demand data writes (RFOs) that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
979 "EventCode": "0xB7, 0xBB",996 "EventCode": "0xB7, 0xBB",
980 "MSRValue": "0x04003c0002 ",997 "MSRValue": "0x04003c0002 ",
981 "Counter": "0,1,2,3",998 "Counter": "0,1,2,3",
@@ -988,6 +1005,7 @@ · 6 unmodified lines
988 "CounterHTOff": "0,1,2,3"1005 "CounterHTOff": "0,1,2,3"
989 },1006 },
990 {1007 {
1008 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
991 "EventCode": "0xB7, 0xBB",1009 "EventCode": "0xB7, 0xBB",
992 "MSRValue": "0x10003c0002 ",1010 "MSRValue": "0x10003c0002 ",
993 "Counter": "0,1,2,3",1011 "Counter": "0,1,2,3",
@@ -1000,6 +1018,7 @@ · 6 unmodified lines
1000 "CounterHTOff": "0,1,2,3"1018 "CounterHTOff": "0,1,2,3"
1001 },1019 },
1002 {1020 {
1021 "PublicDescription": "Counts all demand data writes (RFOs) that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1003 "EventCode": "0xB7, 0xBB",1022 "EventCode": "0xB7, 0xBB",
1004 "MSRValue": "0x3f803c0002 ",1023 "MSRValue": "0x3f803c0002 ",
1005 "Counter": "0,1,2,3",1024 "Counter": "0,1,2,3",
@@ -1012,6 +1031,7 @@ · 6 unmodified lines
1012 "CounterHTOff": "0,1,2,3"1031 "CounterHTOff": "0,1,2,3"
1013 },1032 },
1014 {1033 {
1034 "PublicDescription": "Counts all demand code reads that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1015 "EventCode": "0xB7, 0xBB",1035 "EventCode": "0xB7, 0xBB",
1016 "MSRValue": "0x0000010004 ",1036 "MSRValue": "0x0000010004 ",
1017 "Counter": "0,1,2,3",1037 "Counter": "0,1,2,3",
@@ -1024,6 +1044,7 @@ · 6 unmodified lines
1024 "CounterHTOff": "0,1,2,3"1044 "CounterHTOff": "0,1,2,3"
1025 },1045 },
1026 {1046 {
1047 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1027 "EventCode": "0xB7, 0xBB",1048 "EventCode": "0xB7, 0xBB",
1028 "MSRValue": "0x0080020004 ",1049 "MSRValue": "0x0080020004 ",
1029 "Counter": "0,1,2,3",1050 "Counter": "0,1,2,3",
@@ -1036,6 +1057,7 @@ · 6 unmodified lines
1036 "CounterHTOff": "0,1,2,3"1057 "CounterHTOff": "0,1,2,3"
1037 },1058 },
1038 {1059 {
1060 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1039 "EventCode": "0xB7, 0xBB",1061 "EventCode": "0xB7, 0xBB",
1040 "MSRValue": "0x0100020004 ",1062 "MSRValue": "0x0100020004 ",
1041 "Counter": "0,1,2,3",1063 "Counter": "0,1,2,3",
@@ -1048,6 +1070,7 @@ · 6 unmodified lines
1048 "CounterHTOff": "0,1,2,3"1070 "CounterHTOff": "0,1,2,3"
1049 },1071 },
1050 {1072 {
1073 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1051 "EventCode": "0xB7, 0xBB",1074 "EventCode": "0xB7, 0xBB",
1052 "MSRValue": "0x0200020004 ",1075 "MSRValue": "0x0200020004 ",
1053 "Counter": "0,1,2,3",1076 "Counter": "0,1,2,3",
@@ -1060,6 +1083,7 @@ · 6 unmodified lines
1060 "CounterHTOff": "0,1,2,3"1083 "CounterHTOff": "0,1,2,3"
1061 },1084 },
1062 {1085 {
1086 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1063 "EventCode": "0xB7, 0xBB",1087 "EventCode": "0xB7, 0xBB",
1064 "MSRValue": "0x0400020004 ",1088 "MSRValue": "0x0400020004 ",
1065 "Counter": "0,1,2,3",1089 "Counter": "0,1,2,3",
@@ -1072,6 +1096,7 @@ · 6 unmodified lines
1072 "CounterHTOff": "0,1,2,3"1096 "CounterHTOff": "0,1,2,3"
1073 },1097 },
1074 {1098 {
1099 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1075 "EventCode": "0xB7, 0xBB",1100 "EventCode": "0xB7, 0xBB",
1076 "MSRValue": "0x1000020004 ",1101 "MSRValue": "0x1000020004 ",
1077 "Counter": "0,1,2,3",1102 "Counter": "0,1,2,3",
@@ -1084,6 +1109,7 @@ · 6 unmodified lines
1084 "CounterHTOff": "0,1,2,3"1109 "CounterHTOff": "0,1,2,3"
1085 },1110 },
1086 {1111 {
1112 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1087 "EventCode": "0xB7, 0xBB",1113 "EventCode": "0xB7, 0xBB",
1088 "MSRValue": "0x3f80020004 ",1114 "MSRValue": "0x3f80020004 ",
1089 "Counter": "0,1,2,3",1115 "Counter": "0,1,2,3",
@@ -1096,6 +1122,7 @@ · 6 unmodified lines
1096 "CounterHTOff": "0,1,2,3"1122 "CounterHTOff": "0,1,2,3"
1097 },1123 },
1098 {1124 {
1125 "PublicDescription": "Counts all demand code reads that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1099 "EventCode": "0xB7, 0xBB",1126 "EventCode": "0xB7, 0xBB",
1100 "MSRValue": "0x00803c0004 ",1127 "MSRValue": "0x00803c0004 ",
1101 "Counter": "0,1,2,3",1128 "Counter": "0,1,2,3",
@@ -1108,6 +1135,7 @@ · 6 unmodified lines
1108 "CounterHTOff": "0,1,2,3"1135 "CounterHTOff": "0,1,2,3"
1109 },1136 },
1110 {1137 {
1138 "PublicDescription": "Counts all demand code reads that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1111 "EventCode": "0xB7, 0xBB",1139 "EventCode": "0xB7, 0xBB",
1112 "MSRValue": "0x01003c0004 ",1140 "MSRValue": "0x01003c0004 ",
1113 "Counter": "0,1,2,3",1141 "Counter": "0,1,2,3",
@@ -1120,6 +1148,7 @@ · 6 unmodified lines
1120 "CounterHTOff": "0,1,2,3"1148 "CounterHTOff": "0,1,2,3"
1121 },1149 },
1122 {1150 {
1151 "PublicDescription": "Counts all demand code reads that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1123 "EventCode": "0xB7, 0xBB",1152 "EventCode": "0xB7, 0xBB",
1124 "MSRValue": "0x02003c0004 ",1153 "MSRValue": "0x02003c0004 ",
1125 "Counter": "0,1,2,3",1154 "Counter": "0,1,2,3",
@@ -1132,6 +1161,7 @@ · 6 unmodified lines
1132 "CounterHTOff": "0,1,2,3"1161 "CounterHTOff": "0,1,2,3"
1133 },1162 },
1134 {1163 {
1164 "PublicDescription": "Counts all demand code reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1135 "EventCode": "0xB7, 0xBB",1165 "EventCode": "0xB7, 0xBB",
1136 "MSRValue": "0x04003c0004 ",1166 "MSRValue": "0x04003c0004 ",
1137 "Counter": "0,1,2,3",1167 "Counter": "0,1,2,3",
@@ -1144,6 +1174,7 @@ · 6 unmodified lines
1144 "CounterHTOff": "0,1,2,3"1174 "CounterHTOff": "0,1,2,3"
1145 },1175 },
1146 {1176 {
1177 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1147 "EventCode": "0xB7, 0xBB",1178 "EventCode": "0xB7, 0xBB",
1148 "MSRValue": "0x10003c0004 ",1179 "MSRValue": "0x10003c0004 ",
1149 "Counter": "0,1,2,3",1180 "Counter": "0,1,2,3",
@@ -1156,6 +1187,7 @@ · 6 unmodified lines
1156 "CounterHTOff": "0,1,2,3"1187 "CounterHTOff": "0,1,2,3"
1157 },1188 },
1158 {1189 {
1190 "PublicDescription": "Counts all demand code reads that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1159 "EventCode": "0xB7, 0xBB",1191 "EventCode": "0xB7, 0xBB",
1160 "MSRValue": "0x3f803c0004 ",1192 "MSRValue": "0x3f803c0004 ",
1161 "Counter": "0,1,2,3",1193 "Counter": "0,1,2,3",
@@ -1168,6 +1200,7 @@ · 6 unmodified lines
1168 "CounterHTOff": "0,1,2,3"1200 "CounterHTOff": "0,1,2,3"
1169 },1201 },
1170 {1202 {
1203 "PublicDescription": "Counts writebacks (modified to exclusive) that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1171 "EventCode": "0xB7, 0xBB",1204 "EventCode": "0xB7, 0xBB",
1172 "MSRValue": "0x0000010008 ",1205 "MSRValue": "0x0000010008 ",
1173 "Counter": "0,1,2,3",1206 "Counter": "0,1,2,3",
@@ -1180,6 +1213,7 @@ · 6 unmodified lines
1180 "CounterHTOff": "0,1,2,3"1213 "CounterHTOff": "0,1,2,3"
1181 },1214 },
1182 {1215 {
1216 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1183 "EventCode": "0xB7, 0xBB",1217 "EventCode": "0xB7, 0xBB",
1184 "MSRValue": "0x0080020008 ",1218 "MSRValue": "0x0080020008 ",
1185 "Counter": "0,1,2,3",1219 "Counter": "0,1,2,3",
@@ -1192,6 +1226,7 @@ · 6 unmodified lines
1192 "CounterHTOff": "0,1,2,3"1226 "CounterHTOff": "0,1,2,3"
1193 },1227 },
1194 {1228 {
1229 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1195 "EventCode": "0xB7, 0xBB",1230 "EventCode": "0xB7, 0xBB",
1196 "MSRValue": "0x0100020008 ",1231 "MSRValue": "0x0100020008 ",
1197 "Counter": "0,1,2,3",1232 "Counter": "0,1,2,3",
@@ -1204,6 +1239,7 @@ · 6 unmodified lines
1204 "CounterHTOff": "0,1,2,3"1239 "CounterHTOff": "0,1,2,3"
1205 },1240 },
1206 {1241 {
1242 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1207 "EventCode": "0xB7, 0xBB",1243 "EventCode": "0xB7, 0xBB",
1208 "MSRValue": "0x0200020008 ",1244 "MSRValue": "0x0200020008 ",
1209 "Counter": "0,1,2,3",1245 "Counter": "0,1,2,3",
@@ -1216,6 +1252,7 @@ · 6 unmodified lines
1216 "CounterHTOff": "0,1,2,3"1252 "CounterHTOff": "0,1,2,3"
1217 },1253 },
1218 {1254 {
1255 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1219 "EventCode": "0xB7, 0xBB",1256 "EventCode": "0xB7, 0xBB",
1220 "MSRValue": "0x0400020008 ",1257 "MSRValue": "0x0400020008 ",
1221 "Counter": "0,1,2,3",1258 "Counter": "0,1,2,3",
@@ -1228,6 +1265,7 @@ · 6 unmodified lines
1228 "CounterHTOff": "0,1,2,3"1265 "CounterHTOff": "0,1,2,3"
1229 },1266 },
1230 {1267 {
1268 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1231 "EventCode": "0xB7, 0xBB",1269 "EventCode": "0xB7, 0xBB",
1232 "MSRValue": "0x1000020008 ",1270 "MSRValue": "0x1000020008 ",
1233 "Counter": "0,1,2,3",1271 "Counter": "0,1,2,3",
@@ -1240,6 +1278,7 @@ · 6 unmodified lines
1240 "CounterHTOff": "0,1,2,3"1278 "CounterHTOff": "0,1,2,3"
1241 },1279 },
1242 {1280 {
1281 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1243 "EventCode": "0xB7, 0xBB",1282 "EventCode": "0xB7, 0xBB",
1244 "MSRValue": "0x3f80020008 ",1283 "MSRValue": "0x3f80020008 ",
1245 "Counter": "0,1,2,3",1284 "Counter": "0,1,2,3",
@@ -1252,6 +1291,7 @@ · 6 unmodified lines
1252 "CounterHTOff": "0,1,2,3"1291 "CounterHTOff": "0,1,2,3"
1253 },1292 },
1254 {1293 {
1294 "PublicDescription": "Counts writebacks (modified to exclusive) that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1255 "EventCode": "0xB7, 0xBB",1295 "EventCode": "0xB7, 0xBB",
1256 "MSRValue": "0x00803c0008 ",1296 "MSRValue": "0x00803c0008 ",
1257 "Counter": "0,1,2,3",1297 "Counter": "0,1,2,3",
@@ -1264,6 +1304,7 @@ · 6 unmodified lines
1264 "CounterHTOff": "0,1,2,3"1304 "CounterHTOff": "0,1,2,3"
1265 },1305 },
1266 {1306 {
1307 "PublicDescription": "Counts writebacks (modified to exclusive) that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1267 "EventCode": "0xB7, 0xBB",1308 "EventCode": "0xB7, 0xBB",
1268 "MSRValue": "0x01003c0008 ",1309 "MSRValue": "0x01003c0008 ",
1269 "Counter": "0,1,2,3",1310 "Counter": "0,1,2,3",
@@ -1276,6 +1317,7 @@ · 6 unmodified lines
1276 "CounterHTOff": "0,1,2,3"1317 "CounterHTOff": "0,1,2,3"
1277 },1318 },
1278 {1319 {
1320 "PublicDescription": "Counts writebacks (modified to exclusive) that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1279 "EventCode": "0xB7, 0xBB",1321 "EventCode": "0xB7, 0xBB",
1280 "MSRValue": "0x02003c0008 ",1322 "MSRValue": "0x02003c0008 ",
1281 "Counter": "0,1,2,3",1323 "Counter": "0,1,2,3",
@@ -1288,6 +1330,7 @@ · 6 unmodified lines
1288 "CounterHTOff": "0,1,2,3"1330 "CounterHTOff": "0,1,2,3"
1289 },1331 },
1290 {1332 {
1333 "PublicDescription": "Counts writebacks (modified to exclusive) that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1291 "EventCode": "0xB7, 0xBB",1334 "EventCode": "0xB7, 0xBB",
1292 "MSRValue": "0x04003c0008 ",1335 "MSRValue": "0x04003c0008 ",
1293 "Counter": "0,1,2,3",1336 "Counter": "0,1,2,3",
@@ -1300,6 +1343,7 @@ · 6 unmodified lines
1300 "CounterHTOff": "0,1,2,3"1343 "CounterHTOff": "0,1,2,3"
1301 },1344 },
1302 {1345 {
1346 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1303 "EventCode": "0xB7, 0xBB",1347 "EventCode": "0xB7, 0xBB",
1304 "MSRValue": "0x10003c0008 ",1348 "MSRValue": "0x10003c0008 ",
1305 "Counter": "0,1,2,3",1349 "Counter": "0,1,2,3",
@@ -1312,6 +1356,7 @@ · 6 unmodified lines
1312 "CounterHTOff": "0,1,2,3"1356 "CounterHTOff": "0,1,2,3"
1313 },1357 },
1314 {1358 {
1359 "PublicDescription": "Counts writebacks (modified to exclusive) that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1315 "EventCode": "0xB7, 0xBB",1360 "EventCode": "0xB7, 0xBB",
1316 "MSRValue": "0x3f803c0008 ",1361 "MSRValue": "0x3f803c0008 ",
1317 "Counter": "0,1,2,3",1362 "Counter": "0,1,2,3",
@@ -1324,6 +1369,7 @@ · 6 unmodified lines
1324 "CounterHTOff": "0,1,2,3"1369 "CounterHTOff": "0,1,2,3"
1325 },1370 },
1326 {1371 {
1372 "PublicDescription": "Counts prefetch (that bring data to L2) data reads that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1327 "EventCode": "0xB7, 0xBB",1373 "EventCode": "0xB7, 0xBB",
1328 "MSRValue": "0x0000010010 ",1374 "MSRValue": "0x0000010010 ",
1329 "Counter": "0,1,2,3",1375 "Counter": "0,1,2,3",
@@ -1336,6 +1382,7 @@ · 6 unmodified lines
1336 "CounterHTOff": "0,1,2,3"1382 "CounterHTOff": "0,1,2,3"
1337 },1383 },
1338 {1384 {
1385 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1339 "EventCode": "0xB7, 0xBB",1386 "EventCode": "0xB7, 0xBB",
1340 "MSRValue": "0x0080020010 ",1387 "MSRValue": "0x0080020010 ",
1341 "Counter": "0,1,2,3",1388 "Counter": "0,1,2,3",
@@ -1348,6 +1395,7 @@ · 6 unmodified lines
1348 "CounterHTOff": "0,1,2,3"1395 "CounterHTOff": "0,1,2,3"
1349 },1396 },
1350 {1397 {
1398 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1351 "EventCode": "0xB7, 0xBB",1399 "EventCode": "0xB7, 0xBB",
1352 "MSRValue": "0x0100020010 ",1400 "MSRValue": "0x0100020010 ",
1353 "Counter": "0,1,2,3",1401 "Counter": "0,1,2,3",
@@ -1360,6 +1408,7 @@ · 6 unmodified lines
1360 "CounterHTOff": "0,1,2,3"1408 "CounterHTOff": "0,1,2,3"
1361 },1409 },
1362 {1410 {
1411 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1363 "EventCode": "0xB7, 0xBB",1412 "EventCode": "0xB7, 0xBB",
1364 "MSRValue": "0x0200020010 ",1413 "MSRValue": "0x0200020010 ",
1365 "Counter": "0,1,2,3",1414 "Counter": "0,1,2,3",
@@ -1372,6 +1421,7 @@ · 6 unmodified lines
1372 "CounterHTOff": "0,1,2,3"1421 "CounterHTOff": "0,1,2,3"
1373 },1422 },
1374 {1423 {
1424 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1375 "EventCode": "0xB7, 0xBB",1425 "EventCode": "0xB7, 0xBB",
1376 "MSRValue": "0x0400020010 ",1426 "MSRValue": "0x0400020010 ",
1377 "Counter": "0,1,2,3",1427 "Counter": "0,1,2,3",
@@ -1384,6 +1434,7 @@ · 6 unmodified lines
1384 "CounterHTOff": "0,1,2,3"1434 "CounterHTOff": "0,1,2,3"
1385 },1435 },
1386 {1436 {
1437 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1387 "EventCode": "0xB7, 0xBB",1438 "EventCode": "0xB7, 0xBB",
1388 "MSRValue": "0x1000020010 ",1439 "MSRValue": "0x1000020010 ",
1389 "Counter": "0,1,2,3",1440 "Counter": "0,1,2,3",
@@ -1396,6 +1447,7 @@ · 6 unmodified lines
1396 "CounterHTOff": "0,1,2,3"1447 "CounterHTOff": "0,1,2,3"
1397 },1448 },
1398 {1449 {
1450 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1399 "EventCode": "0xB7, 0xBB",1451 "EventCode": "0xB7, 0xBB",
1400 "MSRValue": "0x3f80020010 ",1452 "MSRValue": "0x3f80020010 ",
1401 "Counter": "0,1,2,3",1453 "Counter": "0,1,2,3",
@@ -1408,6 +1460,7 @@ · 6 unmodified lines
1408 "CounterHTOff": "0,1,2,3"1460 "CounterHTOff": "0,1,2,3"
1409 },1461 },
1410 {1462 {
1463 "PublicDescription": "Counts prefetch (that bring data to L2) data reads that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1411 "EventCode": "0xB7, 0xBB",1464 "EventCode": "0xB7, 0xBB",
1412 "MSRValue": "0x00803c0010 ",1465 "MSRValue": "0x00803c0010 ",
1413 "Counter": "0,1,2,3",1466 "Counter": "0,1,2,3",
@@ -1420,6 +1473,7 @@ · 6 unmodified lines
1420 "CounterHTOff": "0,1,2,3"1473 "CounterHTOff": "0,1,2,3"
1421 },1474 },
1422 {1475 {
1476 "PublicDescription": "Counts prefetch (that bring data to L2) data reads that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1423 "EventCode": "0xB7, 0xBB",1477 "EventCode": "0xB7, 0xBB",
1424 "MSRValue": "0x01003c0010 ",1478 "MSRValue": "0x01003c0010 ",
1425 "Counter": "0,1,2,3",1479 "Counter": "0,1,2,3",
@@ -1432,6 +1486,7 @@ · 6 unmodified lines
1432 "CounterHTOff": "0,1,2,3"1486 "CounterHTOff": "0,1,2,3"
1433 },1487 },
1434 {1488 {
1489 "PublicDescription": "Counts prefetch (that bring data to L2) data reads that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1435 "EventCode": "0xB7, 0xBB",1490 "EventCode": "0xB7, 0xBB",
1436 "MSRValue": "0x02003c0010 ",1491 "MSRValue": "0x02003c0010 ",
1437 "Counter": "0,1,2,3",1492 "Counter": "0,1,2,3",
@@ -1444,6 +1499,7 @@ · 6 unmodified lines
1444 "CounterHTOff": "0,1,2,3"1499 "CounterHTOff": "0,1,2,3"
1445 },1500 },
1446 {1501 {
1502 "PublicDescription": "Counts prefetch (that bring data to L2) data reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1447 "EventCode": "0xB7, 0xBB",1503 "EventCode": "0xB7, 0xBB",
1448 "MSRValue": "0x04003c0010 ",1504 "MSRValue": "0x04003c0010 ",
1449 "Counter": "0,1,2,3",1505 "Counter": "0,1,2,3",
@@ -1456,6 +1512,7 @@ · 6 unmodified lines
1456 "CounterHTOff": "0,1,2,3"1512 "CounterHTOff": "0,1,2,3"
1457 },1513 },
1458 {1514 {
1515 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1459 "EventCode": "0xB7, 0xBB",1516 "EventCode": "0xB7, 0xBB",
1460 "MSRValue": "0x10003c0010 ",1517 "MSRValue": "0x10003c0010 ",
1461 "Counter": "0,1,2,3",1518 "Counter": "0,1,2,3",
@@ -1468,6 +1525,7 @@ · 6 unmodified lines
1468 "CounterHTOff": "0,1,2,3"1525 "CounterHTOff": "0,1,2,3"
1469 },1526 },
1470 {1527 {
1528 "PublicDescription": "Counts prefetch (that bring data to L2) data reads that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1471 "EventCode": "0xB7, 0xBB",1529 "EventCode": "0xB7, 0xBB",
1472 "MSRValue": "0x3f803c0010 ",1530 "MSRValue": "0x3f803c0010 ",
1473 "Counter": "0,1,2,3",1531 "Counter": "0,1,2,3",
@@ -1480,6 +1538,7 @@ · 6 unmodified lines
1480 "CounterHTOff": "0,1,2,3"1538 "CounterHTOff": "0,1,2,3"
1481 },1539 },
1482 {1540 {
1541 "PublicDescription": "Counts all prefetch (that bring data to L2) RFOs that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1483 "EventCode": "0xB7, 0xBB",1542 "EventCode": "0xB7, 0xBB",
1484 "MSRValue": "0x0000010020 ",1543 "MSRValue": "0x0000010020 ",
1485 "Counter": "0,1,2,3",1544 "Counter": "0,1,2,3",
@@ -1492,6 +1551,7 @@ · 6 unmodified lines
1492 "CounterHTOff": "0,1,2,3"1551 "CounterHTOff": "0,1,2,3"
1493 },1552 },
1494 {1553 {
1554 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1495 "EventCode": "0xB7, 0xBB",1555 "EventCode": "0xB7, 0xBB",
1496 "MSRValue": "0x0080020020 ",1556 "MSRValue": "0x0080020020 ",
1497 "Counter": "0,1,2,3",1557 "Counter": "0,1,2,3",
@@ -1504,6 +1564,7 @@ · 6 unmodified lines
1504 "CounterHTOff": "0,1,2,3"1564 "CounterHTOff": "0,1,2,3"
1505 },1565 },
1506 {1566 {
1567 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1507 "EventCode": "0xB7, 0xBB",1568 "EventCode": "0xB7, 0xBB",
1508 "MSRValue": "0x0100020020 ",1569 "MSRValue": "0x0100020020 ",
1509 "Counter": "0,1,2,3",1570 "Counter": "0,1,2,3",
@@ -1516,6 +1577,7 @@ · 6 unmodified lines
1516 "CounterHTOff": "0,1,2,3"1577 "CounterHTOff": "0,1,2,3"
1517 },1578 },
1518 {1579 {
1580 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1519 "EventCode": "0xB7, 0xBB",1581 "EventCode": "0xB7, 0xBB",
1520 "MSRValue": "0x0200020020 ",1582 "MSRValue": "0x0200020020 ",
1521 "Counter": "0,1,2,3",1583 "Counter": "0,1,2,3",
@@ -1528,6 +1590,7 @@ · 6 unmodified lines
1528 "CounterHTOff": "0,1,2,3"1590 "CounterHTOff": "0,1,2,3"
1529 },1591 },
1530 {1592 {
1593 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1531 "EventCode": "0xB7, 0xBB",1594 "EventCode": "0xB7, 0xBB",
1532 "MSRValue": "0x0400020020 ",1595 "MSRValue": "0x0400020020 ",
1533 "Counter": "0,1,2,3",1596 "Counter": "0,1,2,3",
@@ -1540,6 +1603,7 @@ · 6 unmodified lines
1540 "CounterHTOff": "0,1,2,3"1603 "CounterHTOff": "0,1,2,3"
1541 },1604 },
1542 {1605 {
1606 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1543 "EventCode": "0xB7, 0xBB",1607 "EventCode": "0xB7, 0xBB",
1544 "MSRValue": "0x1000020020 ",1608 "MSRValue": "0x1000020020 ",
1545 "Counter": "0,1,2,3",1609 "Counter": "0,1,2,3",
@@ -1552,6 +1616,7 @@ · 6 unmodified lines
1552 "CounterHTOff": "0,1,2,3"1616 "CounterHTOff": "0,1,2,3"
1553 },1617 },
1554 {1618 {
1619 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1555 "EventCode": "0xB7, 0xBB",1620 "EventCode": "0xB7, 0xBB",
1556 "MSRValue": "0x3f80020020 ",1621 "MSRValue": "0x3f80020020 ",
1557 "Counter": "0,1,2,3",1622 "Counter": "0,1,2,3",
@@ -1564,6 +1629,7 @@ · 6 unmodified lines
1564 "CounterHTOff": "0,1,2,3"1629 "CounterHTOff": "0,1,2,3"
1565 },1630 },
1566 {1631 {
1632 "PublicDescription": "Counts all prefetch (that bring data to L2) RFOs that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1567 "EventCode": "0xB7, 0xBB",1633 "EventCode": "0xB7, 0xBB",
1568 "MSRValue": "0x00803c0020 ",1634 "MSRValue": "0x00803c0020 ",
1569 "Counter": "0,1,2,3",1635 "Counter": "0,1,2,3",
@@ -1576,6 +1642,7 @@ · 6 unmodified lines
1576 "CounterHTOff": "0,1,2,3"1642 "CounterHTOff": "0,1,2,3"
1577 },1643 },
1578 {1644 {
1645 "PublicDescription": "Counts all prefetch (that bring data to L2) RFOs that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1579 "EventCode": "0xB7, 0xBB",1646 "EventCode": "0xB7, 0xBB",
1580 "MSRValue": "0x01003c0020 ",1647 "MSRValue": "0x01003c0020 ",
1581 "Counter": "0,1,2,3",1648 "Counter": "0,1,2,3",
@@ -1588,6 +1655,7 @@ · 6 unmodified lines
1588 "CounterHTOff": "0,1,2,3"1655 "CounterHTOff": "0,1,2,3"
1589 },1656 },
1590 {1657 {
1658 "PublicDescription": "Counts all prefetch (that bring data to L2) RFOs that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1591 "EventCode": "0xB7, 0xBB",1659 "EventCode": "0xB7, 0xBB",
1592 "MSRValue": "0x02003c0020 ",1660 "MSRValue": "0x02003c0020 ",
1593 "Counter": "0,1,2,3",1661 "Counter": "0,1,2,3",
@@ -1600,6 +1668,7 @@ · 6 unmodified lines
1600 "CounterHTOff": "0,1,2,3"1668 "CounterHTOff": "0,1,2,3"
1601 },1669 },
1602 {1670 {
1671 "PublicDescription": "Counts all prefetch (that bring data to L2) RFOs that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1603 "EventCode": "0xB7, 0xBB",1672 "EventCode": "0xB7, 0xBB",
1604 "MSRValue": "0x04003c0020 ",1673 "MSRValue": "0x04003c0020 ",
1605 "Counter": "0,1,2,3",1674 "Counter": "0,1,2,3",
@@ -1612,6 +1681,7 @@ · 6 unmodified lines
1612 "CounterHTOff": "0,1,2,3"1681 "CounterHTOff": "0,1,2,3"
1613 },1682 },
1614 {1683 {
1684 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1615 "EventCode": "0xB7, 0xBB",1685 "EventCode": "0xB7, 0xBB",
1616 "MSRValue": "0x10003c0020 ",1686 "MSRValue": "0x10003c0020 ",
1617 "Counter": "0,1,2,3",1687 "Counter": "0,1,2,3",
@@ -1624,6 +1694,7 @@ · 6 unmodified lines
1624 "CounterHTOff": "0,1,2,3"1694 "CounterHTOff": "0,1,2,3"
1625 },1695 },
1626 {1696 {
1697 "PublicDescription": "Counts all prefetch (that bring data to L2) RFOs that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1627 "EventCode": "0xB7, 0xBB",1698 "EventCode": "0xB7, 0xBB",
1628 "MSRValue": "0x3f803c0020 ",1699 "MSRValue": "0x3f803c0020 ",
1629 "Counter": "0,1,2,3",1700 "Counter": "0,1,2,3",
@@ -1636,6 +1707,7 @@ · 6 unmodified lines
1636 "CounterHTOff": "0,1,2,3"1707 "CounterHTOff": "0,1,2,3"
1637 },1708 },
1638 {1709 {
1710 "PublicDescription": "Counts all prefetch (that bring data to LLC only) code reads that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1639 "EventCode": "0xB7, 0xBB",1711 "EventCode": "0xB7, 0xBB",
1640 "MSRValue": "0x0000010040 ",1712 "MSRValue": "0x0000010040 ",
1641 "Counter": "0,1,2,3",1713 "Counter": "0,1,2,3",
@@ -1648,6 +1720,7 @@ · 6 unmodified lines
1648 "CounterHTOff": "0,1,2,3"1720 "CounterHTOff": "0,1,2,3"
1649 },1721 },
1650 {1722 {
1723 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1651 "EventCode": "0xB7, 0xBB",1724 "EventCode": "0xB7, 0xBB",
1652 "MSRValue": "0x0080020040 ",1725 "MSRValue": "0x0080020040 ",
1653 "Counter": "0,1,2,3",1726 "Counter": "0,1,2,3",
@@ -1660,6 +1733,7 @@ · 6 unmodified lines
1660 "CounterHTOff": "0,1,2,3"1733 "CounterHTOff": "0,1,2,3"
1661 },1734 },
1662 {1735 {
1736 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1663 "EventCode": "0xB7, 0xBB",1737 "EventCode": "0xB7, 0xBB",
1664 "MSRValue": "0x0100020040 ",1738 "MSRValue": "0x0100020040 ",
1665 "Counter": "0,1,2,3",1739 "Counter": "0,1,2,3",
@@ -1672,6 +1746,7 @@ · 6 unmodified lines
1672 "CounterHTOff": "0,1,2,3"1746 "CounterHTOff": "0,1,2,3"
1673 },1747 },
1674 {1748 {
1749 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1675 "EventCode": "0xB7, 0xBB",1750 "EventCode": "0xB7, 0xBB",
1676 "MSRValue": "0x0200020040 ",1751 "MSRValue": "0x0200020040 ",
1677 "Counter": "0,1,2,3",1752 "Counter": "0,1,2,3",
@@ -1684,6 +1759,7 @@ · 6 unmodified lines
1684 "CounterHTOff": "0,1,2,3"1759 "CounterHTOff": "0,1,2,3"
1685 },1760 },
1686 {1761 {
1762 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1687 "EventCode": "0xB7, 0xBB",1763 "EventCode": "0xB7, 0xBB",
1688 "MSRValue": "0x0400020040 ",1764 "MSRValue": "0x0400020040 ",
1689 "Counter": "0,1,2,3",1765 "Counter": "0,1,2,3",
@@ -1696,6 +1772,7 @@ · 6 unmodified lines
1696 "CounterHTOff": "0,1,2,3"1772 "CounterHTOff": "0,1,2,3"
1697 },1773 },
1698 {1774 {
1775 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1699 "EventCode": "0xB7, 0xBB",1776 "EventCode": "0xB7, 0xBB",
1700 "MSRValue": "0x1000020040 ",1777 "MSRValue": "0x1000020040 ",
1701 "Counter": "0,1,2,3",1778 "Counter": "0,1,2,3",
@@ -1708,6 +1785,7 @@ · 6 unmodified lines
1708 "CounterHTOff": "0,1,2,3"1785 "CounterHTOff": "0,1,2,3"
1709 },1786 },
1710 {1787 {
1788 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1711 "EventCode": "0xB7, 0xBB",1789 "EventCode": "0xB7, 0xBB",
1712 "MSRValue": "0x3f80020040 ",1790 "MSRValue": "0x3f80020040 ",
1713 "Counter": "0,1,2,3",1791 "Counter": "0,1,2,3",
@@ -1720,6 +1798,7 @@ · 6 unmodified lines
1720 "CounterHTOff": "0,1,2,3"1798 "CounterHTOff": "0,1,2,3"
1721 },1799 },
1722 {1800 {
1801 "PublicDescription": "Counts all prefetch (that bring data to LLC only) code reads that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1723 "EventCode": "0xB7, 0xBB",1802 "EventCode": "0xB7, 0xBB",
1724 "MSRValue": "0x00803c0040 ",1803 "MSRValue": "0x00803c0040 ",
1725 "Counter": "0,1,2,3",1804 "Counter": "0,1,2,3",
@@ -1732,6 +1811,7 @@ · 6 unmodified lines
1732 "CounterHTOff": "0,1,2,3"1811 "CounterHTOff": "0,1,2,3"
1733 },1812 },
1734 {1813 {
1814 "PublicDescription": "Counts all prefetch (that bring data to LLC only) code reads that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1735 "EventCode": "0xB7, 0xBB",1815 "EventCode": "0xB7, 0xBB",
1736 "MSRValue": "0x01003c0040 ",1816 "MSRValue": "0x01003c0040 ",
1737 "Counter": "0,1,2,3",1817 "Counter": "0,1,2,3",
@@ -1744,6 +1824,7 @@ · 6 unmodified lines
1744 "CounterHTOff": "0,1,2,3"1824 "CounterHTOff": "0,1,2,3"
1745 },1825 },
1746 {1826 {
1827 "PublicDescription": "Counts all prefetch (that bring data to LLC only) code reads that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1747 "EventCode": "0xB7, 0xBB",1828 "EventCode": "0xB7, 0xBB",
1748 "MSRValue": "0x02003c0040 ",1829 "MSRValue": "0x02003c0040 ",
1749 "Counter": "0,1,2,3",1830 "Counter": "0,1,2,3",
@@ -1756,6 +1837,7 @@ · 6 unmodified lines
1756 "CounterHTOff": "0,1,2,3"1837 "CounterHTOff": "0,1,2,3"
1757 },1838 },
1758 {1839 {
1840 "PublicDescription": "Counts all prefetch (that bring data to LLC only) code reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1759 "EventCode": "0xB7, 0xBB",1841 "EventCode": "0xB7, 0xBB",
1760 "MSRValue": "0x04003c0040 ",1842 "MSRValue": "0x04003c0040 ",
1761 "Counter": "0,1,2,3",1843 "Counter": "0,1,2,3",
@@ -1768,6 +1850,7 @@ · 6 unmodified lines
1768 "CounterHTOff": "0,1,2,3"1850 "CounterHTOff": "0,1,2,3"
1769 },1851 },
1770 {1852 {
1853 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1771 "EventCode": "0xB7, 0xBB",1854 "EventCode": "0xB7, 0xBB",
1772 "MSRValue": "0x10003c0040 ",1855 "MSRValue": "0x10003c0040 ",
1773 "Counter": "0,1,2,3",1856 "Counter": "0,1,2,3",
@@ -1780,6 +1863,7 @@ · 6 unmodified lines
1780 "CounterHTOff": "0,1,2,3"1863 "CounterHTOff": "0,1,2,3"
1781 },1864 },
1782 {1865 {
1866 "PublicDescription": "Counts all prefetch (that bring data to LLC only) code reads that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1783 "EventCode": "0xB7, 0xBB",1867 "EventCode": "0xB7, 0xBB",
1784 "MSRValue": "0x3f803c0040 ",1868 "MSRValue": "0x3f803c0040 ",
1785 "Counter": "0,1,2,3",1869 "Counter": "0,1,2,3",
@@ -1792,6 +1876,7 @@ · 6 unmodified lines
1792 "CounterHTOff": "0,1,2,3"1876 "CounterHTOff": "0,1,2,3"
1793 },1877 },
1794 {1878 {
1879 "PublicDescription": "Counts all prefetch (that bring data to LLC only) data reads that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1795 "EventCode": "0xB7, 0xBB",1880 "EventCode": "0xB7, 0xBB",
1796 "MSRValue": "0x0000010080 ",1881 "MSRValue": "0x0000010080 ",
1797 "Counter": "0,1,2,3",1882 "Counter": "0,1,2,3",
@@ -1804,6 +1889,7 @@ · 6 unmodified lines
1804 "CounterHTOff": "0,1,2,3"1889 "CounterHTOff": "0,1,2,3"
1805 },1890 },
1806 {1891 {
1892 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1807 "EventCode": "0xB7, 0xBB",1893 "EventCode": "0xB7, 0xBB",
1808 "MSRValue": "0x0080020080 ",1894 "MSRValue": "0x0080020080 ",
1809 "Counter": "0,1,2,3",1895 "Counter": "0,1,2,3",
@@ -1816,6 +1902,7 @@ · 6 unmodified lines
1816 "CounterHTOff": "0,1,2,3"1902 "CounterHTOff": "0,1,2,3"
1817 },1903 },
1818 {1904 {
1905 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1819 "EventCode": "0xB7, 0xBB",1906 "EventCode": "0xB7, 0xBB",
1820 "MSRValue": "0x0100020080 ",1907 "MSRValue": "0x0100020080 ",
1821 "Counter": "0,1,2,3",1908 "Counter": "0,1,2,3",
@@ -1828,6 +1915,7 @@ · 6 unmodified lines
1828 "CounterHTOff": "0,1,2,3"1915 "CounterHTOff": "0,1,2,3"
1829 },1916 },
1830 {1917 {
1918 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1831 "EventCode": "0xB7, 0xBB",1919 "EventCode": "0xB7, 0xBB",
1832 "MSRValue": "0x0200020080 ",1920 "MSRValue": "0x0200020080 ",
1833 "Counter": "0,1,2,3",1921 "Counter": "0,1,2,3",
@@ -1840,6 +1928,7 @@ · 6 unmodified lines
1840 "CounterHTOff": "0,1,2,3"1928 "CounterHTOff": "0,1,2,3"
1841 },1929 },
1842 {1930 {
1931 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1843 "EventCode": "0xB7, 0xBB",1932 "EventCode": "0xB7, 0xBB",
1844 "MSRValue": "0x0400020080 ",1933 "MSRValue": "0x0400020080 ",
1845 "Counter": "0,1,2,3",1934 "Counter": "0,1,2,3",
@@ -1852,6 +1941,7 @@ · 6 unmodified lines
1852 "CounterHTOff": "0,1,2,3"1941 "CounterHTOff": "0,1,2,3"
1853 },1942 },
1854 {1943 {
1944 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1855 "EventCode": "0xB7, 0xBB",1945 "EventCode": "0xB7, 0xBB",
1856 "MSRValue": "0x1000020080 ",1946 "MSRValue": "0x1000020080 ",
1857 "Counter": "0,1,2,3",1947 "Counter": "0,1,2,3",
@@ -1864,6 +1954,7 @@ · 6 unmodified lines
1864 "CounterHTOff": "0,1,2,3"1954 "CounterHTOff": "0,1,2,3"
1865 },1955 },
1866 {1956 {
1957 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1867 "EventCode": "0xB7, 0xBB",1958 "EventCode": "0xB7, 0xBB",
1868 "MSRValue": "0x3f80020080 ",1959 "MSRValue": "0x3f80020080 ",
1869 "Counter": "0,1,2,3",1960 "Counter": "0,1,2,3",
@@ -1876,6 +1967,7 @@ · 6 unmodified lines
1876 "CounterHTOff": "0,1,2,3"1967 "CounterHTOff": "0,1,2,3"
1877 },1968 },
1878 {1969 {
1970 "PublicDescription": "Counts all prefetch (that bring data to LLC only) data reads that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1879 "EventCode": "0xB7, 0xBB",1971 "EventCode": "0xB7, 0xBB",
1880 "MSRValue": "0x00803c0080 ",1972 "MSRValue": "0x00803c0080 ",
1881 "Counter": "0,1,2,3",1973 "Counter": "0,1,2,3",
@@ -1888,6 +1980,7 @@ · 6 unmodified lines
1888 "CounterHTOff": "0,1,2,3"1980 "CounterHTOff": "0,1,2,3"
1889 },1981 },
1890 {1982 {
1983 "PublicDescription": "Counts all prefetch (that bring data to LLC only) data reads that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1891 "EventCode": "0xB7, 0xBB",1984 "EventCode": "0xB7, 0xBB",
1892 "MSRValue": "0x01003c0080 ",1985 "MSRValue": "0x01003c0080 ",
1893 "Counter": "0,1,2,3",1986 "Counter": "0,1,2,3",
@@ -1900,6 +1993,7 @@ · 6 unmodified lines
1900 "CounterHTOff": "0,1,2,3"1993 "CounterHTOff": "0,1,2,3"
1901 },1994 },
1902 {1995 {
1996 "PublicDescription": "Counts all prefetch (that bring data to LLC only) data reads that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1903 "EventCode": "0xB7, 0xBB",1997 "EventCode": "0xB7, 0xBB",
1904 "MSRValue": "0x02003c0080 ",1998 "MSRValue": "0x02003c0080 ",
1905 "Counter": "0,1,2,3",1999 "Counter": "0,1,2,3",
@@ -1912,6 +2006,7 @@ · 6 unmodified lines
1912 "CounterHTOff": "0,1,2,3"2006 "CounterHTOff": "0,1,2,3"
1913 },2007 },
1914 {2008 {
2009 "PublicDescription": "Counts all prefetch (that bring data to LLC only) data reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1915 "EventCode": "0xB7, 0xBB",2010 "EventCode": "0xB7, 0xBB",
1916 "MSRValue": "0x04003c0080 ",2011 "MSRValue": "0x04003c0080 ",
1917 "Counter": "0,1,2,3",2012 "Counter": "0,1,2,3",
@@ -1924,6 +2019,7 @@ · 6 unmodified lines
1924 "CounterHTOff": "0,1,2,3"2019 "CounterHTOff": "0,1,2,3"
1925 },2020 },
1926 {2021 {
2022 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1927 "EventCode": "0xB7, 0xBB",2023 "EventCode": "0xB7, 0xBB",
1928 "MSRValue": "0x10003c0080 ",2024 "MSRValue": "0x10003c0080 ",
1929 "Counter": "0,1,2,3",2025 "Counter": "0,1,2,3",
@@ -1936,6 +2032,7 @@ · 6 unmodified lines
1936 "CounterHTOff": "0,1,2,3"2032 "CounterHTOff": "0,1,2,3"
1937 },2033 },
1938 {2034 {
2035 "PublicDescription": "Counts all prefetch (that bring data to LLC only) data reads that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1939 "EventCode": "0xB7, 0xBB",2036 "EventCode": "0xB7, 0xBB",
1940 "MSRValue": "0x3f803c0080 ",2037 "MSRValue": "0x3f803c0080 ",
1941 "Counter": "0,1,2,3",2038 "Counter": "0,1,2,3",
@@ -1948,6 +2045,7 @@ · 6 unmodified lines
1948 "CounterHTOff": "0,1,2,3"2045 "CounterHTOff": "0,1,2,3"
1949 },2046 },
1950 {2047 {
2048 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1951 "EventCode": "0xB7, 0xBB",2049 "EventCode": "0xB7, 0xBB",
1952 "MSRValue": "0x0000010100 ",2050 "MSRValue": "0x0000010100 ",
1953 "Counter": "0,1,2,3",2051 "Counter": "0,1,2,3",
@@ -1960,6 +2058,7 @@ · 6 unmodified lines
1960 "CounterHTOff": "0,1,2,3"2058 "CounterHTOff": "0,1,2,3"
1961 },2059 },
1962 {2060 {
2061 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1963 "EventCode": "0xB7, 0xBB",2062 "EventCode": "0xB7, 0xBB",
1964 "MSRValue": "0x0080020100 ",2063 "MSRValue": "0x0080020100 ",
1965 "Counter": "0,1,2,3",2064 "Counter": "0,1,2,3",
@@ -1972,6 +2071,7 @@ · 6 unmodified lines
1972 "CounterHTOff": "0,1,2,3"2071 "CounterHTOff": "0,1,2,3"
1973 },2072 },
1974 {2073 {
2074 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1975 "EventCode": "0xB7, 0xBB",2075 "EventCode": "0xB7, 0xBB",
1976 "MSRValue": "0x0100020100 ",2076 "MSRValue": "0x0100020100 ",
1977 "Counter": "0,1,2,3",2077 "Counter": "0,1,2,3",
@@ -1984,6 +2084,7 @@ · 6 unmodified lines
1984 "CounterHTOff": "0,1,2,3"2084 "CounterHTOff": "0,1,2,3"
1985 },2085 },
1986 {2086 {
2087 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1987 "EventCode": "0xB7, 0xBB",2088 "EventCode": "0xB7, 0xBB",
1988 "MSRValue": "0x0200020100 ",2089 "MSRValue": "0x0200020100 ",
1989 "Counter": "0,1,2,3",2090 "Counter": "0,1,2,3",
@@ -1996,6 +2097,7 @@ · 6 unmodified lines
1996 "CounterHTOff": "0,1,2,3"2097 "CounterHTOff": "0,1,2,3"
1997 },2098 },
1998 {2099 {
2100 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1999 "EventCode": "0xB7, 0xBB",2101 "EventCode": "0xB7, 0xBB",
2000 "MSRValue": "0x0400020100 ",2102 "MSRValue": "0x0400020100 ",
2001 "Counter": "0,1,2,3",2103 "Counter": "0,1,2,3",
@@ -2008,6 +2110,7 @@ · 6 unmodified lines
2008 "CounterHTOff": "0,1,2,3"2110 "CounterHTOff": "0,1,2,3"
2009 },2111 },
2010 {2112 {
2113 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2011 "EventCode": "0xB7, 0xBB",2114 "EventCode": "0xB7, 0xBB",
2012 "MSRValue": "0x1000020100 ",2115 "MSRValue": "0x1000020100 ",
2013 "Counter": "0,1,2,3",2116 "Counter": "0,1,2,3",
@@ -2020,6 +2123,7 @@ · 6 unmodified lines
2020 "CounterHTOff": "0,1,2,3"2123 "CounterHTOff": "0,1,2,3"
2021 },2124 },
2022 {2125 {
2126 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2023 "EventCode": "0xB7, 0xBB",2127 "EventCode": "0xB7, 0xBB",
2024 "MSRValue": "0x3f80020100 ",2128 "MSRValue": "0x3f80020100 ",
2025 "Counter": "0,1,2,3",2129 "Counter": "0,1,2,3",
@@ -2032,6 +2136,7 @@ · 6 unmodified lines
2032 "CounterHTOff": "0,1,2,3"2136 "CounterHTOff": "0,1,2,3"
2033 },2137 },
2034 {2138 {
2139 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2035 "EventCode": "0xB7, 0xBB",2140 "EventCode": "0xB7, 0xBB",
2036 "MSRValue": "0x00803c0100 ",2141 "MSRValue": "0x00803c0100 ",
2037 "Counter": "0,1,2,3",2142 "Counter": "0,1,2,3",
@@ -2044,6 +2149,7 @@ · 6 unmodified lines
2044 "CounterHTOff": "0,1,2,3"2149 "CounterHTOff": "0,1,2,3"
2045 },2150 },
2046 {2151 {
2152 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2047 "EventCode": "0xB7, 0xBB",2153 "EventCode": "0xB7, 0xBB",
2048 "MSRValue": "0x01003c0100 ",2154 "MSRValue": "0x01003c0100 ",
2049 "Counter": "0,1,2,3",2155 "Counter": "0,1,2,3",
@@ -2056,6 +2162,7 @@ · 6 unmodified lines
2056 "CounterHTOff": "0,1,2,3"2162 "CounterHTOff": "0,1,2,3"
2057 },2163 },
2058 {2164 {
2165 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2059 "EventCode": "0xB7, 0xBB",2166 "EventCode": "0xB7, 0xBB",
2060 "MSRValue": "0x02003c0100 ",2167 "MSRValue": "0x02003c0100 ",
2061 "Counter": "0,1,2,3",2168 "Counter": "0,1,2,3",
@@ -2068,6 +2175,7 @@ · 6 unmodified lines
2068 "CounterHTOff": "0,1,2,3"2175 "CounterHTOff": "0,1,2,3"
2069 },2176 },
2070 {2177 {
2178 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2071 "EventCode": "0xB7, 0xBB",2179 "EventCode": "0xB7, 0xBB",
2072 "MSRValue": "0x04003c0100 ",2180 "MSRValue": "0x04003c0100 ",
2073 "Counter": "0,1,2,3",2181 "Counter": "0,1,2,3",
@@ -2080,6 +2188,7 @@ · 6 unmodified lines
2080 "CounterHTOff": "0,1,2,3"2188 "CounterHTOff": "0,1,2,3"
2081 },2189 },
2082 {2190 {
2191 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2083 "EventCode": "0xB7, 0xBB",2192 "EventCode": "0xB7, 0xBB",
2084 "MSRValue": "0x10003c0100 ",2193 "MSRValue": "0x10003c0100 ",
2085 "Counter": "0,1,2,3",2194 "Counter": "0,1,2,3",
@@ -2092,6 +2201,7 @@ · 6 unmodified lines
2092 "CounterHTOff": "0,1,2,3"2201 "CounterHTOff": "0,1,2,3"
2093 },2202 },
2094 {2203 {
2204 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2095 "EventCode": "0xB7, 0xBB",2205 "EventCode": "0xB7, 0xBB",
2096 "MSRValue": "0x3f803c0100 ",2206 "MSRValue": "0x3f803c0100 ",
2097 "Counter": "0,1,2,3",2207 "Counter": "0,1,2,3",
@@ -2104,6 +2214,7 @@ · 6 unmodified lines
2104 "CounterHTOff": "0,1,2,3"2214 "CounterHTOff": "0,1,2,3"
2105 },2215 },
2106 {2216 {
2217 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2107 "EventCode": "0xB7, 0xBB",2218 "EventCode": "0xB7, 0xBB",
2108 "MSRValue": "0x0000010200 ",2219 "MSRValue": "0x0000010200 ",
2109 "Counter": "0,1,2,3",2220 "Counter": "0,1,2,3",
@@ -2116,6 +2227,7 @@ · 6 unmodified lines
2116 "CounterHTOff": "0,1,2,3"2227 "CounterHTOff": "0,1,2,3"
2117 },2228 },
2118 {2229 {
2230 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2119 "EventCode": "0xB7, 0xBB",2231 "EventCode": "0xB7, 0xBB",
2120 "MSRValue": "0x0080020200 ",2232 "MSRValue": "0x0080020200 ",
2121 "Counter": "0,1,2,3",2233 "Counter": "0,1,2,3",
@@ -2128,6 +2240,7 @@ · 6 unmodified lines
2128 "CounterHTOff": "0,1,2,3"2240 "CounterHTOff": "0,1,2,3"
2129 },2241 },
2130 {2242 {
2243 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2131 "EventCode": "0xB7, 0xBB",2244 "EventCode": "0xB7, 0xBB",
2132 "MSRValue": "0x0100020200 ",2245 "MSRValue": "0x0100020200 ",
2133 "Counter": "0,1,2,3",2246 "Counter": "0,1,2,3",
@@ -2140,6 +2253,7 @@ · 6 unmodified lines
2140 "CounterHTOff": "0,1,2,3"2253 "CounterHTOff": "0,1,2,3"
2141 },2254 },
2142 {2255 {
2256 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2143 "EventCode": "0xB7, 0xBB",2257 "EventCode": "0xB7, 0xBB",
2144 "MSRValue": "0x0200020200 ",2258 "MSRValue": "0x0200020200 ",
2145 "Counter": "0,1,2,3",2259 "Counter": "0,1,2,3",
@@ -2152,6 +2266,7 @@ · 6 unmodified lines
2152 "CounterHTOff": "0,1,2,3"2266 "CounterHTOff": "0,1,2,3"
2153 },2267 },
2154 {2268 {
2269 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2155 "EventCode": "0xB7, 0xBB",2270 "EventCode": "0xB7, 0xBB",
2156 "MSRValue": "0x0400020200 ",2271 "MSRValue": "0x0400020200 ",
2157 "Counter": "0,1,2,3",2272 "Counter": "0,1,2,3",
@@ -2164,6 +2279,7 @@ · 6 unmodified lines
2164 "CounterHTOff": "0,1,2,3"2279 "CounterHTOff": "0,1,2,3"
2165 },2280 },
2166 {2281 {
2282 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2167 "EventCode": "0xB7, 0xBB",2283 "EventCode": "0xB7, 0xBB",
2168 "MSRValue": "0x1000020200 ",2284 "MSRValue": "0x1000020200 ",
2169 "Counter": "0,1,2,3",2285 "Counter": "0,1,2,3",
@@ -2176,6 +2292,7 @@ · 6 unmodified lines
2176 "CounterHTOff": "0,1,2,3"2292 "CounterHTOff": "0,1,2,3"
2177 },2293 },
2178 {2294 {
2295 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2179 "EventCode": "0xB7, 0xBB",2296 "EventCode": "0xB7, 0xBB",
2180 "MSRValue": "0x3f80020200 ",2297 "MSRValue": "0x3f80020200 ",
2181 "Counter": "0,1,2,3",2298 "Counter": "0,1,2,3",
@@ -2188,6 +2305,7 @@ · 6 unmodified lines
2188 "CounterHTOff": "0,1,2,3"2305 "CounterHTOff": "0,1,2,3"
2189 },2306 },
2190 {2307 {
2308 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2191 "EventCode": "0xB7, 0xBB",2309 "EventCode": "0xB7, 0xBB",
2192 "MSRValue": "0x00803c0200 ",2310 "MSRValue": "0x00803c0200 ",
2193 "Counter": "0,1,2,3",2311 "Counter": "0,1,2,3",
@@ -2200,6 +2318,7 @@ · 6 unmodified lines
2200 "CounterHTOff": "0,1,2,3"2318 "CounterHTOff": "0,1,2,3"
2201 },2319 },
2202 {2320 {
2321 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2203 "EventCode": "0xB7, 0xBB",2322 "EventCode": "0xB7, 0xBB",
2204 "MSRValue": "0x01003c0200 ",2323 "MSRValue": "0x01003c0200 ",
2205 "Counter": "0,1,2,3",2324 "Counter": "0,1,2,3",
@@ -2212,6 +2331,7 @@ · 6 unmodified lines
2212 "CounterHTOff": "0,1,2,3"2331 "CounterHTOff": "0,1,2,3"
2213 },2332 },
2214 {2333 {
2334 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2215 "EventCode": "0xB7, 0xBB",2335 "EventCode": "0xB7, 0xBB",
2216 "MSRValue": "0x02003c0200 ",2336 "MSRValue": "0x02003c0200 ",
2217 "Counter": "0,1,2,3",2337 "Counter": "0,1,2,3",
@@ -2224,6 +2344,7 @@ · 6 unmodified lines
2224 "CounterHTOff": "0,1,2,3"2344 "CounterHTOff": "0,1,2,3"
2225 },2345 },
2226 {2346 {
2347 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2227 "EventCode": "0xB7, 0xBB",2348 "EventCode": "0xB7, 0xBB",
2228 "MSRValue": "0x04003c0200 ",2349 "MSRValue": "0x04003c0200 ",
2229 "Counter": "0,1,2,3",2350 "Counter": "0,1,2,3",
@@ -2236,6 +2357,7 @@ · 6 unmodified lines
2236 "CounterHTOff": "0,1,2,3"2357 "CounterHTOff": "0,1,2,3"
2237 },2358 },
2238 {2359 {
2360 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2239 "EventCode": "0xB7, 0xBB",2361 "EventCode": "0xB7, 0xBB",
2240 "MSRValue": "0x10003c0200 ",2362 "MSRValue": "0x10003c0200 ",
2241 "Counter": "0,1,2,3",2363 "Counter": "0,1,2,3",
@@ -2248,6 +2370,7 @@ · 6 unmodified lines
2248 "CounterHTOff": "0,1,2,3"2370 "CounterHTOff": "0,1,2,3"
2249 },2371 },
2250 {2372 {
2373 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2251 "EventCode": "0xB7, 0xBB",2374 "EventCode": "0xB7, 0xBB",
2252 "MSRValue": "0x3f803c0200 ",2375 "MSRValue": "0x3f803c0200 ",
2253 "Counter": "0,1,2,3",2376 "Counter": "0,1,2,3",
@@ -2260,6 +2383,7 @@ · 6 unmodified lines
2260 "CounterHTOff": "0,1,2,3"2383 "CounterHTOff": "0,1,2,3"
2261 },2384 },
2262 {2385 {
2386 "PublicDescription": "Counts any other requests that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2263 "EventCode": "0xB7, 0xBB",2387 "EventCode": "0xB7, 0xBB",
2264 "MSRValue": "0x0000018000 ",2388 "MSRValue": "0x0000018000 ",
2265 "Counter": "0,1,2,3",2389 "Counter": "0,1,2,3",
@@ -2272,6 +2396,7 @@ · 6 unmodified lines
2272 "CounterHTOff": "0,1,2,3"2396 "CounterHTOff": "0,1,2,3"
2273 },2397 },
2274 {2398 {
2399 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2275 "EventCode": "0xB7, 0xBB",2400 "EventCode": "0xB7, 0xBB",
2276 "MSRValue": "0x0080028000 ",2401 "MSRValue": "0x0080028000 ",
2277 "Counter": "0,1,2,3",2402 "Counter": "0,1,2,3",
@@ -2284,6 +2409,7 @@ · 6 unmodified lines
2284 "CounterHTOff": "0,1,2,3"2409 "CounterHTOff": "0,1,2,3"
2285 },2410 },
2286 {2411 {
2412 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2287 "EventCode": "0xB7, 0xBB",2413 "EventCode": "0xB7, 0xBB",
2288 "MSRValue": "0x0100028000 ",2414 "MSRValue": "0x0100028000 ",
2289 "Counter": "0,1,2,3",2415 "Counter": "0,1,2,3",
@@ -2296,6 +2422,7 @@ · 6 unmodified lines
2296 "CounterHTOff": "0,1,2,3"2422 "CounterHTOff": "0,1,2,3"
2297 },2423 },
2298 {2424 {
2425 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2299 "EventCode": "0xB7, 0xBB",2426 "EventCode": "0xB7, 0xBB",
2300 "MSRValue": "0x0200028000 ",2427 "MSRValue": "0x0200028000 ",
2301 "Counter": "0,1,2,3",2428 "Counter": "0,1,2,3",
@@ -2308,6 +2435,7 @@ · 6 unmodified lines
2308 "CounterHTOff": "0,1,2,3"2435 "CounterHTOff": "0,1,2,3"
2309 },2436 },
2310 {2437 {
2438 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2311 "EventCode": "0xB7, 0xBB",2439 "EventCode": "0xB7, 0xBB",
2312 "MSRValue": "0x0400028000 ",2440 "MSRValue": "0x0400028000 ",
2313 "Counter": "0,1,2,3",2441 "Counter": "0,1,2,3",
@@ -2320,6 +2448,7 @@ · 6 unmodified lines
2320 "CounterHTOff": "0,1,2,3"2448 "CounterHTOff": "0,1,2,3"
2321 },2449 },
2322 {2450 {
2451 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2323 "EventCode": "0xB7, 0xBB",2452 "EventCode": "0xB7, 0xBB",
2324 "MSRValue": "0x1000028000 ",2453 "MSRValue": "0x1000028000 ",
2325 "Counter": "0,1,2,3",2454 "Counter": "0,1,2,3",
@@ -2332,6 +2461,7 @@ · 6 unmodified lines
2332 "CounterHTOff": "0,1,2,3"2461 "CounterHTOff": "0,1,2,3"
2333 },2462 },
2334 {2463 {
2464 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2335 "EventCode": "0xB7, 0xBB",2465 "EventCode": "0xB7, 0xBB",
2336 "MSRValue": "0x3f80028000 ",2466 "MSRValue": "0x3f80028000 ",
2337 "Counter": "0,1,2,3",2467 "Counter": "0,1,2,3",
@@ -2344,6 +2474,7 @@ · 6 unmodified lines
2344 "CounterHTOff": "0,1,2,3"2474 "CounterHTOff": "0,1,2,3"
2345 },2475 },
2346 {2476 {
2477 "PublicDescription": "Counts any other requests that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2347 "EventCode": "0xB7, 0xBB",2478 "EventCode": "0xB7, 0xBB",
2348 "MSRValue": "0x00803c8000 ",2479 "MSRValue": "0x00803c8000 ",
2349 "Counter": "0,1,2,3",2480 "Counter": "0,1,2,3",
@@ -2356,6 +2487,7 @@ · 6 unmodified lines
2356 "CounterHTOff": "0,1,2,3"2487 "CounterHTOff": "0,1,2,3"
2357 },2488 },
2358 {2489 {
2490 "PublicDescription": "Counts any other requests that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2359 "EventCode": "0xB7, 0xBB",2491 "EventCode": "0xB7, 0xBB",
2360 "MSRValue": "0x01003c8000 ",2492 "MSRValue": "0x01003c8000 ",
2361 "Counter": "0,1,2,3",2493 "Counter": "0,1,2,3",
@@ -2368,6 +2500,7 @@ · 6 unmodified lines
2368 "CounterHTOff": "0,1,2,3"2500 "CounterHTOff": "0,1,2,3"
2369 },2501 },
2370 {2502 {
2503 "PublicDescription": "Counts any other requests that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2371 "EventCode": "0xB7, 0xBB",2504 "EventCode": "0xB7, 0xBB",
2372 "MSRValue": "0x02003c8000 ",2505 "MSRValue": "0x02003c8000 ",
2373 "Counter": "0,1,2,3",2506 "Counter": "0,1,2,3",
@@ -2380,6 +2513,7 @@ · 6 unmodified lines
2380 "CounterHTOff": "0,1,2,3"2513 "CounterHTOff": "0,1,2,3"
2381 },2514 },
2382 {2515 {
2516 "PublicDescription": "Counts any other requests that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2383 "EventCode": "0xB7, 0xBB",2517 "EventCode": "0xB7, 0xBB",
2384 "MSRValue": "0x04003c8000 ",2518 "MSRValue": "0x04003c8000 ",
2385 "Counter": "0,1,2,3",2519 "Counter": "0,1,2,3",
@@ -2392,6 +2526,7 @@ · 6 unmodified lines
2392 "CounterHTOff": "0,1,2,3"2526 "CounterHTOff": "0,1,2,3"
2393 },2527 },
2394 {2528 {
2529 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2395 "EventCode": "0xB7, 0xBB",2530 "EventCode": "0xB7, 0xBB",
2396 "MSRValue": "0x10003c8000 ",2531 "MSRValue": "0x10003c8000 ",
2397 "Counter": "0,1,2,3",2532 "Counter": "0,1,2,3",
@@ -2404,6 +2539,7 @@ · 6 unmodified lines
2404 "CounterHTOff": "0,1,2,3"2539 "CounterHTOff": "0,1,2,3"
2405 },2540 },
2406 {2541 {
2542 "PublicDescription": "Counts any other requests that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2407 "EventCode": "0xB7, 0xBB",2543 "EventCode": "0xB7, 0xBB",
2408 "MSRValue": "0x3f803c8000 ",2544 "MSRValue": "0x3f803c8000 ",
2409 "Counter": "0,1,2,3",2545 "Counter": "0,1,2,3",
@@ -2416,6 +2552,7 @@ · 6 unmodified lines
2416 "CounterHTOff": "0,1,2,3"2552 "CounterHTOff": "0,1,2,3"
2417 },2553 },
2418 {2554 {
2555 "PublicDescription": "Counts all prefetch data reads that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2419 "EventCode": "0xB7, 0xBB",2556 "EventCode": "0xB7, 0xBB",
2420 "MSRValue": "0x0000010090 ",2557 "MSRValue": "0x0000010090 ",
2421 "Counter": "0,1,2,3",2558 "Counter": "0,1,2,3",
@@ -2428,6 +2565,7 @@ · 6 unmodified lines
2428 "CounterHTOff": "0,1,2,3"2565 "CounterHTOff": "0,1,2,3"
2429 },2566 },
2430 {2567 {
2568 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2431 "EventCode": "0xB7, 0xBB",2569 "EventCode": "0xB7, 0xBB",
2432 "MSRValue": "0x0080020090 ",2570 "MSRValue": "0x0080020090 ",
2433 "Counter": "0,1,2,3",2571 "Counter": "0,1,2,3",
@@ -2440,6 +2578,7 @@ · 6 unmodified lines
2440 "CounterHTOff": "0,1,2,3"2578 "CounterHTOff": "0,1,2,3"
2441 },2579 },
2442 {2580 {
2581 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2443 "EventCode": "0xB7, 0xBB",2582 "EventCode": "0xB7, 0xBB",
2444 "MSRValue": "0x0100020090 ",2583 "MSRValue": "0x0100020090 ",
2445 "Counter": "0,1,2,3",2584 "Counter": "0,1,2,3",
@@ -2452,6 +2591,7 @@ · 6 unmodified lines
2452 "CounterHTOff": "0,1,2,3"2591 "CounterHTOff": "0,1,2,3"
2453 },2592 },
2454 {2593 {
2594 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2455 "EventCode": "0xB7, 0xBB",2595 "EventCode": "0xB7, 0xBB",
2456 "MSRValue": "0x0200020090 ",2596 "MSRValue": "0x0200020090 ",
2457 "Counter": "0,1,2,3",2597 "Counter": "0,1,2,3",
@@ -2464,6 +2604,7 @@ · 6 unmodified lines
2464 "CounterHTOff": "0,1,2,3"2604 "CounterHTOff": "0,1,2,3"
2465 },2605 },
2466 {2606 {
2607 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2467 "EventCode": "0xB7, 0xBB",2608 "EventCode": "0xB7, 0xBB",
2468 "MSRValue": "0x0400020090 ",2609 "MSRValue": "0x0400020090 ",
2469 "Counter": "0,1,2,3",2610 "Counter": "0,1,2,3",
@@ -2476,6 +2617,7 @@ · 6 unmodified lines
2476 "CounterHTOff": "0,1,2,3"2617 "CounterHTOff": "0,1,2,3"
2477 },2618 },
2478 {2619 {
2620 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2479 "EventCode": "0xB7, 0xBB",2621 "EventCode": "0xB7, 0xBB",
2480 "MSRValue": "0x1000020090 ",2622 "MSRValue": "0x1000020090 ",
2481 "Counter": "0,1,2,3",2623 "Counter": "0,1,2,3",
@@ -2488,6 +2630,7 @@ · 6 unmodified lines
2488 "CounterHTOff": "0,1,2,3"2630 "CounterHTOff": "0,1,2,3"
2489 },2631 },
2490 {2632 {
2633 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2491 "EventCode": "0xB7, 0xBB",2634 "EventCode": "0xB7, 0xBB",
2492 "MSRValue": "0x3f80020090 ",2635 "MSRValue": "0x3f80020090 ",
2493 "Counter": "0,1,2,3",2636 "Counter": "0,1,2,3",
@@ -2500,6 +2643,7 @@ · 6 unmodified lines
2500 "CounterHTOff": "0,1,2,3"2643 "CounterHTOff": "0,1,2,3"
2501 },2644 },
2502 {2645 {
2646 "PublicDescription": "Counts all prefetch data reads that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2503 "EventCode": "0xB7, 0xBB",2647 "EventCode": "0xB7, 0xBB",
2504 "MSRValue": "0x00803c0090 ",2648 "MSRValue": "0x00803c0090 ",
2505 "Counter": "0,1,2,3",2649 "Counter": "0,1,2,3",
@@ -2512,6 +2656,7 @@ · 6 unmodified lines
2512 "CounterHTOff": "0,1,2,3"2656 "CounterHTOff": "0,1,2,3"
2513 },2657 },
2514 {2658 {
2659 "PublicDescription": "Counts all prefetch data reads that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2515 "EventCode": "0xB7, 0xBB",2660 "EventCode": "0xB7, 0xBB",
2516 "MSRValue": "0x01003c0090 ",2661 "MSRValue": "0x01003c0090 ",
2517 "Counter": "0,1,2,3",2662 "Counter": "0,1,2,3",
@@ -2524,6 +2669,7 @@ · 6 unmodified lines
2524 "CounterHTOff": "0,1,2,3"2669 "CounterHTOff": "0,1,2,3"
2525 },2670 },
2526 {2671 {
2672 "PublicDescription": "Counts all prefetch data reads that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2527 "EventCode": "0xB7, 0xBB",2673 "EventCode": "0xB7, 0xBB",
2528 "MSRValue": "0x02003c0090 ",2674 "MSRValue": "0x02003c0090 ",
2529 "Counter": "0,1,2,3",2675 "Counter": "0,1,2,3",
@@ -2536,6 +2682,7 @@ · 6 unmodified lines
2536 "CounterHTOff": "0,1,2,3"2682 "CounterHTOff": "0,1,2,3"
2537 },2683 },
2538 {2684 {
2685 "PublicDescription": "Counts all prefetch data reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2539 "EventCode": "0xB7, 0xBB",2686 "EventCode": "0xB7, 0xBB",
2540 "MSRValue": "0x04003c0090 ",2687 "MSRValue": "0x04003c0090 ",
2541 "Counter": "0,1,2,3",2688 "Counter": "0,1,2,3",
@@ -2548,6 +2695,7 @@ · 6 unmodified lines
2548 "CounterHTOff": "0,1,2,3"2695 "CounterHTOff": "0,1,2,3"
2549 },2696 },
2550 {2697 {
2698 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2551 "EventCode": "0xB7, 0xBB",2699 "EventCode": "0xB7, 0xBB",
2552 "MSRValue": "0x10003c0090 ",2700 "MSRValue": "0x10003c0090 ",
2553 "Counter": "0,1,2,3",2701 "Counter": "0,1,2,3",
@@ -2560,6 +2708,7 @@ · 6 unmodified lines
2560 "CounterHTOff": "0,1,2,3"2708 "CounterHTOff": "0,1,2,3"
2561 },2709 },
2562 {2710 {
2711 "PublicDescription": "Counts all prefetch data reads that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2563 "EventCode": "0xB7, 0xBB",2712 "EventCode": "0xB7, 0xBB",
2564 "MSRValue": "0x3f803c0090 ",2713 "MSRValue": "0x3f803c0090 ",
2565 "Counter": "0,1,2,3",2714 "Counter": "0,1,2,3",
@@ -2572,6 +2721,7 @@ · 6 unmodified lines
2572 "CounterHTOff": "0,1,2,3"2721 "CounterHTOff": "0,1,2,3"
2573 },2722 },
2574 {2723 {
2724 "PublicDescription": "Counts prefetch RFOs that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2575 "EventCode": "0xB7, 0xBB",2725 "EventCode": "0xB7, 0xBB",
2576 "MSRValue": "0x0000010120 ",2726 "MSRValue": "0x0000010120 ",
2577 "Counter": "0,1,2,3",2727 "Counter": "0,1,2,3",
@@ -2584,6 +2734,7 @@ · 6 unmodified lines
2584 "CounterHTOff": "0,1,2,3"2734 "CounterHTOff": "0,1,2,3"
2585 },2735 },
2586 {2736 {
2737 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2587 "EventCode": "0xB7, 0xBB",2738 "EventCode": "0xB7, 0xBB",
2588 "MSRValue": "0x0080020120 ",2739 "MSRValue": "0x0080020120 ",
2589 "Counter": "0,1,2,3",2740 "Counter": "0,1,2,3",
@@ -2596,6 +2747,7 @@ · 6 unmodified lines
2596 "CounterHTOff": "0,1,2,3"2747 "CounterHTOff": "0,1,2,3"
2597 },2748 },
2598 {2749 {
2750 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2599 "EventCode": "0xB7, 0xBB",2751 "EventCode": "0xB7, 0xBB",
2600 "MSRValue": "0x0100020120 ",2752 "MSRValue": "0x0100020120 ",
2601 "Counter": "0,1,2,3",2753 "Counter": "0,1,2,3",
@@ -2608,6 +2760,7 @@ · 6 unmodified lines
2608 "CounterHTOff": "0,1,2,3"2760 "CounterHTOff": "0,1,2,3"
2609 },2761 },
2610 {2762 {
2763 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2611 "EventCode": "0xB7, 0xBB",2764 "EventCode": "0xB7, 0xBB",
2612 "MSRValue": "0x0200020120 ",2765 "MSRValue": "0x0200020120 ",
2613 "Counter": "0,1,2,3",2766 "Counter": "0,1,2,3",
@@ -2620,6 +2773,7 @@ · 6 unmodified lines
2620 "CounterHTOff": "0,1,2,3"2773 "CounterHTOff": "0,1,2,3"
2621 },2774 },
2622 {2775 {
2776 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2623 "EventCode": "0xB7, 0xBB",2777 "EventCode": "0xB7, 0xBB",
2624 "MSRValue": "0x0400020120 ",2778 "MSRValue": "0x0400020120 ",
2625 "Counter": "0,1,2,3",2779 "Counter": "0,1,2,3",
@@ -2632,6 +2786,7 @@ · 6 unmodified lines
2632 "CounterHTOff": "0,1,2,3"2786 "CounterHTOff": "0,1,2,3"
2633 },2787 },
2634 {2788 {
2789 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2635 "EventCode": "0xB7, 0xBB",2790 "EventCode": "0xB7, 0xBB",
2636 "MSRValue": "0x1000020120 ",2791 "MSRValue": "0x1000020120 ",
2637 "Counter": "0,1,2,3",2792 "Counter": "0,1,2,3",
@@ -2644,6 +2799,7 @@ · 6 unmodified lines
2644 "CounterHTOff": "0,1,2,3"2799 "CounterHTOff": "0,1,2,3"
2645 },2800 },
2646 {2801 {
2802 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2647 "EventCode": "0xB7, 0xBB",2803 "EventCode": "0xB7, 0xBB",
2648 "MSRValue": "0x3f80020120 ",2804 "MSRValue": "0x3f80020120 ",
2649 "Counter": "0,1,2,3",2805 "Counter": "0,1,2,3",
@@ -2656,6 +2812,7 @@ · 6 unmodified lines
2656 "CounterHTOff": "0,1,2,3"2812 "CounterHTOff": "0,1,2,3"
2657 },2813 },
2658 {2814 {
2815 "PublicDescription": "Counts prefetch RFOs that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2659 "EventCode": "0xB7, 0xBB",2816 "EventCode": "0xB7, 0xBB",
2660 "MSRValue": "0x00803c0120 ",2817 "MSRValue": "0x00803c0120 ",
2661 "Counter": "0,1,2,3",2818 "Counter": "0,1,2,3",
@@ -2668,6 +2825,7 @@ · 6 unmodified lines
2668 "CounterHTOff": "0,1,2,3"2825 "CounterHTOff": "0,1,2,3"
2669 },2826 },
2670 {2827 {
2828 "PublicDescription": "Counts prefetch RFOs that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2671 "EventCode": "0xB7, 0xBB",2829 "EventCode": "0xB7, 0xBB",
2672 "MSRValue": "0x01003c0120 ",2830 "MSRValue": "0x01003c0120 ",
2673 "Counter": "0,1,2,3",2831 "Counter": "0,1,2,3",
@@ -2680,6 +2838,7 @@ · 6 unmodified lines
2680 "CounterHTOff": "0,1,2,3"2838 "CounterHTOff": "0,1,2,3"
2681 },2839 },
2682 {2840 {
2841 "PublicDescription": "Counts prefetch RFOs that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2683 "EventCode": "0xB7, 0xBB",2842 "EventCode": "0xB7, 0xBB",
2684 "MSRValue": "0x02003c0120 ",2843 "MSRValue": "0x02003c0120 ",
2685 "Counter": "0,1,2,3",2844 "Counter": "0,1,2,3",
@@ -2692,6 +2851,7 @@ · 6 unmodified lines
2692 "CounterHTOff": "0,1,2,3"2851 "CounterHTOff": "0,1,2,3"
2693 },2852 },
2694 {2853 {
2854 "PublicDescription": "Counts prefetch RFOs that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2695 "EventCode": "0xB7, 0xBB",2855 "EventCode": "0xB7, 0xBB",
2696 "MSRValue": "0x04003c0120 ",2856 "MSRValue": "0x04003c0120 ",
2697 "Counter": "0,1,2,3",2857 "Counter": "0,1,2,3",
@@ -2704,6 +2864,7 @@ · 6 unmodified lines
2704 "CounterHTOff": "0,1,2,3"2864 "CounterHTOff": "0,1,2,3"
2705 },2865 },
2706 {2866 {
2867 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2707 "EventCode": "0xB7, 0xBB",2868 "EventCode": "0xB7, 0xBB",
2708 "MSRValue": "0x10003c0120 ",2869 "MSRValue": "0x10003c0120 ",
2709 "Counter": "0,1,2,3",2870 "Counter": "0,1,2,3",
@@ -2716,6 +2877,7 @@ · 6 unmodified lines
2716 "CounterHTOff": "0,1,2,3"2877 "CounterHTOff": "0,1,2,3"
2717 },2878 },
2718 {2879 {
2880 "PublicDescription": "Counts prefetch RFOs that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2719 "EventCode": "0xB7, 0xBB",2881 "EventCode": "0xB7, 0xBB",
2720 "MSRValue": "0x3f803c0120 ",2882 "MSRValue": "0x3f803c0120 ",
2721 "Counter": "0,1,2,3",2883 "Counter": "0,1,2,3",
@@ -2728,6 +2890,7 @@ · 6 unmodified lines
2728 "CounterHTOff": "0,1,2,3"2890 "CounterHTOff": "0,1,2,3"
2729 },2891 },
2730 {2892 {
2893 "PublicDescription": "Counts all prefetch code reads that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2731 "EventCode": "0xB7, 0xBB",2894 "EventCode": "0xB7, 0xBB",
2732 "MSRValue": "0x0000010240 ",2895 "MSRValue": "0x0000010240 ",
2733 "Counter": "0,1,2,3",2896 "Counter": "0,1,2,3",
@@ -2740,6 +2903,7 @@ · 6 unmodified lines
2740 "CounterHTOff": "0,1,2,3"2903 "CounterHTOff": "0,1,2,3"
2741 },2904 },
2742 {2905 {
2906 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2743 "EventCode": "0xB7, 0xBB",2907 "EventCode": "0xB7, 0xBB",
2744 "MSRValue": "0x0080020240 ",2908 "MSRValue": "0x0080020240 ",
2745 "Counter": "0,1,2,3",2909 "Counter": "0,1,2,3",
@@ -2752,6 +2916,7 @@ · 6 unmodified lines
2752 "CounterHTOff": "0,1,2,3"2916 "CounterHTOff": "0,1,2,3"
2753 },2917 },
2754 {2918 {
2919 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2755 "EventCode": "0xB7, 0xBB",2920 "EventCode": "0xB7, 0xBB",
2756 "MSRValue": "0x0100020240 ",2921 "MSRValue": "0x0100020240 ",
2757 "Counter": "0,1,2,3",2922 "Counter": "0,1,2,3",
@@ -2764,6 +2929,7 @@ · 6 unmodified lines
2764 "CounterHTOff": "0,1,2,3"2929 "CounterHTOff": "0,1,2,3"
2765 },2930 },
2766 {2931 {
2932 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2767 "EventCode": "0xB7, 0xBB",2933 "EventCode": "0xB7, 0xBB",
2768 "MSRValue": "0x0200020240 ",2934 "MSRValue": "0x0200020240 ",
2769 "Counter": "0,1,2,3",2935 "Counter": "0,1,2,3",
@@ -2776,6 +2942,7 @@ · 6 unmodified lines
2776 "CounterHTOff": "0,1,2,3"2942 "CounterHTOff": "0,1,2,3"
2777 },2943 },
2778 {2944 {
2945 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2779 "EventCode": "0xB7, 0xBB",2946 "EventCode": "0xB7, 0xBB",
2780 "MSRValue": "0x0400020240 ",2947 "MSRValue": "0x0400020240 ",
2781 "Counter": "0,1,2,3",2948 "Counter": "0,1,2,3",
@@ -2788,6 +2955,7 @@ · 6 unmodified lines
2788 "CounterHTOff": "0,1,2,3"2955 "CounterHTOff": "0,1,2,3"
2789 },2956 },
2790 {2957 {
2958 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2791 "EventCode": "0xB7, 0xBB",2959 "EventCode": "0xB7, 0xBB",
2792 "MSRValue": "0x1000020240 ",2960 "MSRValue": "0x1000020240 ",
2793 "Counter": "0,1,2,3",2961 "Counter": "0,1,2,3",
@@ -2800,6 +2968,7 @@ · 6 unmodified lines
2800 "CounterHTOff": "0,1,2,3"2968 "CounterHTOff": "0,1,2,3"
2801 },2969 },
2802 {2970 {
2971 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2803 "EventCode": "0xB7, 0xBB",2972 "EventCode": "0xB7, 0xBB",
2804 "MSRValue": "0x3f80020240 ",2973 "MSRValue": "0x3f80020240 ",
2805 "Counter": "0,1,2,3",2974 "Counter": "0,1,2,3",
@@ -2812,6 +2981,7 @@ · 6 unmodified lines
2812 "CounterHTOff": "0,1,2,3"2981 "CounterHTOff": "0,1,2,3"
2813 },2982 },
2814 {2983 {
2984 "PublicDescription": "Counts all prefetch code reads that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2815 "EventCode": "0xB7, 0xBB",2985 "EventCode": "0xB7, 0xBB",
2816 "MSRValue": "0x00803c0240 ",2986 "MSRValue": "0x00803c0240 ",
2817 "Counter": "0,1,2,3",2987 "Counter": "0,1,2,3",
@@ -2824,6 +2994,7 @@ · 6 unmodified lines
2824 "CounterHTOff": "0,1,2,3"2994 "CounterHTOff": "0,1,2,3"
2825 },2995 },
2826 {2996 {
2997 "PublicDescription": "Counts all prefetch code reads that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2827 "EventCode": "0xB7, 0xBB",2998 "EventCode": "0xB7, 0xBB",
2828 "MSRValue": "0x01003c0240 ",2999 "MSRValue": "0x01003c0240 ",
2829 "Counter": "0,1,2,3",3000 "Counter": "0,1,2,3",
@@ -2836,6 +3007,7 @@ · 6 unmodified lines
2836 "CounterHTOff": "0,1,2,3"3007 "CounterHTOff": "0,1,2,3"
2837 },3008 },
2838 {3009 {
3010 "PublicDescription": "Counts all prefetch code reads that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2839 "EventCode": "0xB7, 0xBB",3011 "EventCode": "0xB7, 0xBB",
2840 "MSRValue": "0x02003c0240 ",3012 "MSRValue": "0x02003c0240 ",
2841 "Counter": "0,1,2,3",3013 "Counter": "0,1,2,3",
@@ -2848,6 +3020,7 @@ · 6 unmodified lines
2848 "CounterHTOff": "0,1,2,3"3020 "CounterHTOff": "0,1,2,3"
2849 },3021 },
2850 {3022 {
3023 "PublicDescription": "Counts all prefetch code reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2851 "EventCode": "0xB7, 0xBB",3024 "EventCode": "0xB7, 0xBB",
2852 "MSRValue": "0x04003c0240 ",3025 "MSRValue": "0x04003c0240 ",
2853 "Counter": "0,1,2,3",3026 "Counter": "0,1,2,3",
@@ -2860,6 +3033,7 @@ · 6 unmodified lines
2860 "CounterHTOff": "0,1,2,3"3033 "CounterHTOff": "0,1,2,3"
2861 },3034 },
2862 {3035 {
3036 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2863 "EventCode": "0xB7, 0xBB",3037 "EventCode": "0xB7, 0xBB",
2864 "MSRValue": "0x10003c0240 ",3038 "MSRValue": "0x10003c0240 ",
2865 "Counter": "0,1,2,3",3039 "Counter": "0,1,2,3",
@@ -2872,6 +3046,7 @@ · 6 unmodified lines
2872 "CounterHTOff": "0,1,2,3"3046 "CounterHTOff": "0,1,2,3"
2873 },3047 },
2874 {3048 {
3049 "PublicDescription": "Counts all prefetch code reads that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2875 "EventCode": "0xB7, 0xBB",3050 "EventCode": "0xB7, 0xBB",
2876 "MSRValue": "0x3f803c0240 ",3051 "MSRValue": "0x3f803c0240 ",
2877 "Counter": "0,1,2,3",3052 "Counter": "0,1,2,3",
@@ -2884,6 +3059,7 @@ · 6 unmodified lines
2884 "CounterHTOff": "0,1,2,3"3059 "CounterHTOff": "0,1,2,3"
2885 },3060 },
2886 {3061 {
3062 "PublicDescription": "Counts all demand & prefetch data reads that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2887 "EventCode": "0xB7, 0xBB",3063 "EventCode": "0xB7, 0xBB",
2888 "MSRValue": "0x0000010091 ",3064 "MSRValue": "0x0000010091 ",
2889 "Counter": "0,1,2,3",3065 "Counter": "0,1,2,3",
@@ -2896,6 +3072,7 @@ · 6 unmodified lines
2896 "CounterHTOff": "0,1,2,3"3072 "CounterHTOff": "0,1,2,3"
2897 },3073 },
2898 {3074 {
3075 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2899 "EventCode": "0xB7, 0xBB",3076 "EventCode": "0xB7, 0xBB",
2900 "MSRValue": "0x0080020091 ",3077 "MSRValue": "0x0080020091 ",
2901 "Counter": "0,1,2,3",3078 "Counter": "0,1,2,3",
@@ -2908,6 +3085,7 @@ · 6 unmodified lines
2908 "CounterHTOff": "0,1,2,3"3085 "CounterHTOff": "0,1,2,3"
2909 },3086 },
2910 {3087 {
3088 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2911 "EventCode": "0xB7, 0xBB",3089 "EventCode": "0xB7, 0xBB",
2912 "MSRValue": "0x0100020091 ",3090 "MSRValue": "0x0100020091 ",
2913 "Counter": "0,1,2,3",3091 "Counter": "0,1,2,3",
@@ -2920,6 +3098,7 @@ · 6 unmodified lines
2920 "CounterHTOff": "0,1,2,3"3098 "CounterHTOff": "0,1,2,3"
2921 },3099 },
2922 {3100 {
3101 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2923 "EventCode": "0xB7, 0xBB",3102 "EventCode": "0xB7, 0xBB",
2924 "MSRValue": "0x0200020091 ",3103 "MSRValue": "0x0200020091 ",
2925 "Counter": "0,1,2,3",3104 "Counter": "0,1,2,3",
@@ -2932,6 +3111,7 @@ · 6 unmodified lines
2932 "CounterHTOff": "0,1,2,3"3111 "CounterHTOff": "0,1,2,3"
2933 },3112 },
2934 {3113 {
3114 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2935 "EventCode": "0xB7, 0xBB",3115 "EventCode": "0xB7, 0xBB",
2936 "MSRValue": "0x0400020091 ",3116 "MSRValue": "0x0400020091 ",
2937 "Counter": "0,1,2,3",3117 "Counter": "0,1,2,3",
@@ -2944,6 +3124,7 @@ · 6 unmodified lines
2944 "CounterHTOff": "0,1,2,3"3124 "CounterHTOff": "0,1,2,3"
2945 },3125 },
2946 {3126 {
3127 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2947 "EventCode": "0xB7, 0xBB",3128 "EventCode": "0xB7, 0xBB",
2948 "MSRValue": "0x1000020091 ",3129 "MSRValue": "0x1000020091 ",
2949 "Counter": "0,1,2,3",3130 "Counter": "0,1,2,3",
@@ -2956,6 +3137,7 @@ · 6 unmodified lines
2956 "CounterHTOff": "0,1,2,3"3137 "CounterHTOff": "0,1,2,3"
2957 },3138 },
2958 {3139 {
3140 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2959 "EventCode": "0xB7, 0xBB",3141 "EventCode": "0xB7, 0xBB",
2960 "MSRValue": "0x3f80020091 ",3142 "MSRValue": "0x3f80020091 ",
2961 "Counter": "0,1,2,3",3143 "Counter": "0,1,2,3",
@@ -2968,6 +3150,7 @@ · 6 unmodified lines
2968 "CounterHTOff": "0,1,2,3"3150 "CounterHTOff": "0,1,2,3"
2969 },3151 },
2970 {3152 {
3153 "PublicDescription": "Counts all demand & prefetch data reads that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2971 "EventCode": "0xB7, 0xBB",3154 "EventCode": "0xB7, 0xBB",
2972 "MSRValue": "0x00803c0091 ",3155 "MSRValue": "0x00803c0091 ",
2973 "Counter": "0,1,2,3",3156 "Counter": "0,1,2,3",
@@ -2980,6 +3163,7 @@ · 6 unmodified lines
2980 "CounterHTOff": "0,1,2,3"3163 "CounterHTOff": "0,1,2,3"
2981 },3164 },
2982 {3165 {
3166 "PublicDescription": "Counts all demand & prefetch data reads that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2983 "EventCode": "0xB7, 0xBB",3167 "EventCode": "0xB7, 0xBB",
2984 "MSRValue": "0x01003c0091 ",3168 "MSRValue": "0x01003c0091 ",
2985 "Counter": "0,1,2,3",3169 "Counter": "0,1,2,3",
@@ -2992,6 +3176,7 @@ · 6 unmodified lines
2992 "CounterHTOff": "0,1,2,3"3176 "CounterHTOff": "0,1,2,3"
2993 },3177 },
2994 {3178 {
3179 "PublicDescription": "Counts all demand & prefetch data reads that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2995 "EventCode": "0xB7, 0xBB",3180 "EventCode": "0xB7, 0xBB",
2996 "MSRValue": "0x02003c0091 ",3181 "MSRValue": "0x02003c0091 ",
2997 "Counter": "0,1,2,3",3182 "Counter": "0,1,2,3",
@@ -3004,6 +3189,7 @@ · 6 unmodified lines
3004 "CounterHTOff": "0,1,2,3"3189 "CounterHTOff": "0,1,2,3"
3005 },3190 },
3006 {3191 {
3192 "PublicDescription": "Counts all demand & prefetch data reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3007 "EventCode": "0xB7, 0xBB",3193 "EventCode": "0xB7, 0xBB",
3008 "MSRValue": "0x04003c0091 ",3194 "MSRValue": "0x04003c0091 ",
3009 "Counter": "0,1,2,3",3195 "Counter": "0,1,2,3",
@@ -3016,6 +3202,7 @@ · 6 unmodified lines
3016 "CounterHTOff": "0,1,2,3"3202 "CounterHTOff": "0,1,2,3"
3017 },3203 },
3018 {3204 {
3205 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3019 "EventCode": "0xB7, 0xBB",3206 "EventCode": "0xB7, 0xBB",
3020 "MSRValue": "0x10003c0091 ",3207 "MSRValue": "0x10003c0091 ",
3021 "Counter": "0,1,2,3",3208 "Counter": "0,1,2,3",
@@ -3028,6 +3215,7 @@ · 6 unmodified lines
3028 "CounterHTOff": "0,1,2,3"3215 "CounterHTOff": "0,1,2,3"
3029 },3216 },
3030 {3217 {
3218 "PublicDescription": "Counts all demand & prefetch data reads that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3031 "EventCode": "0xB7, 0xBB",3219 "EventCode": "0xB7, 0xBB",
3032 "MSRValue": "0x3f803c0091 ",3220 "MSRValue": "0x3f803c0091 ",
3033 "Counter": "0,1,2,3",3221 "Counter": "0,1,2,3",
@@ -3040,6 +3228,7 @@ · 6 unmodified lines
3040 "CounterHTOff": "0,1,2,3"3228 "CounterHTOff": "0,1,2,3"
3041 },3229 },
3042 {3230 {
3231 "PublicDescription": "Counts all demand & prefetch RFOs that have any response type. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3043 "EventCode": "0xB7, 0xBB",3232 "EventCode": "0xB7, 0xBB",
3044 "MSRValue": "0x0000010122 ",3233 "MSRValue": "0x0000010122 ",
3045 "Counter": "0,1,2,3",3234 "Counter": "0,1,2,3",
@@ -3052,6 +3241,7 @@ · 6 unmodified lines
3052 "CounterHTOff": "0,1,2,3"3241 "CounterHTOff": "0,1,2,3"
3053 },3242 },
3054 {3243 {
3244 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3055 "EventCode": "0xB7, 0xBB",3245 "EventCode": "0xB7, 0xBB",
3056 "MSRValue": "0x0080020122 ",3246 "MSRValue": "0x0080020122 ",
3057 "Counter": "0,1,2,3",3247 "Counter": "0,1,2,3",
@@ -3064,6 +3254,7 @@ · 6 unmodified lines
3064 "CounterHTOff": "0,1,2,3"3254 "CounterHTOff": "0,1,2,3"
3065 },3255 },
3066 {3256 {
3257 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3067 "EventCode": "0xB7, 0xBB",3258 "EventCode": "0xB7, 0xBB",
3068 "MSRValue": "0x0100020122 ",3259 "MSRValue": "0x0100020122 ",
3069 "Counter": "0,1,2,3",3260 "Counter": "0,1,2,3",
@@ -3076,6 +3267,7 @@ · 6 unmodified lines
3076 "CounterHTOff": "0,1,2,3"3267 "CounterHTOff": "0,1,2,3"
3077 },3268 },
3078 {3269 {
3270 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3079 "EventCode": "0xB7, 0xBB",3271 "EventCode": "0xB7, 0xBB",
3080 "MSRValue": "0x0200020122 ",3272 "MSRValue": "0x0200020122 ",
3081 "Counter": "0,1,2,3",3273 "Counter": "0,1,2,3",
@@ -3088,6 +3280,7 @@ · 6 unmodified lines
3088 "CounterHTOff": "0,1,2,3"3280 "CounterHTOff": "0,1,2,3"
3089 },3281 },
3090 {3282 {
3283 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3091 "EventCode": "0xB7, 0xBB",3284 "EventCode": "0xB7, 0xBB",
3092 "MSRValue": "0x0400020122 ",3285 "MSRValue": "0x0400020122 ",
3093 "Counter": "0,1,2,3",3286 "Counter": "0,1,2,3",
@@ -3100,6 +3293,7 @@ · 6 unmodified lines
3100 "CounterHTOff": "0,1,2,3"3293 "CounterHTOff": "0,1,2,3"
3101 },3294 },
3102 {3295 {
3296 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3103 "EventCode": "0xB7, 0xBB",3297 "EventCode": "0xB7, 0xBB",
3104 "MSRValue": "0x1000020122 ",3298 "MSRValue": "0x1000020122 ",
3105 "Counter": "0,1,2,3",3299 "Counter": "0,1,2,3",
@@ -3112,6 +3306,7 @@ · 6 unmodified lines
3112 "CounterHTOff": "0,1,2,3"3306 "CounterHTOff": "0,1,2,3"
3113 },3307 },
3114 {3308 {
3309 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3115 "EventCode": "0xB7, 0xBB",3310 "EventCode": "0xB7, 0xBB",
3116 "MSRValue": "0x3f80020122 ",3311 "MSRValue": "0x3f80020122 ",
3117 "Counter": "0,1,2,3",3312 "Counter": "0,1,2,3",
@@ -3124,6 +3319,7 @@ · 6 unmodified lines
3124 "CounterHTOff": "0,1,2,3"3319 "CounterHTOff": "0,1,2,3"
3125 },3320 },
3126 {3321 {
3322 "PublicDescription": "Counts all demand & prefetch RFOs that hit in the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3127 "EventCode": "0xB7, 0xBB",3323 "EventCode": "0xB7, 0xBB",
3128 "MSRValue": "0x00803c0122 ",3324 "MSRValue": "0x00803c0122 ",
3129 "Counter": "0,1,2,3",3325 "Counter": "0,1,2,3",
@@ -3136,6 +3332,7 @@ · 6 unmodified lines
3136 "CounterHTOff": "0,1,2,3"3332 "CounterHTOff": "0,1,2,3"
3137 },3333 },
3138 {3334 {
3335 "PublicDescription": "Counts all demand & prefetch RFOs that hit in the L3 and sibling core snoops are not needed as either the core-valid bit is not set or the shared line is present in multiple cores. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3139 "EventCode": "0xB7, 0xBB",3336 "EventCode": "0xB7, 0xBB",
3140 "MSRValue": "0x01003c0122 ",3337 "MSRValue": "0x01003c0122 ",
3141 "Counter": "0,1,2,3",3338 "Counter": "0,1,2,3",
@@ -3148,6 +3345,7 @@ · 6 unmodified lines
3148 "CounterHTOff": "0,1,2,3"3345 "CounterHTOff": "0,1,2,3"
3149 },3346 },
3150 {3347 {
3348 "PublicDescription": "Counts all demand & prefetch RFOs that hit in the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3151 "EventCode": "0xB7, 0xBB",3349 "EventCode": "0xB7, 0xBB",
3152 "MSRValue": "0x02003c0122 ",3350 "MSRValue": "0x02003c0122 ",
3153 "Counter": "0,1,2,3",3351 "Counter": "0,1,2,3",
@@ -3160,6 +3358,7 @@ · 6 unmodified lines
3160 "CounterHTOff": "0,1,2,3"3358 "CounterHTOff": "0,1,2,3"
3161 },3359 },
3162 {3360 {
3361 "PublicDescription": "Counts all demand & prefetch RFOs that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3163 "EventCode": "0xB7, 0xBB",3362 "EventCode": "0xB7, 0xBB",
3164 "MSRValue": "0x04003c0122 ",3363 "MSRValue": "0x04003c0122 ",
3165 "Counter": "0,1,2,3",3364 "Counter": "0,1,2,3",
@@ -3172,6 +3371,7 @@ · 6 unmodified lines
3172 "CounterHTOff": "0,1,2,3"3371 "CounterHTOff": "0,1,2,3"
3173 },3372 },
3174 {3373 {
3374 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3175 "EventCode": "0xB7, 0xBB",3375 "EventCode": "0xB7, 0xBB",
3176 "MSRValue": "0x10003c0122 ",3376 "MSRValue": "0x10003c0122 ",
3177 "Counter": "0,1,2,3",3377 "Counter": "0,1,2,3",
@@ -3184,6 +3384,7 @@ · 6 unmodified lines
3184 "CounterHTOff": "0,1,2,3"3384 "CounterHTOff": "0,1,2,3"
3185 },3385 },
3186 {3386 {
3387 "PublicDescription": "Counts all demand & prefetch RFOs that hit in the L3. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
3187 "EventCode": "0xB7, 0xBB",3388 "EventCode": "0xB7, 0xBB",
3188 "MSRValue": "0x3f803c0122 ",3389 "MSRValue": "0x3f803c0122 ",
3189 "Counter": "0,1,2,3",3390 "Counter": "0,1,2,3",
tools/perf/pmu-events/arch/x86/broadwell/floating-point.json+51−57
@@ -1,6 +1,6 @@
1[1[
2 {2 {
3 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of transitions from AVX-256 to legacy SSE when penalty is applicable.",3 "PublicDescription": "This event counts the number of transitions from AVX-256 to legacy SSE when penalty is applicable.",
4 "EventCode": "0xC1",4 "EventCode": "0xC1",
5 "Counter": "0,1,2,3",5 "Counter": "0,1,2,3",
6 "UMask": "0x8",6 "UMask": "0x8",
@@ -11,7 +11,7 @@ · 4 unmodified lines
11 "CounterHTOff": "0,1,2,3,4,5,6,7"11 "CounterHTOff": "0,1,2,3,4,5,6,7"
12 },12 },
13 {13 {
14 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of transitions from legacy SSE to AVX-256 when penalty is applicable.",14 "PublicDescription": "This event counts the number of transitions from legacy SSE to AVX-256 when penalty is applicable.",
15 "EventCode": "0xC1",15 "EventCode": "0xC1",
16 "Counter": "0,1,2,3",16 "Counter": "0,1,2,3",
17 "UMask": "0x10",17 "UMask": "0x10",
@@ -22,7 +22,6 @@ · 4 unmodified lines
22 "CounterHTOff": "0,1,2,3,4,5,6,7"22 "CounterHTOff": "0,1,2,3,4,5,6,7"
23 },23 },
24 {24 {
25 "PEBS": "1",
26 "EventCode": "0xC7",25 "EventCode": "0xC7",
27 "Counter": "0,1,2,3",26 "Counter": "0,1,2,3",
28 "UMask": "0x1",27 "UMask": "0x1",
@@ -32,7 +31,6 @@ · 3 unmodified lines
32 "CounterHTOff": "0,1,2,3"31 "CounterHTOff": "0,1,2,3"
33 },32 },
34 {33 {
35 "PEBS": "1",
36 "EventCode": "0xC7",34 "EventCode": "0xC7",
37 "Counter": "0,1,2,3",35 "Counter": "0,1,2,3",
38 "UMask": "0x2",36 "UMask": "0x2",
@@ -42,7 +40,15 @@ · 3 unmodified lines
42 "CounterHTOff": "0,1,2,3"40 "CounterHTOff": "0,1,2,3"
43 },41 },
44 {42 {
45 "PEBS": "1",43 "EventCode": "0xC7",
44 "Counter": "0,1,2,3",
45 "UMask": "0x3",
46 "EventName": "FP_ARITH_INST_RETIRED.SCALAR",
47 "SampleAfterValue": "2000003",
48 "BriefDescription": "Number of SSE/AVX computational scalar floating-point instructions retired. Applies to SSE* and AVX* scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
49 "CounterHTOff": "0,1,2,3"
50 },
51 {
46 "EventCode": "0xC7",52 "EventCode": "0xC7",
47 "Counter": "0,1,2,3",53 "Counter": "0,1,2,3",
48 "UMask": "0x4",54 "UMask": "0x4",
@@ -52,7 +58,6 @@ · 3 unmodified lines
52 "CounterHTOff": "0,1,2,3"58 "CounterHTOff": "0,1,2,3"
53 },59 },
54 {60 {
55 "PEBS": "1",
56 "EventCode": "0xC7",61 "EventCode": "0xC7",
57 "Counter": "0,1,2,3",62 "Counter": "0,1,2,3",
58 "UMask": "0x8",63 "UMask": "0x8",
@@ -62,7 +67,6 @@ · 3 unmodified lines
62 "CounterHTOff": "0,1,2,3"67 "CounterHTOff": "0,1,2,3"
63 },68 },
64 {69 {
65 "PEBS": "1",
66 "EventCode": "0xC7",70 "EventCode": "0xC7",
67 "Counter": "0,1,2,3",71 "Counter": "0,1,2,3",
68 "UMask": "0x10",72 "UMask": "0x10",
@@ -72,7 +76,43 @@ · 3 unmodified lines
72 "CounterHTOff": "0,1,2,3"76 "CounterHTOff": "0,1,2,3"
73 },77 },
74 {78 {
75 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of x87 floating point (FP) micro-code assist (numeric overflow/underflow, inexact result) when the output value (destination register) is invalid.",79 "EventCode": "0xC7",
80 "Counter": "0,1,2,3",
81 "UMask": "0x15",
82 "EventName": "FP_ARITH_INST_RETIRED.DOUBLE",
83 "SampleAfterValue": "2000006",
84 "BriefDescription": "Number of SSE/AVX computational double precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
85 "CounterHTOff": "0,1,2,3"
86 },
87 {
88 "EventCode": "0xc7",
89 "Counter": "0,1,2,3",
90 "UMask": "0x20",
91 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE",
92 "SampleAfterValue": "2000003",
93 "BriefDescription": "Number of SSE/AVX computational 256-bit packed single precision floating-point instructions retired. Each count represents 8 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
94 "CounterHTOff": "0,1,2,3"
95 },
96 {
97 "EventCode": "0xC7",
98 "Counter": "0,1,2,3",
99 "UMask": "0x2a",
100 "EventName": "FP_ARITH_INST_RETIRED.SINGLE",
101 "SampleAfterValue": "2000005",
102 "BriefDescription": "Number of SSE/AVX computational single precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
103 "CounterHTOff": "0,1,2,3"
104 },
105 {
106 "EventCode": "0xC7",
107 "Counter": "0,1,2,3",
108 "UMask": "0x3c",
109 "EventName": "FP_ARITH_INST_RETIRED.PACKED",
110 "SampleAfterValue": "2000004",
111 "BriefDescription": "Number of SSE/AVX computational packed floating-point instructions retired. Applies to SSE* and AVX*, packed, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
112 "CounterHTOff": "0,1,2,3"
113 },
114 {
115 "PublicDescription": "This event counts the number of x87 floating point (FP) micro-code assist (numeric overflow/underflow, inexact result) when the output value (destination register) is invalid.",
76 "EventCode": "0xCA",116 "EventCode": "0xCA",
77 "Counter": "0,1,2,3",117 "Counter": "0,1,2,3",
78 "UMask": "0x2",118 "UMask": "0x2",
@@ -82,7 +122,7 @@ · 3 unmodified lines
82 "CounterHTOff": "0,1,2,3,4,5,6,7"122 "CounterHTOff": "0,1,2,3,4,5,6,7"
83 },123 },
84 {124 {
85 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts x87 floating point (FP) micro-code assist (invalid operation, denormal operand, SNaN operand) when the input value (one of the source operands to an FP instruction) is invalid.",125 "PublicDescription": "This event counts x87 floating point (FP) micro-code assist (invalid operation, denormal operand, SNaN operand) when the input value (one of the source operands to an FP instruction) is invalid.",
86 "EventCode": "0xCA",126 "EventCode": "0xCA",
87 "Counter": "0,1,2,3",127 "Counter": "0,1,2,3",
88 "UMask": "0x4",128 "UMask": "0x4",
@@ -92,7 +132,7 @@ · 3 unmodified lines
92 "CounterHTOff": "0,1,2,3,4,5,6,7"132 "CounterHTOff": "0,1,2,3,4,5,6,7"
93 },133 },
94 {134 {
95 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of SSE* floating point (FP) micro-code assist (numeric overflow/underflow) when the output value (destination register) is invalid. Counting covers only cases involving penalties that require micro-code assist intervention.",135 "PublicDescription": "This event counts the number of SSE* floating point (FP) micro-code assist (numeric overflow/underflow) when the output value (destination register) is invalid. Counting covers only cases involving penalties that require micro-code assist intervention.",
96 "EventCode": "0xCA",136 "EventCode": "0xCA",
97 "Counter": "0,1,2,3",137 "Counter": "0,1,2,3",
98 "UMask": "0x8",138 "UMask": "0x8",
@@ -102,7 +142,7 @@ · 3 unmodified lines
102 "CounterHTOff": "0,1,2,3,4,5,6,7"142 "CounterHTOff": "0,1,2,3,4,5,6,7"
103 },143 },
104 {144 {
105 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts any input SSE* FP assist - invalid operation, denormal operand, dividing by zero, SNaN operand. Counting includes only cases involving penalties that required micro-code assist intervention.",145 "PublicDescription": "This event counts any input SSE* FP assist - invalid operation, denormal operand, dividing by zero, SNaN operand. Counting includes only cases involving penalties that required micro-code assist intervention.",
106 "EventCode": "0xCA",146 "EventCode": "0xCA",
107 "Counter": "0,1,2,3",147 "Counter": "0,1,2,3",
108 "UMask": "0x10",148 "UMask": "0x10",
@@ -121,51 +161,5 @@ · 12 unmodified lines
121 "BriefDescription": "Cycles with any input/output SSE or FP assist",161 "BriefDescription": "Cycles with any input/output SSE or FP assist",
122 "CounterMask": "1",162 "CounterMask": "1",
123 "CounterHTOff": "0,1,2,3"163 "CounterHTOff": "0,1,2,3"
124 },
125 {
126 "PEBS": "1",
127 "EventCode": "0xc7",
128 "Counter": "0,1,2,3",
129 "UMask": "0x20",
130 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE",
131 "SampleAfterValue": "2000003",
132 "BriefDescription": "Number of SSE/AVX computational 256-bit packed single precision floating-point instructions retired. Each count represents 8 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
133 "CounterHTOff": "0,1,2,3"
134 },
135 {
136 "EventCode": "0xC7",
137 "Counter": "0,1,2,3",
138 "UMask": "0x3",
139 "EventName": "FP_ARITH_INST_RETIRED.SCALAR",
140 "SampleAfterValue": "2000003",
141 "BriefDescription": "Number of SSE/AVX computational scalar floating-point instructions retired. Applies to SSE* and AVX* scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
142 "CounterHTOff": "0,1,2,3"
143 },
144 {
145 "EventCode": "0xC7",
146 "Counter": "0,1,2,3",
147 "UMask": "0x3c",
148 "EventName": "FP_ARITH_INST_RETIRED.PACKED",
149 "SampleAfterValue": "2000004",
150 "BriefDescription": "Number of SSE/AVX computational packed floating-point instructions retired. Applies to SSE* and AVX*, packed, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
151 "CounterHTOff": "0,1,2,3"
152 },
153 {
154 "EventCode": "0xC7",
155 "Counter": "0,1,2,3",
156 "UMask": "0x2a",
157 "EventName": "FP_ARITH_INST_RETIRED.SINGLE",
158 "SampleAfterValue": "2000005",
159 "BriefDescription": "Number of SSE/AVX computational single precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
160 "CounterHTOff": "0,1,2,3"
161 },
162 {
163 "EventCode": "0xC7",
164 "Counter": "0,1,2,3",
165 "UMask": "0x15",
166 "EventName": "FP_ARITH_INST_RETIRED.DOUBLE",
167 "SampleAfterValue": "2000006",
168 "BriefDescription": "Number of SSE/AVX computational double precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
169 "CounterHTOff": "0,1,2,3"
170 }164 }
171]165]
tools/perf/pmu-events/arch/x86/broadwell/frontend.json+69−69
@@ -10,7 +10,7 @@ · 9 unmodified lines
10 "CounterHTOff": "0,1,2,3"10 "CounterHTOff": "0,1,2,3"
11 },11 },
12 {12 {
13 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",13 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
14 "EventCode": "0x79",14 "EventCode": "0x79",
15 "Counter": "0,1,2,3",15 "Counter": "0,1,2,3",
16 "UMask": "0x4",16 "UMask": "0x4",
@@ -20,80 +20,49 @@ · 3 unmodified lines
20 "CounterHTOff": "0,1,2,3,4,5,6,7"20 "CounterHTOff": "0,1,2,3,4,5,6,7"
21 },21 },
22 {22 {
23 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",23 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ.",
24 "EventCode": "0x79",24 "EventCode": "0x79",
25 "Counter": "0,1,2,3",25 "Counter": "0,1,2,3",
26 "UMask": "0x8",26 "UMask": "0x4",
27 "EventName": "IDQ.DSB_UOPS",27 "EventName": "IDQ.MITE_CYCLES",
28 "SampleAfterValue": "2000003",
29 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path",
30 "CounterHTOff": "0,1,2,3,4,5,6,7"
31 },
32 {
33 "PublicDescription": "This event counts the number of uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",
34 "EventCode": "0x79",
35 "Counter": "0,1,2,3",
36 "UMask": "0x10",
37 "EventName": "IDQ.MS_DSB_UOPS",
38 "SampleAfterValue": "2000003",
39 "BriefDescription": "Uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
40 "CounterHTOff": "0,1,2,3,4,5,6,7"
41 },
42 {
43 "PublicDescription": "This event counts the number of uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",
44 "EventCode": "0x79",
45 "Counter": "0,1,2,3",
46 "UMask": "0x20",
47 "EventName": "IDQ.MS_MITE_UOPS",
48 "SampleAfterValue": "2000003",
49 "BriefDescription": "Uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
50 "CounterHTOff": "0,1,2,3,4,5,6,7"
51 },
52 {
53 "PublicDescription": "This event counts the total number of uops delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may \"bypass\" the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
54 "EventCode": "0x79",
55 "Counter": "0,1,2,3",
56 "UMask": "0x30",
57 "EventName": "IDQ.MS_UOPS",
58 "SampleAfterValue": "2000003",28 "SampleAfterValue": "2000003",
59 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",29 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from MITE path",
30 "CounterMask": "1",
60 "CounterHTOff": "0,1,2,3,4,5,6,7"31 "CounterHTOff": "0,1,2,3,4,5,6,7"
61 },32 },
62 {33 {
63 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may \"bypass\" the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",34 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
64 "EventCode": "0x79",35 "EventCode": "0x79",
65 "Counter": "0,1,2,3",36 "Counter": "0,1,2,3",
66 "UMask": "0x30",37 "UMask": "0x8",
67 "EventName": "IDQ.MS_CYCLES",38 "EventName": "IDQ.DSB_UOPS",
68 "SampleAfterValue": "2000003",39 "SampleAfterValue": "2000003",
69 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",40 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path",
70 "CounterMask": "1",
71 "CounterHTOff": "0,1,2,3,4,5,6,7"41 "CounterHTOff": "0,1,2,3,4,5,6,7"
72 },42 },
73 {43 {
74 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ.",44 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
75 "EventCode": "0x79",45 "EventCode": "0x79",
76 "Counter": "0,1,2,3",46 "Counter": "0,1,2,3",
77 "UMask": "0x4",47 "UMask": "0x8",
78 "EventName": "IDQ.MITE_CYCLES",48 "EventName": "IDQ.DSB_CYCLES",
79 "SampleAfterValue": "2000003",49 "SampleAfterValue": "2000003",
80 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from MITE path",50 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path",
81 "CounterMask": "1",51 "CounterMask": "1",
82 "CounterHTOff": "0,1,2,3,4,5,6,7"52 "CounterHTOff": "0,1,2,3,4,5,6,7"
83 },53 },
84 {54 {
85 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",55 "PublicDescription": "This event counts the number of uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may bypass the IDQ.",
86 "EventCode": "0x79",56 "EventCode": "0x79",
87 "Counter": "0,1,2,3",57 "Counter": "0,1,2,3",
88 "UMask": "0x8",58 "UMask": "0x10",
89 "EventName": "IDQ.DSB_CYCLES",59 "EventName": "IDQ.MS_DSB_UOPS",
90 "SampleAfterValue": "2000003",60 "SampleAfterValue": "2000003",
91 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path",61 "BriefDescription": "Uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
92 "CounterMask": "1",
93 "CounterHTOff": "0,1,2,3,4,5,6,7"62 "CounterHTOff": "0,1,2,3,4,5,6,7"
94 },63 },
95 {64 {
96 "PublicDescription": "This event counts cycles during which uops initiated by Decode Stream Buffer (DSB) are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",65 "PublicDescription": "This event counts cycles during which uops initiated by Decode Stream Buffer (DSB) are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may bypass the IDQ.",
97 "EventCode": "0x79",66 "EventCode": "0x79",
98 "Counter": "0,1,2,3",67 "Counter": "0,1,2,3",
99 "UMask": "0x10",68 "UMask": "0x10",
@@ -104,7 +73,7 @@ · 4 unmodified lines
104 "CounterHTOff": "0,1,2,3,4,5,6,7"73 "CounterHTOff": "0,1,2,3,4,5,6,7"
105 },74 },
106 {75 {
107 "PublicDescription": "This event counts the number of deliveries to Instruction Decode Queue (IDQ) initiated by Decode Stream Buffer (DSB) while the Microcode Sequencer (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",76 "PublicDescription": "This event counts the number of deliveries to Instruction Decode Queue (IDQ) initiated by Decode Stream Buffer (DSB) while the Microcode Sequencer (MS) is busy. Counting includes uops that may bypass the IDQ.",
108 "EventCode": "0x79",77 "EventCode": "0x79",
109 "Counter": "0,1,2,3",78 "Counter": "0,1,2,3",
110 "UMask": "0x10",79 "UMask": "0x10",
@@ -116,7 +85,7 @@ · 5 unmodified lines
116 "CounterHTOff": "0,1,2,3,4,5,6,7"85 "CounterHTOff": "0,1,2,3,4,5,6,7"
117 },86 },
118 {87 {
119 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",88 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
120 "EventCode": "0x79",89 "EventCode": "0x79",
121 "Counter": "0,1,2,3",90 "Counter": "0,1,2,3",
122 "UMask": "0x18",91 "UMask": "0x18",
@@ -127,7 +96,7 @@ · 4 unmodified lines
127 "CounterHTOff": "0,1,2,3,4,5,6,7"96 "CounterHTOff": "0,1,2,3,4,5,6,7"
128 },97 },
129 {98 {
130 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",99 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
131 "EventCode": "0x79",100 "EventCode": "0x79",
132 "Counter": "0,1,2,3",101 "Counter": "0,1,2,3",
133 "UMask": "0x18",102 "UMask": "0x18",
@@ -138,7 +107,17 @@ · 4 unmodified lines
138 "CounterHTOff": "0,1,2,3,4,5,6,7"107 "CounterHTOff": "0,1,2,3,4,5,6,7"
139 },108 },
140 {109 {
141 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",110 "PublicDescription": "This event counts the number of uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may bypass the IDQ.",
111 "EventCode": "0x79",
112 "Counter": "0,1,2,3",
113 "UMask": "0x20",
114 "EventName": "IDQ.MS_MITE_UOPS",
115 "SampleAfterValue": "2000003",
116 "BriefDescription": "Uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
117 "CounterHTOff": "0,1,2,3,4,5,6,7"
118 },
119 {
120 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
142 "EventCode": "0x79",121 "EventCode": "0x79",
143 "Counter": "0,1,2,3",122 "Counter": "0,1,2,3",
144 "UMask": "0x24",123 "UMask": "0x24",
@@ -149,7 +128,7 @@ · 4 unmodified lines
149 "CounterHTOff": "0,1,2,3,4,5,6,7"128 "CounterHTOff": "0,1,2,3,4,5,6,7"
150 },129 },
151 {130 {
152 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",131 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
153 "EventCode": "0x79",132 "EventCode": "0x79",
154 "Counter": "0,1,2,3",133 "Counter": "0,1,2,3",
155 "UMask": "0x24",134 "UMask": "0x24",
@@ -160,7 +139,39 @@ · 4 unmodified lines
160 "CounterHTOff": "0,1,2,3,4,5,6,7"139 "CounterHTOff": "0,1,2,3,4,5,6,7"
161 },140 },
162 {141 {
163 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",142 "PublicDescription": "This event counts the total number of uops delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may bypass the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
143 "EventCode": "0x79",
144 "Counter": "0,1,2,3",
145 "UMask": "0x30",
146 "EventName": "IDQ.MS_UOPS",
147 "SampleAfterValue": "2000003",
148 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
149 "CounterHTOff": "0,1,2,3,4,5,6,7"
150 },
151 {
152 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may bypass the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
153 "EventCode": "0x79",
154 "Counter": "0,1,2,3",
155 "UMask": "0x30",
156 "EventName": "IDQ.MS_CYCLES",
157 "SampleAfterValue": "2000003",
158 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
159 "CounterMask": "1",
160 "CounterHTOff": "0,1,2,3,4,5,6,7"
161 },
162 {
163 "EventCode": "0x79",
164 "Counter": "0,1,2,3",
165 "UMask": "0x30",
166 "EdgeDetect": "1",
167 "EventName": "IDQ.MS_SWITCHES",
168 "SampleAfterValue": "2000003",
169 "BriefDescription": "Number of switches from DSB (Decode Stream Buffer) or MITE (legacy decode pipeline) to the Microcode Sequencer.",
170 "CounterMask": "1",
171 "CounterHTOff": "0,1,2,3,4,5,6,7"
172 },
173 {
174 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
164 "EventCode": "0x79",175 "EventCode": "0x79",
165 "Counter": "0,1,2,3",176 "Counter": "0,1,2,3",
166 "UMask": "0x3c",177 "UMask": "0x3c",
@@ -200,7 +211,7 @@ · 33 unmodified lines
200 "CounterHTOff": "0,1,2,3,4,5,6,7"211 "CounterHTOff": "0,1,2,3,4,5,6,7"
201 },212 },
202 {213 {
203 "PublicDescription": "This event counts the number of uops not delivered to Resource Allocation Table (RAT) per thread adding ?4 ? x? when Resource Allocation Table (RAT) is not stalled and Instruction Decode Queue (IDQ) delivers x uops to Resource Allocation Table (RAT) (where x belongs to {0,1,2,3}). Counting does not cover cases when:\n a. IDQ-Resource Allocation Table (RAT) pipe serves the other thread;\n b. Resource Allocation Table (RAT) is stalled for the thread (including uop drops and clear BE conditions); \n c. Instruction Decode Queue (IDQ) delivers four uops.",214 "PublicDescription": "This event counts the number of uops not delivered to Resource Allocation Table (RAT) per thread adding 4 x when Resource Allocation Table (RAT) is not stalled and Instruction Decode Queue (IDQ) delivers x uops to Resource Allocation Table (RAT) (where x belongs to {0,1,2,3}). Counting does not cover cases when:\n a. IDQ-Resource Allocation Table (RAT) pipe serves the other thread;\n b. Resource Allocation Table (RAT) is stalled for the thread (including uop drops and clear BE conditions); \n c. Instruction Decode Queue (IDQ) delivers four uops.",
204 "EventCode": "0x9C",215 "EventCode": "0x9C",
205 "Counter": "0,1,2,3",216 "Counter": "0,1,2,3",
206 "UMask": "0x1",217 "UMask": "0x1",
@@ -263,7 +274,7 @@ · 56 unmodified lines
263 "CounterHTOff": "0,1,2,3"274 "CounterHTOff": "0,1,2,3"
264 },275 },
265 {276 {
266 "PublicDescription": "This event counts Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles. These cycles do not include uops routed through because of the switch itself, for example, when Instruction Decode Queue (IDQ) pre-allocation is unavailable, or Instruction Decode Queue (IDQ) is full. SBD-to-MITE switch true penalty cycles happen after the merge mux (MM) receives Decode Stream Buffer (DSB) Sync-indication until receiving the first MITE uop. \nMM is placed before Instruction Decode Queue (IDQ) to merge uops being fed from the MITE and Decode Stream Buffer (DSB) paths. Decode Stream Buffer (DSB) inserts the Sync-indication whenever a Decode Stream Buffer (DSB)-to-MITE switch occurs.\nPenalty: A Decode Stream Buffer (DSB) hit followed by a Decode Stream Buffer (DSB) miss can cost up to six cycles in which no uops are delivered to the IDQ. Most often, such switches from the Decode Stream Buffer (DSB) to the legacy pipeline cost 0?2 cycles.",277 "PublicDescription": "This event counts Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles. These cycles do not include uops routed through because of the switch itself, for example, when Instruction Decode Queue (IDQ) pre-allocation is unavailable, or Instruction Decode Queue (IDQ) is full. SBD-to-MITE switch true penalty cycles happen after the merge mux (MM) receives Decode Stream Buffer (DSB) Sync-indication until receiving the first MITE uop. \nMM is placed before Instruction Decode Queue (IDQ) to merge uops being fed from the MITE and Decode Stream Buffer (DSB) paths. Decode Stream Buffer (DSB) inserts the Sync-indication whenever a Decode Stream Buffer (DSB)-to-MITE switch occurs.\nPenalty: A Decode Stream Buffer (DSB) hit followed by a Decode Stream Buffer (DSB) miss can cost up to six cycles in which no uops are delivered to the IDQ. Most often, such switches from the Decode Stream Buffer (DSB) to the legacy pipeline cost 02 cycles.",
267 "EventCode": "0xAB",278 "EventCode": "0xAB",
268 "Counter": "0,1,2,3",279 "Counter": "0,1,2,3",
269 "UMask": "0x2",280 "UMask": "0x2",
@@ -271,16 +282,5 @@ · 1 unmodified line
271 "SampleAfterValue": "2000003",282 "SampleAfterValue": "2000003",
272 "BriefDescription": "Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles.",283 "BriefDescription": "Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles.",
273 "CounterHTOff": "0,1,2,3,4,5,6,7"284 "CounterHTOff": "0,1,2,3,4,5,6,7"
274 },
275 {
276 "EventCode": "0x79",
277 "Counter": "0,1,2,3",
278 "UMask": "0x30",
279 "EdgeDetect": "1",
280 "EventName": "IDQ.MS_SWITCHES",
281 "SampleAfterValue": "2000003",
282 "BriefDescription": "Number of switches from DSB (Decode Stream Buffer) or MITE (legacy decode pipeline) to the Microcode Sequencer.",
283 "CounterMask": "1",
284 "CounterHTOff": "0,1,2,3,4,5,6,7"
285 }285 }
286]286]
tools/perf/pmu-events/arch/x86/broadwell/memory.json+205−5
@@ -90,7 +90,6 @@ · 89 unmodified lines
90 "CounterHTOff": "0,1,2,3,4,5,6,7"90 "CounterHTOff": "0,1,2,3,4,5,6,7"
91 },91 },
92 {92 {
93 "PublicDescription": "Unfriendly TSX abort triggered by a flowmarker.",
94 "EventCode": "0x5d",93 "EventCode": "0x5d",
95 "Counter": "0,1,2,3",94 "Counter": "0,1,2,3",
96 "UMask": "0x1",95 "UMask": "0x1",
@@ -170,13 +169,13 @@ · 73 unmodified lines
170 },169 },
171 {170 {
172 "PEBS": "1",171 "PEBS": "1",
173 "PublicDescription": "Number of times HLE abort was triggered.",172 "PublicDescription": "Number of times HLE abort was triggered (PEBS).",
174 "EventCode": "0xc8",173 "EventCode": "0xc8",
175 "Counter": "0,1,2,3",174 "Counter": "0,1,2,3",
176 "UMask": "0x4",175 "UMask": "0x4",
177 "EventName": "HLE_RETIRED.ABORTED",176 "EventName": "HLE_RETIRED.ABORTED",
178 "SampleAfterValue": "2000003",177 "SampleAfterValue": "2000003",
179 "BriefDescription": "Number of times HLE abort was triggered",178 "BriefDescription": "Number of times HLE abort was triggered (PEBS)",
180 "CounterHTOff": "0,1,2,3,4,5,6,7"179 "CounterHTOff": "0,1,2,3,4,5,6,7"
181 },180 },
182 {181 {
@@ -251,13 +250,13 @@ · 68 unmodified lines
251 },250 },
252 {251 {
253 "PEBS": "1",252 "PEBS": "1",
254 "PublicDescription": "Number of times RTM abort was triggered .",253 "PublicDescription": "Number of times RTM abort was triggered (PEBS).",
255 "EventCode": "0xc9",254 "EventCode": "0xc9",
256 "Counter": "0,1,2,3",255 "Counter": "0,1,2,3",
257 "UMask": "0x4",256 "UMask": "0x4",
258 "EventName": "RTM_RETIRED.ABORTED",257 "EventName": "RTM_RETIRED.ABORTED",
259 "SampleAfterValue": "2000003",258 "SampleAfterValue": "2000003",
260 "BriefDescription": "Number of times RTM abort was triggered",259 "BriefDescription": "Number of times RTM abort was triggered (PEBS)",
261 "CounterHTOff": "0,1,2,3"260 "CounterHTOff": "0,1,2,3"
262 },261 },
263 {262 {
@@ -431,6 +430,7 @@ · 167 unmodified lines
431 "CounterHTOff": "3"430 "CounterHTOff": "3"
432 },431 },
433 {432 {
433 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
434 "EventCode": "0xB7, 0xBB",434 "EventCode": "0xB7, 0xBB",
435 "MSRValue": "0x2000020001 ",435 "MSRValue": "0x2000020001 ",
436 "Counter": "0,1,2,3",436 "Counter": "0,1,2,3",
@@ -443,6 +443,7 @@ · 6 unmodified lines
443 "CounterHTOff": "0,1,2,3"443 "CounterHTOff": "0,1,2,3"
444 },444 },
445 {445 {
446 "PublicDescription": "Counts demand data reads that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
446 "EventCode": "0xB7, 0xBB",447 "EventCode": "0xB7, 0xBB",
447 "MSRValue": "0x20003c0001 ",448 "MSRValue": "0x20003c0001 ",
448 "Counter": "0,1,2,3",449 "Counter": "0,1,2,3",
@@ -455,6 +456,7 @@ · 6 unmodified lines
455 "CounterHTOff": "0,1,2,3"456 "CounterHTOff": "0,1,2,3"
456 },457 },
457 {458 {
459 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
458 "EventCode": "0xB7, 0xBB",460 "EventCode": "0xB7, 0xBB",
459 "MSRValue": "0x0084000001 ",461 "MSRValue": "0x0084000001 ",
460 "Counter": "0,1,2,3",462 "Counter": "0,1,2,3",
@@ -467,6 +469,7 @@ · 6 unmodified lines
467 "CounterHTOff": "0,1,2,3"469 "CounterHTOff": "0,1,2,3"
468 },470 },
469 {471 {
472 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
470 "EventCode": "0xB7, 0xBB",473 "EventCode": "0xB7, 0xBB",
471 "MSRValue": "0x0104000001 ",474 "MSRValue": "0x0104000001 ",
472 "Counter": "0,1,2,3",475 "Counter": "0,1,2,3",
@@ -479,6 +482,7 @@ · 6 unmodified lines
479 "CounterHTOff": "0,1,2,3"482 "CounterHTOff": "0,1,2,3"
480 },483 },
481 {484 {
485 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
482 "EventCode": "0xB7, 0xBB",486 "EventCode": "0xB7, 0xBB",
483 "MSRValue": "0x0204000001 ",487 "MSRValue": "0x0204000001 ",
484 "Counter": "0,1,2,3",488 "Counter": "0,1,2,3",
@@ -491,6 +495,7 @@ · 6 unmodified lines
491 "CounterHTOff": "0,1,2,3"495 "CounterHTOff": "0,1,2,3"
492 },496 },
493 {497 {
498 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
494 "EventCode": "0xB7, 0xBB",499 "EventCode": "0xB7, 0xBB",
495 "MSRValue": "0x0404000001 ",500 "MSRValue": "0x0404000001 ",
496 "Counter": "0,1,2,3",501 "Counter": "0,1,2,3",
@@ -503,6 +508,7 @@ · 6 unmodified lines
503 "CounterHTOff": "0,1,2,3"508 "CounterHTOff": "0,1,2,3"
504 },509 },
505 {510 {
511 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
506 "EventCode": "0xB7, 0xBB",512 "EventCode": "0xB7, 0xBB",
507 "MSRValue": "0x1004000001 ",513 "MSRValue": "0x1004000001 ",
508 "Counter": "0,1,2,3",514 "Counter": "0,1,2,3",
@@ -515,6 +521,7 @@ · 6 unmodified lines
515 "CounterHTOff": "0,1,2,3"521 "CounterHTOff": "0,1,2,3"
516 },522 },
517 {523 {
524 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
518 "EventCode": "0xB7, 0xBB",525 "EventCode": "0xB7, 0xBB",
519 "MSRValue": "0x2004000001 ",526 "MSRValue": "0x2004000001 ",
520 "Counter": "0,1,2,3",527 "Counter": "0,1,2,3",
@@ -527,6 +534,7 @@ · 6 unmodified lines
527 "CounterHTOff": "0,1,2,3"534 "CounterHTOff": "0,1,2,3"
528 },535 },
529 {536 {
537 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
530 "EventCode": "0xB7, 0xBB",538 "EventCode": "0xB7, 0xBB",
531 "MSRValue": "0x3f84000001 ",539 "MSRValue": "0x3f84000001 ",
532 "Counter": "0,1,2,3",540 "Counter": "0,1,2,3",
@@ -539,6 +547,7 @@ · 6 unmodified lines
539 "CounterHTOff": "0,1,2,3"547 "CounterHTOff": "0,1,2,3"
540 },548 },
541 {549 {
550 "PublicDescription": "Counts demand data reads that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
542 "EventCode": "0xB7, 0xBB",551 "EventCode": "0xB7, 0xBB",
543 "MSRValue": "0x00bc000001 ",552 "MSRValue": "0x00bc000001 ",
544 "Counter": "0,1,2,3",553 "Counter": "0,1,2,3",
@@ -551,6 +560,7 @@ · 6 unmodified lines
551 "CounterHTOff": "0,1,2,3"560 "CounterHTOff": "0,1,2,3"
552 },561 },
553 {562 {
563 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
554 "EventCode": "0xB7, 0xBB",564 "EventCode": "0xB7, 0xBB",
555 "MSRValue": "0x013c000001 ",565 "MSRValue": "0x013c000001 ",
556 "Counter": "0,1,2,3",566 "Counter": "0,1,2,3",
@@ -563,6 +573,7 @@ · 6 unmodified lines
563 "CounterHTOff": "0,1,2,3"573 "CounterHTOff": "0,1,2,3"
564 },574 },
565 {575 {
576 "PublicDescription": "Counts demand data reads that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
566 "EventCode": "0xB7, 0xBB",577 "EventCode": "0xB7, 0xBB",
567 "MSRValue": "0x023c000001 ",578 "MSRValue": "0x023c000001 ",
568 "Counter": "0,1,2,3",579 "Counter": "0,1,2,3",
@@ -575,6 +586,7 @@ · 6 unmodified lines
575 "CounterHTOff": "0,1,2,3"586 "CounterHTOff": "0,1,2,3"
576 },587 },
577 {588 {
589 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
578 "EventCode": "0xB7, 0xBB",590 "EventCode": "0xB7, 0xBB",
579 "MSRValue": "0x043c000001 ",591 "MSRValue": "0x043c000001 ",
580 "Counter": "0,1,2,3",592 "Counter": "0,1,2,3",
@@ -587,6 +599,7 @@ · 6 unmodified lines
587 "CounterHTOff": "0,1,2,3"599 "CounterHTOff": "0,1,2,3"
588 },600 },
589 {601 {
602 "PublicDescription": "Counts all demand data writes (RFOs) that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
590 "EventCode": "0xB7, 0xBB",603 "EventCode": "0xB7, 0xBB",
591 "MSRValue": "0x20003c0002 ",604 "MSRValue": "0x20003c0002 ",
592 "Counter": "0,1,2,3",605 "Counter": "0,1,2,3",
@@ -599,6 +612,7 @@ · 6 unmodified lines
599 "CounterHTOff": "0,1,2,3"612 "CounterHTOff": "0,1,2,3"
600 },613 },
601 {614 {
615 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
602 "EventCode": "0xB7, 0xBB",616 "EventCode": "0xB7, 0xBB",
603 "MSRValue": "0x3f84000002 ",617 "MSRValue": "0x3f84000002 ",
604 "Counter": "0,1,2,3",618 "Counter": "0,1,2,3",
@@ -611,6 +625,7 @@ · 6 unmodified lines
611 "CounterHTOff": "0,1,2,3"625 "CounterHTOff": "0,1,2,3"
612 },626 },
613 {627 {
628 "PublicDescription": "Counts all demand data writes (RFOs) that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
614 "EventCode": "0xB7, 0xBB",629 "EventCode": "0xB7, 0xBB",
615 "MSRValue": "0x00bc000002 ",630 "MSRValue": "0x00bc000002 ",
616 "Counter": "0,1,2,3",631 "Counter": "0,1,2,3",
@@ -623,6 +638,7 @@ · 6 unmodified lines
623 "CounterHTOff": "0,1,2,3"638 "CounterHTOff": "0,1,2,3"
624 },639 },
625 {640 {
641 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
626 "EventCode": "0xB7, 0xBB",642 "EventCode": "0xB7, 0xBB",
627 "MSRValue": "0x013c000002 ",643 "MSRValue": "0x013c000002 ",
628 "Counter": "0,1,2,3",644 "Counter": "0,1,2,3",
@@ -635,6 +651,7 @@ · 6 unmodified lines
635 "CounterHTOff": "0,1,2,3"651 "CounterHTOff": "0,1,2,3"
636 },652 },
637 {653 {
654 "PublicDescription": "Counts all demand data writes (RFOs) that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
638 "EventCode": "0xB7, 0xBB",655 "EventCode": "0xB7, 0xBB",
639 "MSRValue": "0x023c000002 ",656 "MSRValue": "0x023c000002 ",
640 "Counter": "0,1,2,3",657 "Counter": "0,1,2,3",
@@ -647,6 +664,7 @@ · 6 unmodified lines
647 "CounterHTOff": "0,1,2,3"664 "CounterHTOff": "0,1,2,3"
648 },665 },
649 {666 {
667 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
650 "EventCode": "0xB7, 0xBB",668 "EventCode": "0xB7, 0xBB",
651 "MSRValue": "0x043c000002 ",669 "MSRValue": "0x043c000002 ",
652 "Counter": "0,1,2,3",670 "Counter": "0,1,2,3",
@@ -659,6 +677,7 @@ · 6 unmodified lines
659 "CounterHTOff": "0,1,2,3"677 "CounterHTOff": "0,1,2,3"
660 },678 },
661 {679 {
680 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
662 "EventCode": "0xB7, 0xBB",681 "EventCode": "0xB7, 0xBB",
663 "MSRValue": "0x2000020004 ",682 "MSRValue": "0x2000020004 ",
664 "Counter": "0,1,2,3",683 "Counter": "0,1,2,3",
@@ -671,6 +690,7 @@ · 6 unmodified lines
671 "CounterHTOff": "0,1,2,3"690 "CounterHTOff": "0,1,2,3"
672 },691 },
673 {692 {
693 "PublicDescription": "Counts all demand code reads that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
674 "EventCode": "0xB7, 0xBB",694 "EventCode": "0xB7, 0xBB",
675 "MSRValue": "0x20003c0004 ",695 "MSRValue": "0x20003c0004 ",
676 "Counter": "0,1,2,3",696 "Counter": "0,1,2,3",
@@ -683,6 +703,7 @@ · 6 unmodified lines
683 "CounterHTOff": "0,1,2,3"703 "CounterHTOff": "0,1,2,3"
684 },704 },
685 {705 {
706 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
686 "EventCode": "0xB7, 0xBB",707 "EventCode": "0xB7, 0xBB",
687 "MSRValue": "0x0084000004 ",708 "MSRValue": "0x0084000004 ",
688 "Counter": "0,1,2,3",709 "Counter": "0,1,2,3",
@@ -695,6 +716,7 @@ · 6 unmodified lines
695 "CounterHTOff": "0,1,2,3"716 "CounterHTOff": "0,1,2,3"
696 },717 },
697 {718 {
719 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
698 "EventCode": "0xB7, 0xBB",720 "EventCode": "0xB7, 0xBB",
699 "MSRValue": "0x0104000004 ",721 "MSRValue": "0x0104000004 ",
700 "Counter": "0,1,2,3",722 "Counter": "0,1,2,3",
@@ -707,6 +729,7 @@ · 6 unmodified lines
707 "CounterHTOff": "0,1,2,3"729 "CounterHTOff": "0,1,2,3"
708 },730 },
709 {731 {
732 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
710 "EventCode": "0xB7, 0xBB",733 "EventCode": "0xB7, 0xBB",
711 "MSRValue": "0x0204000004 ",734 "MSRValue": "0x0204000004 ",
712 "Counter": "0,1,2,3",735 "Counter": "0,1,2,3",
@@ -719,6 +742,7 @@ · 6 unmodified lines
719 "CounterHTOff": "0,1,2,3"742 "CounterHTOff": "0,1,2,3"
720 },743 },
721 {744 {
745 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
722 "EventCode": "0xB7, 0xBB",746 "EventCode": "0xB7, 0xBB",
723 "MSRValue": "0x0404000004 ",747 "MSRValue": "0x0404000004 ",
724 "Counter": "0,1,2,3",748 "Counter": "0,1,2,3",
@@ -731,6 +755,7 @@ · 6 unmodified lines
731 "CounterHTOff": "0,1,2,3"755 "CounterHTOff": "0,1,2,3"
732 },756 },
733 {757 {
758 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
734 "EventCode": "0xB7, 0xBB",759 "EventCode": "0xB7, 0xBB",
735 "MSRValue": "0x1004000004 ",760 "MSRValue": "0x1004000004 ",
736 "Counter": "0,1,2,3",761 "Counter": "0,1,2,3",
@@ -743,6 +768,7 @@ · 6 unmodified lines
743 "CounterHTOff": "0,1,2,3"768 "CounterHTOff": "0,1,2,3"
744 },769 },
745 {770 {
771 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
746 "EventCode": "0xB7, 0xBB",772 "EventCode": "0xB7, 0xBB",
747 "MSRValue": "0x2004000004 ",773 "MSRValue": "0x2004000004 ",
748 "Counter": "0,1,2,3",774 "Counter": "0,1,2,3",
@@ -755,6 +781,7 @@ · 6 unmodified lines
755 "CounterHTOff": "0,1,2,3"781 "CounterHTOff": "0,1,2,3"
756 },782 },
757 {783 {
784 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
758 "EventCode": "0xB7, 0xBB",785 "EventCode": "0xB7, 0xBB",
759 "MSRValue": "0x3f84000004 ",786 "MSRValue": "0x3f84000004 ",
760 "Counter": "0,1,2,3",787 "Counter": "0,1,2,3",
@@ -767,6 +794,7 @@ · 6 unmodified lines
767 "CounterHTOff": "0,1,2,3"794 "CounterHTOff": "0,1,2,3"
768 },795 },
769 {796 {
797 "PublicDescription": "Counts all demand code reads that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
770 "EventCode": "0xB7, 0xBB",798 "EventCode": "0xB7, 0xBB",
771 "MSRValue": "0x00bc000004 ",799 "MSRValue": "0x00bc000004 ",
772 "Counter": "0,1,2,3",800 "Counter": "0,1,2,3",
@@ -779,6 +807,7 @@ · 6 unmodified lines
779 "CounterHTOff": "0,1,2,3"807 "CounterHTOff": "0,1,2,3"
780 },808 },
781 {809 {
810 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
782 "EventCode": "0xB7, 0xBB",811 "EventCode": "0xB7, 0xBB",
783 "MSRValue": "0x013c000004 ",812 "MSRValue": "0x013c000004 ",
784 "Counter": "0,1,2,3",813 "Counter": "0,1,2,3",
@@ -791,6 +820,7 @@ · 6 unmodified lines
791 "CounterHTOff": "0,1,2,3"820 "CounterHTOff": "0,1,2,3"
792 },821 },
793 {822 {
823 "PublicDescription": "Counts all demand code reads that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
794 "EventCode": "0xB7, 0xBB",824 "EventCode": "0xB7, 0xBB",
795 "MSRValue": "0x023c000004 ",825 "MSRValue": "0x023c000004 ",
796 "Counter": "0,1,2,3",826 "Counter": "0,1,2,3",
@@ -803,6 +833,7 @@ · 6 unmodified lines
803 "CounterHTOff": "0,1,2,3"833 "CounterHTOff": "0,1,2,3"
804 },834 },
805 {835 {
836 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
806 "EventCode": "0xB7, 0xBB",837 "EventCode": "0xB7, 0xBB",
807 "MSRValue": "0x043c000004 ",838 "MSRValue": "0x043c000004 ",
808 "Counter": "0,1,2,3",839 "Counter": "0,1,2,3",
@@ -815,6 +846,7 @@ · 6 unmodified lines
815 "CounterHTOff": "0,1,2,3"846 "CounterHTOff": "0,1,2,3"
816 },847 },
817 {848 {
849 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
818 "EventCode": "0xB7, 0xBB",850 "EventCode": "0xB7, 0xBB",
819 "MSRValue": "0x2000020008 ",851 "MSRValue": "0x2000020008 ",
820 "Counter": "0,1,2,3",852 "Counter": "0,1,2,3",
@@ -827,6 +859,7 @@ · 6 unmodified lines
827 "CounterHTOff": "0,1,2,3"859 "CounterHTOff": "0,1,2,3"
828 },860 },
829 {861 {
862 "PublicDescription": "Counts writebacks (modified to exclusive) that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
830 "EventCode": "0xB7, 0xBB",863 "EventCode": "0xB7, 0xBB",
831 "MSRValue": "0x20003c0008 ",864 "MSRValue": "0x20003c0008 ",
832 "Counter": "0,1,2,3",865 "Counter": "0,1,2,3",
@@ -839,6 +872,7 @@ · 6 unmodified lines
839 "CounterHTOff": "0,1,2,3"872 "CounterHTOff": "0,1,2,3"
840 },873 },
841 {874 {
875 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
842 "EventCode": "0xB7, 0xBB",876 "EventCode": "0xB7, 0xBB",
843 "MSRValue": "0x0084000008 ",877 "MSRValue": "0x0084000008 ",
844 "Counter": "0,1,2,3",878 "Counter": "0,1,2,3",
@@ -851,6 +885,7 @@ · 6 unmodified lines
851 "CounterHTOff": "0,1,2,3"885 "CounterHTOff": "0,1,2,3"
852 },886 },
853 {887 {
888 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
854 "EventCode": "0xB7, 0xBB",889 "EventCode": "0xB7, 0xBB",
855 "MSRValue": "0x0104000008 ",890 "MSRValue": "0x0104000008 ",
856 "Counter": "0,1,2,3",891 "Counter": "0,1,2,3",
@@ -863,6 +898,7 @@ · 6 unmodified lines
863 "CounterHTOff": "0,1,2,3"898 "CounterHTOff": "0,1,2,3"
864 },899 },
865 {900 {
901 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
866 "EventCode": "0xB7, 0xBB",902 "EventCode": "0xB7, 0xBB",
867 "MSRValue": "0x0204000008 ",903 "MSRValue": "0x0204000008 ",
868 "Counter": "0,1,2,3",904 "Counter": "0,1,2,3",
@@ -875,6 +911,7 @@ · 6 unmodified lines
875 "CounterHTOff": "0,1,2,3"911 "CounterHTOff": "0,1,2,3"
876 },912 },
877 {913 {
914 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
878 "EventCode": "0xB7, 0xBB",915 "EventCode": "0xB7, 0xBB",
879 "MSRValue": "0x0404000008 ",916 "MSRValue": "0x0404000008 ",
880 "Counter": "0,1,2,3",917 "Counter": "0,1,2,3",
@@ -887,6 +924,7 @@ · 6 unmodified lines
887 "CounterHTOff": "0,1,2,3"924 "CounterHTOff": "0,1,2,3"
888 },925 },
889 {926 {
927 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
890 "EventCode": "0xB7, 0xBB",928 "EventCode": "0xB7, 0xBB",
891 "MSRValue": "0x1004000008 ",929 "MSRValue": "0x1004000008 ",
892 "Counter": "0,1,2,3",930 "Counter": "0,1,2,3",
@@ -899,6 +937,7 @@ · 6 unmodified lines
899 "CounterHTOff": "0,1,2,3"937 "CounterHTOff": "0,1,2,3"
900 },938 },
901 {939 {
940 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
902 "EventCode": "0xB7, 0xBB",941 "EventCode": "0xB7, 0xBB",
903 "MSRValue": "0x2004000008 ",942 "MSRValue": "0x2004000008 ",
904 "Counter": "0,1,2,3",943 "Counter": "0,1,2,3",
@@ -911,6 +950,7 @@ · 6 unmodified lines
911 "CounterHTOff": "0,1,2,3"950 "CounterHTOff": "0,1,2,3"
912 },951 },
913 {952 {
953 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
914 "EventCode": "0xB7, 0xBB",954 "EventCode": "0xB7, 0xBB",
915 "MSRValue": "0x3f84000008 ",955 "MSRValue": "0x3f84000008 ",
916 "Counter": "0,1,2,3",956 "Counter": "0,1,2,3",
@@ -923,6 +963,7 @@ · 6 unmodified lines
923 "CounterHTOff": "0,1,2,3"963 "CounterHTOff": "0,1,2,3"
924 },964 },
925 {965 {
966 "PublicDescription": "Counts writebacks (modified to exclusive) that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
926 "EventCode": "0xB7, 0xBB",967 "EventCode": "0xB7, 0xBB",
927 "MSRValue": "0x00bc000008 ",968 "MSRValue": "0x00bc000008 ",
928 "Counter": "0,1,2,3",969 "Counter": "0,1,2,3",
@@ -935,6 +976,7 @@ · 6 unmodified lines
935 "CounterHTOff": "0,1,2,3"976 "CounterHTOff": "0,1,2,3"
936 },977 },
937 {978 {
979 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
938 "EventCode": "0xB7, 0xBB",980 "EventCode": "0xB7, 0xBB",
939 "MSRValue": "0x013c000008 ",981 "MSRValue": "0x013c000008 ",
940 "Counter": "0,1,2,3",982 "Counter": "0,1,2,3",
@@ -947,6 +989,7 @@ · 6 unmodified lines
947 "CounterHTOff": "0,1,2,3"989 "CounterHTOff": "0,1,2,3"
948 },990 },
949 {991 {
992 "PublicDescription": "Counts writebacks (modified to exclusive) that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
950 "EventCode": "0xB7, 0xBB",993 "EventCode": "0xB7, 0xBB",
951 "MSRValue": "0x023c000008 ",994 "MSRValue": "0x023c000008 ",
952 "Counter": "0,1,2,3",995 "Counter": "0,1,2,3",
@@ -959,6 +1002,7 @@ · 6 unmodified lines
959 "CounterHTOff": "0,1,2,3"1002 "CounterHTOff": "0,1,2,3"
960 },1003 },
961 {1004 {
1005 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
962 "EventCode": "0xB7, 0xBB",1006 "EventCode": "0xB7, 0xBB",
963 "MSRValue": "0x043c000008 ",1007 "MSRValue": "0x043c000008 ",
964 "Counter": "0,1,2,3",1008 "Counter": "0,1,2,3",
@@ -971,6 +1015,7 @@ · 6 unmodified lines
971 "CounterHTOff": "0,1,2,3"1015 "CounterHTOff": "0,1,2,3"
972 },1016 },
973 {1017 {
1018 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
974 "EventCode": "0xB7, 0xBB",1019 "EventCode": "0xB7, 0xBB",
975 "MSRValue": "0x2000020010 ",1020 "MSRValue": "0x2000020010 ",
976 "Counter": "0,1,2,3",1021 "Counter": "0,1,2,3",
@@ -983,6 +1028,7 @@ · 6 unmodified lines
983 "CounterHTOff": "0,1,2,3"1028 "CounterHTOff": "0,1,2,3"
984 },1029 },
985 {1030 {
1031 "PublicDescription": "Counts prefetch (that bring data to L2) data reads that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
986 "EventCode": "0xB7, 0xBB",1032 "EventCode": "0xB7, 0xBB",
987 "MSRValue": "0x20003c0010 ",1033 "MSRValue": "0x20003c0010 ",
988 "Counter": "0,1,2,3",1034 "Counter": "0,1,2,3",
@@ -995,6 +1041,7 @@ · 6 unmodified lines
995 "CounterHTOff": "0,1,2,3"1041 "CounterHTOff": "0,1,2,3"
996 },1042 },
997 {1043 {
1044 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
998 "EventCode": "0xB7, 0xBB",1045 "EventCode": "0xB7, 0xBB",
999 "MSRValue": "0x0084000010 ",1046 "MSRValue": "0x0084000010 ",
1000 "Counter": "0,1,2,3",1047 "Counter": "0,1,2,3",
@@ -1007,6 +1054,7 @@ · 6 unmodified lines
1007 "CounterHTOff": "0,1,2,3"1054 "CounterHTOff": "0,1,2,3"
1008 },1055 },
1009 {1056 {
1057 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1010 "EventCode": "0xB7, 0xBB",1058 "EventCode": "0xB7, 0xBB",
1011 "MSRValue": "0x0104000010 ",1059 "MSRValue": "0x0104000010 ",
1012 "Counter": "0,1,2,3",1060 "Counter": "0,1,2,3",
@@ -1019,6 +1067,7 @@ · 6 unmodified lines
1019 "CounterHTOff": "0,1,2,3"1067 "CounterHTOff": "0,1,2,3"
1020 },1068 },
1021 {1069 {
1070 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1022 "EventCode": "0xB7, 0xBB",1071 "EventCode": "0xB7, 0xBB",
1023 "MSRValue": "0x0204000010 ",1072 "MSRValue": "0x0204000010 ",
1024 "Counter": "0,1,2,3",1073 "Counter": "0,1,2,3",
@@ -1031,6 +1080,7 @@ · 6 unmodified lines
1031 "CounterHTOff": "0,1,2,3"1080 "CounterHTOff": "0,1,2,3"
1032 },1081 },
1033 {1082 {
1083 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1034 "EventCode": "0xB7, 0xBB",1084 "EventCode": "0xB7, 0xBB",
1035 "MSRValue": "0x0404000010 ",1085 "MSRValue": "0x0404000010 ",
1036 "Counter": "0,1,2,3",1086 "Counter": "0,1,2,3",
@@ -1043,6 +1093,7 @@ · 6 unmodified lines
1043 "CounterHTOff": "0,1,2,3"1093 "CounterHTOff": "0,1,2,3"
1044 },1094 },
1045 {1095 {
1096 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1046 "EventCode": "0xB7, 0xBB",1097 "EventCode": "0xB7, 0xBB",
1047 "MSRValue": "0x1004000010 ",1098 "MSRValue": "0x1004000010 ",
1048 "Counter": "0,1,2,3",1099 "Counter": "0,1,2,3",
@@ -1055,6 +1106,7 @@ · 6 unmodified lines
1055 "CounterHTOff": "0,1,2,3"1106 "CounterHTOff": "0,1,2,3"
1056 },1107 },
1057 {1108 {
1109 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1058 "EventCode": "0xB7, 0xBB",1110 "EventCode": "0xB7, 0xBB",
1059 "MSRValue": "0x2004000010 ",1111 "MSRValue": "0x2004000010 ",
1060 "Counter": "0,1,2,3",1112 "Counter": "0,1,2,3",
@@ -1067,6 +1119,7 @@ · 6 unmodified lines
1067 "CounterHTOff": "0,1,2,3"1119 "CounterHTOff": "0,1,2,3"
1068 },1120 },
1069 {1121 {
1122 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1070 "EventCode": "0xB7, 0xBB",1123 "EventCode": "0xB7, 0xBB",
1071 "MSRValue": "0x3f84000010 ",1124 "MSRValue": "0x3f84000010 ",
1072 "Counter": "0,1,2,3",1125 "Counter": "0,1,2,3",
@@ -1079,6 +1132,7 @@ · 6 unmodified lines
1079 "CounterHTOff": "0,1,2,3"1132 "CounterHTOff": "0,1,2,3"
1080 },1133 },
1081 {1134 {
1135 "PublicDescription": "Counts prefetch (that bring data to L2) data reads that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1082 "EventCode": "0xB7, 0xBB",1136 "EventCode": "0xB7, 0xBB",
1083 "MSRValue": "0x00bc000010 ",1137 "MSRValue": "0x00bc000010 ",
1084 "Counter": "0,1,2,3",1138 "Counter": "0,1,2,3",
@@ -1091,6 +1145,7 @@ · 6 unmodified lines
1091 "CounterHTOff": "0,1,2,3"1145 "CounterHTOff": "0,1,2,3"
1092 },1146 },
1093 {1147 {
1148 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1094 "EventCode": "0xB7, 0xBB",1149 "EventCode": "0xB7, 0xBB",
1095 "MSRValue": "0x013c000010 ",1150 "MSRValue": "0x013c000010 ",
1096 "Counter": "0,1,2,3",1151 "Counter": "0,1,2,3",
@@ -1103,6 +1158,7 @@ · 6 unmodified lines
1103 "CounterHTOff": "0,1,2,3"1158 "CounterHTOff": "0,1,2,3"
1104 },1159 },
1105 {1160 {
1161 "PublicDescription": "Counts prefetch (that bring data to L2) data reads that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1106 "EventCode": "0xB7, 0xBB",1162 "EventCode": "0xB7, 0xBB",
1107 "MSRValue": "0x023c000010 ",1163 "MSRValue": "0x023c000010 ",
1108 "Counter": "0,1,2,3",1164 "Counter": "0,1,2,3",
@@ -1115,6 +1171,7 @@ · 6 unmodified lines
1115 "CounterHTOff": "0,1,2,3"1171 "CounterHTOff": "0,1,2,3"
1116 },1172 },
1117 {1173 {
1174 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1118 "EventCode": "0xB7, 0xBB",1175 "EventCode": "0xB7, 0xBB",
1119 "MSRValue": "0x043c000010 ",1176 "MSRValue": "0x043c000010 ",
1120 "Counter": "0,1,2,3",1177 "Counter": "0,1,2,3",
@@ -1127,6 +1184,7 @@ · 6 unmodified lines
1127 "CounterHTOff": "0,1,2,3"1184 "CounterHTOff": "0,1,2,3"
1128 },1185 },
1129 {1186 {
1187 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1130 "EventCode": "0xB7, 0xBB",1188 "EventCode": "0xB7, 0xBB",
1131 "MSRValue": "0x2000020020 ",1189 "MSRValue": "0x2000020020 ",
1132 "Counter": "0,1,2,3",1190 "Counter": "0,1,2,3",
@@ -1139,6 +1197,7 @@ · 6 unmodified lines
1139 "CounterHTOff": "0,1,2,3"1197 "CounterHTOff": "0,1,2,3"
1140 },1198 },
1141 {1199 {
1200 "PublicDescription": "Counts all prefetch (that bring data to L2) RFOs that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1142 "EventCode": "0xB7, 0xBB",1201 "EventCode": "0xB7, 0xBB",
1143 "MSRValue": "0x20003c0020 ",1202 "MSRValue": "0x20003c0020 ",
1144 "Counter": "0,1,2,3",1203 "Counter": "0,1,2,3",
@@ -1151,6 +1210,7 @@ · 6 unmodified lines
1151 "CounterHTOff": "0,1,2,3"1210 "CounterHTOff": "0,1,2,3"
1152 },1211 },
1153 {1212 {
1213 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1154 "EventCode": "0xB7, 0xBB",1214 "EventCode": "0xB7, 0xBB",
1155 "MSRValue": "0x0084000020 ",1215 "MSRValue": "0x0084000020 ",
1156 "Counter": "0,1,2,3",1216 "Counter": "0,1,2,3",
@@ -1163,6 +1223,7 @@ · 6 unmodified lines
1163 "CounterHTOff": "0,1,2,3"1223 "CounterHTOff": "0,1,2,3"
1164 },1224 },
1165 {1225 {
1226 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1166 "EventCode": "0xB7, 0xBB",1227 "EventCode": "0xB7, 0xBB",
1167 "MSRValue": "0x0104000020 ",1228 "MSRValue": "0x0104000020 ",
1168 "Counter": "0,1,2,3",1229 "Counter": "0,1,2,3",
@@ -1175,6 +1236,7 @@ · 6 unmodified lines
1175 "CounterHTOff": "0,1,2,3"1236 "CounterHTOff": "0,1,2,3"
1176 },1237 },
1177 {1238 {
1239 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1178 "EventCode": "0xB7, 0xBB",1240 "EventCode": "0xB7, 0xBB",
1179 "MSRValue": "0x0204000020 ",1241 "MSRValue": "0x0204000020 ",
1180 "Counter": "0,1,2,3",1242 "Counter": "0,1,2,3",
@@ -1187,6 +1249,7 @@ · 6 unmodified lines
1187 "CounterHTOff": "0,1,2,3"1249 "CounterHTOff": "0,1,2,3"
1188 },1250 },
1189 {1251 {
1252 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1190 "EventCode": "0xB7, 0xBB",1253 "EventCode": "0xB7, 0xBB",
1191 "MSRValue": "0x0404000020 ",1254 "MSRValue": "0x0404000020 ",
1192 "Counter": "0,1,2,3",1255 "Counter": "0,1,2,3",
@@ -1199,6 +1262,7 @@ · 6 unmodified lines
1199 "CounterHTOff": "0,1,2,3"1262 "CounterHTOff": "0,1,2,3"
1200 },1263 },
1201 {1264 {
1265 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1202 "EventCode": "0xB7, 0xBB",1266 "EventCode": "0xB7, 0xBB",
1203 "MSRValue": "0x1004000020 ",1267 "MSRValue": "0x1004000020 ",
1204 "Counter": "0,1,2,3",1268 "Counter": "0,1,2,3",
@@ -1211,6 +1275,7 @@ · 6 unmodified lines
1211 "CounterHTOff": "0,1,2,3"1275 "CounterHTOff": "0,1,2,3"
1212 },1276 },
1213 {1277 {
1278 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1214 "EventCode": "0xB7, 0xBB",1279 "EventCode": "0xB7, 0xBB",
1215 "MSRValue": "0x2004000020 ",1280 "MSRValue": "0x2004000020 ",
1216 "Counter": "0,1,2,3",1281 "Counter": "0,1,2,3",
@@ -1223,6 +1288,7 @@ · 6 unmodified lines
1223 "CounterHTOff": "0,1,2,3"1288 "CounterHTOff": "0,1,2,3"
1224 },1289 },
1225 {1290 {
1291 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1226 "EventCode": "0xB7, 0xBB",1292 "EventCode": "0xB7, 0xBB",
1227 "MSRValue": "0x3f84000020 ",1293 "MSRValue": "0x3f84000020 ",
1228 "Counter": "0,1,2,3",1294 "Counter": "0,1,2,3",
@@ -1235,6 +1301,7 @@ · 6 unmodified lines
1235 "CounterHTOff": "0,1,2,3"1301 "CounterHTOff": "0,1,2,3"
1236 },1302 },
1237 {1303 {
1304 "PublicDescription": "Counts all prefetch (that bring data to L2) RFOs that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1238 "EventCode": "0xB7, 0xBB",1305 "EventCode": "0xB7, 0xBB",
1239 "MSRValue": "0x00bc000020 ",1306 "MSRValue": "0x00bc000020 ",
1240 "Counter": "0,1,2,3",1307 "Counter": "0,1,2,3",
@@ -1247,6 +1314,7 @@ · 6 unmodified lines
1247 "CounterHTOff": "0,1,2,3"1314 "CounterHTOff": "0,1,2,3"
1248 },1315 },
1249 {1316 {
1317 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1250 "EventCode": "0xB7, 0xBB",1318 "EventCode": "0xB7, 0xBB",
1251 "MSRValue": "0x013c000020 ",1319 "MSRValue": "0x013c000020 ",
1252 "Counter": "0,1,2,3",1320 "Counter": "0,1,2,3",
@@ -1259,6 +1327,7 @@ · 6 unmodified lines
1259 "CounterHTOff": "0,1,2,3"1327 "CounterHTOff": "0,1,2,3"
1260 },1328 },
1261 {1329 {
1330 "PublicDescription": "Counts all prefetch (that bring data to L2) RFOs that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1262 "EventCode": "0xB7, 0xBB",1331 "EventCode": "0xB7, 0xBB",
1263 "MSRValue": "0x023c000020 ",1332 "MSRValue": "0x023c000020 ",
1264 "Counter": "0,1,2,3",1333 "Counter": "0,1,2,3",
@@ -1271,6 +1340,7 @@ · 6 unmodified lines
1271 "CounterHTOff": "0,1,2,3"1340 "CounterHTOff": "0,1,2,3"
1272 },1341 },
1273 {1342 {
1343 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1274 "EventCode": "0xB7, 0xBB",1344 "EventCode": "0xB7, 0xBB",
1275 "MSRValue": "0x043c000020 ",1345 "MSRValue": "0x043c000020 ",
1276 "Counter": "0,1,2,3",1346 "Counter": "0,1,2,3",
@@ -1283,6 +1353,7 @@ · 6 unmodified lines
1283 "CounterHTOff": "0,1,2,3"1353 "CounterHTOff": "0,1,2,3"
1284 },1354 },
1285 {1355 {
1356 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1286 "EventCode": "0xB7, 0xBB",1357 "EventCode": "0xB7, 0xBB",
1287 "MSRValue": "0x2000020040 ",1358 "MSRValue": "0x2000020040 ",
1288 "Counter": "0,1,2,3",1359 "Counter": "0,1,2,3",
@@ -1295,6 +1366,7 @@ · 6 unmodified lines
1295 "CounterHTOff": "0,1,2,3"1366 "CounterHTOff": "0,1,2,3"
1296 },1367 },
1297 {1368 {
1369 "PublicDescription": "Counts all prefetch (that bring data to LLC only) code reads that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1298 "EventCode": "0xB7, 0xBB",1370 "EventCode": "0xB7, 0xBB",
1299 "MSRValue": "0x20003c0040 ",1371 "MSRValue": "0x20003c0040 ",
1300 "Counter": "0,1,2,3",1372 "Counter": "0,1,2,3",
@@ -1307,6 +1379,7 @@ · 6 unmodified lines
1307 "CounterHTOff": "0,1,2,3"1379 "CounterHTOff": "0,1,2,3"
1308 },1380 },
1309 {1381 {
1382 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1310 "EventCode": "0xB7, 0xBB",1383 "EventCode": "0xB7, 0xBB",
1311 "MSRValue": "0x0084000040 ",1384 "MSRValue": "0x0084000040 ",
1312 "Counter": "0,1,2,3",1385 "Counter": "0,1,2,3",
@@ -1319,6 +1392,7 @@ · 6 unmodified lines
1319 "CounterHTOff": "0,1,2,3"1392 "CounterHTOff": "0,1,2,3"
1320 },1393 },
1321 {1394 {
1395 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1322 "EventCode": "0xB7, 0xBB",1396 "EventCode": "0xB7, 0xBB",
1323 "MSRValue": "0x0104000040 ",1397 "MSRValue": "0x0104000040 ",
1324 "Counter": "0,1,2,3",1398 "Counter": "0,1,2,3",
@@ -1331,6 +1405,7 @@ · 6 unmodified lines
1331 "CounterHTOff": "0,1,2,3"1405 "CounterHTOff": "0,1,2,3"
1332 },1406 },
1333 {1407 {
1408 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1334 "EventCode": "0xB7, 0xBB",1409 "EventCode": "0xB7, 0xBB",
1335 "MSRValue": "0x0204000040 ",1410 "MSRValue": "0x0204000040 ",
1336 "Counter": "0,1,2,3",1411 "Counter": "0,1,2,3",
@@ -1343,6 +1418,7 @@ · 6 unmodified lines
1343 "CounterHTOff": "0,1,2,3"1418 "CounterHTOff": "0,1,2,3"
1344 },1419 },
1345 {1420 {
1421 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1346 "EventCode": "0xB7, 0xBB",1422 "EventCode": "0xB7, 0xBB",
1347 "MSRValue": "0x0404000040 ",1423 "MSRValue": "0x0404000040 ",
1348 "Counter": "0,1,2,3",1424 "Counter": "0,1,2,3",
@@ -1355,6 +1431,7 @@ · 6 unmodified lines
1355 "CounterHTOff": "0,1,2,3"1431 "CounterHTOff": "0,1,2,3"
1356 },1432 },
1357 {1433 {
1434 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1358 "EventCode": "0xB7, 0xBB",1435 "EventCode": "0xB7, 0xBB",
1359 "MSRValue": "0x1004000040 ",1436 "MSRValue": "0x1004000040 ",
1360 "Counter": "0,1,2,3",1437 "Counter": "0,1,2,3",
@@ -1367,6 +1444,7 @@ · 6 unmodified lines
1367 "CounterHTOff": "0,1,2,3"1444 "CounterHTOff": "0,1,2,3"
1368 },1445 },
1369 {1446 {
1447 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1370 "EventCode": "0xB7, 0xBB",1448 "EventCode": "0xB7, 0xBB",
1371 "MSRValue": "0x2004000040 ",1449 "MSRValue": "0x2004000040 ",
1372 "Counter": "0,1,2,3",1450 "Counter": "0,1,2,3",
@@ -1379,6 +1457,7 @@ · 6 unmodified lines
1379 "CounterHTOff": "0,1,2,3"1457 "CounterHTOff": "0,1,2,3"
1380 },1458 },
1381 {1459 {
1460 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1382 "EventCode": "0xB7, 0xBB",1461 "EventCode": "0xB7, 0xBB",
1383 "MSRValue": "0x3f84000040 ",1462 "MSRValue": "0x3f84000040 ",
1384 "Counter": "0,1,2,3",1463 "Counter": "0,1,2,3",
@@ -1391,6 +1470,7 @@ · 6 unmodified lines
1391 "CounterHTOff": "0,1,2,3"1470 "CounterHTOff": "0,1,2,3"
1392 },1471 },
1393 {1472 {
1473 "PublicDescription": "Counts all prefetch (that bring data to LLC only) code reads that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1394 "EventCode": "0xB7, 0xBB",1474 "EventCode": "0xB7, 0xBB",
1395 "MSRValue": "0x00bc000040 ",1475 "MSRValue": "0x00bc000040 ",
1396 "Counter": "0,1,2,3",1476 "Counter": "0,1,2,3",
@@ -1403,6 +1483,7 @@ · 6 unmodified lines
1403 "CounterHTOff": "0,1,2,3"1483 "CounterHTOff": "0,1,2,3"
1404 },1484 },
1405 {1485 {
1486 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1406 "EventCode": "0xB7, 0xBB",1487 "EventCode": "0xB7, 0xBB",
1407 "MSRValue": "0x013c000040 ",1488 "MSRValue": "0x013c000040 ",
1408 "Counter": "0,1,2,3",1489 "Counter": "0,1,2,3",
@@ -1415,6 +1496,7 @@ · 6 unmodified lines
1415 "CounterHTOff": "0,1,2,3"1496 "CounterHTOff": "0,1,2,3"
1416 },1497 },
1417 {1498 {
1499 "PublicDescription": "Counts all prefetch (that bring data to LLC only) code reads that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1418 "EventCode": "0xB7, 0xBB",1500 "EventCode": "0xB7, 0xBB",
1419 "MSRValue": "0x023c000040 ",1501 "MSRValue": "0x023c000040 ",
1420 "Counter": "0,1,2,3",1502 "Counter": "0,1,2,3",
@@ -1427,6 +1509,7 @@ · 6 unmodified lines
1427 "CounterHTOff": "0,1,2,3"1509 "CounterHTOff": "0,1,2,3"
1428 },1510 },
1429 {1511 {
1512 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1430 "EventCode": "0xB7, 0xBB",1513 "EventCode": "0xB7, 0xBB",
1431 "MSRValue": "0x043c000040 ",1514 "MSRValue": "0x043c000040 ",
1432 "Counter": "0,1,2,3",1515 "Counter": "0,1,2,3",
@@ -1439,6 +1522,7 @@ · 6 unmodified lines
1439 "CounterHTOff": "0,1,2,3"1522 "CounterHTOff": "0,1,2,3"
1440 },1523 },
1441 {1524 {
1525 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1442 "EventCode": "0xB7, 0xBB",1526 "EventCode": "0xB7, 0xBB",
1443 "MSRValue": "0x2000020080 ",1527 "MSRValue": "0x2000020080 ",
1444 "Counter": "0,1,2,3",1528 "Counter": "0,1,2,3",
@@ -1451,6 +1535,7 @@ · 6 unmodified lines
1451 "CounterHTOff": "0,1,2,3"1535 "CounterHTOff": "0,1,2,3"
1452 },1536 },
1453 {1537 {
1538 "PublicDescription": "Counts all prefetch (that bring data to LLC only) data reads that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1454 "EventCode": "0xB7, 0xBB",1539 "EventCode": "0xB7, 0xBB",
1455 "MSRValue": "0x20003c0080 ",1540 "MSRValue": "0x20003c0080 ",
1456 "Counter": "0,1,2,3",1541 "Counter": "0,1,2,3",
@@ -1463,6 +1548,7 @@ · 6 unmodified lines
1463 "CounterHTOff": "0,1,2,3"1548 "CounterHTOff": "0,1,2,3"
1464 },1549 },
1465 {1550 {
1551 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1466 "EventCode": "0xB7, 0xBB",1552 "EventCode": "0xB7, 0xBB",
1467 "MSRValue": "0x0084000080 ",1553 "MSRValue": "0x0084000080 ",
1468 "Counter": "0,1,2,3",1554 "Counter": "0,1,2,3",
@@ -1475,6 +1561,7 @@ · 6 unmodified lines
1475 "CounterHTOff": "0,1,2,3"1561 "CounterHTOff": "0,1,2,3"
1476 },1562 },
1477 {1563 {
1564 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1478 "EventCode": "0xB7, 0xBB",1565 "EventCode": "0xB7, 0xBB",
1479 "MSRValue": "0x0104000080 ",1566 "MSRValue": "0x0104000080 ",
1480 "Counter": "0,1,2,3",1567 "Counter": "0,1,2,3",
@@ -1487,6 +1574,7 @@ · 6 unmodified lines
1487 "CounterHTOff": "0,1,2,3"1574 "CounterHTOff": "0,1,2,3"
1488 },1575 },
1489 {1576 {
1577 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1490 "EventCode": "0xB7, 0xBB",1578 "EventCode": "0xB7, 0xBB",
1491 "MSRValue": "0x0204000080 ",1579 "MSRValue": "0x0204000080 ",
1492 "Counter": "0,1,2,3",1580 "Counter": "0,1,2,3",
@@ -1499,6 +1587,7 @@ · 6 unmodified lines
1499 "CounterHTOff": "0,1,2,3"1587 "CounterHTOff": "0,1,2,3"
1500 },1588 },
1501 {1589 {
1590 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1502 "EventCode": "0xB7, 0xBB",1591 "EventCode": "0xB7, 0xBB",
1503 "MSRValue": "0x0404000080 ",1592 "MSRValue": "0x0404000080 ",
1504 "Counter": "0,1,2,3",1593 "Counter": "0,1,2,3",
@@ -1511,6 +1600,7 @@ · 6 unmodified lines
1511 "CounterHTOff": "0,1,2,3"1600 "CounterHTOff": "0,1,2,3"
1512 },1601 },
1513 {1602 {
1603 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1514 "EventCode": "0xB7, 0xBB",1604 "EventCode": "0xB7, 0xBB",
1515 "MSRValue": "0x1004000080 ",1605 "MSRValue": "0x1004000080 ",
1516 "Counter": "0,1,2,3",1606 "Counter": "0,1,2,3",
@@ -1523,6 +1613,7 @@ · 6 unmodified lines
1523 "CounterHTOff": "0,1,2,3"1613 "CounterHTOff": "0,1,2,3"
1524 },1614 },
1525 {1615 {
1616 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1526 "EventCode": "0xB7, 0xBB",1617 "EventCode": "0xB7, 0xBB",
1527 "MSRValue": "0x2004000080 ",1618 "MSRValue": "0x2004000080 ",
1528 "Counter": "0,1,2,3",1619 "Counter": "0,1,2,3",
@@ -1535,6 +1626,7 @@ · 6 unmodified lines
1535 "CounterHTOff": "0,1,2,3"1626 "CounterHTOff": "0,1,2,3"
1536 },1627 },
1537 {1628 {
1629 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1538 "EventCode": "0xB7, 0xBB",1630 "EventCode": "0xB7, 0xBB",
1539 "MSRValue": "0x3f84000080 ",1631 "MSRValue": "0x3f84000080 ",
1540 "Counter": "0,1,2,3",1632 "Counter": "0,1,2,3",
@@ -1547,6 +1639,7 @@ · 6 unmodified lines
1547 "CounterHTOff": "0,1,2,3"1639 "CounterHTOff": "0,1,2,3"
1548 },1640 },
1549 {1641 {
1642 "PublicDescription": "Counts all prefetch (that bring data to LLC only) data reads that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1550 "EventCode": "0xB7, 0xBB",1643 "EventCode": "0xB7, 0xBB",
1551 "MSRValue": "0x00bc000080 ",1644 "MSRValue": "0x00bc000080 ",
1552 "Counter": "0,1,2,3",1645 "Counter": "0,1,2,3",
@@ -1559,6 +1652,7 @@ · 6 unmodified lines
1559 "CounterHTOff": "0,1,2,3"1652 "CounterHTOff": "0,1,2,3"
1560 },1653 },
1561 {1654 {
1655 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1562 "EventCode": "0xB7, 0xBB",1656 "EventCode": "0xB7, 0xBB",
1563 "MSRValue": "0x013c000080 ",1657 "MSRValue": "0x013c000080 ",
1564 "Counter": "0,1,2,3",1658 "Counter": "0,1,2,3",
@@ -1571,6 +1665,7 @@ · 6 unmodified lines
1571 "CounterHTOff": "0,1,2,3"1665 "CounterHTOff": "0,1,2,3"
1572 },1666 },
1573 {1667 {
1668 "PublicDescription": "Counts all prefetch (that bring data to LLC only) data reads that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1574 "EventCode": "0xB7, 0xBB",1669 "EventCode": "0xB7, 0xBB",
1575 "MSRValue": "0x023c000080 ",1670 "MSRValue": "0x023c000080 ",
1576 "Counter": "0,1,2,3",1671 "Counter": "0,1,2,3",
@@ -1583,6 +1678,7 @@ · 6 unmodified lines
1583 "CounterHTOff": "0,1,2,3"1678 "CounterHTOff": "0,1,2,3"
1584 },1679 },
1585 {1680 {
1681 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1586 "EventCode": "0xB7, 0xBB",1682 "EventCode": "0xB7, 0xBB",
1587 "MSRValue": "0x043c000080 ",1683 "MSRValue": "0x043c000080 ",
1588 "Counter": "0,1,2,3",1684 "Counter": "0,1,2,3",
@@ -1595,6 +1691,7 @@ · 6 unmodified lines
1595 "CounterHTOff": "0,1,2,3"1691 "CounterHTOff": "0,1,2,3"
1596 },1692 },
1597 {1693 {
1694 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1598 "EventCode": "0xB7, 0xBB",1695 "EventCode": "0xB7, 0xBB",
1599 "MSRValue": "0x2000020100 ",1696 "MSRValue": "0x2000020100 ",
1600 "Counter": "0,1,2,3",1697 "Counter": "0,1,2,3",
@@ -1607,6 +1704,7 @@ · 6 unmodified lines
1607 "CounterHTOff": "0,1,2,3"1704 "CounterHTOff": "0,1,2,3"
1608 },1705 },
1609 {1706 {
1707 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1610 "EventCode": "0xB7, 0xBB",1708 "EventCode": "0xB7, 0xBB",
1611 "MSRValue": "0x20003c0100 ",1709 "MSRValue": "0x20003c0100 ",
1612 "Counter": "0,1,2,3",1710 "Counter": "0,1,2,3",
@@ -1619,6 +1717,7 @@ · 6 unmodified lines
1619 "CounterHTOff": "0,1,2,3"1717 "CounterHTOff": "0,1,2,3"
1620 },1718 },
1621 {1719 {
1720 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1622 "EventCode": "0xB7, 0xBB",1721 "EventCode": "0xB7, 0xBB",
1623 "MSRValue": "0x0084000100 ",1722 "MSRValue": "0x0084000100 ",
1624 "Counter": "0,1,2,3",1723 "Counter": "0,1,2,3",
@@ -1631,6 +1730,7 @@ · 6 unmodified lines
1631 "CounterHTOff": "0,1,2,3"1730 "CounterHTOff": "0,1,2,3"
1632 },1731 },
1633 {1732 {
1733 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1634 "EventCode": "0xB7, 0xBB",1734 "EventCode": "0xB7, 0xBB",
1635 "MSRValue": "0x0104000100 ",1735 "MSRValue": "0x0104000100 ",
1636 "Counter": "0,1,2,3",1736 "Counter": "0,1,2,3",
@@ -1643,6 +1743,7 @@ · 6 unmodified lines
1643 "CounterHTOff": "0,1,2,3"1743 "CounterHTOff": "0,1,2,3"
1644 },1744 },
1645 {1745 {
1746 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1646 "EventCode": "0xB7, 0xBB",1747 "EventCode": "0xB7, 0xBB",
1647 "MSRValue": "0x0204000100 ",1748 "MSRValue": "0x0204000100 ",
1648 "Counter": "0,1,2,3",1749 "Counter": "0,1,2,3",
@@ -1655,6 +1756,7 @@ · 6 unmodified lines
1655 "CounterHTOff": "0,1,2,3"1756 "CounterHTOff": "0,1,2,3"
1656 },1757 },
1657 {1758 {
1759 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1658 "EventCode": "0xB7, 0xBB",1760 "EventCode": "0xB7, 0xBB",
1659 "MSRValue": "0x0404000100 ",1761 "MSRValue": "0x0404000100 ",
1660 "Counter": "0,1,2,3",1762 "Counter": "0,1,2,3",
@@ -1667,6 +1769,7 @@ · 6 unmodified lines
1667 "CounterHTOff": "0,1,2,3"1769 "CounterHTOff": "0,1,2,3"
1668 },1770 },
1669 {1771 {
1772 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1670 "EventCode": "0xB7, 0xBB",1773 "EventCode": "0xB7, 0xBB",
1671 "MSRValue": "0x1004000100 ",1774 "MSRValue": "0x1004000100 ",
1672 "Counter": "0,1,2,3",1775 "Counter": "0,1,2,3",
@@ -1679,6 +1782,7 @@ · 6 unmodified lines
1679 "CounterHTOff": "0,1,2,3"1782 "CounterHTOff": "0,1,2,3"
1680 },1783 },
1681 {1784 {
1785 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1682 "EventCode": "0xB7, 0xBB",1786 "EventCode": "0xB7, 0xBB",
1683 "MSRValue": "0x2004000100 ",1787 "MSRValue": "0x2004000100 ",
1684 "Counter": "0,1,2,3",1788 "Counter": "0,1,2,3",
@@ -1691,6 +1795,7 @@ · 6 unmodified lines
1691 "CounterHTOff": "0,1,2,3"1795 "CounterHTOff": "0,1,2,3"
1692 },1796 },
1693 {1797 {
1798 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1694 "EventCode": "0xB7, 0xBB",1799 "EventCode": "0xB7, 0xBB",
1695 "MSRValue": "0x3f84000100 ",1800 "MSRValue": "0x3f84000100 ",
1696 "Counter": "0,1,2,3",1801 "Counter": "0,1,2,3",
@@ -1703,6 +1808,7 @@ · 6 unmodified lines
1703 "CounterHTOff": "0,1,2,3"1808 "CounterHTOff": "0,1,2,3"
1704 },1809 },
1705 {1810 {
1811 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1706 "EventCode": "0xB7, 0xBB",1812 "EventCode": "0xB7, 0xBB",
1707 "MSRValue": "0x00bc000100 ",1813 "MSRValue": "0x00bc000100 ",
1708 "Counter": "0,1,2,3",1814 "Counter": "0,1,2,3",
@@ -1715,6 +1821,7 @@ · 6 unmodified lines
1715 "CounterHTOff": "0,1,2,3"1821 "CounterHTOff": "0,1,2,3"
1716 },1822 },
1717 {1823 {
1824 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1718 "EventCode": "0xB7, 0xBB",1825 "EventCode": "0xB7, 0xBB",
1719 "MSRValue": "0x013c000100 ",1826 "MSRValue": "0x013c000100 ",
1720 "Counter": "0,1,2,3",1827 "Counter": "0,1,2,3",
@@ -1727,6 +1834,7 @@ · 6 unmodified lines
1727 "CounterHTOff": "0,1,2,3"1834 "CounterHTOff": "0,1,2,3"
1728 },1835 },
1729 {1836 {
1837 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1730 "EventCode": "0xB7, 0xBB",1838 "EventCode": "0xB7, 0xBB",
1731 "MSRValue": "0x023c000100 ",1839 "MSRValue": "0x023c000100 ",
1732 "Counter": "0,1,2,3",1840 "Counter": "0,1,2,3",
@@ -1739,6 +1847,7 @@ · 6 unmodified lines
1739 "CounterHTOff": "0,1,2,3"1847 "CounterHTOff": "0,1,2,3"
1740 },1848 },
1741 {1849 {
1850 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1742 "EventCode": "0xB7, 0xBB",1851 "EventCode": "0xB7, 0xBB",
1743 "MSRValue": "0x043c000100 ",1852 "MSRValue": "0x043c000100 ",
1744 "Counter": "0,1,2,3",1853 "Counter": "0,1,2,3",
@@ -1751,6 +1860,7 @@ · 6 unmodified lines
1751 "CounterHTOff": "0,1,2,3"1860 "CounterHTOff": "0,1,2,3"
1752 },1861 },
1753 {1862 {
1863 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1754 "EventCode": "0xB7, 0xBB",1864 "EventCode": "0xB7, 0xBB",
1755 "MSRValue": "0x2000020200 ",1865 "MSRValue": "0x2000020200 ",
1756 "Counter": "0,1,2,3",1866 "Counter": "0,1,2,3",
@@ -1763,6 +1873,7 @@ · 6 unmodified lines
1763 "CounterHTOff": "0,1,2,3"1873 "CounterHTOff": "0,1,2,3"
1764 },1874 },
1765 {1875 {
1876 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1766 "EventCode": "0xB7, 0xBB",1877 "EventCode": "0xB7, 0xBB",
1767 "MSRValue": "0x20003c0200 ",1878 "MSRValue": "0x20003c0200 ",
1768 "Counter": "0,1,2,3",1879 "Counter": "0,1,2,3",
@@ -1775,6 +1886,7 @@ · 6 unmodified lines
1775 "CounterHTOff": "0,1,2,3"1886 "CounterHTOff": "0,1,2,3"
1776 },1887 },
1777 {1888 {
1889 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1778 "EventCode": "0xB7, 0xBB",1890 "EventCode": "0xB7, 0xBB",
1779 "MSRValue": "0x0084000200 ",1891 "MSRValue": "0x0084000200 ",
1780 "Counter": "0,1,2,3",1892 "Counter": "0,1,2,3",
@@ -1787,6 +1899,7 @@ · 6 unmodified lines
1787 "CounterHTOff": "0,1,2,3"1899 "CounterHTOff": "0,1,2,3"
1788 },1900 },
1789 {1901 {
1902 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1790 "EventCode": "0xB7, 0xBB",1903 "EventCode": "0xB7, 0xBB",
1791 "MSRValue": "0x0104000200 ",1904 "MSRValue": "0x0104000200 ",
1792 "Counter": "0,1,2,3",1905 "Counter": "0,1,2,3",
@@ -1799,6 +1912,7 @@ · 6 unmodified lines
1799 "CounterHTOff": "0,1,2,3"1912 "CounterHTOff": "0,1,2,3"
1800 },1913 },
1801 {1914 {
1915 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1802 "EventCode": "0xB7, 0xBB",1916 "EventCode": "0xB7, 0xBB",
1803 "MSRValue": "0x0204000200 ",1917 "MSRValue": "0x0204000200 ",
1804 "Counter": "0,1,2,3",1918 "Counter": "0,1,2,3",
@@ -1811,6 +1925,7 @@ · 6 unmodified lines
1811 "CounterHTOff": "0,1,2,3"1925 "CounterHTOff": "0,1,2,3"
1812 },1926 },
1813 {1927 {
1928 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1814 "EventCode": "0xB7, 0xBB",1929 "EventCode": "0xB7, 0xBB",
1815 "MSRValue": "0x0404000200 ",1930 "MSRValue": "0x0404000200 ",
1816 "Counter": "0,1,2,3",1931 "Counter": "0,1,2,3",
@@ -1823,6 +1938,7 @@ · 6 unmodified lines
1823 "CounterHTOff": "0,1,2,3"1938 "CounterHTOff": "0,1,2,3"
1824 },1939 },
1825 {1940 {
1941 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1826 "EventCode": "0xB7, 0xBB",1942 "EventCode": "0xB7, 0xBB",
1827 "MSRValue": "0x1004000200 ",1943 "MSRValue": "0x1004000200 ",
1828 "Counter": "0,1,2,3",1944 "Counter": "0,1,2,3",
@@ -1835,6 +1951,7 @@ · 6 unmodified lines
1835 "CounterHTOff": "0,1,2,3"1951 "CounterHTOff": "0,1,2,3"
1836 },1952 },
1837 {1953 {
1954 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1838 "EventCode": "0xB7, 0xBB",1955 "EventCode": "0xB7, 0xBB",
1839 "MSRValue": "0x2004000200 ",1956 "MSRValue": "0x2004000200 ",
1840 "Counter": "0,1,2,3",1957 "Counter": "0,1,2,3",
@@ -1847,6 +1964,7 @@ · 6 unmodified lines
1847 "CounterHTOff": "0,1,2,3"1964 "CounterHTOff": "0,1,2,3"
1848 },1965 },
1849 {1966 {
1967 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1850 "EventCode": "0xB7, 0xBB",1968 "EventCode": "0xB7, 0xBB",
1851 "MSRValue": "0x3f84000200 ",1969 "MSRValue": "0x3f84000200 ",
1852 "Counter": "0,1,2,3",1970 "Counter": "0,1,2,3",
@@ -1859,6 +1977,7 @@ · 6 unmodified lines
1859 "CounterHTOff": "0,1,2,3"1977 "CounterHTOff": "0,1,2,3"
1860 },1978 },
1861 {1979 {
1980 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1862 "EventCode": "0xB7, 0xBB",1981 "EventCode": "0xB7, 0xBB",
1863 "MSRValue": "0x00bc000200 ",1982 "MSRValue": "0x00bc000200 ",
1864 "Counter": "0,1,2,3",1983 "Counter": "0,1,2,3",
@@ -1871,6 +1990,7 @@ · 6 unmodified lines
1871 "CounterHTOff": "0,1,2,3"1990 "CounterHTOff": "0,1,2,3"
1872 },1991 },
1873 {1992 {
1993 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1874 "EventCode": "0xB7, 0xBB",1994 "EventCode": "0xB7, 0xBB",
1875 "MSRValue": "0x013c000200 ",1995 "MSRValue": "0x013c000200 ",
1876 "Counter": "0,1,2,3",1996 "Counter": "0,1,2,3",
@@ -1883,6 +2003,7 @@ · 6 unmodified lines
1883 "CounterHTOff": "0,1,2,3"2003 "CounterHTOff": "0,1,2,3"
1884 },2004 },
1885 {2005 {
2006 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1886 "EventCode": "0xB7, 0xBB",2007 "EventCode": "0xB7, 0xBB",
1887 "MSRValue": "0x023c000200 ",2008 "MSRValue": "0x023c000200 ",
1888 "Counter": "0,1,2,3",2009 "Counter": "0,1,2,3",
@@ -1895,6 +2016,7 @@ · 6 unmodified lines
1895 "CounterHTOff": "0,1,2,3"2016 "CounterHTOff": "0,1,2,3"
1896 },2017 },
1897 {2018 {
2019 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1898 "EventCode": "0xB7, 0xBB",2020 "EventCode": "0xB7, 0xBB",
1899 "MSRValue": "0x043c000200 ",2021 "MSRValue": "0x043c000200 ",
1900 "Counter": "0,1,2,3",2022 "Counter": "0,1,2,3",
@@ -1907,6 +2029,7 @@ · 6 unmodified lines
1907 "CounterHTOff": "0,1,2,3"2029 "CounterHTOff": "0,1,2,3"
1908 },2030 },
1909 {2031 {
2032 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1910 "EventCode": "0xB7, 0xBB",2033 "EventCode": "0xB7, 0xBB",
1911 "MSRValue": "0x2000028000 ",2034 "MSRValue": "0x2000028000 ",
1912 "Counter": "0,1,2,3",2035 "Counter": "0,1,2,3",
@@ -1919,6 +2042,7 @@ · 6 unmodified lines
1919 "CounterHTOff": "0,1,2,3"2042 "CounterHTOff": "0,1,2,3"
1920 },2043 },
1921 {2044 {
2045 "PublicDescription": "Counts any other requests that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1922 "EventCode": "0xB7, 0xBB",2046 "EventCode": "0xB7, 0xBB",
1923 "MSRValue": "0x20003c8000 ",2047 "MSRValue": "0x20003c8000 ",
1924 "Counter": "0,1,2,3",2048 "Counter": "0,1,2,3",
@@ -1931,6 +2055,7 @@ · 6 unmodified lines
1931 "CounterHTOff": "0,1,2,3"2055 "CounterHTOff": "0,1,2,3"
1932 },2056 },
1933 {2057 {
2058 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1934 "EventCode": "0xB7, 0xBB",2059 "EventCode": "0xB7, 0xBB",
1935 "MSRValue": "0x0084008000 ",2060 "MSRValue": "0x0084008000 ",
1936 "Counter": "0,1,2,3",2061 "Counter": "0,1,2,3",
@@ -1943,6 +2068,7 @@ · 6 unmodified lines
1943 "CounterHTOff": "0,1,2,3"2068 "CounterHTOff": "0,1,2,3"
1944 },2069 },
1945 {2070 {
2071 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1946 "EventCode": "0xB7, 0xBB",2072 "EventCode": "0xB7, 0xBB",
1947 "MSRValue": "0x0104008000 ",2073 "MSRValue": "0x0104008000 ",
1948 "Counter": "0,1,2,3",2074 "Counter": "0,1,2,3",
@@ -1955,6 +2081,7 @@ · 6 unmodified lines
1955 "CounterHTOff": "0,1,2,3"2081 "CounterHTOff": "0,1,2,3"
1956 },2082 },
1957 {2083 {
2084 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1958 "EventCode": "0xB7, 0xBB",2085 "EventCode": "0xB7, 0xBB",
1959 "MSRValue": "0x0204008000 ",2086 "MSRValue": "0x0204008000 ",
1960 "Counter": "0,1,2,3",2087 "Counter": "0,1,2,3",
@@ -1967,6 +2094,7 @@ · 6 unmodified lines
1967 "CounterHTOff": "0,1,2,3"2094 "CounterHTOff": "0,1,2,3"
1968 },2095 },
1969 {2096 {
2097 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1970 "EventCode": "0xB7, 0xBB",2098 "EventCode": "0xB7, 0xBB",
1971 "MSRValue": "0x0404008000 ",2099 "MSRValue": "0x0404008000 ",
1972 "Counter": "0,1,2,3",2100 "Counter": "0,1,2,3",
@@ -1979,6 +2107,7 @@ · 6 unmodified lines
1979 "CounterHTOff": "0,1,2,3"2107 "CounterHTOff": "0,1,2,3"
1980 },2108 },
1981 {2109 {
2110 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1982 "EventCode": "0xB7, 0xBB",2111 "EventCode": "0xB7, 0xBB",
1983 "MSRValue": "0x1004008000 ",2112 "MSRValue": "0x1004008000 ",
1984 "Counter": "0,1,2,3",2113 "Counter": "0,1,2,3",
@@ -1991,6 +2120,7 @@ · 6 unmodified lines
1991 "CounterHTOff": "0,1,2,3"2120 "CounterHTOff": "0,1,2,3"
1992 },2121 },
1993 {2122 {
2123 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
1994 "EventCode": "0xB7, 0xBB",2124 "EventCode": "0xB7, 0xBB",
1995 "MSRValue": "0x2004008000 ",2125 "MSRValue": "0x2004008000 ",
1996 "Counter": "0,1,2,3",2126 "Counter": "0,1,2,3",
@@ -2003,6 +2133,7 @@ · 6 unmodified lines
2003 "CounterHTOff": "0,1,2,3"2133 "CounterHTOff": "0,1,2,3"
2004 },2134 },
2005 {2135 {
2136 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2006 "EventCode": "0xB7, 0xBB",2137 "EventCode": "0xB7, 0xBB",
2007 "MSRValue": "0x3f84008000 ",2138 "MSRValue": "0x3f84008000 ",
2008 "Counter": "0,1,2,3",2139 "Counter": "0,1,2,3",
@@ -2015,6 +2146,7 @@ · 6 unmodified lines
2015 "CounterHTOff": "0,1,2,3"2146 "CounterHTOff": "0,1,2,3"
2016 },2147 },
2017 {2148 {
2149 "PublicDescription": "Counts any other requests that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2018 "EventCode": "0xB7, 0xBB",2150 "EventCode": "0xB7, 0xBB",
2019 "MSRValue": "0x00bc008000 ",2151 "MSRValue": "0x00bc008000 ",
2020 "Counter": "0,1,2,3",2152 "Counter": "0,1,2,3",
@@ -2027,6 +2159,7 @@ · 6 unmodified lines
2027 "CounterHTOff": "0,1,2,3"2159 "CounterHTOff": "0,1,2,3"
2028 },2160 },
2029 {2161 {
2162 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2030 "EventCode": "0xB7, 0xBB",2163 "EventCode": "0xB7, 0xBB",
2031 "MSRValue": "0x013c008000 ",2164 "MSRValue": "0x013c008000 ",
2032 "Counter": "0,1,2,3",2165 "Counter": "0,1,2,3",
@@ -2039,6 +2172,7 @@ · 6 unmodified lines
2039 "CounterHTOff": "0,1,2,3"2172 "CounterHTOff": "0,1,2,3"
2040 },2173 },
2041 {2174 {
2175 "PublicDescription": "Counts any other requests that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2042 "EventCode": "0xB7, 0xBB",2176 "EventCode": "0xB7, 0xBB",
2043 "MSRValue": "0x023c008000 ",2177 "MSRValue": "0x023c008000 ",
2044 "Counter": "0,1,2,3",2178 "Counter": "0,1,2,3",
@@ -2051,6 +2185,7 @@ · 6 unmodified lines
2051 "CounterHTOff": "0,1,2,3"2185 "CounterHTOff": "0,1,2,3"
2052 },2186 },
2053 {2187 {
2188 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2054 "EventCode": "0xB7, 0xBB",2189 "EventCode": "0xB7, 0xBB",
2055 "MSRValue": "0x043c008000 ",2190 "MSRValue": "0x043c008000 ",
2056 "Counter": "0,1,2,3",2191 "Counter": "0,1,2,3",
@@ -2063,6 +2198,7 @@ · 6 unmodified lines
2063 "CounterHTOff": "0,1,2,3"2198 "CounterHTOff": "0,1,2,3"
2064 },2199 },
2065 {2200 {
2201 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2066 "EventCode": "0xB7, 0xBB",2202 "EventCode": "0xB7, 0xBB",
2067 "MSRValue": "0x2000020090 ",2203 "MSRValue": "0x2000020090 ",
2068 "Counter": "0,1,2,3",2204 "Counter": "0,1,2,3",
@@ -2075,6 +2211,7 @@ · 6 unmodified lines
2075 "CounterHTOff": "0,1,2,3"2211 "CounterHTOff": "0,1,2,3"
2076 },2212 },
2077 {2213 {
2214 "PublicDescription": "Counts all prefetch data reads that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2078 "EventCode": "0xB7, 0xBB",2215 "EventCode": "0xB7, 0xBB",
2079 "MSRValue": "0x20003c0090 ",2216 "MSRValue": "0x20003c0090 ",
2080 "Counter": "0,1,2,3",2217 "Counter": "0,1,2,3",
@@ -2087,6 +2224,7 @@ · 6 unmodified lines
2087 "CounterHTOff": "0,1,2,3"2224 "CounterHTOff": "0,1,2,3"
2088 },2225 },
2089 {2226 {
2227 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2090 "EventCode": "0xB7, 0xBB",2228 "EventCode": "0xB7, 0xBB",
2091 "MSRValue": "0x0084000090 ",2229 "MSRValue": "0x0084000090 ",
2092 "Counter": "0,1,2,3",2230 "Counter": "0,1,2,3",
@@ -2099,6 +2237,7 @@ · 6 unmodified lines
2099 "CounterHTOff": "0,1,2,3"2237 "CounterHTOff": "0,1,2,3"
2100 },2238 },
2101 {2239 {
2240 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2102 "EventCode": "0xB7, 0xBB",2241 "EventCode": "0xB7, 0xBB",
2103 "MSRValue": "0x0104000090 ",2242 "MSRValue": "0x0104000090 ",
2104 "Counter": "0,1,2,3",2243 "Counter": "0,1,2,3",
@@ -2111,6 +2250,7 @@ · 6 unmodified lines
2111 "CounterHTOff": "0,1,2,3"2250 "CounterHTOff": "0,1,2,3"
2112 },2251 },
2113 {2252 {
2253 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2114 "EventCode": "0xB7, 0xBB",2254 "EventCode": "0xB7, 0xBB",
2115 "MSRValue": "0x0204000090 ",2255 "MSRValue": "0x0204000090 ",
2116 "Counter": "0,1,2,3",2256 "Counter": "0,1,2,3",
@@ -2123,6 +2263,7 @@ · 6 unmodified lines
2123 "CounterHTOff": "0,1,2,3"2263 "CounterHTOff": "0,1,2,3"
2124 },2264 },
2125 {2265 {
2266 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2126 "EventCode": "0xB7, 0xBB",2267 "EventCode": "0xB7, 0xBB",
2127 "MSRValue": "0x0404000090 ",2268 "MSRValue": "0x0404000090 ",
2128 "Counter": "0,1,2,3",2269 "Counter": "0,1,2,3",
@@ -2135,6 +2276,7 @@ · 6 unmodified lines
2135 "CounterHTOff": "0,1,2,3"2276 "CounterHTOff": "0,1,2,3"
2136 },2277 },
2137 {2278 {
2279 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2138 "EventCode": "0xB7, 0xBB",2280 "EventCode": "0xB7, 0xBB",
2139 "MSRValue": "0x1004000090 ",2281 "MSRValue": "0x1004000090 ",
2140 "Counter": "0,1,2,3",2282 "Counter": "0,1,2,3",
@@ -2147,6 +2289,7 @@ · 6 unmodified lines
2147 "CounterHTOff": "0,1,2,3"2289 "CounterHTOff": "0,1,2,3"
2148 },2290 },
2149 {2291 {
2292 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2150 "EventCode": "0xB7, 0xBB",2293 "EventCode": "0xB7, 0xBB",
2151 "MSRValue": "0x2004000090 ",2294 "MSRValue": "0x2004000090 ",
2152 "Counter": "0,1,2,3",2295 "Counter": "0,1,2,3",
@@ -2159,6 +2302,7 @@ · 6 unmodified lines
2159 "CounterHTOff": "0,1,2,3"2302 "CounterHTOff": "0,1,2,3"
2160 },2303 },
2161 {2304 {
2305 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2162 "EventCode": "0xB7, 0xBB",2306 "EventCode": "0xB7, 0xBB",
2163 "MSRValue": "0x3f84000090 ",2307 "MSRValue": "0x3f84000090 ",
2164 "Counter": "0,1,2,3",2308 "Counter": "0,1,2,3",
@@ -2171,6 +2315,7 @@ · 6 unmodified lines
2171 "CounterHTOff": "0,1,2,3"2315 "CounterHTOff": "0,1,2,3"
2172 },2316 },
2173 {2317 {
2318 "PublicDescription": "Counts all prefetch data reads that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2174 "EventCode": "0xB7, 0xBB",2319 "EventCode": "0xB7, 0xBB",
2175 "MSRValue": "0x00bc000090 ",2320 "MSRValue": "0x00bc000090 ",
2176 "Counter": "0,1,2,3",2321 "Counter": "0,1,2,3",
@@ -2183,6 +2328,7 @@ · 6 unmodified lines
2183 "CounterHTOff": "0,1,2,3"2328 "CounterHTOff": "0,1,2,3"
2184 },2329 },
2185 {2330 {
2331 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2186 "EventCode": "0xB7, 0xBB",2332 "EventCode": "0xB7, 0xBB",
2187 "MSRValue": "0x013c000090 ",2333 "MSRValue": "0x013c000090 ",
2188 "Counter": "0,1,2,3",2334 "Counter": "0,1,2,3",
@@ -2195,6 +2341,7 @@ · 6 unmodified lines
2195 "CounterHTOff": "0,1,2,3"2341 "CounterHTOff": "0,1,2,3"
2196 },2342 },
2197 {2343 {
2344 "PublicDescription": "Counts all prefetch data reads that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2198 "EventCode": "0xB7, 0xBB",2345 "EventCode": "0xB7, 0xBB",
2199 "MSRValue": "0x023c000090 ",2346 "MSRValue": "0x023c000090 ",
2200 "Counter": "0,1,2,3",2347 "Counter": "0,1,2,3",
@@ -2207,6 +2354,7 @@ · 6 unmodified lines
2207 "CounterHTOff": "0,1,2,3"2354 "CounterHTOff": "0,1,2,3"
2208 },2355 },
2209 {2356 {
2357 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2210 "EventCode": "0xB7, 0xBB",2358 "EventCode": "0xB7, 0xBB",
2211 "MSRValue": "0x043c000090 ",2359 "MSRValue": "0x043c000090 ",
2212 "Counter": "0,1,2,3",2360 "Counter": "0,1,2,3",
@@ -2219,6 +2367,7 @@ · 6 unmodified lines
2219 "CounterHTOff": "0,1,2,3"2367 "CounterHTOff": "0,1,2,3"
2220 },2368 },
2221 {2369 {
2370 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2222 "EventCode": "0xB7, 0xBB",2371 "EventCode": "0xB7, 0xBB",
2223 "MSRValue": "0x2000020120 ",2372 "MSRValue": "0x2000020120 ",
2224 "Counter": "0,1,2,3",2373 "Counter": "0,1,2,3",
@@ -2231,6 +2380,7 @@ · 6 unmodified lines
2231 "CounterHTOff": "0,1,2,3"2380 "CounterHTOff": "0,1,2,3"
2232 },2381 },
2233 {2382 {
2383 "PublicDescription": "Counts prefetch RFOs that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2234 "EventCode": "0xB7, 0xBB",2384 "EventCode": "0xB7, 0xBB",
2235 "MSRValue": "0x20003c0120 ",2385 "MSRValue": "0x20003c0120 ",
2236 "Counter": "0,1,2,3",2386 "Counter": "0,1,2,3",
@@ -2243,6 +2393,7 @@ · 6 unmodified lines
2243 "CounterHTOff": "0,1,2,3"2393 "CounterHTOff": "0,1,2,3"
2244 },2394 },
2245 {2395 {
2396 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2246 "EventCode": "0xB7, 0xBB",2397 "EventCode": "0xB7, 0xBB",
2247 "MSRValue": "0x0084000120 ",2398 "MSRValue": "0x0084000120 ",
2248 "Counter": "0,1,2,3",2399 "Counter": "0,1,2,3",
@@ -2255,6 +2406,7 @@ · 6 unmodified lines
2255 "CounterHTOff": "0,1,2,3"2406 "CounterHTOff": "0,1,2,3"
2256 },2407 },
2257 {2408 {
2409 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2258 "EventCode": "0xB7, 0xBB",2410 "EventCode": "0xB7, 0xBB",
2259 "MSRValue": "0x0104000120 ",2411 "MSRValue": "0x0104000120 ",
2260 "Counter": "0,1,2,3",2412 "Counter": "0,1,2,3",
@@ -2267,6 +2419,7 @@ · 6 unmodified lines
2267 "CounterHTOff": "0,1,2,3"2419 "CounterHTOff": "0,1,2,3"
2268 },2420 },
2269 {2421 {
2422 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2270 "EventCode": "0xB7, 0xBB",2423 "EventCode": "0xB7, 0xBB",
2271 "MSRValue": "0x0204000120 ",2424 "MSRValue": "0x0204000120 ",
2272 "Counter": "0,1,2,3",2425 "Counter": "0,1,2,3",
@@ -2279,6 +2432,7 @@ · 6 unmodified lines
2279 "CounterHTOff": "0,1,2,3"2432 "CounterHTOff": "0,1,2,3"
2280 },2433 },
2281 {2434 {
2435 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2282 "EventCode": "0xB7, 0xBB",2436 "EventCode": "0xB7, 0xBB",
2283 "MSRValue": "0x0404000120 ",2437 "MSRValue": "0x0404000120 ",
2284 "Counter": "0,1,2,3",2438 "Counter": "0,1,2,3",
@@ -2291,6 +2445,7 @@ · 6 unmodified lines
2291 "CounterHTOff": "0,1,2,3"2445 "CounterHTOff": "0,1,2,3"
2292 },2446 },
2293 {2447 {
2448 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2294 "EventCode": "0xB7, 0xBB",2449 "EventCode": "0xB7, 0xBB",
2295 "MSRValue": "0x1004000120 ",2450 "MSRValue": "0x1004000120 ",
2296 "Counter": "0,1,2,3",2451 "Counter": "0,1,2,3",
@@ -2303,6 +2458,7 @@ · 6 unmodified lines
2303 "CounterHTOff": "0,1,2,3"2458 "CounterHTOff": "0,1,2,3"
2304 },2459 },
2305 {2460 {
2461 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2306 "EventCode": "0xB7, 0xBB",2462 "EventCode": "0xB7, 0xBB",
2307 "MSRValue": "0x2004000120 ",2463 "MSRValue": "0x2004000120 ",
2308 "Counter": "0,1,2,3",2464 "Counter": "0,1,2,3",
@@ -2315,6 +2471,7 @@ · 6 unmodified lines
2315 "CounterHTOff": "0,1,2,3"2471 "CounterHTOff": "0,1,2,3"
2316 },2472 },
2317 {2473 {
2474 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2318 "EventCode": "0xB7, 0xBB",2475 "EventCode": "0xB7, 0xBB",
2319 "MSRValue": "0x3f84000120 ",2476 "MSRValue": "0x3f84000120 ",
2320 "Counter": "0,1,2,3",2477 "Counter": "0,1,2,3",
@@ -2327,6 +2484,7 @@ · 6 unmodified lines
2327 "CounterHTOff": "0,1,2,3"2484 "CounterHTOff": "0,1,2,3"
2328 },2485 },
2329 {2486 {
2487 "PublicDescription": "Counts prefetch RFOs that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2330 "EventCode": "0xB7, 0xBB",2488 "EventCode": "0xB7, 0xBB",
2331 "MSRValue": "0x00bc000120 ",2489 "MSRValue": "0x00bc000120 ",
2332 "Counter": "0,1,2,3",2490 "Counter": "0,1,2,3",
@@ -2339,6 +2497,7 @@ · 6 unmodified lines
2339 "CounterHTOff": "0,1,2,3"2497 "CounterHTOff": "0,1,2,3"
2340 },2498 },
2341 {2499 {
2500 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2342 "EventCode": "0xB7, 0xBB",2501 "EventCode": "0xB7, 0xBB",
2343 "MSRValue": "0x013c000120 ",2502 "MSRValue": "0x013c000120 ",
2344 "Counter": "0,1,2,3",2503 "Counter": "0,1,2,3",
@@ -2351,6 +2510,7 @@ · 6 unmodified lines
2351 "CounterHTOff": "0,1,2,3"2510 "CounterHTOff": "0,1,2,3"
2352 },2511 },
2353 {2512 {
2513 "PublicDescription": "Counts prefetch RFOs that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2354 "EventCode": "0xB7, 0xBB",2514 "EventCode": "0xB7, 0xBB",
2355 "MSRValue": "0x023c000120 ",2515 "MSRValue": "0x023c000120 ",
2356 "Counter": "0,1,2,3",2516 "Counter": "0,1,2,3",
@@ -2363,6 +2523,7 @@ · 6 unmodified lines
2363 "CounterHTOff": "0,1,2,3"2523 "CounterHTOff": "0,1,2,3"
2364 },2524 },
2365 {2525 {
2526 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2366 "EventCode": "0xB7, 0xBB",2527 "EventCode": "0xB7, 0xBB",
2367 "MSRValue": "0x043c000120 ",2528 "MSRValue": "0x043c000120 ",
2368 "Counter": "0,1,2,3",2529 "Counter": "0,1,2,3",
@@ -2375,6 +2536,7 @@ · 6 unmodified lines
2375 "CounterHTOff": "0,1,2,3"2536 "CounterHTOff": "0,1,2,3"
2376 },2537 },
2377 {2538 {
2539 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2378 "EventCode": "0xB7, 0xBB",2540 "EventCode": "0xB7, 0xBB",
2379 "MSRValue": "0x2000020240 ",2541 "MSRValue": "0x2000020240 ",
2380 "Counter": "0,1,2,3",2542 "Counter": "0,1,2,3",
@@ -2387,6 +2549,7 @@ · 6 unmodified lines
2387 "CounterHTOff": "0,1,2,3"2549 "CounterHTOff": "0,1,2,3"
2388 },2550 },
2389 {2551 {
2552 "PublicDescription": "Counts all prefetch code reads that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2390 "EventCode": "0xB7, 0xBB",2553 "EventCode": "0xB7, 0xBB",
2391 "MSRValue": "0x20003c0240 ",2554 "MSRValue": "0x20003c0240 ",
2392 "Counter": "0,1,2,3",2555 "Counter": "0,1,2,3",
@@ -2399,6 +2562,7 @@ · 6 unmodified lines
2399 "CounterHTOff": "0,1,2,3"2562 "CounterHTOff": "0,1,2,3"
2400 },2563 },
2401 {2564 {
2565 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2402 "EventCode": "0xB7, 0xBB",2566 "EventCode": "0xB7, 0xBB",
2403 "MSRValue": "0x0084000240 ",2567 "MSRValue": "0x0084000240 ",
2404 "Counter": "0,1,2,3",2568 "Counter": "0,1,2,3",
@@ -2411,6 +2575,7 @@ · 6 unmodified lines
2411 "CounterHTOff": "0,1,2,3"2575 "CounterHTOff": "0,1,2,3"
2412 },2576 },
2413 {2577 {
2578 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2414 "EventCode": "0xB7, 0xBB",2579 "EventCode": "0xB7, 0xBB",
2415 "MSRValue": "0x0104000240 ",2580 "MSRValue": "0x0104000240 ",
2416 "Counter": "0,1,2,3",2581 "Counter": "0,1,2,3",
@@ -2423,6 +2588,7 @@ · 6 unmodified lines
2423 "CounterHTOff": "0,1,2,3"2588 "CounterHTOff": "0,1,2,3"
2424 },2589 },
2425 {2590 {
2591 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2426 "EventCode": "0xB7, 0xBB",2592 "EventCode": "0xB7, 0xBB",
2427 "MSRValue": "0x0204000240 ",2593 "MSRValue": "0x0204000240 ",
2428 "Counter": "0,1,2,3",2594 "Counter": "0,1,2,3",
@@ -2435,6 +2601,7 @@ · 6 unmodified lines
2435 "CounterHTOff": "0,1,2,3"2601 "CounterHTOff": "0,1,2,3"
2436 },2602 },
2437 {2603 {
2604 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2438 "EventCode": "0xB7, 0xBB",2605 "EventCode": "0xB7, 0xBB",
2439 "MSRValue": "0x0404000240 ",2606 "MSRValue": "0x0404000240 ",
2440 "Counter": "0,1,2,3",2607 "Counter": "0,1,2,3",
@@ -2447,6 +2614,7 @@ · 6 unmodified lines
2447 "CounterHTOff": "0,1,2,3"2614 "CounterHTOff": "0,1,2,3"
2448 },2615 },
2449 {2616 {
2617 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2450 "EventCode": "0xB7, 0xBB",2618 "EventCode": "0xB7, 0xBB",
2451 "MSRValue": "0x1004000240 ",2619 "MSRValue": "0x1004000240 ",
2452 "Counter": "0,1,2,3",2620 "Counter": "0,1,2,3",
@@ -2459,6 +2627,7 @@ · 6 unmodified lines
2459 "CounterHTOff": "0,1,2,3"2627 "CounterHTOff": "0,1,2,3"
2460 },2628 },
2461 {2629 {
2630 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2462 "EventCode": "0xB7, 0xBB",2631 "EventCode": "0xB7, 0xBB",
2463 "MSRValue": "0x2004000240 ",2632 "MSRValue": "0x2004000240 ",
2464 "Counter": "0,1,2,3",2633 "Counter": "0,1,2,3",
@@ -2471,6 +2640,7 @@ · 6 unmodified lines
2471 "CounterHTOff": "0,1,2,3"2640 "CounterHTOff": "0,1,2,3"
2472 },2641 },
2473 {2642 {
2643 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2474 "EventCode": "0xB7, 0xBB",2644 "EventCode": "0xB7, 0xBB",
2475 "MSRValue": "0x3f84000240 ",2645 "MSRValue": "0x3f84000240 ",
2476 "Counter": "0,1,2,3",2646 "Counter": "0,1,2,3",
@@ -2483,6 +2653,7 @@ · 6 unmodified lines
2483 "CounterHTOff": "0,1,2,3"2653 "CounterHTOff": "0,1,2,3"
2484 },2654 },
2485 {2655 {
2656 "PublicDescription": "Counts all prefetch code reads that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2486 "EventCode": "0xB7, 0xBB",2657 "EventCode": "0xB7, 0xBB",
2487 "MSRValue": "0x00bc000240 ",2658 "MSRValue": "0x00bc000240 ",
2488 "Counter": "0,1,2,3",2659 "Counter": "0,1,2,3",
@@ -2495,6 +2666,7 @@ · 6 unmodified lines
2495 "CounterHTOff": "0,1,2,3"2666 "CounterHTOff": "0,1,2,3"
2496 },2667 },
2497 {2668 {
2669 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2498 "EventCode": "0xB7, 0xBB",2670 "EventCode": "0xB7, 0xBB",
2499 "MSRValue": "0x013c000240 ",2671 "MSRValue": "0x013c000240 ",
2500 "Counter": "0,1,2,3",2672 "Counter": "0,1,2,3",
@@ -2507,6 +2679,7 @@ · 6 unmodified lines
2507 "CounterHTOff": "0,1,2,3"2679 "CounterHTOff": "0,1,2,3"
2508 },2680 },
2509 {2681 {
2682 "PublicDescription": "Counts all prefetch code reads that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2510 "EventCode": "0xB7, 0xBB",2683 "EventCode": "0xB7, 0xBB",
2511 "MSRValue": "0x023c000240 ",2684 "MSRValue": "0x023c000240 ",
2512 "Counter": "0,1,2,3",2685 "Counter": "0,1,2,3",
@@ -2519,6 +2692,7 @@ · 6 unmodified lines
2519 "CounterHTOff": "0,1,2,3"2692 "CounterHTOff": "0,1,2,3"
2520 },2693 },
2521 {2694 {
2695 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2522 "EventCode": "0xB7, 0xBB",2696 "EventCode": "0xB7, 0xBB",
2523 "MSRValue": "0x043c000240 ",2697 "MSRValue": "0x043c000240 ",
2524 "Counter": "0,1,2,3",2698 "Counter": "0,1,2,3",
@@ -2531,6 +2705,7 @@ · 6 unmodified lines
2531 "CounterHTOff": "0,1,2,3"2705 "CounterHTOff": "0,1,2,3"
2532 },2706 },
2533 {2707 {
2708 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2534 "EventCode": "0xB7, 0xBB",2709 "EventCode": "0xB7, 0xBB",
2535 "MSRValue": "0x2000020091 ",2710 "MSRValue": "0x2000020091 ",
2536 "Counter": "0,1,2,3",2711 "Counter": "0,1,2,3",
@@ -2543,6 +2718,7 @@ · 6 unmodified lines
2543 "CounterHTOff": "0,1,2,3"2718 "CounterHTOff": "0,1,2,3"
2544 },2719 },
2545 {2720 {
2721 "PublicDescription": "Counts all demand & prefetch data reads that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2546 "EventCode": "0xB7, 0xBB",2722 "EventCode": "0xB7, 0xBB",
2547 "MSRValue": "0x20003c0091 ",2723 "MSRValue": "0x20003c0091 ",
2548 "Counter": "0,1,2,3",2724 "Counter": "0,1,2,3",
@@ -2555,6 +2731,7 @@ · 6 unmodified lines
2555 "CounterHTOff": "0,1,2,3"2731 "CounterHTOff": "0,1,2,3"
2556 },2732 },
2557 {2733 {
2734 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2558 "EventCode": "0xB7, 0xBB",2735 "EventCode": "0xB7, 0xBB",
2559 "MSRValue": "0x0084000091 ",2736 "MSRValue": "0x0084000091 ",
2560 "Counter": "0,1,2,3",2737 "Counter": "0,1,2,3",
@@ -2567,6 +2744,7 @@ · 6 unmodified lines
2567 "CounterHTOff": "0,1,2,3"2744 "CounterHTOff": "0,1,2,3"
2568 },2745 },
2569 {2746 {
2747 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2570 "EventCode": "0xB7, 0xBB",2748 "EventCode": "0xB7, 0xBB",
2571 "MSRValue": "0x0104000091 ",2749 "MSRValue": "0x0104000091 ",
2572 "Counter": "0,1,2,3",2750 "Counter": "0,1,2,3",
@@ -2579,6 +2757,7 @@ · 6 unmodified lines
2579 "CounterHTOff": "0,1,2,3"2757 "CounterHTOff": "0,1,2,3"
2580 },2758 },
2581 {2759 {
2760 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2582 "EventCode": "0xB7, 0xBB",2761 "EventCode": "0xB7, 0xBB",
2583 "MSRValue": "0x0204000091 ",2762 "MSRValue": "0x0204000091 ",
2584 "Counter": "0,1,2,3",2763 "Counter": "0,1,2,3",
@@ -2591,6 +2770,7 @@ · 6 unmodified lines
2591 "CounterHTOff": "0,1,2,3"2770 "CounterHTOff": "0,1,2,3"
2592 },2771 },
2593 {2772 {
2773 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2594 "EventCode": "0xB7, 0xBB",2774 "EventCode": "0xB7, 0xBB",
2595 "MSRValue": "0x0404000091 ",2775 "MSRValue": "0x0404000091 ",
2596 "Counter": "0,1,2,3",2776 "Counter": "0,1,2,3",
@@ -2603,6 +2783,7 @@ · 6 unmodified lines
2603 "CounterHTOff": "0,1,2,3"2783 "CounterHTOff": "0,1,2,3"
2604 },2784 },
2605 {2785 {
2786 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2606 "EventCode": "0xB7, 0xBB",2787 "EventCode": "0xB7, 0xBB",
2607 "MSRValue": "0x1004000091 ",2788 "MSRValue": "0x1004000091 ",
2608 "Counter": "0,1,2,3",2789 "Counter": "0,1,2,3",
@@ -2615,6 +2796,7 @@ · 6 unmodified lines
2615 "CounterHTOff": "0,1,2,3"2796 "CounterHTOff": "0,1,2,3"
2616 },2797 },
2617 {2798 {
2799 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2618 "EventCode": "0xB7, 0xBB",2800 "EventCode": "0xB7, 0xBB",
2619 "MSRValue": "0x2004000091 ",2801 "MSRValue": "0x2004000091 ",
2620 "Counter": "0,1,2,3",2802 "Counter": "0,1,2,3",
@@ -2627,6 +2809,7 @@ · 6 unmodified lines
2627 "CounterHTOff": "0,1,2,3"2809 "CounterHTOff": "0,1,2,3"
2628 },2810 },
2629 {2811 {
2812 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2630 "EventCode": "0xB7, 0xBB",2813 "EventCode": "0xB7, 0xBB",
2631 "MSRValue": "0x3f84000091 ",2814 "MSRValue": "0x3f84000091 ",
2632 "Counter": "0,1,2,3",2815 "Counter": "0,1,2,3",
@@ -2639,6 +2822,7 @@ · 6 unmodified lines
2639 "CounterHTOff": "0,1,2,3"2822 "CounterHTOff": "0,1,2,3"
2640 },2823 },
2641 {2824 {
2825 "PublicDescription": "Counts all demand & prefetch data reads that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2642 "EventCode": "0xB7, 0xBB",2826 "EventCode": "0xB7, 0xBB",
2643 "MSRValue": "0x00bc000091 ",2827 "MSRValue": "0x00bc000091 ",
2644 "Counter": "0,1,2,3",2828 "Counter": "0,1,2,3",
@@ -2651,6 +2835,7 @@ · 6 unmodified lines
2651 "CounterHTOff": "0,1,2,3"2835 "CounterHTOff": "0,1,2,3"
2652 },2836 },
2653 {2837 {
2838 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2654 "EventCode": "0xB7, 0xBB",2839 "EventCode": "0xB7, 0xBB",
2655 "MSRValue": "0x013c000091 ",2840 "MSRValue": "0x013c000091 ",
2656 "Counter": "0,1,2,3",2841 "Counter": "0,1,2,3",
@@ -2663,6 +2848,7 @@ · 6 unmodified lines
2663 "CounterHTOff": "0,1,2,3"2848 "CounterHTOff": "0,1,2,3"
2664 },2849 },
2665 {2850 {
2851 "PublicDescription": "Counts all demand & prefetch data reads that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2666 "EventCode": "0xB7, 0xBB",2852 "EventCode": "0xB7, 0xBB",
2667 "MSRValue": "0x023c000091 ",2853 "MSRValue": "0x023c000091 ",
2668 "Counter": "0,1,2,3",2854 "Counter": "0,1,2,3",
@@ -2675,6 +2861,7 @@ · 6 unmodified lines
2675 "CounterHTOff": "0,1,2,3"2861 "CounterHTOff": "0,1,2,3"
2676 },2862 },
2677 {2863 {
2864 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2678 "EventCode": "0xB7, 0xBB",2865 "EventCode": "0xB7, 0xBB",
2679 "MSRValue": "0x043c000091 ",2866 "MSRValue": "0x043c000091 ",
2680 "Counter": "0,1,2,3",2867 "Counter": "0,1,2,3",
@@ -2687,6 +2874,7 @@ · 6 unmodified lines
2687 "CounterHTOff": "0,1,2,3"2874 "CounterHTOff": "0,1,2,3"
2688 },2875 },
2689 {2876 {
2877 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2690 "EventCode": "0xB7, 0xBB",2878 "EventCode": "0xB7, 0xBB",
2691 "MSRValue": "0x2000020122 ",2879 "MSRValue": "0x2000020122 ",
2692 "Counter": "0,1,2,3",2880 "Counter": "0,1,2,3",
@@ -2699,6 +2887,7 @@ · 6 unmodified lines
2699 "CounterHTOff": "0,1,2,3"2887 "CounterHTOff": "0,1,2,3"
2700 },2888 },
2701 {2889 {
2890 "PublicDescription": "Counts all demand & prefetch RFOs that hit in the L3 and the target was non-DRAM system address. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2702 "EventCode": "0xB7, 0xBB",2891 "EventCode": "0xB7, 0xBB",
2703 "MSRValue": "0x20003c0122 ",2892 "MSRValue": "0x20003c0122 ",
2704 "Counter": "0,1,2,3",2893 "Counter": "0,1,2,3",
@@ -2711,6 +2900,7 @@ · 6 unmodified lines
2711 "CounterHTOff": "0,1,2,3"2900 "CounterHTOff": "0,1,2,3"
2712 },2901 },
2713 {2902 {
2903 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2714 "EventCode": "0xB7, 0xBB",2904 "EventCode": "0xB7, 0xBB",
2715 "MSRValue": "0x0084000122 ",2905 "MSRValue": "0x0084000122 ",
2716 "Counter": "0,1,2,3",2906 "Counter": "0,1,2,3",
@@ -2723,6 +2913,7 @@ · 6 unmodified lines
2723 "CounterHTOff": "0,1,2,3"2913 "CounterHTOff": "0,1,2,3"
2724 },2914 },
2725 {2915 {
2916 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2726 "EventCode": "0xB7, 0xBB",2917 "EventCode": "0xB7, 0xBB",
2727 "MSRValue": "0x0104000122 ",2918 "MSRValue": "0x0104000122 ",
2728 "Counter": "0,1,2,3",2919 "Counter": "0,1,2,3",
@@ -2735,6 +2926,7 @@ · 6 unmodified lines
2735 "CounterHTOff": "0,1,2,3"2926 "CounterHTOff": "0,1,2,3"
2736 },2927 },
2737 {2928 {
2929 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2738 "EventCode": "0xB7, 0xBB",2930 "EventCode": "0xB7, 0xBB",
2739 "MSRValue": "0x0204000122 ",2931 "MSRValue": "0x0204000122 ",
2740 "Counter": "0,1,2,3",2932 "Counter": "0,1,2,3",
@@ -2747,6 +2939,7 @@ · 6 unmodified lines
2747 "CounterHTOff": "0,1,2,3"2939 "CounterHTOff": "0,1,2,3"
2748 },2940 },
2749 {2941 {
2942 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2750 "EventCode": "0xB7, 0xBB",2943 "EventCode": "0xB7, 0xBB",
2751 "MSRValue": "0x0404000122 ",2944 "MSRValue": "0x0404000122 ",
2752 "Counter": "0,1,2,3",2945 "Counter": "0,1,2,3",
@@ -2759,6 +2952,7 @@ · 6 unmodified lines
2759 "CounterHTOff": "0,1,2,3"2952 "CounterHTOff": "0,1,2,3"
2760 },2953 },
2761 {2954 {
2955 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2762 "EventCode": "0xB7, 0xBB",2956 "EventCode": "0xB7, 0xBB",
2763 "MSRValue": "0x1004000122 ",2957 "MSRValue": "0x1004000122 ",
2764 "Counter": "0,1,2,3",2958 "Counter": "0,1,2,3",
@@ -2771,6 +2965,7 @@ · 6 unmodified lines
2771 "CounterHTOff": "0,1,2,3"2965 "CounterHTOff": "0,1,2,3"
2772 },2966 },
2773 {2967 {
2968 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2774 "EventCode": "0xB7, 0xBB",2969 "EventCode": "0xB7, 0xBB",
2775 "MSRValue": "0x2004000122 ",2970 "MSRValue": "0x2004000122 ",
2776 "Counter": "0,1,2,3",2971 "Counter": "0,1,2,3",
@@ -2783,6 +2978,7 @@ · 6 unmodified lines
2783 "CounterHTOff": "0,1,2,3"2978 "CounterHTOff": "0,1,2,3"
2784 },2979 },
2785 {2980 {
2981 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2786 "EventCode": "0xB7, 0xBB",2982 "EventCode": "0xB7, 0xBB",
2787 "MSRValue": "0x3f84000122 ",2983 "MSRValue": "0x3f84000122 ",
2788 "Counter": "0,1,2,3",2984 "Counter": "0,1,2,3",
@@ -2795,6 +2991,7 @@ · 6 unmodified lines
2795 "CounterHTOff": "0,1,2,3"2991 "CounterHTOff": "0,1,2,3"
2796 },2992 },
2797 {2993 {
2994 "PublicDescription": "Counts all demand & prefetch RFOs that miss the L3 with no details on snoop-related information. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2798 "EventCode": "0xB7, 0xBB",2995 "EventCode": "0xB7, 0xBB",
2799 "MSRValue": "0x00bc000122 ",2996 "MSRValue": "0x00bc000122 ",
2800 "Counter": "0,1,2,3",2997 "Counter": "0,1,2,3",
@@ -2807,6 +3004,7 @@ · 6 unmodified lines
2807 "CounterHTOff": "0,1,2,3"3004 "CounterHTOff": "0,1,2,3"
2808 },3005 },
2809 {3006 {
3007 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2810 "EventCode": "0xB7, 0xBB",3008 "EventCode": "0xB7, 0xBB",
2811 "MSRValue": "0x013c000122 ",3009 "MSRValue": "0x013c000122 ",
2812 "Counter": "0,1,2,3",3010 "Counter": "0,1,2,3",
@@ -2819,6 +3017,7 @@ · 6 unmodified lines
2819 "CounterHTOff": "0,1,2,3"3017 "CounterHTOff": "0,1,2,3"
2820 },3018 },
2821 {3019 {
3020 "PublicDescription": "Counts all demand & prefetch RFOs that miss the L3 with a snoop miss response. Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2822 "EventCode": "0xB7, 0xBB",3021 "EventCode": "0xB7, 0xBB",
2823 "MSRValue": "0x023c000122 ",3022 "MSRValue": "0x023c000122 ",
2824 "Counter": "0,1,2,3",3023 "Counter": "0,1,2,3",
@@ -2831,6 +3030,7 @@ · 6 unmodified lines
2831 "CounterHTOff": "0,1,2,3"3030 "CounterHTOff": "0,1,2,3"
2832 },3031 },
2833 {3032 {
3033 "PublicDescription": "tbd Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
2834 "EventCode": "0xB7, 0xBB",3034 "EventCode": "0xB7, 0xBB",
2835 "MSRValue": "0x043c000122 ",3035 "MSRValue": "0x043c000122 ",
2836 "Counter": "0,1,2,3",3036 "Counter": "0,1,2,3",
tools/perf/pmu-events/arch/x86/broadwell/other.json+10−10
@@ -9,16 +9,6 @@ · 8 unmodified lines
9 "BriefDescription": "Unhalted core cycles when the thread is in ring 0",9 "BriefDescription": "Unhalted core cycles when the thread is in ring 0",
10 "CounterHTOff": "0,1,2,3,4,5,6,7"10 "CounterHTOff": "0,1,2,3,4,5,6,7"
11 },11 },
12 {
13 "PublicDescription": "This event counts unhalted core cycles during which the thread is in rings 1, 2, or 3.",
14 "EventCode": "0x5C",
15 "Counter": "0,1,2,3",
16 "UMask": "0x2",
17 "EventName": "CPL_CYCLES.RING123",
18 "SampleAfterValue": "2000003",
19 "BriefDescription": "Unhalted core cycles when thread is in rings 1, 2, or 3",
20 "CounterHTOff": "0,1,2,3,4,5,6,7"
21 },
22 {12 {
23 "PublicDescription": "This event counts when there is a transition from ring 1,2 or 3 to ring0.",13 "PublicDescription": "This event counts when there is a transition from ring 1,2 or 3 to ring0.",
24 "EventCode": "0x5C",14 "EventCode": "0x5C",
@@ -31,6 +21,16 @@ · 6 unmodified lines
31 "CounterMask": "1",21 "CounterMask": "1",
32 "CounterHTOff": "0,1,2,3,4,5,6,7"22 "CounterHTOff": "0,1,2,3,4,5,6,7"
33 },23 },
24 {
25 "PublicDescription": "This event counts unhalted core cycles during which the thread is in rings 1, 2, or 3.",
26 "EventCode": "0x5C",
27 "Counter": "0,1,2,3",
28 "UMask": "0x2",
29 "EventName": "CPL_CYCLES.RING123",
30 "SampleAfterValue": "2000003",
31 "BriefDescription": "Unhalted core cycles when thread is in rings 1, 2, or 3",
32 "CounterHTOff": "0,1,2,3,4,5,6,7"
33 },
34 {34 {
35 "PublicDescription": "This event counts cycles in which the L1 and L2 are locked due to a UC lock or split lock. A lock is asserted in case of locked memory access, due to noncacheable memory, locked operation that spans two cache lines, or a page walk from the noncacheable page table. L1D and L2 locks have a very high performance penalty and it is highly recommended to avoid such access.",35 "PublicDescription": "This event counts cycles in which the L1 and L2 are locked due to a UC lock or split lock. A lock is asserted in case of locked memory access, due to noncacheable memory, locked operation that spans two cache lines, or a page walk from the noncacheable page table. L1D and L2 locks have a very high performance penalty and it is highly recommended to avoid such access.",
36 "EventCode": "0x63",36 "EventCode": "0x63",
tools/perf/pmu-events/arch/x86/broadwell/pipeline.json+613−603
@@ -2,32 +2,42 @@ · 1 unmodified line
2 {2 {
3 "PublicDescription": "This event counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. \nNotes: INST_RETIRED.ANY is counted by a designated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. INST_RETIRED.ANY_P is counted by a programmable counter and it is an architectural performance event. \nCounting: Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",3 "PublicDescription": "This event counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. \nNotes: INST_RETIRED.ANY is counted by a designated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. INST_RETIRED.ANY_P is counted by a programmable counter and it is an architectural performance event. \nCounting: Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",
4 "EventCode": "0x00",4 "EventCode": "0x00",
5 "Counter": "Fixed counter 1",5 "Counter": "Fixed counter 0",
6 "UMask": "0x1",6 "UMask": "0x1",
7 "EventName": "INST_RETIRED.ANY",7 "EventName": "INST_RETIRED.ANY",
8 "SampleAfterValue": "2000003",8 "SampleAfterValue": "2000003",
9 "BriefDescription": "Instructions retired from execution.",9 "BriefDescription": "Instructions retired from execution.",
10 "CounterHTOff": "Fixed counter 1"10 "CounterHTOff": "Fixed counter 0"
11 },11 },
12 {12 {
13 "PublicDescription": "This event counts the number of core cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events.",13 "PublicDescription": "This event counts the number of core cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events.",
14 "EventCode": "0x00",14 "EventCode": "0x00",
15 "Counter": "Fixed counter 2",15 "Counter": "Fixed counter 1",
16 "UMask": "0x2",16 "UMask": "0x2",
17 "EventName": "CPU_CLK_UNHALTED.THREAD",17 "EventName": "CPU_CLK_UNHALTED.THREAD",
18 "SampleAfterValue": "2000003",18 "SampleAfterValue": "2000003",
19 "BriefDescription": "Core cycles when the thread is not in halt state",19 "BriefDescription": "Core cycles when the thread is not in halt state",
20 "CounterHTOff": "Fixed counter 2"20 "CounterHTOff": "Fixed counter 1"
21 },
22 {
23 "EventCode": "0x00",
24 "Counter": "Fixed counter 1",
25 "UMask": "0x2",
26 "AnyThread": "1",
27 "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",
28 "SampleAfterValue": "2000003",
29 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
30 "CounterHTOff": "Fixed counter 1"
21 },31 },
22 {32 {
23 "PublicDescription": "This event counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. \nNote: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'. This event is clocked by base clock (100 Mhz) on Sandy Bridge. The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'. After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",33 "PublicDescription": "This event counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. \nNote: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'. This event is clocked by base clock (100 Mhz) on Sandy Bridge. The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'. After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",
24 "EventCode": "0x00",34 "EventCode": "0x00",
25 "Counter": "Fixed counter 3",35 "Counter": "Fixed counter 2",
26 "UMask": "0x3",36 "UMask": "0x3",
27 "EventName": "CPU_CLK_UNHALTED.REF_TSC",37 "EventName": "CPU_CLK_UNHALTED.REF_TSC",
28 "SampleAfterValue": "2000003",38 "SampleAfterValue": "2000003",
29 "BriefDescription": "Reference cycles when the core is not in halt state.",39 "BriefDescription": "Reference cycles when the core is not in halt state.",
30 "CounterHTOff": "Fixed counter 3"40 "CounterHTOff": "Fixed counter 2"
31 },41 },
32 {42 {
33 "PublicDescription": "This event counts how many times the load operation got the true Block-on-Store blocking code preventing store forwarding. This includes cases when:\n - preceding store conflicts with the load (incomplete overlap);\n - store forwarding is impossible due to u-arch limitations;\n - preceding lock RMW operations are not forwarded;\n - store has the no-forward bit set (uncacheable/page-split/masked stores);\n - all-blocking stores are used (mostly, fences and port I/O);\nand others.\nThe most common case is a load blocked due to its address range overlapping with a preceding smaller uncompleted store. Note: This event does not take into account cases of out-of-SW-control (for example, SbTailHit), unknown physical STA, and cases of blocking loads on store due to being non-WB memory type or a lock. These cases are covered by other events.\nSee the table of not supported store forwards in the Optimization Guide.",43 "PublicDescription": "This event counts how many times the load operation got the true Block-on-Store blocking code preventing store forwarding. This includes cases when:\n - preceding store conflicts with the load (incomplete overlap);\n - store forwarding is impossible due to u-arch limitations;\n - preceding lock RMW operations are not forwarded;\n - store has the no-forward bit set (uncacheable/page-split/masked stores);\n - all-blocking stores are used (mostly, fences and port I/O);\nand others.\nThe most common case is a load blocked due to its address range overlapping with a preceding smaller uncompleted store. Note: This event does not take into account cases of out-of-SW-control (for example, SbTailHit), unknown physical STA, and cases of blocking loads on store due to being non-WB memory type or a lock. These cases are covered by other events.\nSee the table of not supported store forwards in the Optimization Guide.",
@@ -59,26 +69,37 @@ · 25 unmodified lines
59 "CounterHTOff": "0,1,2,3,4,5,6,7"69 "CounterHTOff": "0,1,2,3,4,5,6,7"
60 },70 },
61 {71 {
62 "PublicDescription": "This event counts the number of cycles during which Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the current thread. This also includes the cycles during which the Allocator is serving another thread.",72 "PublicDescription": "Cycles checkpoints in Resource Allocation Table (RAT) are recovering from JEClear or machine clear.",
63 "EventCode": "0x0D",73 "EventCode": "0x0D",
64 "Counter": "0,1,2,3",74 "Counter": "0,1,2,3",
65 "UMask": "0x8",75 "UMask": "0x3",
66 "EventName": "INT_MISC.RAT_STALL_CYCLES",76 "EventName": "INT_MISC.RECOVERY_CYCLES",
67 "SampleAfterValue": "2000003",77 "SampleAfterValue": "2000003",
68 "BriefDescription": "Cycles when Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the thread",78 "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread (e.g. misprediction or memory nuke)",
79 "CounterMask": "1",
69 "CounterHTOff": "0,1,2,3,4,5,6,7"80 "CounterHTOff": "0,1,2,3,4,5,6,7"
70 },81 },
71 {82 {
72 "PublicDescription": "Cycles checkpoints in Resource Allocation Table (RAT) are recovering from JEClear or machine clear.",
73 "EventCode": "0x0D",83 "EventCode": "0x0D",
74 "Counter": "0,1,2,3",84 "Counter": "0,1,2,3",
75 "UMask": "0x3",85 "UMask": "0x3",
76 "EventName": "INT_MISC.RECOVERY_CYCLES",86 "AnyThread": "1",
87 "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",
77 "SampleAfterValue": "2000003",88 "SampleAfterValue": "2000003",
78 "BriefDescription": "Number of cycles waiting for the checkpoints in Resource Allocation Table (RAT) to be recovered after Nuke due to all other cases except JEClear (e.g. whenever a ucode assist is needed like SSE exception, memory disambiguation, etc...)",89 "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke).",
79 "CounterMask": "1",90 "CounterMask": "1",
80 "CounterHTOff": "0,1,2,3,4,5,6,7"91 "CounterHTOff": "0,1,2,3,4,5,6,7"
81 },92 },
93 {
94 "PublicDescription": "This event counts the number of cycles during which Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the current thread. This also includes the cycles during which the Allocator is serving another thread.",
95 "EventCode": "0x0D",
96 "Counter": "0,1,2,3",
97 "UMask": "0x8",
98 "EventName": "INT_MISC.RAT_STALL_CYCLES",
99 "SampleAfterValue": "2000003",
100 "BriefDescription": "Cycles when Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the thread",
101 "CounterHTOff": "0,1,2,3,4,5,6,7"
102 },
82 {103 {
83 "PublicDescription": "This event counts the number of Uops issued by the Resource Allocation Table (RAT) to the reservation station (RS).",104 "PublicDescription": "This event counts the number of Uops issued by the Resource Allocation Table (RAT) to the reservation station (RS).",
84 "EventCode": "0x0E",105 "EventCode": "0x0E",
@@ -89,6 +110,18 @@ · 4 unmodified lines
89 "BriefDescription": "Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS)",110 "BriefDescription": "Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS)",
90 "CounterHTOff": "0,1,2,3,4,5,6,7"111 "CounterHTOff": "0,1,2,3,4,5,6,7"
91 },112 },
113 {
114 "PublicDescription": "This event counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
115 "EventCode": "0x0E",
116 "Invert": "1",
117 "Counter": "0,1,2,3",
118 "UMask": "0x1",
119 "EventName": "UOPS_ISSUED.STALL_CYCLES",
120 "SampleAfterValue": "2000003",
121 "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
122 "CounterMask": "1",
123 "CounterHTOff": "0,1,2,3"
124 },
92 {125 {
93 "PublicDescription": "Number of flags-merge uops being allocated. Such uops considered perf sensitive\n added by GSR u-arch.",126 "PublicDescription": "Number of flags-merge uops being allocated. Such uops considered perf sensitive\n added by GSR u-arch.",
94 "EventCode": "0x0E",127 "EventCode": "0x0E",
@@ -117,18 +150,6 @@ · 22 unmodified lines
117 "BriefDescription": "Number of Multiply packed/scalar single precision uops allocated.",150 "BriefDescription": "Number of Multiply packed/scalar single precision uops allocated.",
118 "CounterHTOff": "0,1,2,3,4,5,6,7"151 "CounterHTOff": "0,1,2,3,4,5,6,7"
119 },152 },
120 {
121 "PublicDescription": "This event counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
122 "EventCode": "0x0E",
123 "Invert": "1",
124 "Counter": "0,1,2,3",
125 "UMask": "0x1",
126 "EventName": "UOPS_ISSUED.STALL_CYCLES",
127 "SampleAfterValue": "2000003",
128 "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
129 "CounterMask": "1",
130 "CounterHTOff": "0,1,2,3"
131 },
132 {153 {
133 "PublicDescription": "This event counts the number of the divide operations executed. Uses edge-detect and a cmask value of 1 on ARITH.FPU_DIV_ACTIVE to get the number of the divide operations executed.",154 "PublicDescription": "This event counts the number of the divide operations executed. Uses edge-detect and a cmask value of 1 on ARITH.FPU_DIV_ACTIVE to get the number of the divide operations executed.",
134 "EventCode": "0x14",155 "EventCode": "0x14",
@@ -139,6 +160,26 @@ · 4 unmodified lines
139 "BriefDescription": "Cycles when divider is busy executing divide operations",160 "BriefDescription": "Cycles when divider is busy executing divide operations",
140 "CounterHTOff": "0,1,2,3,4,5,6,7"161 "CounterHTOff": "0,1,2,3,4,5,6,7"
141 },162 },
163 {
164 "PublicDescription": "This is an architectural event that counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The core frequency may change from time to time due to power or thermal throttling. For this reason, this event may have a changing ratio with regards to wall clock time.",
165 "EventCode": "0x3C",
166 "Counter": "0,1,2,3",
167 "UMask": "0x0",
168 "EventName": "CPU_CLK_UNHALTED.THREAD_P",
169 "SampleAfterValue": "2000003",
170 "BriefDescription": "Thread cycles when thread is not in halt state",
171 "CounterHTOff": "0,1,2,3,4,5,6,7"
172 },
173 {
174 "EventCode": "0x3C",
175 "Counter": "0,1,2,3",
176 "UMask": "0x0",
177 "AnyThread": "1",
178 "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",
179 "SampleAfterValue": "2000003",
180 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
181 "CounterHTOff": "0,1,2,3,4,5,6,7"
182 },
142 {183 {
143 "PublicDescription": "This is a fixed-frequency event programmed to general counters. It counts when the core is unhalted at 100 Mhz.",184 "PublicDescription": "This is a fixed-frequency event programmed to general counters. It counts when the core is unhalted at 100 Mhz.",
144 "EventCode": "0x3C",185 "EventCode": "0x3C",
@@ -149,6 +190,36 @@ · 4 unmodified lines
149 "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",190 "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
150 "CounterHTOff": "0,1,2,3,4,5,6,7"191 "CounterHTOff": "0,1,2,3,4,5,6,7"
151 },192 },
193 {
194 "EventCode": "0x3C",
195 "Counter": "0,1,2,3",
196 "UMask": "0x1",
197 "AnyThread": "1",
198 "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",
199 "SampleAfterValue": "2000003",
200 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
201 "CounterHTOff": "0,1,2,3,4,5,6,7"
202 },
203 {
204 "PublicDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate).",
205 "EventCode": "0x3C",
206 "Counter": "0,1,2,3",
207 "UMask": "0x1",
208 "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
209 "SampleAfterValue": "2000003",
210 "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
211 "CounterHTOff": "0,1,2,3,4,5,6,7"
212 },
213 {
214 "EventCode": "0x3C",
215 "Counter": "0,1,2,3",
216 "UMask": "0x1",
217 "AnyThread": "1",
218 "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
219 "SampleAfterValue": "2000003",
220 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
221 "CounterHTOff": "0,1,2,3,4,5,6,7"
222 },
152 {223 {
153 "EventCode": "0x3c",224 "EventCode": "0x3c",
154 "Counter": "0,1,2,3",225 "Counter": "0,1,2,3",
@@ -158,6 +229,15 @@ · 3 unmodified lines
158 "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",229 "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
159 "CounterHTOff": "0,1,2,3"230 "CounterHTOff": "0,1,2,3"
160 },231 },
232 {
233 "EventCode": "0x3C",
234 "Counter": "0,1,2,3",
235 "UMask": "0x2",
236 "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
237 "SampleAfterValue": "2000003",
238 "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
239 "CounterHTOff": "0,1,2,3,4,5,6,7"
240 },
161 {241 {
162 "PublicDescription": "This event counts all not software-prefetch load dispatches that hit the fill buffer (FB) allocated for the software prefetch. It can also be incremented by some lock instructions. So it should only be used with profiling so that the locks can be excluded by asm inspection of the nearby instructions.",242 "PublicDescription": "This event counts all not software-prefetch load dispatches that hit the fill buffer (FB) allocated for the software prefetch. It can also be incremented by some lock instructions. So it should only be used with profiling so that the locks can be excluded by asm inspection of the nearby instructions.",
163 "EventCode": "0x4c",243 "EventCode": "0x4c",
@@ -224,6 +304,18 @@ · 60 unmodified lines
224 "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread",304 "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread",
225 "CounterHTOff": "0,1,2,3,4,5,6,7"305 "CounterHTOff": "0,1,2,3,4,5,6,7"
226 },306 },
307 {
308 "EventCode": "0x5E",
309 "Invert": "1",
310 "Counter": "0,1,2,3",
311 "UMask": "0x1",
312 "EdgeDetect": "1",
313 "EventName": "RS_EVENTS.EMPTY_END",
314 "SampleAfterValue": "200003",
315 "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
316 "CounterMask": "1",
317 "CounterHTOff": "0,1,2,3,4,5,6,7"
318 },
227 {319 {
228 "PublicDescription": "This event counts stalls occured due to changing prefix length (66, 67 or REX.W when they change the length of the decoded instruction). Occurrences counting is proportional to the number of prefixes in a 16B-line. This may result in the following penalties: three-cycle penalty for each LCP in a 16-byte chunk.",320 "PublicDescription": "This event counts stalls occured due to changing prefix length (66, 67 or REX.W when they change the length of the decoded instruction). Occurrences counting is proportional to the number of prefixes in a 16B-line. This may result in the following penalties: three-cycle penalty for each LCP in a 16-byte chunk.",
229 "EventCode": "0x87",321 "EventCode": "0x87",
@@ -404,6 +496,15 @@ · 174 unmodified lines
404 "BriefDescription": "Taken speculative and retired mispredicted indirect branches with return mnemonic",496 "BriefDescription": "Taken speculative and retired mispredicted indirect branches with return mnemonic",
405 "CounterHTOff": "0,1,2,3,4,5,6,7"497 "CounterHTOff": "0,1,2,3,4,5,6,7"
406 },498 },
499 {
500 "EventCode": "0x89",
501 "Counter": "0,1,2,3",
502 "UMask": "0xa0",
503 "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_NEAR_CALL",
504 "SampleAfterValue": "200003",
505 "BriefDescription": "Taken speculative and retired mispredicted indirect calls.",
506 "CounterHTOff": "0,1,2,3,4,5,6,7"
507 },
407 {508 {
408 "PublicDescription": "This event counts both taken and not taken speculative and retired mispredicted macro conditional branch instructions.",509 "PublicDescription": "This event counts both taken and not taken speculative and retired mispredicted macro conditional branch instructions.",
409 "EventCode": "0x89",510 "EventCode": "0x89",
@@ -434,6 +535,16 @@ · 24 unmodified lines
434 "BriefDescription": "Speculative and retired mispredicted macro conditional branches",535 "BriefDescription": "Speculative and retired mispredicted macro conditional branches",
435 "CounterHTOff": "0,1,2,3,4,5,6,7"536 "CounterHTOff": "0,1,2,3,4,5,6,7"
436 },537 },
538 {
539 "PublicDescription": "This event counts the number of micro-operations cancelled after they were dispatched from the scheduler to the execution units when the total number of physical register read ports across all dispatch ports exceeds the read bandwidth of the physical register file. The SIMD_PRF subevent applies to the following instructions: VDPPS, DPPS, VPCMPESTRI, PCMPESTRI, VPCMPESTRM, PCMPESTRM, VFMADD*, VFMADDSUB*, VFMSUB*, VMSUBADD*, VFNMADD*, VFNMSUB*. See the Broadwell Optimization Guide for more information.",
540 "EventCode": "0xA0",
541 "Counter": "0,1,2,3",
542 "UMask": "0x3",
543 "EventName": "UOP_DISPATCHES_CANCELLED.SIMD_PRF",
544 "SampleAfterValue": "2000003",
545 "BriefDescription": "Micro-op dispatches cancelled due to insufficient SIMD physical register file read ports",
546 "CounterHTOff": "0,1,2,3"
547 },
437 {548 {
438 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",549 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",
439 "EventCode": "0xA1",550 "EventCode": "0xA1",
@@ -445,602 +556,472 @@ · 5 unmodified lines
445 "CounterHTOff": "0,1,2,3,4,5,6,7"556 "CounterHTOff": "0,1,2,3,4,5,6,7"
446 },557 },
447 {558 {
448 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",
449 "EventCode": "0xA1",559 "EventCode": "0xA1",
450 "Counter": "0,1,2,3",560 "Counter": "0,1,2,3",
451 "UMask": "0x2",561 "UMask": "0x1",
452 "EventName": "UOPS_DISPATCHED_PORT.PORT_1",562 "AnyThread": "1",
563 "EventName": "UOPS_EXECUTED_PORT.PORT_0_CORE",
453 "SampleAfterValue": "2000003",564 "SampleAfterValue": "2000003",
454 "BriefDescription": "Cycles per thread when uops are executed in port 1",565 "BriefDescription": "Cycles per core when uops are exectuted in port 0.",
455 "CounterHTOff": "0,1,2,3,4,5,6,7"566 "CounterHTOff": "0,1,2,3,4,5,6,7"
456 },567 },
457 {568 {
458 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",569 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",
459 "EventCode": "0xA1",570 "EventCode": "0xA1",
460 "Counter": "0,1,2,3",571 "Counter": "0,1,2,3",
461 "UMask": "0x4",572 "UMask": "0x1",
462 "EventName": "UOPS_DISPATCHED_PORT.PORT_2",573 "EventName": "UOPS_EXECUTED_PORT.PORT_0",
463 "SampleAfterValue": "2000003",574 "SampleAfterValue": "2000003",
464 "BriefDescription": "Cycles per thread when uops are executed in port 2",575 "BriefDescription": "Cycles per thread when uops are executed in port 0",
465 "CounterHTOff": "0,1,2,3,4,5,6,7"576 "CounterHTOff": "0,1,2,3,4,5,6,7"
466 },577 },
467 {578 {
468 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",579 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",
469 "EventCode": "0xA1",580 "EventCode": "0xA1",
470 "Counter": "0,1,2,3",581 "Counter": "0,1,2,3",
471 "UMask": "0x8",582 "UMask": "0x2",
472 "EventName": "UOPS_DISPATCHED_PORT.PORT_3",583 "EventName": "UOPS_DISPATCHED_PORT.PORT_1",
473 "SampleAfterValue": "2000003",584 "SampleAfterValue": "2000003",
474 "BriefDescription": "Cycles per thread when uops are executed in port 3",585 "BriefDescription": "Cycles per thread when uops are executed in port 1",
475 "CounterHTOff": "0,1,2,3,4,5,6,7"586 "CounterHTOff": "0,1,2,3,4,5,6,7"
476 },587 },
477 {588 {
478 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",
479 "EventCode": "0xA1",589 "EventCode": "0xA1",
480 "Counter": "0,1,2,3",590 "Counter": "0,1,2,3",
481 "UMask": "0x10",591 "UMask": "0x2",
482 "EventName": "UOPS_DISPATCHED_PORT.PORT_4",592 "AnyThread": "1",
593 "EventName": "UOPS_EXECUTED_PORT.PORT_1_CORE",
483 "SampleAfterValue": "2000003",594 "SampleAfterValue": "2000003",
484 "BriefDescription": "Cycles per thread when uops are executed in port 4",595 "BriefDescription": "Cycles per core when uops are exectuted in port 1.",
485 "CounterHTOff": "0,1,2,3,4,5,6,7"596 "CounterHTOff": "0,1,2,3,4,5,6,7"
486 },597 },
487 {598 {
488 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",599 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",
489 "EventCode": "0xA1",600 "EventCode": "0xA1",
490 "Counter": "0,1,2,3",601 "Counter": "0,1,2,3",
491 "UMask": "0x20",602 "UMask": "0x2",
492 "EventName": "UOPS_DISPATCHED_PORT.PORT_5",603 "EventName": "UOPS_EXECUTED_PORT.PORT_1",
493 "SampleAfterValue": "2000003",604 "SampleAfterValue": "2000003",
494 "BriefDescription": "Cycles per thread when uops are executed in port 5",605 "BriefDescription": "Cycles per thread when uops are executed in port 1",
495 "CounterHTOff": "0,1,2,3,4,5,6,7"606 "CounterHTOff": "0,1,2,3,4,5,6,7"
496 },607 },
497 {608 {
498 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",609 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",
499 "EventCode": "0xA1",610 "EventCode": "0xA1",
500 "Counter": "0,1,2,3",611 "Counter": "0,1,2,3",
501 "UMask": "0x40",612 "UMask": "0x4",
502 "EventName": "UOPS_DISPATCHED_PORT.PORT_6",613 "EventName": "UOPS_DISPATCHED_PORT.PORT_2",
503 "SampleAfterValue": "2000003",614 "SampleAfterValue": "2000003",
504 "BriefDescription": "Cycles per thread when uops are executed in port 6",615 "BriefDescription": "Cycles per thread when uops are executed in port 2",
505 "CounterHTOff": "0,1,2,3,4,5,6,7"616 "CounterHTOff": "0,1,2,3,4,5,6,7"
506 },617 },
507 {618 {
508 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",
509 "EventCode": "0xA1",619 "EventCode": "0xA1",
510 "Counter": "0,1,2,3",620 "Counter": "0,1,2,3",
511 "UMask": "0x80",621 "UMask": "0x4",
512 "EventName": "UOPS_DISPATCHED_PORT.PORT_7",622 "AnyThread": "1",
623 "EventName": "UOPS_EXECUTED_PORT.PORT_2_CORE",
513 "SampleAfterValue": "2000003",624 "SampleAfterValue": "2000003",
514 "BriefDescription": "Cycles per thread when uops are executed in port 7",625 "BriefDescription": "Cycles per core when uops are dispatched to port 2.",
515 "CounterHTOff": "0,1,2,3,4,5,6,7"626 "CounterHTOff": "0,1,2,3,4,5,6,7"
516 },627 },
517 {628 {
518 "PublicDescription": "This event counts resource-related stall cycles. Reasons for stalls can be as follows:\n - *any* u-arch structure got full (LB, SB, RS, ROB, BOB, LM, Physical Register Reclaim Table (PRRT), or Physical History Table (PHT) slots)\n - *any* u-arch structure got empty (like INT/SIMD FreeLists)\n - FPU control word (FPCW), MXCSR\nand others. This counts cycles that the pipeline backend blocked uop delivery from the front end.",629 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",
519 "EventCode": "0xA2",630 "EventCode": "0xA1",
520 "Counter": "0,1,2,3",631 "Counter": "0,1,2,3",
521 "UMask": "0x1",632 "UMask": "0x4",
522 "EventName": "RESOURCE_STALLS.ANY",633 "EventName": "UOPS_EXECUTED_PORT.PORT_2",
523 "SampleAfterValue": "2000003",634 "SampleAfterValue": "2000003",
524 "BriefDescription": "Resource-related stall cycles",635 "BriefDescription": "Cycles per thread when uops are executed in port 2",
525 "CounterHTOff": "0,1,2,3,4,5,6,7"636 "CounterHTOff": "0,1,2,3,4,5,6,7"
526 },637 },
527 {638 {
528 "PublicDescription": "This event counts stall cycles caused by absence of eligible entries in the reservation station (RS). This may result from RS overflow, or from RS deallocation because of the RS array Write Port allocation scheme (each RS entry has two write ports instead of four. As a result, empty entries could not be used, although RS is not really full). This counts cycles that the pipeline backend blocked uop delivery from the front end.",639 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",
529 "EventCode": "0xA2",640 "EventCode": "0xA1",
530 "Counter": "0,1,2,3",641 "Counter": "0,1,2,3",
531 "UMask": "0x4",642 "UMask": "0x8",
532 "EventName": "RESOURCE_STALLS.RS",643 "EventName": "UOPS_DISPATCHED_PORT.PORT_3",
533 "SampleAfterValue": "2000003",644 "SampleAfterValue": "2000003",
534 "BriefDescription": "Cycles stalled due to no eligible RS entry available.",645 "BriefDescription": "Cycles per thread when uops are executed in port 3",
535 "CounterHTOff": "0,1,2,3,4,5,6,7"646 "CounterHTOff": "0,1,2,3,4,5,6,7"
536 },647 },
537 {648 {
538 "PublicDescription": "This event counts stall cycles caused by the store buffer (SB) overflow (excluding draining from synch). This counts cycles that the pipeline backend blocked uop delivery from the front end.",649 "EventCode": "0xA1",
539 "EventCode": "0xA2",
540 "Counter": "0,1,2,3",650 "Counter": "0,1,2,3",
541 "UMask": "0x8",651 "UMask": "0x8",
542 "EventName": "RESOURCE_STALLS.SB",652 "AnyThread": "1",
653 "EventName": "UOPS_EXECUTED_PORT.PORT_3_CORE",
543 "SampleAfterValue": "2000003",654 "SampleAfterValue": "2000003",
544 "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",655 "BriefDescription": "Cycles per core when uops are dispatched to port 3.",
545 "CounterHTOff": "0,1,2,3,4,5,6,7"656 "CounterHTOff": "0,1,2,3,4,5,6,7"
546 },657 },
547 {658 {
548 "PublicDescription": "This event counts ROB full stall cycles. This counts cycles that the pipeline backend blocked uop delivery from the front end.",659 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",
549 "EventCode": "0xA2",660 "EventCode": "0xA1",
550 "Counter": "0,1,2,3",661 "Counter": "0,1,2,3",
551 "UMask": "0x10",662 "UMask": "0x8",
552 "EventName": "RESOURCE_STALLS.ROB",663 "EventName": "UOPS_EXECUTED_PORT.PORT_3",
553 "SampleAfterValue": "2000003",664 "SampleAfterValue": "2000003",
554 "BriefDescription": "Cycles stalled due to re-order buffer full.",665 "BriefDescription": "Cycles per thread when uops are executed in port 3",
555 "CounterHTOff": "0,1,2,3,4,5,6,7"666 "CounterHTOff": "0,1,2,3,4,5,6,7"
556 },667 },
557 {668 {
558 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand* load request missing the L2 cache.",669 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",
559 "EventCode": "0xA3",670 "EventCode": "0xA1",
560 "Counter": "0,1,2,3",671 "Counter": "0,1,2,3",
561 "UMask": "0x1",672 "UMask": "0x10",
562 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_PENDING",673 "EventName": "UOPS_DISPATCHED_PORT.PORT_4",
563 "SampleAfterValue": "2000003",
564 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
565 "CounterMask": "1",
566 "CounterHTOff": "0,1,2,3,4,5,6,7"
567 },
568 {
569 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request missing the L1 data cache.",
570 "EventCode": "0xA3",
571 "Counter": "2",
572 "UMask": "0x8",
573 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_PENDING",
574 "SampleAfterValue": "2000003",674 "SampleAfterValue": "2000003",
575 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",675 "BriefDescription": "Cycles per thread when uops are executed in port 4",
576 "CounterMask": "8",676 "CounterHTOff": "0,1,2,3,4,5,6,7"
577 "CounterHTOff": "2"
578 },677 },
579 {678 {
580 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request (that is cycles with non-completed load waiting for its data from memory subsystem).",679 "EventCode": "0xA1",
581 "EventCode": "0xA3",
582 "Counter": "0,1,2,3",680 "Counter": "0,1,2,3",
583 "UMask": "0x2",681 "UMask": "0x10",
584 "EventName": "CYCLE_ACTIVITY.CYCLES_LDM_PENDING",682 "AnyThread": "1",
683 "EventName": "UOPS_EXECUTED_PORT.PORT_4_CORE",
585 "SampleAfterValue": "2000003",684 "SampleAfterValue": "2000003",
586 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",685 "BriefDescription": "Cycles per core when uops are exectuted in port 4.",
587 "CounterMask": "2",
588 "CounterHTOff": "0,1,2,3,4,5,6,7"686 "CounterHTOff": "0,1,2,3,4,5,6,7"
589 },687 },
590 {688 {
591 "PublicDescription": "Counts number of cycles nothing is executed on any execution port.",689 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",
592 "EventCode": "0xA3",690 "EventCode": "0xA1",
593 "Counter": "0,1,2,3",691 "Counter": "0,1,2,3",
594 "UMask": "0x4",692 "UMask": "0x10",
595 "EventName": "CYCLE_ACTIVITY.CYCLES_NO_EXECUTE",693 "EventName": "UOPS_EXECUTED_PORT.PORT_4",
596 "SampleAfterValue": "2000003",694 "SampleAfterValue": "2000003",
597 "BriefDescription": "Total execution stalls",695 "BriefDescription": "Cycles per thread when uops are executed in port 4",
598 "CounterMask": "4",696 "CounterHTOff": "0,1,2,3,4,5,6,7"
599 "CounterHTOff": "0,1,2,3"
600 },697 },
601 {698 {
602 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand* load request missing the L2 cache.(as a footprint) * includes also L1 HW prefetch requests that may or may not be required by demands.",699 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",
603 "EventCode": "0xA3",700 "EventCode": "0xA1",
604 "Counter": "0,1,2,3",701 "Counter": "0,1,2,3",
605 "UMask": "0x5",702 "UMask": "0x20",
606 "EventName": "CYCLE_ACTIVITY.STALLS_L2_PENDING",703 "EventName": "UOPS_DISPATCHED_PORT.PORT_5",
607 "SampleAfterValue": "2000003",704 "SampleAfterValue": "2000003",
608 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",705 "BriefDescription": "Cycles per thread when uops are executed in port 5",
609 "CounterMask": "5",706 "CounterHTOff": "0,1,2,3,4,5,6,7"
610 "CounterHTOff": "0,1,2,3"
611 },707 },
612 {708 {
613 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request.",709 "EventCode": "0xA1",
614 "EventCode": "0xA3",
615 "Counter": "0,1,2,3",710 "Counter": "0,1,2,3",
616 "UMask": "0x6",711 "UMask": "0x20",
617 "EventName": "CYCLE_ACTIVITY.STALLS_LDM_PENDING",712 "AnyThread": "1",
713 "EventName": "UOPS_EXECUTED_PORT.PORT_5_CORE",
618 "SampleAfterValue": "2000003",714 "SampleAfterValue": "2000003",
619 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",715 "BriefDescription": "Cycles per core when uops are exectuted in port 5.",
620 "CounterMask": "6",716 "CounterHTOff": "0,1,2,3,4,5,6,7"
621 "CounterHTOff": "0,1,2,3"
622 },717 },
623 {718 {
624 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request missing the L1 data cache.",719 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",
625 "EventCode": "0xA3",720 "EventCode": "0xA1",
626 "Counter": "2",721 "Counter": "0,1,2,3",
627 "UMask": "0xc",722 "UMask": "0x20",
628 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_PENDING",723 "EventName": "UOPS_EXECUTED_PORT.PORT_5",
629 "SampleAfterValue": "2000003",724 "SampleAfterValue": "2000003",
630 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",725 "BriefDescription": "Cycles per thread when uops are executed in port 5",
631 "CounterMask": "12",726 "CounterHTOff": "0,1,2,3,4,5,6,7"
632 "CounterHTOff": "2"
633 },727 },
634 {728 {
635 "PublicDescription": "Number of Uops delivered by the LSD. ",729 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",
636 "EventCode": "0xA8",730 "EventCode": "0xA1",
637 "Counter": "0,1,2,3",731 "Counter": "0,1,2,3",
638 "UMask": "0x1",732 "UMask": "0x40",
639 "EventName": "LSD.UOPS",733 "EventName": "UOPS_DISPATCHED_PORT.PORT_6",
640 "SampleAfterValue": "2000003",734 "SampleAfterValue": "2000003",
641 "BriefDescription": "Number of Uops delivered by the LSD.",735 "BriefDescription": "Cycles per thread when uops are executed in port 6",
642 "CounterHTOff": "0,1,2,3,4,5,6,7"736 "CounterHTOff": "0,1,2,3,4,5,6,7"
643 },737 },
644 {738 {
645 "PublicDescription": "Number of uops to be executed per-thread each cycle.",739 "EventCode": "0xA1",
646 "EventCode": "0xB1",
647 "Counter": "0,1,2,3",740 "Counter": "0,1,2,3",
648 "UMask": "0x1",741 "UMask": "0x40",
649 "EventName": "UOPS_EXECUTED.THREAD",742 "AnyThread": "1",
743 "EventName": "UOPS_EXECUTED_PORT.PORT_6_CORE",
650 "SampleAfterValue": "2000003",744 "SampleAfterValue": "2000003",
651 "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",745 "BriefDescription": "Cycles per core when uops are exectuted in port 6.",
652 "CounterHTOff": "0,1,2,3,4,5,6,7"746 "CounterHTOff": "0,1,2,3,4,5,6,7"
653 },747 },
654 {748 {
655 "PublicDescription": "Number of uops executed from any thread.",749 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",
656 "EventCode": "0xB1",750 "EventCode": "0xA1",
657 "Counter": "0,1,2,3",751 "Counter": "0,1,2,3",
658 "UMask": "0x2",752 "UMask": "0x40",
659 "EventName": "UOPS_EXECUTED.CORE",753 "EventName": "UOPS_EXECUTED_PORT.PORT_6",
660 "SampleAfterValue": "2000003",754 "SampleAfterValue": "2000003",
661 "BriefDescription": "Number of uops executed on the core.",755 "BriefDescription": "Cycles per thread when uops are executed in port 6",
662 "CounterHTOff": "0,1,2,3,4,5,6,7"756 "CounterHTOff": "0,1,2,3,4,5,6,7"
663 },757 },
664 {758 {
665 "PublicDescription": "This event counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",759 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",
666 "EventCode": "0xB1",760 "EventCode": "0xA1",
667 "Invert": "1",
668 "Counter": "0,1,2,3",761 "Counter": "0,1,2,3",
669 "UMask": "0x1",762 "UMask": "0x80",
670 "EventName": "UOPS_EXECUTED.STALL_CYCLES",763 "EventName": "UOPS_DISPATCHED_PORT.PORT_7",
671 "SampleAfterValue": "2000003",764 "SampleAfterValue": "2000003",
672 "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",765 "BriefDescription": "Cycles per thread when uops are executed in port 7",
673 "CounterMask": "1",766 "CounterHTOff": "0,1,2,3,4,5,6,7"
674 "CounterHTOff": "0,1,2,3"
675 },767 },
676 {768 {
677 "PublicDescription": "This event counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",769 "EventCode": "0xA1",
678 "EventCode": "0xC0",
679 "Counter": "0,1,2,3",770 "Counter": "0,1,2,3",
680 "UMask": "0x0",771 "UMask": "0x80",
681 "Errata": "BDM61",772 "AnyThread": "1",
682 "EventName": "INST_RETIRED.ANY_P",773 "EventName": "UOPS_EXECUTED_PORT.PORT_7_CORE",
683 "SampleAfterValue": "2000003",774 "SampleAfterValue": "2000003",
684 "BriefDescription": "Number of instructions retired. General Counter - architectural event",775 "BriefDescription": "Cycles per core when uops are dispatched to port 7.",
685 "CounterHTOff": "0,1,2,3,4,5,6,7"776 "CounterHTOff": "0,1,2,3,4,5,6,7"
686 },777 },
687 {778 {
688 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts FP operations retired. For X87 FP operations that have no exceptions counting also includes flows that have several X87, or flows that use X87 uops in the exception handling.",779 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",
689 "EventCode": "0xC0",780 "EventCode": "0xA1",
690 "Counter": "0,1,2,3",781 "Counter": "0,1,2,3",
691 "UMask": "0x2",782 "UMask": "0x80",
692 "EventName": "INST_RETIRED.X87",783 "EventName": "UOPS_EXECUTED_PORT.PORT_7",
693 "SampleAfterValue": "2000003",784 "SampleAfterValue": "2000003",
694 "BriefDescription": "FP operations retired. X87 FP operations that have no exceptions:",785 "BriefDescription": "Cycles per thread when uops are executed in port 7",
695 "CounterHTOff": "0,1,2,3,4,5,6,7"786 "CounterHTOff": "0,1,2,3,4,5,6,7"
696 },787 },
697 {788 {
698 "PEBS": "2",789 "PublicDescription": "This event counts resource-related stall cycles. Reasons for stalls can be as follows:\n - *any* u-arch structure got full (LB, SB, RS, ROB, BOB, LM, Physical Register Reclaim Table (PRRT), or Physical History Table (PHT) slots)\n - *any* u-arch structure got empty (like INT/SIMD FreeLists)\n - FPU control word (FPCW), MXCSR\nand others. This counts cycles that the pipeline backend blocked uop delivery from the front end.",
699 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts instructions retired.",790 "EventCode": "0xA2",
700 "EventCode": "0xC0",791 "Counter": "0,1,2,3",
701 "Counter": "1",
702 "UMask": "0x1",792 "UMask": "0x1",
703 "Errata": "BDM11, BDM55",793 "EventName": "RESOURCE_STALLS.ANY",
704 "EventName": "INST_RETIRED.PREC_DIST",
705 "SampleAfterValue": "2000003",794 "SampleAfterValue": "2000003",
706 "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",795 "BriefDescription": "Resource-related stall cycles",
707 "CounterHTOff": "1"796 "CounterHTOff": "0,1,2,3,4,5,6,7"
708 },797 },
709 {798 {
710 "EventCode": "0xC1",799 "PublicDescription": "This event counts stall cycles caused by absence of eligible entries in the reservation station (RS). This may result from RS overflow, or from RS deallocation because of the RS array Write Port allocation scheme (each RS entry has two write ports instead of four. As a result, empty entries could not be used, although RS is not really full). This counts cycles that the pipeline backend blocked uop delivery from the front end.",
800 "EventCode": "0xA2",
711 "Counter": "0,1,2,3",801 "Counter": "0,1,2,3",
712 "UMask": "0x40",802 "UMask": "0x4",
713 "EventName": "OTHER_ASSISTS.ANY_WB_ASSIST",803 "EventName": "RESOURCE_STALLS.RS",
714 "SampleAfterValue": "100003",804 "SampleAfterValue": "2000003",
715 "BriefDescription": "Number of times any microcode assist is invoked by HW upon uop writeback.",805 "BriefDescription": "Cycles stalled due to no eligible RS entry available.",
716 "CounterHTOff": "0,1,2,3,4,5,6,7"806 "CounterHTOff": "0,1,2,3,4,5,6,7"
717 },807 },
718 {808 {
719 "PEBS": "1",809 "PublicDescription": "This event counts stall cycles caused by the store buffer (SB) overflow (excluding draining from synch). This counts cycles that the pipeline backend blocked uop delivery from the front end.",
720 "PublicDescription": "This event counts all actually retired uops. Counting increments by two for micro-fused uops, and by one for macro-fused and other uops. Maximal increment value for one cycle is eight.",810 "EventCode": "0xA2",
721 "EventCode": "0xC2",
722 "Counter": "0,1,2,3",811 "Counter": "0,1,2,3",
723 "UMask": "0x1",812 "UMask": "0x8",
724 "EventName": "UOPS_RETIRED.ALL",813 "EventName": "RESOURCE_STALLS.SB",
725 "SampleAfterValue": "2000003",814 "SampleAfterValue": "2000003",
726 "BriefDescription": "Actually retired uops.",815 "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
727 "CounterHTOff": "0,1,2,3,4,5,6,7",816 "CounterHTOff": "0,1,2,3,4,5,6,7"
728 "Data_LA": "1"
729 },817 },
730 {818 {
731 "PEBS": "1",819 "PublicDescription": "This event counts ROB full stall cycles. This counts cycles that the pipeline backend blocked uop delivery from the front end.",
732 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of retirement slots used.",820 "EventCode": "0xA2",
733 "EventCode": "0xC2",
734 "Counter": "0,1,2,3",821 "Counter": "0,1,2,3",
735 "UMask": "0x2",822 "UMask": "0x10",
736 "EventName": "UOPS_RETIRED.RETIRE_SLOTS",823 "EventName": "RESOURCE_STALLS.ROB",
737 "SampleAfterValue": "2000003",824 "SampleAfterValue": "2000003",
738 "BriefDescription": "Retirement slots used.",825 "BriefDescription": "Cycles stalled due to re-order buffer full.",
739 "CounterHTOff": "0,1,2,3,4,5,6,7"826 "CounterHTOff": "0,1,2,3,4,5,6,7"
740 },827 },
741 {828 {
742 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts cycles without actually retired uops.",829 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand* load request missing the L2 cache.",
743 "EventCode": "0xC2",830 "EventCode": "0xA3",
744 "Invert": "1",
745 "Counter": "0,1,2,3",831 "Counter": "0,1,2,3",
746 "UMask": "0x1",832 "UMask": "0x1",
747 "EventName": "UOPS_RETIRED.STALL_CYCLES",833 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_PENDING",
748 "SampleAfterValue": "2000003",834 "SampleAfterValue": "2000003",
749 "BriefDescription": "Cycles without actually retired uops.",835 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
750 "CounterMask": "1",836 "CounterMask": "1",
751 "CounterHTOff": "0,1,2,3"837 "CounterHTOff": "0,1,2,3,4,5,6,7"
752 },838 },
753 {839 {
754 "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",840 "EventCode": "0xA3",
755 "EventCode": "0xC2",
756 "Invert": "1",
757 "Counter": "0,1,2,3",841 "Counter": "0,1,2,3",
758 "UMask": "0x1",842 "UMask": "0x1",
759 "EventName": "UOPS_RETIRED.TOTAL_CYCLES",843 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
760 "SampleAfterValue": "2000003",844 "SampleAfterValue": "2000003",
761 "BriefDescription": "Cycles with less than 10 actually retired uops.",845 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
762 "CounterMask": "10",846 "CounterMask": "1",
763 "CounterHTOff": "0,1,2,3"847 "CounterHTOff": "0,1,2,3,4,5,6,7"
764 },848 },
765 {849 {
766 "PublicDescription": "This event counts both thread-specific (TS) and all-thread (AT) nukes.",850 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request (that is cycles with non-completed load waiting for its data from memory subsystem).",
767 "EventCode": "0xC3",851 "EventCode": "0xA3",
768 "Counter": "0,1,2,3",852 "Counter": "0,1,2,3",
769 "UMask": "0x1",853 "UMask": "0x2",
770 "EventName": "MACHINE_CLEARS.CYCLES",854 "EventName": "CYCLE_ACTIVITY.CYCLES_LDM_PENDING",
771 "SampleAfterValue": "2000003",855 "SampleAfterValue": "2000003",
772 "BriefDescription": "Cycles there was a Nuke. Account for both thread-specific and All Thread Nukes.",856 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
857 "CounterMask": "2",
773 "CounterHTOff": "0,1,2,3,4,5,6,7"858 "CounterHTOff": "0,1,2,3,4,5,6,7"
774 },859 },
775 {860 {
776 "PublicDescription": "This event counts self-modifying code (SMC) detected, which causes a machine clear.",861 "EventCode": "0xA3",
777 "EventCode": "0xC3",
778 "Counter": "0,1,2,3",862 "Counter": "0,1,2,3",
779 "UMask": "0x4",863 "UMask": "0x2",
780 "EventName": "MACHINE_CLEARS.SMC",864 "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
781 "SampleAfterValue": "100003",865 "SampleAfterValue": "2000003",
782 "BriefDescription": "Self-modifying code (SMC) detected.",866 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
783 "CounterHTOff": "0,1,2,3,4,5,6,7"867 "CounterMask": "2",
868 "CounterHTOff": "0,1,2,3"
784 },869 },
785 {870 {
786 "PublicDescription": "Maskmov false fault - counts number of time ucode passes through Maskmov flow due to instruction's mask being 0 while the flow was completed without raising a fault.",871 "PublicDescription": "Counts number of cycles nothing is executed on any execution port.",
787 "EventCode": "0xC3",872 "EventCode": "0xA3",
788 "Counter": "0,1,2,3",873 "Counter": "0,1,2,3",
789 "UMask": "0x20",874 "UMask": "0x4",
790 "EventName": "MACHINE_CLEARS.MASKMOV",875 "EventName": "CYCLE_ACTIVITY.CYCLES_NO_EXECUTE",
791 "SampleAfterValue": "100003",876 "SampleAfterValue": "2000003",
792 "BriefDescription": "This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0.",877 "BriefDescription": "This event increments by 1 for every cycle where there was no execute for this thread.",
793 "CounterHTOff": "0,1,2,3,4,5,6,7"878 "CounterMask": "4",
879 "CounterHTOff": "0,1,2,3"
794 },880 },
795 {881 {
796 "PEBS": "1",882 "EventCode": "0xA3",
797 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts conditional branch instructions retired.",
798 "EventCode": "0xC4",
799 "Counter": "0,1,2,3",
800 "UMask": "0x1",
801 "EventName": "BR_INST_RETIRED.CONDITIONAL",
802 "SampleAfterValue": "400009",
803 "BriefDescription": "Conditional branch instructions retired.",
804 "CounterHTOff": "0,1,2,3,4,5,6,7"
805 },
806 {
807 "PEBS": "1",
808 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts both direct and indirect near call instructions retired.",
809 "EventCode": "0xC4",
810 "Counter": "0,1,2,3",
811 "UMask": "0x2",
812 "EventName": "BR_INST_RETIRED.NEAR_CALL",
813 "SampleAfterValue": "100007",
814 "BriefDescription": "Direct and indirect near call instructions retired.",
815 "CounterHTOff": "0,1,2,3,4,5,6,7"
816 },
817 {
818 "PublicDescription": "This event counts all (macro) branch instructions retired.",
819 "EventCode": "0xC4",
820 "Counter": "0,1,2,3",
821 "UMask": "0x0",
822 "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
823 "SampleAfterValue": "400009",
824 "BriefDescription": "All (macro) branch instructions retired.",
825 "CounterHTOff": "0,1,2,3,4,5,6,7"
826 },
827 {
828 "PEBS": "1",
829 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts return instructions retired.",
830 "EventCode": "0xC4",
831 "Counter": "0,1,2,3",
832 "UMask": "0x8",
833 "EventName": "BR_INST_RETIRED.NEAR_RETURN",
834 "SampleAfterValue": "100007",
835 "BriefDescription": "Return instructions retired.",
836 "CounterHTOff": "0,1,2,3,4,5,6,7"
837 },
838 {
839 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts not taken branch instructions retired.",
840 "EventCode": "0xC4",
841 "Counter": "0,1,2,3",
842 "UMask": "0x10",
843 "EventName": "BR_INST_RETIRED.NOT_TAKEN",
844 "SampleAfterValue": "400009",
845 "BriefDescription": "Not taken branch instructions retired.",
846 "CounterHTOff": "0,1,2,3,4,5,6,7"
847 },
848 {
849 "PEBS": "1",
850 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts taken branch instructions retired.",
851 "EventCode": "0xC4",
852 "Counter": "0,1,2,3",
853 "UMask": "0x20",
854 "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
855 "SampleAfterValue": "400009",
856 "BriefDescription": "Taken branch instructions retired.",
857 "CounterHTOff": "0,1,2,3,4,5,6,7"
858 },
859 {
860 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts far branch instructions retired.",
861 "EventCode": "0xC4",
862 "Counter": "0,1,2,3",
863 "UMask": "0x40",
864 "Errata": "BDW98",
865 "EventName": "BR_INST_RETIRED.FAR_BRANCH",
866 "SampleAfterValue": "100007",
867 "BriefDescription": "Far branch instructions retired.",
868 "CounterHTOff": "0,1,2,3,4,5,6,7"
869 },
870 {
871 "PEBS": "2",
872 "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",
873 "EventCode": "0xC4",
874 "Counter": "0,1,2,3",883 "Counter": "0,1,2,3",
875 "UMask": "0x4",884 "UMask": "0x4",
876 "Errata": "BDW98",885 "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
877 "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",886 "SampleAfterValue": "2000003",
878 "SampleAfterValue": "400009",887 "BriefDescription": "Total execution stalls.",
879 "BriefDescription": "All (macro) branch instructions retired. (Precise Event - PEBS)",888 "CounterMask": "4",
880 "CounterHTOff": "0,1,2,3"
881 },
882 {
883 "PEBS": "1",
884 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts mispredicted conditional branch instructions retired.",
885 "EventCode": "0xC5",
886 "Counter": "0,1,2,3",
887 "UMask": "0x1",
888 "EventName": "BR_MISP_RETIRED.CONDITIONAL",
889 "SampleAfterValue": "400009",
890 "BriefDescription": "Mispredicted conditional branch instructions retired.",
891 "CounterHTOff": "0,1,2,3,4,5,6,7"
892 },
893 {
894 "PublicDescription": "This event counts all mispredicted macro branch instructions retired.",
895 "EventCode": "0xC5",
896 "Counter": "0,1,2,3",
897 "UMask": "0x0",
898 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
899 "SampleAfterValue": "400009",
900 "BriefDescription": "All mispredicted macro branch instructions retired.",
901 "CounterHTOff": "0,1,2,3,4,5,6,7"
902 },
903 {
904 "PEBS": "1",
905 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts mispredicted return instructions retired.",
906 "EventCode": "0xC5",
907 "Counter": "0,1,2,3",
908 "UMask": "0x8",
909 "EventName": "BR_MISP_RETIRED.RET",
910 "SampleAfterValue": "100007",
911 "BriefDescription": "This event counts the number of mispredicted ret instructions retired. Non PEBS",
912 "CounterHTOff": "0,1,2,3,4,5,6,7"889 "CounterHTOff": "0,1,2,3,4,5,6,7"
913 },890 },
914 {891 {
915 "PEBS": "2",892 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand* load request missing the L2 cache.(as a footprint) * includes also L1 HW prefetch requests that may or may not be required by demands.",
916 "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",893 "EventCode": "0xA3",
917 "EventCode": "0xC5",
918 "Counter": "0,1,2,3",894 "Counter": "0,1,2,3",
919 "UMask": "0x4",895 "UMask": "0x5",
920 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",896 "EventName": "CYCLE_ACTIVITY.STALLS_L2_PENDING",
921 "SampleAfterValue": "400009",897 "SampleAfterValue": "2000003",
922 "BriefDescription": "Mispredicted macro branch instructions retired. (Precise Event - PEBS)",898 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
899 "CounterMask": "5",
923 "CounterHTOff": "0,1,2,3"900 "CounterHTOff": "0,1,2,3"
924 },901 },
925 {902 {
926 "PublicDescription": "This event counts cases of saving new LBR records by hardware. This assumes proper enabling of LBRs and takes into account LBR filtering done by the LBR_SELECT register.",903 "EventCode": "0xA3",
927 "EventCode": "0xCC",
928 "Counter": "0,1,2,3",904 "Counter": "0,1,2,3",
929 "UMask": "0x20",905 "UMask": "0x5",
930 "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",906 "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
931 "SampleAfterValue": "2000003",907 "SampleAfterValue": "2000003",
932 "BriefDescription": "Count cases of saving new LBR",908 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
909 "CounterMask": "5",
933 "CounterHTOff": "0,1,2,3,4,5,6,7"910 "CounterHTOff": "0,1,2,3,4,5,6,7"
934 },911 },
935 {912 {
936 "PublicDescription": "This is an architectural event that counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The core frequency may change from time to time due to power or thermal throttling. For this reason, this event may have a changing ratio with regards to wall clock time.",913 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request.",
937 "EventCode": "0x3C",914 "EventCode": "0xA3",
938 "Counter": "0,1,2,3",915 "Counter": "0,1,2,3",
939 "UMask": "0x0",916 "UMask": "0x6",
940 "EventName": "CPU_CLK_UNHALTED.THREAD_P",917 "EventName": "CYCLE_ACTIVITY.STALLS_LDM_PENDING",
941 "SampleAfterValue": "2000003",918 "SampleAfterValue": "2000003",
942 "BriefDescription": "Thread cycles when thread is not in halt state",919 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
943 "CounterHTOff": "0,1,2,3,4,5,6,7"920 "CounterMask": "6",
921 "CounterHTOff": "0,1,2,3"
944 },922 },
945 {923 {
946 "EventCode": "0x89",924 "EventCode": "0xA3",
947 "Counter": "0,1,2,3",925 "Counter": "0,1,2,3",
948 "UMask": "0xa0",926 "UMask": "0x6",
949 "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_NEAR_CALL",927 "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
950 "SampleAfterValue": "200003",928 "SampleAfterValue": "2000003",
951 "BriefDescription": "Taken speculative and retired mispredicted indirect calls.",929 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
930 "CounterMask": "6",
952 "CounterHTOff": "0,1,2,3,4,5,6,7"931 "CounterHTOff": "0,1,2,3,4,5,6,7"
953 },932 },
954 {933 {
955 "EventCode": "0xA1",934 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request missing the L1 data cache.",
956 "Counter": "0,1,2,3",935 "EventCode": "0xA3",
957 "UMask": "0x1",936 "Counter": "2",
958 "AnyThread": "1",937 "UMask": "0x8",
959 "EventName": "UOPS_EXECUTED_PORT.PORT_0_CORE",938 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_PENDING",
960 "SampleAfterValue": "2000003",939 "SampleAfterValue": "2000003",
961 "BriefDescription": "Cycles per core when uops are exectuted in port 0.",940 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
962 "CounterHTOff": "0,1,2,3,4,5,6,7"941 "CounterMask": "8",
942 "CounterHTOff": "2"
963 },943 },
964 {944 {
965 "EventCode": "0xA1",945 "EventCode": "0xA3",
966 "Counter": "0,1,2,3",946 "Counter": "2",
967 "UMask": "0x2",947 "UMask": "0x8",
968 "AnyThread": "1",948 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
969 "EventName": "UOPS_EXECUTED_PORT.PORT_1_CORE",
970 "SampleAfterValue": "2000003",949 "SampleAfterValue": "2000003",
971 "BriefDescription": "Cycles per core when uops are exectuted in port 1.",950 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
972 "CounterHTOff": "0,1,2,3,4,5,6,7"951 "CounterMask": "8",
952 "CounterHTOff": "2"
973 },953 },
974 {954 {
975 "EventCode": "0xA1",955 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request missing the L1 data cache.",
976 "Counter": "0,1,2,3",956 "EventCode": "0xA3",
977 "UMask": "0x4",957 "Counter": "2",
978 "AnyThread": "1",958 "UMask": "0xc",
979 "EventName": "UOPS_EXECUTED_PORT.PORT_2_CORE",959 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_PENDING",
980 "SampleAfterValue": "2000003",960 "SampleAfterValue": "2000003",
981 "BriefDescription": "Cycles per core when uops are dispatched to port 2.",961 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
982 "CounterHTOff": "0,1,2,3,4,5,6,7"962 "CounterMask": "12",
963 "CounterHTOff": "2"
983 },964 },
984 {965 {
985 "EventCode": "0xA1",966 "EventCode": "0xA3",
986 "Counter": "0,1,2,3",967 "Counter": "2",
987 "UMask": "0x8",968 "UMask": "0xc",
988 "AnyThread": "1",969 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
989 "EventName": "UOPS_EXECUTED_PORT.PORT_3_CORE",
990 "SampleAfterValue": "2000003",970 "SampleAfterValue": "2000003",
991 "BriefDescription": "Cycles per core when uops are dispatched to port 3.",971 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
992 "CounterHTOff": "0,1,2,3,4,5,6,7"972 "CounterMask": "12",
973 "CounterHTOff": "2"
993 },974 },
994 {975 {
995 "EventCode": "0xA1",976 "EventCode": "0xA8",
996 "Counter": "0,1,2,3",977 "Counter": "0,1,2,3",
997 "UMask": "0x10",978 "UMask": "0x1",
998 "AnyThread": "1",979 "EventName": "LSD.UOPS",
999 "EventName": "UOPS_EXECUTED_PORT.PORT_4_CORE",
1000 "SampleAfterValue": "2000003",980 "SampleAfterValue": "2000003",
1001 "BriefDescription": "Cycles per core when uops are exectuted in port 4.",981 "BriefDescription": "Number of Uops delivered by the LSD.",
1002 "CounterHTOff": "0,1,2,3,4,5,6,7"982 "CounterHTOff": "0,1,2,3,4,5,6,7"
1003 },983 },
1004 {984 {
1005 "EventCode": "0xA1",985 "EventCode": "0xA8",
1006 "Counter": "0,1,2,3",986 "Counter": "0,1,2,3",
1007 "UMask": "0x20",987 "UMask": "0x1",
1008 "AnyThread": "1",988 "EventName": "LSD.CYCLES_4_UOPS",
1009 "EventName": "UOPS_EXECUTED_PORT.PORT_5_CORE",
1010 "SampleAfterValue": "2000003",989 "SampleAfterValue": "2000003",
1011 "BriefDescription": "Cycles per core when uops are exectuted in port 5.",990 "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",
991 "CounterMask": "4",
1012 "CounterHTOff": "0,1,2,3,4,5,6,7"992 "CounterHTOff": "0,1,2,3,4,5,6,7"
1013 },993 },
1014 {994 {
1015 "EventCode": "0xA1",995 "EventCode": "0xA8",
1016 "Counter": "0,1,2,3",996 "Counter": "0,1,2,3",
1017 "UMask": "0x40",997 "UMask": "0x1",
1018 "AnyThread": "1",998 "EventName": "LSD.CYCLES_ACTIVE",
1019 "EventName": "UOPS_EXECUTED_PORT.PORT_6_CORE",
1020 "SampleAfterValue": "2000003",999 "SampleAfterValue": "2000003",
1021 "BriefDescription": "Cycles per core when uops are exectuted in port 6.",1000 "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
1001 "CounterMask": "1",
1022 "CounterHTOff": "0,1,2,3,4,5,6,7"1002 "CounterHTOff": "0,1,2,3,4,5,6,7"
1023 },1003 },
1024 {1004 {
1025 "EventCode": "0xA1",1005 "PublicDescription": "Number of uops to be executed per-thread each cycle.",
1006 "EventCode": "0xB1",
1026 "Counter": "0,1,2,3",1007 "Counter": "0,1,2,3",
1027 "UMask": "0x80",1008 "UMask": "0x1",
1028 "AnyThread": "1",1009 "EventName": "UOPS_EXECUTED.THREAD",
1029 "EventName": "UOPS_EXECUTED_PORT.PORT_7_CORE",
1030 "SampleAfterValue": "2000003",1010 "SampleAfterValue": "2000003",
1031 "BriefDescription": "Cycles per core when uops are dispatched to port 7.",1011 "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
1032 "CounterHTOff": "0,1,2,3,4,5,6,7"1012 "CounterHTOff": "0,1,2,3,4,5,6,7"
1033 },1013 },
1034 {1014 {
1035 "PEBS": "1",1015 "PublicDescription": "This event counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
1036 "PublicDescription": "Number of near branch instructions retired that were mispredicted and taken.",1016 "EventCode": "0xB1",
1037 "EventCode": "0xC5",1017 "Invert": "1",
1038 "Counter": "0,1,2,3",1018 "Counter": "0,1,2,3",
1039 "UMask": "0x20",1019 "UMask": "0x1",
1040 "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",1020 "EventName": "UOPS_EXECUTED.STALL_CYCLES",
1041 "SampleAfterValue": "400009",1021 "SampleAfterValue": "2000003",
1042 "BriefDescription": "number of near branch instructions retired that were mispredicted and taken.",1022 "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
1043 "CounterHTOff": "0,1,2,3,4,5,6,7"1023 "CounterMask": "1",
1024 "CounterHTOff": "0,1,2,3"
1044 },1025 },
1045 {1026 {
1046 "EventCode": "0xB1",1027 "EventCode": "0xB1",
@@ -1083,335 +1064,364 @@ · 36 unmodified lines
1083 "CounterHTOff": "0,1,2,3"1064 "CounterHTOff": "0,1,2,3"
1084 },1065 },
1085 {1066 {
1086 "EventCode": "0xe6",1067 "PublicDescription": "Number of uops executed from any thread.",
1068 "EventCode": "0xB1",
1087 "Counter": "0,1,2,3",1069 "Counter": "0,1,2,3",
1088 "UMask": "0x1f",1070 "UMask": "0x2",
1089 "EventName": "BACLEARS.ANY",1071 "EventName": "UOPS_EXECUTED.CORE",
1090 "SampleAfterValue": "100003",1072 "SampleAfterValue": "2000003",
1091 "BriefDescription": "Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end.",1073 "BriefDescription": "Number of uops executed on the core.",
1092 "CounterHTOff": "0,1,2,3,4,5,6,7"1074 "CounterHTOff": "0,1,2,3,4,5,6,7"
1093 },1075 },
1094 {1076 {
1095 "EventCode": "0xA3",1077 "EventCode": "0xb1",
1096 "Counter": "2",1078 "Counter": "0,1,2,3",
1097 "UMask": "0x8",1079 "UMask": "0x2",
1098 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",1080 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
1099 "SampleAfterValue": "2000003",1081 "SampleAfterValue": "2000003",
1100 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",1082 "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
1101 "CounterMask": "8",1083 "CounterMask": "1",
1102 "CounterHTOff": "2"1084 "CounterHTOff": "0,1,2,3,4,5,6,7"
1103 },1085 },
1104 {1086 {
1105 "EventCode": "0xA3",1087 "EventCode": "0xb1",
1106 "Counter": "0,1,2,3",1088 "Counter": "0,1,2,3",
1107 "UMask": "0x1",1089 "UMask": "0x2",
1108 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",1090 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
1109 "SampleAfterValue": "2000003",1091 "SampleAfterValue": "2000003",
1110 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",1092 "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
1111 "CounterMask": "1",1093 "CounterMask": "2",
1112 "CounterHTOff": "0,1,2,3,4,5,6,7"1094 "CounterHTOff": "0,1,2,3,4,5,6,7"
1113 },1095 },
1114 {1096 {
1115 "EventCode": "0xA3",1097 "EventCode": "0xb1",
1116 "Counter": "0,1,2,3",1098 "Counter": "0,1,2,3",
1117 "UMask": "0x2",1099 "UMask": "0x2",
1118 "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",1100 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
1119 "SampleAfterValue": "2000003",1101 "SampleAfterValue": "2000003",
1120 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",1102 "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
1121 "CounterMask": "2",1103 "CounterMask": "3",
1122 "CounterHTOff": "0,1,2,3"1104 "CounterHTOff": "0,1,2,3,4,5,6,7"
1123 },1105 },
1124 {1106 {
1125 "EventCode": "0xA3",1107 "EventCode": "0xb1",
1126 "Counter": "0,1,2,3",1108 "Counter": "0,1,2,3",
1127 "UMask": "0x4",1109 "UMask": "0x2",
1128 "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",1110 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
1129 "SampleAfterValue": "2000003",1111 "SampleAfterValue": "2000003",
1130 "BriefDescription": "Total execution stalls.",1112 "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
1131 "CounterMask": "4",1113 "CounterMask": "4",
1132 "CounterHTOff": "0,1,2,3,4,5,6,7"1114 "CounterHTOff": "0,1,2,3,4,5,6,7"
1133 },1115 },
1134 {1116 {
1135 "EventCode": "0xA3",1117 "EventCode": "0xb1",
1136 "Counter": "2",1118 "Invert": "1",
1137 "UMask": "0xc",1119 "Counter": "0,1,2,3",
1138 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",1120 "UMask": "0x2",
1121 "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",
1139 "SampleAfterValue": "2000003",1122 "SampleAfterValue": "2000003",
1140 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",1123 "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",
1141 "CounterMask": "12",1124 "CounterHTOff": "0,1,2,3,4,5,6,7"
1142 "CounterHTOff": "2"
1143 },1125 },
1144 {1126 {
1145 "EventCode": "0xA3",1127 "PublicDescription": "This event counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
1128 "EventCode": "0xC0",
1146 "Counter": "0,1,2,3",1129 "Counter": "0,1,2,3",
1147 "UMask": "0x5",1130 "UMask": "0x0",
1148 "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",1131 "Errata": "BDM61",
1132 "EventName": "INST_RETIRED.ANY_P",
1149 "SampleAfterValue": "2000003",1133 "SampleAfterValue": "2000003",
1150 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",1134 "BriefDescription": "Number of instructions retired. General Counter - architectural event",
1151 "CounterMask": "5",
1152 "CounterHTOff": "0,1,2,3,4,5,6,7"1135 "CounterHTOff": "0,1,2,3,4,5,6,7"
1153 },1136 },
1154 {1137 {
1155 "EventCode": "0xA3",1138 "PEBS": "2",
1139 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts instructions retired.",
1140 "EventCode": "0xC0",
1141 "Counter": "1",
1142 "UMask": "0x1",
1143 "Errata": "BDM11, BDM55",
1144 "EventName": "INST_RETIRED.PREC_DIST",
1145 "SampleAfterValue": "2000003",
1146 "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",
1147 "CounterHTOff": "1"
1148 },
1149 {
1150 "PublicDescription": "This event counts FP operations retired. For X87 FP operations that have no exceptions counting also includes flows that have several X87, or flows that use X87 uops in the exception handling.",
1151 "EventCode": "0xC0",
1156 "Counter": "0,1,2,3",1152 "Counter": "0,1,2,3",
1157 "UMask": "0x6",1153 "UMask": "0x2",
1158 "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",1154 "EventName": "INST_RETIRED.X87",
1159 "SampleAfterValue": "2000003",1155 "SampleAfterValue": "2000003",
1160 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",1156 "BriefDescription": "FP operations retired. X87 FP operations that have no exceptions:",
1161 "CounterMask": "6",
1162 "CounterHTOff": "0,1,2,3,4,5,6,7"1157 "CounterHTOff": "0,1,2,3,4,5,6,7"
1163 },1158 },
1164 {1159 {
1165 "EventCode": "0xC3",1160 "EventCode": "0xC1",
1166 "Counter": "0,1,2,3",1161 "Counter": "0,1,2,3",
1167 "UMask": "0x1",1162 "UMask": "0x40",
1168 "EdgeDetect": "1",1163 "EventName": "OTHER_ASSISTS.ANY_WB_ASSIST",
1169 "EventName": "MACHINE_CLEARS.COUNT",
1170 "SampleAfterValue": "100003",1164 "SampleAfterValue": "100003",
1171 "BriefDescription": "Number of machine clears (nukes) of any type.",1165 "BriefDescription": "Number of times any microcode assist is invoked by HW upon uop writeback.",
1172 "CounterMask": "1",
1173 "CounterHTOff": "0,1,2,3,4,5,6,7"1166 "CounterHTOff": "0,1,2,3,4,5,6,7"
1174 },1167 },
1175 {1168 {
1176 "EventCode": "0xA8",1169 "PEBS": "1",
1170 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts all actually retired uops. Counting increments by two for micro-fused uops, and by one for macro-fused and other uops. Maximal increment value for one cycle is eight.",
1171 "EventCode": "0xC2",
1177 "Counter": "0,1,2,3",1172 "Counter": "0,1,2,3",
1178 "UMask": "0x1",1173 "UMask": "0x1",
1179 "EventName": "LSD.CYCLES_4_UOPS",1174 "EventName": "UOPS_RETIRED.ALL",
1180 "SampleAfterValue": "2000003",1175 "SampleAfterValue": "2000003",
1181 "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",1176 "BriefDescription": "Actually retired uops. (Precise Event - PEBS)",
1182 "CounterMask": "4",1177 "CounterHTOff": "0,1,2,3,4,5,6,7",
1183 "CounterHTOff": "0,1,2,3,4,5,6,7"1178 "Data_LA": "1"
1184 },1179 },
1185 {1180 {
1186 "EventCode": "0x5E",1181 "PublicDescription": "This event counts cycles without actually retired uops.",
1182 "EventCode": "0xC2",
1187 "Invert": "1",1183 "Invert": "1",
1188 "Counter": "0,1,2,3",1184 "Counter": "0,1,2,3",
1189 "UMask": "0x1",1185 "UMask": "0x1",
1190 "EdgeDetect": "1",1186 "EventName": "UOPS_RETIRED.STALL_CYCLES",
1191 "EventName": "RS_EVENTS.EMPTY_END",
1192 "SampleAfterValue": "200003",
1193 "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
1194 "CounterMask": "1",
1195 "CounterHTOff": "0,1,2,3,4,5,6,7"
1196 },
1197 {
1198 "EventCode": "0xA8",
1199 "Counter": "0,1,2,3",
1200 "UMask": "0x1",
1201 "EventName": "LSD.CYCLES_ACTIVE",
1202 "SampleAfterValue": "2000003",1187 "SampleAfterValue": "2000003",
1203 "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",1188 "BriefDescription": "Cycles without actually retired uops.",
1204 "CounterMask": "1",1189 "CounterMask": "1",
1205 "CounterHTOff": "0,1,2,3,4,5,6,7"1190 "CounterHTOff": "0,1,2,3"
1206 },1191 },
1207 {1192 {
1208 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",1193 "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
1209 "EventCode": "0xA1",1194 "EventCode": "0xC2",
1195 "Invert": "1",
1210 "Counter": "0,1,2,3",1196 "Counter": "0,1,2,3",
1211 "UMask": "0x1",1197 "UMask": "0x1",
1212 "EventName": "UOPS_EXECUTED_PORT.PORT_0",1198 "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
1213 "SampleAfterValue": "2000003",1199 "SampleAfterValue": "2000003",
1214 "BriefDescription": "Cycles per thread when uops are executed in port 0",1200 "BriefDescription": "Cycles with less than 10 actually retired uops.",
1215 "CounterHTOff": "0,1,2,3,4,5,6,7"1201 "CounterMask": "10",
1202 "CounterHTOff": "0,1,2,3"
1216 },1203 },
1217 {1204 {
1218 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",1205 "PEBS": "1",
1219 "EventCode": "0xA1",1206 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts the number of retirement slots used.",
1207 "EventCode": "0xC2",
1220 "Counter": "0,1,2,3",1208 "Counter": "0,1,2,3",
1221 "UMask": "0x2",1209 "UMask": "0x2",
1222 "EventName": "UOPS_EXECUTED_PORT.PORT_1",1210 "EventName": "UOPS_RETIRED.RETIRE_SLOTS",
1223 "SampleAfterValue": "2000003",1211 "SampleAfterValue": "2000003",
1224 "BriefDescription": "Cycles per thread when uops are executed in port 1",1212 "BriefDescription": "Retirement slots used. (Precise Event - PEBS)",
1225 "CounterHTOff": "0,1,2,3,4,5,6,7"1213 "CounterHTOff": "0,1,2,3,4,5,6,7"
1226 },1214 },
1227 {1215 {
1228 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",1216 "PublicDescription": "This event counts both thread-specific (TS) and all-thread (AT) nukes.",
1229 "EventCode": "0xA1",1217 "EventCode": "0xC3",
1230 "Counter": "0,1,2,3",1218 "Counter": "0,1,2,3",
1231 "UMask": "0x4",1219 "UMask": "0x1",
1232 "EventName": "UOPS_EXECUTED_PORT.PORT_2",1220 "EventName": "MACHINE_CLEARS.CYCLES",
1233 "SampleAfterValue": "2000003",1221 "SampleAfterValue": "2000003",
1234 "BriefDescription": "Cycles per thread when uops are executed in port 2",1222 "BriefDescription": "Cycles there was a Nuke. Account for both thread-specific and All Thread Nukes.",
1235 "CounterHTOff": "0,1,2,3,4,5,6,7"1223 "CounterHTOff": "0,1,2,3,4,5,6,7"
1236 },1224 },
1237 {1225 {
1238 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",1226 "EventCode": "0xC3",
1239 "EventCode": "0xA1",
1240 "Counter": "0,1,2,3",1227 "Counter": "0,1,2,3",
1241 "UMask": "0x8",1228 "UMask": "0x1",
1242 "EventName": "UOPS_EXECUTED_PORT.PORT_3",1229 "EdgeDetect": "1",
1243 "SampleAfterValue": "2000003",1230 "EventName": "MACHINE_CLEARS.COUNT",
1244 "BriefDescription": "Cycles per thread when uops are executed in port 3",1231 "SampleAfterValue": "100003",
1232 "BriefDescription": "Number of machine clears (nukes) of any type.",
1233 "CounterMask": "1",
1245 "CounterHTOff": "0,1,2,3,4,5,6,7"1234 "CounterHTOff": "0,1,2,3,4,5,6,7"
1246 },1235 },
1247 {1236 {
1248 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",1237 "PublicDescription": "This event counts self-modifying code (SMC) detected, which causes a machine clear.",
1249 "EventCode": "0xA1",1238 "EventCode": "0xC3",
1250 "Counter": "0,1,2,3",1239 "Counter": "0,1,2,3",
1251 "UMask": "0x10",1240 "UMask": "0x4",
1252 "EventName": "UOPS_EXECUTED_PORT.PORT_4",1241 "EventName": "MACHINE_CLEARS.SMC",
1253 "SampleAfterValue": "2000003",1242 "SampleAfterValue": "100003",
1254 "BriefDescription": "Cycles per thread when uops are executed in port 4",1243 "BriefDescription": "Self-modifying code (SMC) detected.",
1255 "CounterHTOff": "0,1,2,3,4,5,6,7"1244 "CounterHTOff": "0,1,2,3,4,5,6,7"
1256 },1245 },
1257 {1246 {
1258 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",1247 "PublicDescription": "Maskmov false fault - counts number of time ucode passes through Maskmov flow due to instruction's mask being 0 while the flow was completed without raising a fault.",
1259 "EventCode": "0xA1",1248 "EventCode": "0xC3",
1260 "Counter": "0,1,2,3",1249 "Counter": "0,1,2,3",
1261 "UMask": "0x20",1250 "UMask": "0x20",
1262 "EventName": "UOPS_EXECUTED_PORT.PORT_5",1251 "EventName": "MACHINE_CLEARS.MASKMOV",
1263 "SampleAfterValue": "2000003",1252 "SampleAfterValue": "100003",
1264 "BriefDescription": "Cycles per thread when uops are executed in port 5",1253 "BriefDescription": "This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0.",
1265 "CounterHTOff": "0,1,2,3,4,5,6,7"1254 "CounterHTOff": "0,1,2,3,4,5,6,7"
1266 },1255 },
1267 {1256 {
1268 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",1257 "PublicDescription": "This event counts all (macro) branch instructions retired.",
1269 "EventCode": "0xA1",1258 "EventCode": "0xC4",
1270 "Counter": "0,1,2,3",1259 "Counter": "0,1,2,3",
1271 "UMask": "0x40",1260 "UMask": "0x0",
1272 "EventName": "UOPS_EXECUTED_PORT.PORT_6",1261 "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
1273 "SampleAfterValue": "2000003",1262 "SampleAfterValue": "400009",
1274 "BriefDescription": "Cycles per thread when uops are executed in port 6",1263 "BriefDescription": "All (macro) branch instructions retired.",
1275 "CounterHTOff": "0,1,2,3,4,5,6,7"1264 "CounterHTOff": "0,1,2,3,4,5,6,7"
1276 },1265 },
1277 {1266 {
1278 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",1267 "PEBS": "1",
1279 "EventCode": "0xA1",1268 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts conditional branch instructions retired.",
1269 "EventCode": "0xC4",
1280 "Counter": "0,1,2,3",1270 "Counter": "0,1,2,3",
1281 "UMask": "0x80",1271 "UMask": "0x1",
1282 "EventName": "UOPS_EXECUTED_PORT.PORT_7",1272 "EventName": "BR_INST_RETIRED.CONDITIONAL",
1283 "SampleAfterValue": "2000003",1273 "SampleAfterValue": "400009",
1284 "BriefDescription": "Cycles per thread when uops are executed in port 7",1274 "BriefDescription": "Conditional branch instructions retired. (Precise Event - PEBS)",
1285 "CounterHTOff": "0,1,2,3,4,5,6,7"1275 "CounterHTOff": "0,1,2,3,4,5,6,7"
1286 },1276 },
1287 {1277 {
1288 "PublicDescription": "This event counts the number of micro-operations cancelled after they were dispatched from the scheduler to the execution units when the total number of physical register read ports across all dispatch ports exceeds the read bandwidth of the physical register file. The SIMD_PRF subevent applies to the following instructions: VDPPS, DPPS, VPCMPESTRI, PCMPESTRI, VPCMPESTRM, PCMPESTRM, VFMADD*, VFMADDSUB*, VFMSUB*, VMSUBADD*, VFNMADD*, VFNMSUB*. See the Broadwell Optimization Guide for more information.",1278 "PEBS": "1",
1289 "EventCode": "0xA0",1279 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts both direct and indirect near call instructions retired.",
1280 "EventCode": "0xC4",
1290 "Counter": "0,1,2,3",1281 "Counter": "0,1,2,3",
1291 "UMask": "0x3",1282 "UMask": "0x2",
1292 "EventName": "UOP_DISPATCHES_CANCELLED.SIMD_PRF",1283 "EventName": "BR_INST_RETIRED.NEAR_CALL",
1293 "SampleAfterValue": "2000003",1284 "SampleAfterValue": "100007",
1294 "BriefDescription": "Micro-op dispatches cancelled due to insufficient SIMD physical register file read ports",1285 "BriefDescription": "Direct and indirect near call instructions retired. (Precise Event - PEBS)",
1295 "CounterHTOff": "0,1,2,3"1286 "CounterHTOff": "0,1,2,3,4,5,6,7"
1296 },1287 },
1297 {1288 {
1298 "EventCode": "0x00",1289 "PEBS": "1",
1299 "Counter": "Fixed counter 2",1290 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts both direct and indirect macro near call instructions retired (captured in ring 3).",
1291 "EventCode": "0xC4",
1292 "Counter": "0,1,2,3",
1300 "UMask": "0x2",1293 "UMask": "0x2",
1301 "AnyThread": "1",1294 "EventName": "BR_INST_RETIRED.NEAR_CALL_R3",
1302 "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",1295 "SampleAfterValue": "100007",
1303 "SampleAfterValue": "2000003",1296 "BriefDescription": "Direct and indirect macro near call instructions retired (captured in ring 3). (Precise Event - PEBS)",
1304 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",1297 "CounterHTOff": "0,1,2,3,4,5,6,7"
1305 "CounterHTOff": "Fixed counter 2"
1306 },1298 },
1307 {1299 {
1308 "EventCode": "0x3C",1300 "PEBS": "2",
1301 "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",
1302 "EventCode": "0xC4",
1309 "Counter": "0,1,2,3",1303 "Counter": "0,1,2,3",
1310 "UMask": "0x0",1304 "UMask": "0x4",
1311 "AnyThread": "1",1305 "Errata": "BDW98",
1312 "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",1306 "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",
1313 "SampleAfterValue": "2000003",1307 "SampleAfterValue": "400009",
1314 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",1308 "BriefDescription": "All (macro) branch instructions retired. (Precise Event - PEBS)",
1315 "CounterHTOff": "0,1,2,3,4,5,6,7"1309 "CounterHTOff": "0,1,2,3"
1316 },1310 },
1317 {1311 {
1318 "EventCode": "0x3C",1312 "PEBS": "1",
1313 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts return instructions retired.",
1314 "EventCode": "0xC4",
1319 "Counter": "0,1,2,3",1315 "Counter": "0,1,2,3",
1320 "UMask": "0x1",1316 "UMask": "0x8",
1321 "AnyThread": "1",1317 "EventName": "BR_INST_RETIRED.NEAR_RETURN",
1322 "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",1318 "SampleAfterValue": "100007",
1323 "SampleAfterValue": "2000003",1319 "BriefDescription": "Return instructions retired. (Precise Event - PEBS)",
1324 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
1325 "CounterHTOff": "0,1,2,3,4,5,6,7"1320 "CounterHTOff": "0,1,2,3,4,5,6,7"
1326 },1321 },
1327 {1322 {
1328 "EventCode": "0x0D",1323 "PublicDescription": "This event counts not taken branch instructions retired.",
1324 "EventCode": "0xC4",
1329 "Counter": "0,1,2,3",1325 "Counter": "0,1,2,3",
1330 "UMask": "0x3",1326 "UMask": "0x10",
1331 "AnyThread": "1",1327 "EventName": "BR_INST_RETIRED.NOT_TAKEN",
1332 "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",1328 "SampleAfterValue": "400009",
1333 "SampleAfterValue": "2000003",1329 "BriefDescription": "Not taken branch instructions retired.",
1334 "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke).",
1335 "CounterMask": "1",
1336 "CounterHTOff": "0,1,2,3,4,5,6,7"1330 "CounterHTOff": "0,1,2,3,4,5,6,7"
1337 },1331 },
1338 {1332 {
1339 "EventCode": "0xb1",1333 "PEBS": "1",
1334 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts taken branch instructions retired.",
1335 "EventCode": "0xC4",
1340 "Counter": "0,1,2,3",1336 "Counter": "0,1,2,3",
1341 "UMask": "0x2",1337 "UMask": "0x20",
1342 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",1338 "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
1343 "SampleAfterValue": "2000003",1339 "SampleAfterValue": "400009",
1344 "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",1340 "BriefDescription": "Taken branch instructions retired. (Precise Event - PEBS)",
1345 "CounterMask": "1",
1346 "CounterHTOff": "0,1,2,3,4,5,6,7"1341 "CounterHTOff": "0,1,2,3,4,5,6,7"
1347 },1342 },
1348 {1343 {
1349 "EventCode": "0xb1",1344 "PublicDescription": "This event counts far branch instructions retired.",
1345 "EventCode": "0xC4",
1350 "Counter": "0,1,2,3",1346 "Counter": "0,1,2,3",
1351 "UMask": "0x2",1347 "UMask": "0x40",
1352 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",1348 "Errata": "BDW98",
1353 "SampleAfterValue": "2000003",1349 "EventName": "BR_INST_RETIRED.FAR_BRANCH",
1354 "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",1350 "SampleAfterValue": "100007",
1355 "CounterMask": "2",1351 "BriefDescription": "Far branch instructions retired.",
1356 "CounterHTOff": "0,1,2,3,4,5,6,7"1352 "CounterHTOff": "0,1,2,3,4,5,6,7"
1357 },1353 },
1358 {1354 {
1359 "EventCode": "0xb1",1355 "PublicDescription": "This event counts all mispredicted macro branch instructions retired.",
1356 "EventCode": "0xC5",
1360 "Counter": "0,1,2,3",1357 "Counter": "0,1,2,3",
1361 "UMask": "0x2",1358 "UMask": "0x0",
1362 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",1359 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
1363 "SampleAfterValue": "2000003",1360 "SampleAfterValue": "400009",
1364 "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",1361 "BriefDescription": "All mispredicted macro branch instructions retired.",
1365 "CounterMask": "3",
1366 "CounterHTOff": "0,1,2,3,4,5,6,7"1362 "CounterHTOff": "0,1,2,3,4,5,6,7"
1367 },1363 },
1368 {1364 {
1369 "EventCode": "0xb1",1365 "PEBS": "1",
1366 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts mispredicted conditional branch instructions retired.",
1367 "EventCode": "0xC5",
1370 "Counter": "0,1,2,3",1368 "Counter": "0,1,2,3",
1371 "UMask": "0x2",1369 "UMask": "0x1",
1372 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",1370 "EventName": "BR_MISP_RETIRED.CONDITIONAL",
1373 "SampleAfterValue": "2000003",1371 "SampleAfterValue": "400009",
1374 "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",1372 "BriefDescription": "Mispredicted conditional branch instructions retired. (Precise Event - PEBS)",
1375 "CounterMask": "4",
1376 "CounterHTOff": "0,1,2,3,4,5,6,7"1373 "CounterHTOff": "0,1,2,3,4,5,6,7"
1377 },1374 },
1378 {1375 {
1379 "EventCode": "0xb1",1376 "PEBS": "2",
1380 "Invert": "1",1377 "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",
1378 "EventCode": "0xC5",
1381 "Counter": "0,1,2,3",1379 "Counter": "0,1,2,3",
1382 "UMask": "0x2",1380 "UMask": "0x4",
1383 "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",1381 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",
1384 "SampleAfterValue": "2000003",1382 "SampleAfterValue": "400009",
1385 "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",1383 "BriefDescription": "Mispredicted macro branch instructions retired. (Precise Event - PEBS)",
1384 "CounterHTOff": "0,1,2,3"
1385 },
1386 {
1387 "PEBS": "1",
1388 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts mispredicted return instructions retired.",
1389 "EventCode": "0xC5",
1390 "Counter": "0,1,2,3",
1391 "UMask": "0x8",
1392 "EventName": "BR_MISP_RETIRED.RET",
1393 "SampleAfterValue": "100007",
1394 "BriefDescription": "This event counts the number of mispredicted ret instructions retired.(Precise Event)",
1386 "CounterHTOff": "0,1,2,3,4,5,6,7"1395 "CounterHTOff": "0,1,2,3,4,5,6,7"
1387 },1396 },
1388 {1397 {
1389 "PublicDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate).",1398 "PEBS": "1",
1390 "EventCode": "0x3C",1399 "PublicDescription": "Number of near branch instructions retired that were mispredicted and taken. (Precise Event - PEBS).",
1400 "EventCode": "0xC5",
1391 "Counter": "0,1,2,3",1401 "Counter": "0,1,2,3",
1392 "UMask": "0x1",1402 "UMask": "0x20",
1393 "EventName": "CPU_CLK_UNHALTED.REF_XCLK",1403 "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
1394 "SampleAfterValue": "2000003",1404 "SampleAfterValue": "400009",
1395 "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",1405 "BriefDescription": "number of near branch instructions retired that were mispredicted and taken. (Precise Event - PEBS).",
1396 "CounterHTOff": "0,1,2,3,4,5,6,7"1406 "CounterHTOff": "0,1,2,3,4,5,6,7"
1397 },1407 },
1398 {1408 {
1399 "EventCode": "0x3C",1409 "PublicDescription": "This event counts cases of saving new LBR records by hardware. This assumes proper enabling of LBRs and takes into account LBR filtering done by the LBR_SELECT register.",
1410 "EventCode": "0xCC",
1400 "Counter": "0,1,2,3",1411 "Counter": "0,1,2,3",
1401 "UMask": "0x1",1412 "UMask": "0x20",
1402 "AnyThread": "1",1413 "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",
1403 "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
1404 "SampleAfterValue": "2000003",1414 "SampleAfterValue": "2000003",
1405 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",1415 "BriefDescription": "Count cases of saving new LBR",
1406 "CounterHTOff": "0,1,2,3,4,5,6,7"1416 "CounterHTOff": "0,1,2,3,4,5,6,7"
1407 },1417 },
1408 {1418 {
1409 "EventCode": "0x3C",1419 "EventCode": "0xe6",
1410 "Counter": "0,1,2,3",1420 "Counter": "0,1,2,3",
1411 "UMask": "0x2",1421 "UMask": "0x1f",
1412 "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",1422 "EventName": "BACLEARS.ANY",
1413 "SampleAfterValue": "2000003",1423 "SampleAfterValue": "100003",
1414 "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",1424 "BriefDescription": "Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end.",
1415 "CounterHTOff": "0,1,2,3,4,5,6,7"1425 "CounterHTOff": "0,1,2,3,4,5,6,7"
1416 }1426 }
1417]1427]
tools/perf/pmu-events/arch/x86/broadwell/virtual-memory.json+75−75
@@ -43,6 +43,16 @@ · 42 unmodified lines
43 "BriefDescription": "Load miss in all TLB levels causes a page walk that completes. (1G)",43 "BriefDescription": "Load miss in all TLB levels causes a page walk that completes. (1G)",
44 "CounterHTOff": "0,1,2,3,4,5,6,7"44 "CounterHTOff": "0,1,2,3,4,5,6,7"
45 },45 },
46 {
47 "EventCode": "0x08",
48 "Counter": "0,1,2,3",
49 "UMask": "0xe",
50 "Errata": "BDM69",
51 "EventName": "DTLB_LOAD_MISSES.WALK_COMPLETED",
52 "SampleAfterValue": "100003",
53 "BriefDescription": "Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.",
54 "CounterHTOff": "0,1,2,3,4,5,6,7"
55 },
46 {56 {
47 "PublicDescription": "This event counts the number of cycles while PMH is busy with the page walk.",57 "PublicDescription": "This event counts the number of cycles while PMH is busy with the page walk.",
48 "EventCode": "0x08",58 "EventCode": "0x08",
@@ -72,6 +82,15 @@ · 23 unmodified lines
72 "BriefDescription": "Load misses that miss the DTLB and hit the STLB (2M).",82 "BriefDescription": "Load misses that miss the DTLB and hit the STLB (2M).",
73 "CounterHTOff": "0,1,2,3,4,5,6,7"83 "CounterHTOff": "0,1,2,3,4,5,6,7"
74 },84 },
85 {
86 "EventCode": "0x08",
87 "Counter": "0,1,2,3",
88 "UMask": "0x60",
89 "EventName": "DTLB_LOAD_MISSES.STLB_HIT",
90 "SampleAfterValue": "2000003",
91 "BriefDescription": "Load operations that miss the first DTLB level but hit the second and do not cause page walks.",
92 "CounterHTOff": "0,1,2,3,4,5,6,7"
93 },
75 {94 {
76 "PublicDescription": "This event counts store misses in all DTLB levels that cause page walks of any page size (4K/2M/4M/1G).",95 "PublicDescription": "This event counts store misses in all DTLB levels that cause page walks of any page size (4K/2M/4M/1G).",
77 "EventCode": "0x49",96 "EventCode": "0x49",
@@ -116,6 +135,16 @@ · 38 unmodified lines
116 "BriefDescription": "Store misses in all DTLB levels that cause completed page walks (1G)",135 "BriefDescription": "Store misses in all DTLB levels that cause completed page walks (1G)",
117 "CounterHTOff": "0,1,2,3,4,5,6,7"136 "CounterHTOff": "0,1,2,3,4,5,6,7"
118 },137 },
138 {
139 "EventCode": "0x49",
140 "Counter": "0,1,2,3",
141 "UMask": "0xe",
142 "Errata": "BDM69",
143 "EventName": "DTLB_STORE_MISSES.WALK_COMPLETED",
144 "SampleAfterValue": "100003",
145 "BriefDescription": "Store misses in all DTLB levels that cause completed page walks.",
146 "CounterHTOff": "0,1,2,3,4,5,6,7"
147 },
119 {148 {
120 "PublicDescription": "This event counts the number of cycles while PMH is busy with the page walk.",149 "PublicDescription": "This event counts the number of cycles while PMH is busy with the page walk.",
121 "EventCode": "0x49",150 "EventCode": "0x49",
@@ -145,6 +174,15 @@ · 23 unmodified lines
145 "BriefDescription": "Store misses that miss the DTLB and hit the STLB (2M).",174 "BriefDescription": "Store misses that miss the DTLB and hit the STLB (2M).",
146 "CounterHTOff": "0,1,2,3,4,5,6,7"175 "CounterHTOff": "0,1,2,3,4,5,6,7"
147 },176 },
177 {
178 "EventCode": "0x49",
179 "Counter": "0,1,2,3",
180 "UMask": "0x60",
181 "EventName": "DTLB_STORE_MISSES.STLB_HIT",
182 "SampleAfterValue": "100003",
183 "BriefDescription": "Store operations that miss the first TLB level but hit the second and do not cause page walks.",
184 "CounterHTOff": "0,1,2,3,4,5,6,7"
185 },
148 {186 {
149 "PublicDescription": "This event counts cycles for an extended page table walk. The Extended Page directory cache differs from standard TLB caches by the operating system that use it. Virtual machine operating systems use the extended page directory cache, while guest operating systems use the standard TLB caches.",187 "PublicDescription": "This event counts cycles for an extended page table walk. The Extended Page directory cache differs from standard TLB caches by the operating system that use it. Virtual machine operating systems use the extended page directory cache, while guest operating systems use the standard TLB caches.",
150 "EventCode": "0x4F",188 "EventCode": "0x4F",
@@ -199,6 +237,16 @@ · 48 unmodified lines
199 "BriefDescription": "Store miss in all TLB levels causes a page walk that completes. (1G)",237 "BriefDescription": "Store miss in all TLB levels causes a page walk that completes. (1G)",
200 "CounterHTOff": "0,1,2,3,4,5,6,7"238 "CounterHTOff": "0,1,2,3,4,5,6,7"
201 },239 },
240 {
241 "EventCode": "0x85",
242 "Counter": "0,1,2,3",
243 "UMask": "0xe",
244 "Errata": "BDM69",
245 "EventName": "ITLB_MISSES.WALK_COMPLETED",
246 "SampleAfterValue": "100003",
247 "BriefDescription": "Misses in all ITLB levels that cause completed page walks.",
248 "CounterHTOff": "0,1,2,3,4,5,6,7"
249 },
202 {250 {
203 "PublicDescription": "This event counts the number of cycles while PMH is busy with the page walk.",251 "PublicDescription": "This event counts the number of cycles while PMH is busy with the page walk.",
204 "EventCode": "0x85",252 "EventCode": "0x85",
@@ -228,6 +276,15 @@ · 23 unmodified lines
228 "BriefDescription": "Code misses that miss the DTLB and hit the STLB (2M).",276 "BriefDescription": "Code misses that miss the DTLB and hit the STLB (2M).",
229 "CounterHTOff": "0,1,2,3,4,5,6,7"277 "CounterHTOff": "0,1,2,3,4,5,6,7"
230 },278 },
279 {
280 "EventCode": "0x85",
281 "Counter": "0,1,2,3",
282 "UMask": "0x60",
283 "EventName": "ITLB_MISSES.STLB_HIT",
284 "SampleAfterValue": "100003",
285 "BriefDescription": "Operations that miss the first ITLB level but hit the second and do not cause any page walks.",
286 "CounterHTOff": "0,1,2,3,4,5,6,7"
287 },
231 {288 {
232 "PublicDescription": "This event counts the number of flushes of the big or small ITLB pages. Counting include both TLB Flush (covering all sets) and TLB Set Clear (set-specific).",289 "PublicDescription": "This event counts the number of flushes of the big or small ITLB pages. Counting include both TLB Flush (covering all sets) and TLB Set Clear (set-specific).",
233 "EventCode": "0xAE",290 "EventCode": "0xAE",
@@ -251,61 +308,61 @@ · 17 unmodified lines
251 {308 {
252 "EventCode": "0xBC",309 "EventCode": "0xBC",
253 "Counter": "0,1,2,3",310 "Counter": "0,1,2,3",
254 "UMask": "0x21",311 "UMask": "0x12",
255 "Errata": "BDM69, BDM98",312 "Errata": "BDM69, BDM98",
256 "EventName": "PAGE_WALKER_LOADS.ITLB_L1",313 "EventName": "PAGE_WALKER_LOADS.DTLB_L2",
257 "SampleAfterValue": "2000003",314 "SampleAfterValue": "2000003",
258 "BriefDescription": "Number of ITLB page walker hits in the L1+FB.",315 "BriefDescription": "Number of DTLB page walker hits in the L2.",
259 "CounterHTOff": "0,1,2,3"316 "CounterHTOff": "0,1,2,3"
260 },317 },
261 {318 {
262 "EventCode": "0xBC",319 "EventCode": "0xBC",
263 "Counter": "0,1,2,3",320 "Counter": "0,1,2,3",
264 "UMask": "0x12",321 "UMask": "0x14",
265 "Errata": "BDM69, BDM98",322 "Errata": "BDM69, BDM98",
266 "EventName": "PAGE_WALKER_LOADS.DTLB_L2",323 "EventName": "PAGE_WALKER_LOADS.DTLB_L3",
267 "SampleAfterValue": "2000003",324 "SampleAfterValue": "2000003",
268 "BriefDescription": "Number of DTLB page walker hits in the L2.",325 "BriefDescription": "Number of DTLB page walker hits in the L3 + XSNP.",
269 "CounterHTOff": "0,1,2,3"326 "CounterHTOff": "0,1,2,3"
270 },327 },
271 {328 {
272 "EventCode": "0xBC",329 "EventCode": "0xBC",
273 "Counter": "0,1,2,3",330 "Counter": "0,1,2,3",
274 "UMask": "0x22",331 "UMask": "0x18",
275 "Errata": "BDM69, BDM98",332 "Errata": "BDM69, BDM98",
276 "EventName": "PAGE_WALKER_LOADS.ITLB_L2",333 "EventName": "PAGE_WALKER_LOADS.DTLB_MEMORY",
277 "SampleAfterValue": "2000003",334 "SampleAfterValue": "2000003",
278 "BriefDescription": "Number of ITLB page walker hits in the L2.",335 "BriefDescription": "Number of DTLB page walker hits in Memory.",
279 "CounterHTOff": "0,1,2,3"336 "CounterHTOff": "0,1,2,3"
280 },337 },
281 {338 {
282 "EventCode": "0xBC",339 "EventCode": "0xBC",
283 "Counter": "0,1,2,3",340 "Counter": "0,1,2,3",
284 "UMask": "0x14",341 "UMask": "0x21",
285 "Errata": "BDM69, BDM98",342 "Errata": "BDM69, BDM98",
286 "EventName": "PAGE_WALKER_LOADS.DTLB_L3",343 "EventName": "PAGE_WALKER_LOADS.ITLB_L1",
287 "SampleAfterValue": "2000003",344 "SampleAfterValue": "2000003",
288 "BriefDescription": "Number of DTLB page walker hits in the L3 + XSNP.",345 "BriefDescription": "Number of ITLB page walker hits in the L1+FB.",
289 "CounterHTOff": "0,1,2,3"346 "CounterHTOff": "0,1,2,3"
290 },347 },
291 {348 {
292 "EventCode": "0xBC",349 "EventCode": "0xBC",
293 "Counter": "0,1,2,3",350 "Counter": "0,1,2,3",
294 "UMask": "0x24",351 "UMask": "0x22",
295 "Errata": "BDM69, BDM98",352 "Errata": "BDM69, BDM98",
296 "EventName": "PAGE_WALKER_LOADS.ITLB_L3",353 "EventName": "PAGE_WALKER_LOADS.ITLB_L2",
297 "SampleAfterValue": "2000003",354 "SampleAfterValue": "2000003",
298 "BriefDescription": "Number of ITLB page walker hits in the L3 + XSNP.",355 "BriefDescription": "Number of ITLB page walker hits in the L2.",
299 "CounterHTOff": "0,1,2,3"356 "CounterHTOff": "0,1,2,3"
300 },357 },
301 {358 {
302 "EventCode": "0xBC",359 "EventCode": "0xBC",
303 "Counter": "0,1,2,3",360 "Counter": "0,1,2,3",
304 "UMask": "0x18",361 "UMask": "0x24",
305 "Errata": "BDM69, BDM98",362 "Errata": "BDM69, BDM98",
306 "EventName": "PAGE_WALKER_LOADS.DTLB_MEMORY",363 "EventName": "PAGE_WALKER_LOADS.ITLB_L3",
307 "SampleAfterValue": "2000003",364 "SampleAfterValue": "2000003",
308 "BriefDescription": "Number of DTLB page walker hits in Memory.",365 "BriefDescription": "Number of ITLB page walker hits in the L3 + XSNP.",
309 "CounterHTOff": "0,1,2,3"366 "CounterHTOff": "0,1,2,3"
310 },367 },
311 {368 {
@@ -327,62 +384,5 @@ · 15 unmodified lines
327 "SampleAfterValue": "100007",384 "SampleAfterValue": "100007",
328 "BriefDescription": "STLB flush attempts",385 "BriefDescription": "STLB flush attempts",
329 "CounterHTOff": "0,1,2,3,4,5,6,7"386 "CounterHTOff": "0,1,2,3,4,5,6,7"
330 },
331 {
332 "EventCode": "0x08",
333 "Counter": "0,1,2,3",
334 "UMask": "0xe",
335 "Errata": "BDM69",
336 "EventName": "DTLB_LOAD_MISSES.WALK_COMPLETED",
337 "SampleAfterValue": "100003",
338 "BriefDescription": "Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.",
339 "CounterHTOff": "0,1,2,3,4,5,6,7"
340 },
341 {
342 "EventCode": "0x08",
343 "Counter": "0,1,2,3",
344 "UMask": "0x60",
345 "EventName": "DTLB_LOAD_MISSES.STLB_HIT",
346 "SampleAfterValue": "2000003",
347 "BriefDescription": "Load operations that miss the first DTLB level but hit the second and do not cause page walks.",
348 "CounterHTOff": "0,1,2,3,4,5,6,7"
349 },
350 {
351 "EventCode": "0x49",
352 "Counter": "0,1,2,3",
353 "UMask": "0xe",
354 "Errata": "BDM69",
355 "EventName": "DTLB_STORE_MISSES.WALK_COMPLETED",
356 "SampleAfterValue": "100003",
357 "BriefDescription": "Store misses in all DTLB levels that cause completed page walks.",
358 "CounterHTOff": "0,1,2,3,4,5,6,7"
359 },
360 {
361 "EventCode": "0x49",
362 "Counter": "0,1,2,3",
363 "UMask": "0x60",
364 "EventName": "DTLB_STORE_MISSES.STLB_HIT",
365 "SampleAfterValue": "100003",
366 "BriefDescription": "Store operations that miss the first TLB level but hit the second and do not cause page walks.",
367 "CounterHTOff": "0,1,2,3,4,5,6,7"
368 },
369 {
370 "EventCode": "0x85",
371 "Counter": "0,1,2,3",
372 "UMask": "0xe",
373 "Errata": "BDM69",
374 "EventName": "ITLB_MISSES.WALK_COMPLETED",
375 "SampleAfterValue": "100003",
376 "BriefDescription": "Misses in all ITLB levels that cause completed page walks.",
377 "CounterHTOff": "0,1,2,3,4,5,6,7"
378 },
379 {
380 "EventCode": "0x85",
381 "Counter": "0,1,2,3",
382 "UMask": "0x60",
383 "EventName": "ITLB_MISSES.STLB_HIT",
384 "SampleAfterValue": "100003",
385 "BriefDescription": "Operations that miss the first ITLB level but hit the second and do not cause any page walks.",
386 "CounterHTOff": "0,1,2,3,4,5,6,7"
387 }387 }
388]388]
tools/perf/pmu-events/arch/x86/broadwellde/cache.json+212−177
@@ -11,11 +11,28 @@ · 10 unmodified lines
11 },11 },
12 {12 {
13 "EventCode": "0x24",13 "EventCode": "0x24",
14 "UMask": "0x41",14 "UMask": "0x22",
15 "BriefDescription": "Demand Data Read requests that hit L2 cache",15 "BriefDescription": "RFO requests that miss L2 cache.",
16 "Counter": "0,1,2,3",16 "Counter": "0,1,2,3",
17 "EventName": "L2_RQSTS.DEMAND_DATA_RD_HIT",17 "EventName": "L2_RQSTS.RFO_MISS",
18 "PublicDescription": "This event counts the number of demand Data Read requests that hit L2 cache. Only not rejected loads are counted.",18 "SampleAfterValue": "200003",
19 "CounterHTOff": "0,1,2,3,4,5,6,7"
20 },
21 {
22 "EventCode": "0x24",
23 "UMask": "0x24",
24 "BriefDescription": "L2 cache misses when fetching instructions.",
25 "Counter": "0,1,2,3",
26 "EventName": "L2_RQSTS.CODE_RD_MISS",
27 "SampleAfterValue": "200003",
28 "CounterHTOff": "0,1,2,3,4,5,6,7"
29 },
30 {
31 "EventCode": "0x24",
32 "UMask": "0x27",
33 "BriefDescription": "Demand requests that miss L2 cache.",
34 "Counter": "0,1,2,3",
35 "EventName": "L2_RQSTS.ALL_DEMAND_MISS",
19 "SampleAfterValue": "200003",36 "SampleAfterValue": "200003",
20 "CounterHTOff": "0,1,2,3,4,5,6,7"37 "CounterHTOff": "0,1,2,3,4,5,6,7"
21 },38 },
@@ -29,6 +46,43 @@ · 7 unmodified lines
29 "SampleAfterValue": "200003",46 "SampleAfterValue": "200003",
30 "CounterHTOff": "0,1,2,3,4,5,6,7"47 "CounterHTOff": "0,1,2,3,4,5,6,7"
31 },48 },
49 {
50 "EventCode": "0x24",
51 "UMask": "0x3f",
52 "BriefDescription": "All requests that miss L2 cache.",
53 "Counter": "0,1,2,3",
54 "EventName": "L2_RQSTS.MISS",
55 "SampleAfterValue": "200003",
56 "CounterHTOff": "0,1,2,3,4,5,6,7"
57 },
58 {
59 "EventCode": "0x24",
60 "UMask": "0x41",
61 "BriefDescription": "Demand Data Read requests that hit L2 cache",
62 "Counter": "0,1,2,3",
63 "EventName": "L2_RQSTS.DEMAND_DATA_RD_HIT",
64 "PublicDescription": "This event counts the number of demand Data Read requests that hit L2 cache. Only not rejected loads are counted.",
65 "SampleAfterValue": "200003",
66 "CounterHTOff": "0,1,2,3,4,5,6,7"
67 },
68 {
69 "EventCode": "0x24",
70 "UMask": "0x42",
71 "BriefDescription": "RFO requests that hit L2 cache.",
72 "Counter": "0,1,2,3",
73 "EventName": "L2_RQSTS.RFO_HIT",
74 "SampleAfterValue": "200003",
75 "CounterHTOff": "0,1,2,3,4,5,6,7"
76 },
77 {
78 "EventCode": "0x24",
79 "UMask": "0x44",
80 "BriefDescription": "L2 cache hits when fetching instructions, code reads.",
81 "Counter": "0,1,2,3",
82 "EventName": "L2_RQSTS.CODE_RD_HIT",
83 "SampleAfterValue": "200003",
84 "CounterHTOff": "0,1,2,3,4,5,6,7"
85 },
32 {86 {
33 "EventCode": "0x24",87 "EventCode": "0x24",
34 "UMask": "0x50",88 "UMask": "0x50",
@@ -69,6 +123,15 @@ · 34 unmodified lines
69 "SampleAfterValue": "200003",123 "SampleAfterValue": "200003",
70 "CounterHTOff": "0,1,2,3,4,5,6,7"124 "CounterHTOff": "0,1,2,3,4,5,6,7"
71 },125 },
126 {
127 "EventCode": "0x24",
128 "UMask": "0xe7",
129 "BriefDescription": "Demand requests to L2 cache.",
130 "Counter": "0,1,2,3",
131 "EventName": "L2_RQSTS.ALL_DEMAND_REFERENCES",
132 "SampleAfterValue": "200003",
133 "CounterHTOff": "0,1,2,3,4,5,6,7"
134 },
72 {135 {
73 "EventCode": "0x24",136 "EventCode": "0x24",
74 "UMask": "0xf8",137 "UMask": "0xf8",
@@ -79,6 +142,15 @@ · 4 unmodified lines
79 "SampleAfterValue": "200003",142 "SampleAfterValue": "200003",
80 "CounterHTOff": "0,1,2,3,4,5,6,7"143 "CounterHTOff": "0,1,2,3,4,5,6,7"
81 },144 },
145 {
146 "EventCode": "0x24",
147 "UMask": "0xff",
148 "BriefDescription": "All L2 requests.",
149 "Counter": "0,1,2,3",
150 "EventName": "L2_RQSTS.REFERENCES",
151 "SampleAfterValue": "200003",
152 "CounterHTOff": "0,1,2,3,4,5,6,7"
153 },
82 {154 {
83 "EventCode": "0x27",155 "EventCode": "0x27",
84 "UMask": "0x50",156 "UMask": "0x50",
@@ -130,6 +202,27 @@ · 45 unmodified lines
130 "SampleAfterValue": "2000003",202 "SampleAfterValue": "2000003",
131 "CounterHTOff": "2"203 "CounterHTOff": "2"
132 },204 },
205 {
206 "EventCode": "0x48",
207 "UMask": "0x1",
208 "BriefDescription": "Cycles with L1D load Misses outstanding from any thread on physical core.",
209 "Counter": "2",
210 "EventName": "L1D_PEND_MISS.PENDING_CYCLES_ANY",
211 "AnyThread": "1",
212 "CounterMask": "1",
213 "SampleAfterValue": "2000003",
214 "CounterHTOff": "2"
215 },
216 {
217 "EventCode": "0x48",
218 "UMask": "0x2",
219 "BriefDescription": "Cycles a demand request was blocked due to Fill Buffers inavailability.",
220 "Counter": "0,1,2,3",
221 "EventName": "L1D_PEND_MISS.FB_FULL",
222 "CounterMask": "1",
223 "SampleAfterValue": "2000003",
224 "CounterHTOff": "0,1,2,3,4,5,6,7"
225 },
133 {226 {
134 "EventCode": "0x51",227 "EventCode": "0x51",
135 "UMask": "0x1",228 "UMask": "0x1",
@@ -151,6 +244,29 @@ · 15 unmodified lines
151 "SampleAfterValue": "2000003",244 "SampleAfterValue": "2000003",
152 "CounterHTOff": "0,1,2,3,4,5,6,7"245 "CounterHTOff": "0,1,2,3,4,5,6,7"
153 },246 },
247 {
248 "EventCode": "0x60",
249 "UMask": "0x1",
250 "BriefDescription": "Cycles when offcore outstanding Demand Data Read transactions are present in SuperQueue (SQ), queue to uncore",
251 "Counter": "0,1,2,3",
252 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
253 "CounterMask": "1",
254 "Errata": "BDM76",
255 "PublicDescription": "This event counts cycles when offcore outstanding Demand Data Read transactions are present in the super queue (SQ). A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation).",
256 "SampleAfterValue": "2000003",
257 "CounterHTOff": "0,1,2,3,4,5,6,7"
258 },
259 {
260 "EventCode": "0x60",
261 "UMask": "0x1",
262 "BriefDescription": "Cycles with at least 6 offcore outstanding Demand Data Read transactions in uncore queue.",
263 "Counter": "0,1,2,3",
264 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD_GE_6",
265 "CounterMask": "6",
266 "Errata": "BDM76",
267 "SampleAfterValue": "2000003",
268 "CounterHTOff": "0,1,2,3,4,5,6,7"
269 },
154 {270 {
155 "EventCode": "0x60",271 "EventCode": "0x60",
156 "UMask": "0x2",272 "UMask": "0x2",
@@ -158,7 +274,7 @@ · 1 unmodified line
158 "Counter": "0,1,2,3",274 "Counter": "0,1,2,3",
159 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD",275 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD",
160 "Errata": "BDM76",276 "Errata": "BDM76",
161 "PublicDescription": "This event counts the number of offcore outstanding Code Reads transactions in the super queue every cycle. The \"Offcore outstanding\" state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",277 "PublicDescription": "This event counts the number of offcore outstanding Code Reads transactions in the super queue every cycle. The Offcore outstanding state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",
162 "SampleAfterValue": "2000003",278 "SampleAfterValue": "2000003",
163 "CounterHTOff": "0,1,2,3,4,5,6,7"279 "CounterHTOff": "0,1,2,3,4,5,6,7"
164 },280 },
@@ -175,24 +291,24 @@ · 10 unmodified lines
175 },291 },
176 {292 {
177 "EventCode": "0x60",293 "EventCode": "0x60",
178 "UMask": "0x8",294 "UMask": "0x4",
179 "BriefDescription": "Offcore outstanding cacheable Core Data Read transactions in SuperQueue (SQ), queue to uncore",295 "BriefDescription": "Offcore outstanding demand rfo reads transactions in SuperQueue (SQ), queue to uncore, every cycle",
180 "Counter": "0,1,2,3",296 "Counter": "0,1,2,3",
181 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD",297 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO",
298 "CounterMask": "1",
182 "Errata": "BDM76",299 "Errata": "BDM76",
183 "PublicDescription": "This event counts the number of offcore outstanding cacheable Core Data Read transactions in the super queue every cycle. A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation). See corresponding Umask under OFFCORE_REQUESTS.",300 "PublicDescription": "This event counts the number of offcore outstanding demand rfo Reads transactions in the super queue every cycle. The Offcore outstanding state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",
184 "SampleAfterValue": "2000003",301 "SampleAfterValue": "2000003",
185 "CounterHTOff": "0,1,2,3,4,5,6,7"302 "CounterHTOff": "0,1,2,3,4,5,6,7"
186 },303 },
187 {304 {
188 "EventCode": "0x60",305 "EventCode": "0x60",
189 "UMask": "0x1",306 "UMask": "0x8",
190 "BriefDescription": "Cycles when offcore outstanding Demand Data Read transactions are present in SuperQueue (SQ), queue to uncore",307 "BriefDescription": "Offcore outstanding cacheable Core Data Read transactions in SuperQueue (SQ), queue to uncore",
191 "Counter": "0,1,2,3",308 "Counter": "0,1,2,3",
192 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",309 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD",
193 "CounterMask": "1",
194 "Errata": "BDM76",310 "Errata": "BDM76",
195 "PublicDescription": "This event counts cycles when offcore outstanding Demand Data Read transactions are present in the super queue (SQ). A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation).",311 "PublicDescription": "This event counts the number of offcore outstanding cacheable Core Data Read transactions in the super queue every cycle. A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation). See corresponding Umask under OFFCORE_REQUESTS.",
196 "SampleAfterValue": "2000003",312 "SampleAfterValue": "2000003",
197 "CounterHTOff": "0,1,2,3,4,5,6,7"313 "CounterHTOff": "0,1,2,3,4,5,6,7"
198 },314 },
@@ -208,18 +324,6 @@ · 9 unmodified lines
208 "SampleAfterValue": "2000003",324 "SampleAfterValue": "2000003",
209 "CounterHTOff": "0,1,2,3,4,5,6,7"325 "CounterHTOff": "0,1,2,3,4,5,6,7"
210 },326 },
211 {
212 "EventCode": "0x60",
213 "UMask": "0x4",
214 "BriefDescription": "Offcore outstanding demand rfo reads transactions in SuperQueue (SQ), queue to uncore, every cycle",
215 "Counter": "0,1,2,3",
216 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO",
217 "CounterMask": "1",
218 "Errata": "BDM76",
219 "PublicDescription": "This event counts the number of offcore outstanding demand rfo Reads transactions in the super queue every cycle. The \"Offcore outstanding\" state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",
220 "SampleAfterValue": "2000003",
221 "CounterHTOff": "0,1,2,3,4,5,6,7"
222 },
223 {327 {
224 "EventCode": "0x63",328 "EventCode": "0x63",
225 "UMask": "0x2",329 "UMask": "0x2",
@@ -266,7 +370,7 @@ · 40 unmodified lines
266 "BriefDescription": "Demand and prefetch data reads",370 "BriefDescription": "Demand and prefetch data reads",
267 "Counter": "0,1,2,3",371 "Counter": "0,1,2,3",
268 "EventName": "OFFCORE_REQUESTS.ALL_DATA_RD",372 "EventName": "OFFCORE_REQUESTS.ALL_DATA_RD",
269 "PublicDescription": "This event counts the demand and prefetch data reads. All Core Data Reads include cacheable \"Demands\" and L2 prefetchers (not L3 prefetchers). Counting also covers reads due to page walks resulted from any request type.",373 "PublicDescription": "This event counts the demand and prefetch data reads. All Core Data Reads include cacheable Demands and L2 prefetchers (not L3 prefetchers). Counting also covers reads due to page walks resulted from any request type.",
270 "SampleAfterValue": "100003",374 "SampleAfterValue": "100003",
271 "CounterHTOff": "0,1,2,3,4,5,6,7"375 "CounterHTOff": "0,1,2,3,4,5,6,7"
272 },376 },
@@ -280,27 +384,36 @@ · 7 unmodified lines
280 "SampleAfterValue": "2000003",384 "SampleAfterValue": "2000003",
281 "CounterHTOff": "0,1,2,3,4,5,6,7"385 "CounterHTOff": "0,1,2,3,4,5,6,7"
282 },386 },
387 {
388 "EventCode": "0xB7, 0xBB",
389 "UMask": "0x1",
390 "BriefDescription": "Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
391 "Counter": "0,1,2,3",
392 "EventName": "OFFCORE_RESPONSE",
393 "SampleAfterValue": "100003",
394 "CounterHTOff": "0,1,2,3"
395 },
283 {396 {
284 "EventCode": "0xD0",397 "EventCode": "0xD0",
285 "UMask": "0x11",398 "UMask": "0x11",
286 "BriefDescription": "Retired load uops that miss the STLB.",399 "BriefDescription": "Retired load uops that miss the STLB. (Precise Event - PEBS)",
287 "Data_LA": "1",400 "Data_LA": "1",
288 "PEBS": "1",401 "PEBS": "1",
289 "Counter": "0,1,2,3",402 "Counter": "0,1,2,3",
290 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_LOADS",403 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_LOADS",
291 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts load uops with true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",404 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts load uops with true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",
292 "SampleAfterValue": "100003",405 "SampleAfterValue": "100003",
293 "CounterHTOff": "0,1,2,3"406 "CounterHTOff": "0,1,2,3"
294 },407 },
295 {408 {
296 "EventCode": "0xD0",409 "EventCode": "0xD0",
297 "UMask": "0x12",410 "UMask": "0x12",
298 "BriefDescription": "Retired store uops that miss the STLB.",411 "BriefDescription": "Retired store uops that miss the STLB. (Precise Event - PEBS)",
299 "Data_LA": "1",412 "Data_LA": "1",
300 "PEBS": "1",413 "PEBS": "1",
301 "Counter": "0,1,2,3",414 "Counter": "0,1,2,3",
302 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_STORES",415 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_STORES",
303 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts store uops with true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",416 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts store uops true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",
304 "SampleAfterValue": "100003",417 "SampleAfterValue": "100003",
305 "L1_Hit_Indication": "1",418 "L1_Hit_Indication": "1",
306 "CounterHTOff": "0,1,2,3"419 "CounterHTOff": "0,1,2,3"
@@ -308,37 +421,37 @@ · 1 unmodified line
308 {421 {
309 "EventCode": "0xD0",422 "EventCode": "0xD0",
310 "UMask": "0x21",423 "UMask": "0x21",
311 "BriefDescription": "Retired load uops with locked access.",424 "BriefDescription": "Retired load uops with locked access. (Precise Event - PEBS)",
312 "Data_LA": "1",425 "Data_LA": "1",
313 "PEBS": "1",426 "PEBS": "1",
314 "Counter": "0,1,2,3",427 "Counter": "0,1,2,3",
315 "EventName": "MEM_UOPS_RETIRED.LOCK_LOADS",428 "EventName": "MEM_UOPS_RETIRED.LOCK_LOADS",
316 "Errata": "BDM35",429 "Errata": "BDM35",
317 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts load uops with locked access retired to the architected path.",430 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts load uops with locked access retired to the architected path.",
318 "SampleAfterValue": "100007",431 "SampleAfterValue": "100007",
319 "CounterHTOff": "0,1,2,3"432 "CounterHTOff": "0,1,2,3"
320 },433 },
321 {434 {
322 "EventCode": "0xD0",435 "EventCode": "0xD0",
323 "UMask": "0x41",436 "UMask": "0x41",
324 "BriefDescription": "Retired load uops that split across a cacheline boundary.",437 "BriefDescription": "Retired load uops that split across a cacheline boundary.(Precise Event - PEBS)",
325 "Data_LA": "1",438 "Data_LA": "1",
326 "PEBS": "1",439 "PEBS": "1",
327 "Counter": "0,1,2,3",440 "Counter": "0,1,2,3",
328 "EventName": "MEM_UOPS_RETIRED.SPLIT_LOADS",441 "EventName": "MEM_UOPS_RETIRED.SPLIT_LOADS",
329 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts line-splitted load uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",442 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts line-splitted load uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",
330 "SampleAfterValue": "100003",443 "SampleAfterValue": "100003",
331 "CounterHTOff": "0,1,2,3"444 "CounterHTOff": "0,1,2,3"
332 },445 },
333 {446 {
334 "EventCode": "0xD0",447 "EventCode": "0xD0",
335 "UMask": "0x42",448 "UMask": "0x42",
336 "BriefDescription": "Retired store uops that split across a cacheline boundary.",449 "BriefDescription": "Retired store uops that split across a cacheline boundary. (Precise Event - PEBS)",
337 "Data_LA": "1",450 "Data_LA": "1",
338 "PEBS": "1",451 "PEBS": "1",
339 "Counter": "0,1,2,3",452 "Counter": "0,1,2,3",
340 "EventName": "MEM_UOPS_RETIRED.SPLIT_STORES",453 "EventName": "MEM_UOPS_RETIRED.SPLIT_STORES",
341 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts line-splitted store uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",454 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts line-splitted store uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",
342 "SampleAfterValue": "100003",455 "SampleAfterValue": "100003",
343 "L1_Hit_Indication": "1",456 "L1_Hit_Indication": "1",
344 "CounterHTOff": "0,1,2,3"457 "CounterHTOff": "0,1,2,3"
@@ -346,24 +459,24 @@ · 1 unmodified line
346 {459 {
347 "EventCode": "0xD0",460 "EventCode": "0xD0",
348 "UMask": "0x81",461 "UMask": "0x81",
349 "BriefDescription": "All retired load uops.",462 "BriefDescription": "All retired load uops. (Precise Event - PEBS)",
350 "Data_LA": "1",463 "Data_LA": "1",
351 "PEBS": "1",464 "PEBS": "1",
352 "Counter": "0,1,2,3",465 "Counter": "0,1,2,3",
353 "EventName": "MEM_UOPS_RETIRED.ALL_LOADS",466 "EventName": "MEM_UOPS_RETIRED.ALL_LOADS",
354 "PublicDescription": "This event counts load uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event counts AVX-256bit load/store double-pump memory uops as a single uop at retirement. This event also counts SW prefetches.",467 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts load uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event ?ounts AVX-256bit load/store double-pump memory uops as a single uop at retirement. This event also counts SW prefetches.",
355 "SampleAfterValue": "2000003",468 "SampleAfterValue": "2000003",
356 "CounterHTOff": "0,1,2,3"469 "CounterHTOff": "0,1,2,3"
357 },470 },
358 {471 {
359 "EventCode": "0xD0",472 "EventCode": "0xD0",
360 "UMask": "0x82",473 "UMask": "0x82",
361 "BriefDescription": "All retired store uops.",474 "BriefDescription": "Retired store uops that split across a cacheline boundary. (Precise Event - PEBS)",
362 "Data_LA": "1",475 "Data_LA": "1",
363 "PEBS": "1",476 "PEBS": "1",
364 "Counter": "0,1,2,3",477 "Counter": "0,1,2,3",
365 "EventName": "MEM_UOPS_RETIRED.ALL_STORES",478 "EventName": "MEM_UOPS_RETIRED.ALL_STORES",
366 "PublicDescription": "This event counts store uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event counts AVX-256bit load/store double-pump memory uops as a single uop at retirement.",479 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts store uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event ?ounts AVX-256bit load/store double-pump memory uops as a single uop at retirement.",
367 "SampleAfterValue": "2000003",480 "SampleAfterValue": "2000003",
368 "L1_Hit_Indication": "1",481 "L1_Hit_Indication": "1",
369 "CounterHTOff": "0,1,2,3"482 "CounterHTOff": "0,1,2,3"
@@ -371,69 +484,69 @@ · 1 unmodified line
371 {484 {
372 "EventCode": "0xD1",485 "EventCode": "0xD1",
373 "UMask": "0x1",486 "UMask": "0x1",
374 "BriefDescription": "Retired load uops with L1 cache hits as data sources.",487 "BriefDescription": "Retired load uops with L1 cache hits as data sources. (Precise Event - PEBS)",
375 "Data_LA": "1",488 "Data_LA": "1",
376 "PEBS": "1",489 "PEBS": "1",
377 "Counter": "0,1,2,3",490 "Counter": "0,1,2,3",
378 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_HIT",491 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_HIT",
379 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were hits in the nearest-level (L1) cache.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load. This event also counts SW prefetches independent of the actual data source.",492 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data source were hits in the nearest-level (L1) cache.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load. This event also counts SW prefetches independent of the actual data source.",
380 "SampleAfterValue": "2000003",493 "SampleAfterValue": "2000003",
381 "CounterHTOff": "0,1,2,3"494 "CounterHTOff": "0,1,2,3"
382 },495 },
383 {496 {
384 "EventCode": "0xD1",497 "EventCode": "0xD1",
385 "UMask": "0x2",498 "UMask": "0x2",
386 "BriefDescription": "Retired load uops with L2 cache hits as data sources.",499 "BriefDescription": "Retired load uops with L2 cache hits as data sources. (Precise Event - PEBS)",
387 "Data_LA": "1",500 "Data_LA": "1",
388 "PEBS": "1",501 "PEBS": "1",
389 "Counter": "0,1,2,3",502 "Counter": "0,1,2,3",
390 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT",503 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT",
391 "Errata": "BDM35",504 "Errata": "BDM35",
392 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were hits in the mid-level (L2) cache.",505 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were hits in the mid-level (L2) cache.",
393 "SampleAfterValue": "100003",506 "SampleAfterValue": "100003",
394 "CounterHTOff": "0,1,2,3"507 "CounterHTOff": "0,1,2,3"
395 },508 },
396 {509 {
397 "EventCode": "0xD1",510 "EventCode": "0xD1",
398 "UMask": "0x4",511 "UMask": "0x4",
399 "BriefDescription": "Retired load uops which data sources were data hits in L3 without snoops required.",512 "BriefDescription": "Hit in last-level (L3) cache. Excludes Unknown data-source. (Precise Event - PEBS)",
400 "Data_LA": "1",513 "Data_LA": "1",
401 "PEBS": "1",514 "PEBS": "1",
402 "Counter": "0,1,2,3",515 "Counter": "0,1,2,3",
403 "EventName": "MEM_LOAD_UOPS_RETIRED.L3_HIT",516 "EventName": "MEM_LOAD_UOPS_RETIRED.L3_HIT",
404 "Errata": "BDM100",517 "Errata": "BDM100",
405 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were data hits in the last-level (L3) cache without snoops required.",518 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were data hits in the last-level (L3) cache without snoops required.",
406 "SampleAfterValue": "50021",519 "SampleAfterValue": "50021",
407 "CounterHTOff": "0,1,2,3"520 "CounterHTOff": "0,1,2,3"
408 },521 },
409 {522 {
410 "EventCode": "0xD1",523 "EventCode": "0xD1",
411 "UMask": "0x8",524 "UMask": "0x8",
412 "BriefDescription": "Retired load uops misses in L1 cache as data sources.",525 "BriefDescription": "Retired load uops misses in L1 cache as data sources. Uses PEBS.",
413 "Data_LA": "1",526 "Data_LA": "1",
414 "PEBS": "1",527 "PEBS": "1",
415 "Counter": "0,1,2,3",528 "Counter": "0,1,2,3",
416 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS",529 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS",
417 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were misses in the nearest-level (L1) cache. Counting excludes unknown and UC data source.",530 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were misses in the nearest-level (L1) cache. Counting excludes unknown and UC data source.",
418 "SampleAfterValue": "100003",531 "SampleAfterValue": "100003",
419 "CounterHTOff": "0,1,2,3"532 "CounterHTOff": "0,1,2,3"
420 },533 },
421 {534 {
422 "EventCode": "0xD1",535 "EventCode": "0xD1",
423 "UMask": "0x10",536 "UMask": "0x10",
424 "BriefDescription": "Miss in mid-level (L2) cache. Excludes Unknown data-source.",537 "BriefDescription": "Retired load uops with L2 cache misses as data sources. Uses PEBS.",
425 "Data_LA": "1",538 "Data_LA": "1",
426 "PEBS": "1",539 "PEBS": "1",
427 "Counter": "0,1,2,3",540 "Counter": "0,1,2,3",
428 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_MISS",541 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_MISS",
429 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were misses in the mid-level (L2) cache. Counting excludes unknown and UC data source.",542 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were misses in the mid-level (L2) cache. Counting excludes unknown and UC data source.",
430 "SampleAfterValue": "50021",543 "SampleAfterValue": "50021",
431 "CounterHTOff": "0,1,2,3"544 "CounterHTOff": "0,1,2,3"
432 },545 },
433 {546 {
434 "EventCode": "0xD1",547 "EventCode": "0xD1",
435 "UMask": "0x20",548 "UMask": "0x20",
436 "BriefDescription": "Miss in last-level (L3) cache. Excludes Unknown data-source.",549 "BriefDescription": "Miss in last-level (L3) cache. Excludes Unknown data-source. (Precise Event - PEBS).",
437 "Data_LA": "1",550 "Data_LA": "1",
438 "PEBS": "1",551 "PEBS": "1",
439 "Counter": "0,1,2,3",552 "Counter": "0,1,2,3",
@@ -445,77 +558,112 @@ · 5 unmodified lines
445 {558 {
446 "EventCode": "0xD1",559 "EventCode": "0xD1",
447 "UMask": "0x40",560 "UMask": "0x40",
448 "BriefDescription": "Retired load uops which data sources were load uops missed L1 but hit FB due to preceding miss to the same cache line with data not ready.",561 "BriefDescription": "Retired load uops which data sources were load uops missed L1 but hit FB due to preceding miss to the same cache line with data not ready. (Precise Event - PEBS)",
449 "Data_LA": "1",562 "Data_LA": "1",
450 "PEBS": "1",563 "PEBS": "1",
451 "Counter": "0,1,2,3",564 "Counter": "0,1,2,3",
452 "EventName": "MEM_LOAD_UOPS_RETIRED.HIT_LFB",565 "EventName": "MEM_LOAD_UOPS_RETIRED.HIT_LFB",
453 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were load uops missed L1 but hit a fill buffer due to a preceding miss to the same cache line with the data not ready.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load.",566 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were load uops missed L1 but hit a fill buffer due to a preceding miss to the same cache line with the data not ready.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load.",
454 "SampleAfterValue": "100003",567 "SampleAfterValue": "100003",
455 "CounterHTOff": "0,1,2,3"568 "CounterHTOff": "0,1,2,3"
456 },569 },
457 {570 {
458 "EventCode": "0xD2",571 "EventCode": "0xD2",
459 "UMask": "0x1",572 "UMask": "0x1",
460 "BriefDescription": "Retired load uops which data sources were L3 hit and cross-core snoop missed in on-pkg core cache.",573 "BriefDescription": "Retired load uops which data sources were L3 hit and cross-core snoop missed in on-pkg core cache. (Precise Event - PEBS)",
461 "Data_LA": "1",574 "Data_LA": "1",
462 "PEBS": "1",575 "PEBS": "1",
463 "Counter": "0,1,2,3",576 "Counter": "0,1,2,3",
464 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS",577 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS",
465 "Errata": "BDM100",578 "Errata": "BDM100",
466 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were L3 Hit and a cross-core snoop missed in the on-pkg core cache.",579 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were L3 Hit and a cross-core snoop missed in the on-pkg core cache.",
467 "SampleAfterValue": "20011",580 "SampleAfterValue": "20011",
468 "CounterHTOff": "0,1,2,3"581 "CounterHTOff": "0,1,2,3"
469 },582 },
470 {583 {
471 "EventCode": "0xD2",584 "EventCode": "0xD2",
472 "UMask": "0x2",585 "UMask": "0x2",
473 "BriefDescription": "Retired load uops which data sources were L3 and cross-core snoop hits in on-pkg core cache.",586 "BriefDescription": "Retired load uops which data sources were L3 and cross-core snoop hits in on-pkg core cache. (Precise Event - PEBS)",
474 "Data_LA": "1",587 "Data_LA": "1",
475 "PEBS": "1",588 "PEBS": "1",
476 "Counter": "0,1,2,3",589 "Counter": "0,1,2,3",
477 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT",590 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT",
478 "Errata": "BDM100",591 "Errata": "BDM100",
479 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were L3 hit and a cross-core snoop hit in the on-pkg core cache.",592 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were L3 hit and a cross-core snoop hit in the on-pkg core cache.",
480 "SampleAfterValue": "20011",593 "SampleAfterValue": "20011",
481 "CounterHTOff": "0,1,2,3"594 "CounterHTOff": "0,1,2,3"
482 },595 },
483 {596 {
484 "EventCode": "0xD2",597 "EventCode": "0xD2",
485 "UMask": "0x4",598 "UMask": "0x4",
486 "BriefDescription": "Retired load uops which data sources were HitM responses from shared L3.",599 "BriefDescription": "Retired load uops which data sources were HitM responses from shared L3. (Precise Event - PEBS)",
487 "Data_LA": "1",600 "Data_LA": "1",
488 "PEBS": "1",601 "PEBS": "1",
489 "Counter": "0,1,2,3",602 "Counter": "0,1,2,3",
490 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM",603 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM",
491 "Errata": "BDM100",604 "Errata": "BDM100",
492 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were HitM responses from a core on same socket (shared L3).",605 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were HitM responses from a core on same socket (shared L3).",
493 "SampleAfterValue": "20011",606 "SampleAfterValue": "20011",
494 "CounterHTOff": "0,1,2,3"607 "CounterHTOff": "0,1,2,3"
495 },608 },
496 {609 {
497 "EventCode": "0xD2",610 "EventCode": "0xD2",
498 "UMask": "0x8",611 "UMask": "0x8",
499 "BriefDescription": "Retired load uops which data sources were hits in L3 without snoops required.",612 "BriefDescription": "Retired load uops which data sources were hits in L3 without snoops required. (Precise Event - PEBS)",
500 "Data_LA": "1",613 "Data_LA": "1",
501 "PEBS": "1",614 "PEBS": "1",
502 "Counter": "0,1,2,3",615 "Counter": "0,1,2,3",
503 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_NONE",616 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_NONE",
504 "Errata": "BDM100",617 "Errata": "BDM100",
505 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were hits in the last-level (L3) cache without snoops required.",618 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were hits in the last-level (L3) cache without snoops required.",
506 "SampleAfterValue": "100003",619 "SampleAfterValue": "100003",
507 "CounterHTOff": "0,1,2,3"620 "CounterHTOff": "0,1,2,3"
508 },621 },
509 {622 {
510 "EventCode": "0xD3",623 "EventCode": "0xD3",
511 "UMask": "0x1",624 "UMask": "0x1",
512 "BriefDescription": "Data from local DRAM either Snoop not needed or Snoop Miss (RspI)",
513 "Data_LA": "1",625 "Data_LA": "1",
514 "PEBS": "1",626 "PEBS": "1",
515 "Counter": "0,1,2,3",627 "Counter": "0,1,2,3",
516 "EventName": "MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM",628 "EventName": "MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM",
517 "Errata": "BDE70, BDM100",629 "Errata": "BDE70, BDM100",
518 "PublicDescription": "Retired load uop whose Data Source was: local DRAM either Snoop not needed or Snoop Miss (RspI).",630 "PublicDescription": "This event counts retired load uops where the data came from local DRAM. This does not include hardware prefetches. This is a precise event.",
631 "SampleAfterValue": "100007",
632 "CounterHTOff": "0,1,2,3"
633 },
634 {
635 "EventCode": "0xD3",
636 "UMask": "0x4",
637 "BriefDescription": "Retired load uop whose Data Source was: remote DRAM either Snoop not needed or Snoop Miss (RspI) (Precise Event)",
638 "Data_LA": "1",
639 "PEBS": "1",
640 "Counter": "0,1,2,3",
641 "EventName": "MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM",
642 "Errata": "BDE70",
643 "SampleAfterValue": "100007",
644 "CounterHTOff": "0,1,2,3"
645 },
646 {
647 "EventCode": "0xD3",
648 "UMask": "0x10",
649 "BriefDescription": "Retired load uop whose Data Source was: Remote cache HITM (Precise Event)",
650 "Data_LA": "1",
651 "PEBS": "1",
652 "Counter": "0,1,2,3",
653 "EventName": "MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM",
654 "Errata": "BDE70",
655 "SampleAfterValue": "100007",
656 "CounterHTOff": "0,1,2,3"
657 },
658 {
659 "EventCode": "0xD3",
660 "UMask": "0x20",
661 "BriefDescription": "Retired load uop whose Data Source was: forwarded from remote cache (Precise Event)",
662 "Data_LA": "1",
663 "PEBS": "1",
664 "Counter": "0,1,2,3",
665 "EventName": "MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD",
666 "Errata": "BDE70",
519 "SampleAfterValue": "100007",667 "SampleAfterValue": "100007",
520 "CounterHTOff": "0,1,2,3"668 "CounterHTOff": "0,1,2,3"
521 },669 },
@@ -657,118 +805,5 @@ · 135 unmodified lines
657 "PublicDescription": "This event counts the number of split locks in the super queue.",805 "PublicDescription": "This event counts the number of split locks in the super queue.",
658 "SampleAfterValue": "100003",806 "SampleAfterValue": "100003",
659 "CounterHTOff": "0,1,2,3,4,5,6,7"807 "CounterHTOff": "0,1,2,3,4,5,6,7"
660 },
661 {
662 "EventCode": "0x24",
663 "UMask": "0x42",
664 "BriefDescription": "RFO requests that hit L2 cache.",
665 "Counter": "0,1,2,3",
666 "EventName": "L2_RQSTS.RFO_HIT",
667 "SampleAfterValue": "200003",
668 "CounterHTOff": "0,1,2,3,4,5,6,7"
669 },
670 {
671 "EventCode": "0x24",
672 "UMask": "0x22",
673 "BriefDescription": "RFO requests that miss L2 cache.",
674 "Counter": "0,1,2,3",
675 "EventName": "L2_RQSTS.RFO_MISS",
676 "SampleAfterValue": "200003",
677 "CounterHTOff": "0,1,2,3,4,5,6,7"
678 },
679 {
680 "EventCode": "0x24",
681 "UMask": "0x44",
682 "BriefDescription": "L2 cache hits when fetching instructions, code reads.",
683 "Counter": "0,1,2,3",
684 "EventName": "L2_RQSTS.CODE_RD_HIT",
685 "SampleAfterValue": "200003",
686 "CounterHTOff": "0,1,2,3,4,5,6,7"
687 },
688 {
689 "EventCode": "0x24",
690 "UMask": "0x24",
691 "BriefDescription": "L2 cache misses when fetching instructions.",
692 "Counter": "0,1,2,3",
693 "EventName": "L2_RQSTS.CODE_RD_MISS",
694 "SampleAfterValue": "200003",
695 "CounterHTOff": "0,1,2,3,4,5,6,7"
696 },
697 {
698 "EventCode": "0x24",
699 "UMask": "0x27",
700 "BriefDescription": "Demand requests that miss L2 cache.",
701 "Counter": "0,1,2,3",
702 "EventName": "L2_RQSTS.ALL_DEMAND_MISS",
703 "SampleAfterValue": "200003",
704 "CounterHTOff": "0,1,2,3,4,5,6,7"
705 },
706 {
707 "EventCode": "0x24",
708 "UMask": "0xe7",
709 "BriefDescription": "Demand requests to L2 cache.",
710 "Counter": "0,1,2,3",
711 "EventName": "L2_RQSTS.ALL_DEMAND_REFERENCES",
712 "SampleAfterValue": "200003",
713 "CounterHTOff": "0,1,2,3,4,5,6,7"
714 },
715 {
716 "EventCode": "0x24",
717 "UMask": "0x3f",
718 "BriefDescription": "All requests that miss L2 cache.",
719 "Counter": "0,1,2,3",
720 "EventName": "L2_RQSTS.MISS",
721 "SampleAfterValue": "200003",
722 "CounterHTOff": "0,1,2,3,4,5,6,7"
723 },
724 {
725 "EventCode": "0x24",
726 "UMask": "0xff",
727 "BriefDescription": "All L2 requests.",
728 "Counter": "0,1,2,3",
729 "EventName": "L2_RQSTS.REFERENCES",
730 "SampleAfterValue": "200003",
731 "CounterHTOff": "0,1,2,3,4,5,6,7"
732 },
733 {
734 "EventCode": "0xB7, 0xBB",
735 "UMask": "0x1",
736 "BriefDescription": "Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
737 "Counter": "0,1,2,3",
738 "EventName": "OFFCORE_RESPONSE",
739 "SampleAfterValue": "100003",
740 "CounterHTOff": "0,1,2,3"
741 },
742 {
743 "EventCode": "0x60",
744 "UMask": "0x1",
745 "BriefDescription": "Cycles with at least 6 offcore outstanding Demand Data Read transactions in uncore queue.",
746 "Counter": "0,1,2,3",
747 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD_GE_6",
748 "CounterMask": "6",
749 "Errata": "BDM76",
750 "SampleAfterValue": "2000003",
751 "CounterHTOff": "0,1,2,3,4,5,6,7"
752 },
753 {
754 "EventCode": "0x48",
755 "UMask": "0x1",
756 "BriefDescription": "Cycles with L1D load Misses outstanding from any thread on physical core.",
757 "Counter": "2",
758 "EventName": "L1D_PEND_MISS.PENDING_CYCLES_ANY",
759 "AnyThread": "1",
760 "CounterMask": "1",
761 "SampleAfterValue": "2000003",
762 "CounterHTOff": "2"
763 },
764 {
765 "EventCode": "0x48",
766 "UMask": "0x2",
767 "BriefDescription": "Cycles a demand request was blocked due to Fill Buffers inavailability.",
768 "Counter": "0,1,2,3",
769 "EventName": "L1D_PEND_MISS.FB_FULL",
770 "CounterMask": "1",
771 "SampleAfterValue": "2000003",
772 "CounterHTOff": "0,1,2,3,4,5,6,7"
773 }808 }
774]809]
tools/perf/pmu-events/arch/x86/broadwellde/floating-point.json+51−57
@@ -6,7 +6,7 @@ · 5 unmodified lines
6 "Counter": "0,1,2,3",6 "Counter": "0,1,2,3",
7 "EventName": "OTHER_ASSISTS.AVX_TO_SSE",7 "EventName": "OTHER_ASSISTS.AVX_TO_SSE",
8 "Errata": "BDM30",8 "Errata": "BDM30",
9 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of transitions from AVX-256 to legacy SSE when penalty is applicable.",9 "PublicDescription": "This event counts the number of transitions from AVX-256 to legacy SSE when penalty is applicable.",
10 "SampleAfterValue": "100003",10 "SampleAfterValue": "100003",
11 "CounterHTOff": "0,1,2,3,4,5,6,7"11 "CounterHTOff": "0,1,2,3,4,5,6,7"
12 },12 },
@@ -17,7 +17,7 @@ · 4 unmodified lines
17 "Counter": "0,1,2,3",17 "Counter": "0,1,2,3",
18 "EventName": "OTHER_ASSISTS.SSE_TO_AVX",18 "EventName": "OTHER_ASSISTS.SSE_TO_AVX",
19 "Errata": "BDM30",19 "Errata": "BDM30",
20 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of transitions from legacy SSE to AVX-256 when penalty is applicable.",20 "PublicDescription": "This event counts the number of transitions from legacy SSE to AVX-256 when penalty is applicable.",
21 "SampleAfterValue": "100003",21 "SampleAfterValue": "100003",
22 "CounterHTOff": "0,1,2,3,4,5,6,7"22 "CounterHTOff": "0,1,2,3,4,5,6,7"
23 },23 },
@@ -25,7 +25,6 @@ · 1 unmodified line
25 "EventCode": "0xC7",25 "EventCode": "0xC7",
26 "UMask": "0x1",26 "UMask": "0x1",
27 "BriefDescription": "Number of SSE/AVX computational scalar double precision floating-point instructions retired. Each count represents 1 computation. Applies to SSE* and AVX* scalar double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",27 "BriefDescription": "Number of SSE/AVX computational scalar double precision floating-point instructions retired. Each count represents 1 computation. Applies to SSE* and AVX* scalar double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
28 "PEBS": "1",
29 "Counter": "0,1,2,3",28 "Counter": "0,1,2,3",
30 "EventName": "FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",29 "EventName": "FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
31 "SampleAfterValue": "2000003",30 "SampleAfterValue": "2000003",
@@ -35,17 +34,24 @@ · 3 unmodified lines
35 "EventCode": "0xC7",34 "EventCode": "0xC7",
36 "UMask": "0x2",35 "UMask": "0x2",
37 "BriefDescription": "Number of SSE/AVX computational scalar single precision floating-point instructions retired. Each count represents 1 computation. Applies to SSE* and AVX* scalar single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",36 "BriefDescription": "Number of SSE/AVX computational scalar single precision floating-point instructions retired. Each count represents 1 computation. Applies to SSE* and AVX* scalar single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
38 "PEBS": "1",
39 "Counter": "0,1,2,3",37 "Counter": "0,1,2,3",
40 "EventName": "FP_ARITH_INST_RETIRED.SCALAR_SINGLE",38 "EventName": "FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
41 "SampleAfterValue": "2000003",39 "SampleAfterValue": "2000003",
42 "CounterHTOff": "0,1,2,3"40 "CounterHTOff": "0,1,2,3"
43 },41 },
42 {
43 "EventCode": "0xC7",
44 "UMask": "0x3",
45 "BriefDescription": "Number of SSE/AVX computational scalar floating-point instructions retired. Applies to SSE* and AVX* scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
46 "Counter": "0,1,2,3",
47 "EventName": "FP_ARITH_INST_RETIRED.SCALAR",
48 "SampleAfterValue": "2000003",
49 "CounterHTOff": "0,1,2,3"
50 },
44 {51 {
45 "EventCode": "0xC7",52 "EventCode": "0xC7",
46 "UMask": "0x4",53 "UMask": "0x4",
47 "BriefDescription": "Number of SSE/AVX computational 128-bit packed double precision floating-point instructions retired. Each count represents 2 computations. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",54 "BriefDescription": "Number of SSE/AVX computational 128-bit packed double precision floating-point instructions retired. Each count represents 2 computations. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
48 "PEBS": "1",
49 "Counter": "0,1,2,3",55 "Counter": "0,1,2,3",
50 "EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE",56 "EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE",
51 "SampleAfterValue": "2000003",57 "SampleAfterValue": "2000003",
@@ -55,7 +61,6 @@ · 3 unmodified lines
55 "EventCode": "0xC7",61 "EventCode": "0xC7",
56 "UMask": "0x8",62 "UMask": "0x8",
57 "BriefDescription": "Number of SSE/AVX computational 128-bit packed single precision floating-point instructions retired. Each count represents 4 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",63 "BriefDescription": "Number of SSE/AVX computational 128-bit packed single precision floating-point instructions retired. Each count represents 4 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
58 "PEBS": "1",
59 "Counter": "0,1,2,3",64 "Counter": "0,1,2,3",
60 "EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE",65 "EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE",
61 "SampleAfterValue": "2000003",66 "SampleAfterValue": "2000003",
@@ -65,19 +70,54 @@ · 3 unmodified lines
65 "EventCode": "0xC7",70 "EventCode": "0xC7",
66 "UMask": "0x10",71 "UMask": "0x10",
67 "BriefDescription": "Number of SSE/AVX computational 256-bit packed double precision floating-point instructions retired. Each count represents 4 computations. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",72 "BriefDescription": "Number of SSE/AVX computational 256-bit packed double precision floating-point instructions retired. Each count represents 4 computations. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
68 "PEBS": "1",
69 "Counter": "0,1,2,3",73 "Counter": "0,1,2,3",
70 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE",74 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE",
71 "SampleAfterValue": "2000003",75 "SampleAfterValue": "2000003",
72 "CounterHTOff": "0,1,2,3"76 "CounterHTOff": "0,1,2,3"
73 },77 },
78 {
79 "EventCode": "0xC7",
80 "UMask": "0x15",
81 "BriefDescription": "Number of SSE/AVX computational double precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
82 "Counter": "0,1,2,3",
83 "EventName": "FP_ARITH_INST_RETIRED.DOUBLE",
84 "SampleAfterValue": "2000006",
85 "CounterHTOff": "0,1,2,3"
86 },
87 {
88 "EventCode": "0xc7",
89 "UMask": "0x20",
90 "BriefDescription": "Number of SSE/AVX computational 256-bit packed single precision floating-point instructions retired. Each count represents 8 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
91 "Counter": "0,1,2,3",
92 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE",
93 "SampleAfterValue": "2000003",
94 "CounterHTOff": "0,1,2,3"
95 },
96 {
97 "EventCode": "0xC7",
98 "UMask": "0x2a",
99 "BriefDescription": "Number of SSE/AVX computational single precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
100 "Counter": "0,1,2,3",
101 "EventName": "FP_ARITH_INST_RETIRED.SINGLE",
102 "SampleAfterValue": "2000005",
103 "CounterHTOff": "0,1,2,3"
104 },
105 {
106 "EventCode": "0xC7",
107 "UMask": "0x3c",
108 "BriefDescription": "Number of SSE/AVX computational packed floating-point instructions retired. Applies to SSE* and AVX*, packed, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
109 "Counter": "0,1,2,3",
110 "EventName": "FP_ARITH_INST_RETIRED.PACKED",
111 "SampleAfterValue": "2000004",
112 "CounterHTOff": "0,1,2,3"
113 },
74 {114 {
75 "EventCode": "0xCA",115 "EventCode": "0xCA",
76 "UMask": "0x2",116 "UMask": "0x2",
77 "BriefDescription": "Number of X87 assists due to output value.",117 "BriefDescription": "Number of X87 assists due to output value.",
78 "Counter": "0,1,2,3",118 "Counter": "0,1,2,3",
79 "EventName": "FP_ASSIST.X87_OUTPUT",119 "EventName": "FP_ASSIST.X87_OUTPUT",
80 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of x87 floating point (FP) micro-code assist (numeric overflow/underflow, inexact result) when the output value (destination register) is invalid.",120 "PublicDescription": "This event counts the number of x87 floating point (FP) micro-code assist (numeric overflow/underflow, inexact result) when the output value (destination register) is invalid.",
81 "SampleAfterValue": "100003",121 "SampleAfterValue": "100003",
82 "CounterHTOff": "0,1,2,3,4,5,6,7"122 "CounterHTOff": "0,1,2,3,4,5,6,7"
83 },123 },
@@ -87,7 +127,7 @@ · 3 unmodified lines
87 "BriefDescription": "Number of X87 assists due to input value.",127 "BriefDescription": "Number of X87 assists due to input value.",
88 "Counter": "0,1,2,3",128 "Counter": "0,1,2,3",
89 "EventName": "FP_ASSIST.X87_INPUT",129 "EventName": "FP_ASSIST.X87_INPUT",
90 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts x87 floating point (FP) micro-code assist (invalid operation, denormal operand, SNaN operand) when the input value (one of the source operands to an FP instruction) is invalid.",130 "PublicDescription": "This event counts x87 floating point (FP) micro-code assist (invalid operation, denormal operand, SNaN operand) when the input value (one of the source operands to an FP instruction) is invalid.",
91 "SampleAfterValue": "100003",131 "SampleAfterValue": "100003",
92 "CounterHTOff": "0,1,2,3,4,5,6,7"132 "CounterHTOff": "0,1,2,3,4,5,6,7"
93 },133 },
@@ -97,7 +137,7 @@ · 3 unmodified lines
97 "BriefDescription": "Number of SIMD FP assists due to Output values",137 "BriefDescription": "Number of SIMD FP assists due to Output values",
98 "Counter": "0,1,2,3",138 "Counter": "0,1,2,3",
99 "EventName": "FP_ASSIST.SIMD_OUTPUT",139 "EventName": "FP_ASSIST.SIMD_OUTPUT",
100 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of SSE* floating point (FP) micro-code assist (numeric overflow/underflow) when the output value (destination register) is invalid. Counting covers only cases involving penalties that require micro-code assist intervention.",140 "PublicDescription": "This event counts the number of SSE* floating point (FP) micro-code assist (numeric overflow/underflow) when the output value (destination register) is invalid. Counting covers only cases involving penalties that require micro-code assist intervention.",
101 "SampleAfterValue": "100003",141 "SampleAfterValue": "100003",
102 "CounterHTOff": "0,1,2,3,4,5,6,7"142 "CounterHTOff": "0,1,2,3,4,5,6,7"
103 },143 },
@@ -107,7 +147,7 @@ · 3 unmodified lines
107 "BriefDescription": "Number of SIMD FP assists due to input values",147 "BriefDescription": "Number of SIMD FP assists due to input values",
108 "Counter": "0,1,2,3",148 "Counter": "0,1,2,3",
109 "EventName": "FP_ASSIST.SIMD_INPUT",149 "EventName": "FP_ASSIST.SIMD_INPUT",
110 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts any input SSE* FP assist - invalid operation, denormal operand, dividing by zero, SNaN operand. Counting includes only cases involving penalties that required micro-code assist intervention.",150 "PublicDescription": "This event counts any input SSE* FP assist - invalid operation, denormal operand, dividing by zero, SNaN operand. Counting includes only cases involving penalties that required micro-code assist intervention.",
111 "SampleAfterValue": "100003",151 "SampleAfterValue": "100003",
112 "CounterHTOff": "0,1,2,3,4,5,6,7"152 "CounterHTOff": "0,1,2,3,4,5,6,7"
113 },153 },
@@ -121,51 +161,5 @@ · 7 unmodified lines
121 "PublicDescription": "This event counts cycles with any input and output SSE or x87 FP assist. If an input and output assist are detected on the same cycle the event increments by 1.",161 "PublicDescription": "This event counts cycles with any input and output SSE or x87 FP assist. If an input and output assist are detected on the same cycle the event increments by 1.",
122 "SampleAfterValue": "100003",162 "SampleAfterValue": "100003",
123 "CounterHTOff": "0,1,2,3"163 "CounterHTOff": "0,1,2,3"
124 },
125 {
126 "EventCode": "0xc7",
127 "UMask": "0x20",
128 "BriefDescription": "Number of SSE/AVX computational 256-bit packed single precision floating-point instructions retired. Each count represents 8 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
129 "PEBS": "1",
130 "Counter": "0,1,2,3",
131 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE",
132 "SampleAfterValue": "2000003",
133 "CounterHTOff": "0,1,2,3"
134 },
135 {
136 "EventCode": "0xC7",
137 "UMask": "0x3",
138 "BriefDescription": "Number of SSE/AVX computational scalar floating-point instructions retired. Applies to SSE* and AVX* scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
139 "Counter": "0,1,2,3",
140 "EventName": "FP_ARITH_INST_RETIRED.SCALAR",
141 "SampleAfterValue": "2000003",
142 "CounterHTOff": "0,1,2,3"
143 },
144 {
145 "EventCode": "0xC7",
146 "UMask": "0x3c",
147 "BriefDescription": "Number of SSE/AVX computational packed floating-point instructions retired. Applies to SSE* and AVX*, packed, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
148 "Counter": "0,1,2,3",
149 "EventName": "FP_ARITH_INST_RETIRED.PACKED",
150 "SampleAfterValue": "2000004",
151 "CounterHTOff": "0,1,2,3"
152 },
153 {
154 "EventCode": "0xC7",
155 "UMask": "0x2a",
156 "BriefDescription": "Number of SSE/AVX computational single precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
157 "Counter": "0,1,2,3",
158 "EventName": "FP_ARITH_INST_RETIRED.SINGLE",
159 "SampleAfterValue": "2000005",
160 "CounterHTOff": "0,1,2,3"
161 },
162 {
163 "EventCode": "0xC7",
164 "UMask": "0x15",
165 "BriefDescription": "Number of SSE/AVX computational double precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
166 "Counter": "0,1,2,3",
167 "EventName": "FP_ARITH_INST_RETIRED.DOUBLE",
168 "SampleAfterValue": "2000006",
169 "CounterHTOff": "0,1,2,3"
170 }164 }
171]165]
tools/perf/pmu-events/arch/x86/broadwellde/frontend.json+69−69
@@ -15,80 +15,49 @@ · 14 unmodified lines
15 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",15 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",
16 "Counter": "0,1,2,3",16 "Counter": "0,1,2,3",
17 "EventName": "IDQ.MITE_UOPS",17 "EventName": "IDQ.MITE_UOPS",
18 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",18 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
19 "SampleAfterValue": "2000003",19 "SampleAfterValue": "2000003",
20 "CounterHTOff": "0,1,2,3,4,5,6,7"20 "CounterHTOff": "0,1,2,3,4,5,6,7"
21 },21 },
22 {22 {
23 "EventCode": "0x79",23 "EventCode": "0x79",
24 "UMask": "0x8",24 "UMask": "0x4",
25 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path",25 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from MITE path",
26 "Counter": "0,1,2,3",
27 "EventName": "IDQ.DSB_UOPS",
28 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",
29 "SampleAfterValue": "2000003",
30 "CounterHTOff": "0,1,2,3,4,5,6,7"
31 },
32 {
33 "EventCode": "0x79",
34 "UMask": "0x10",
35 "BriefDescription": "Uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
36 "Counter": "0,1,2,3",
37 "EventName": "IDQ.MS_DSB_UOPS",
38 "PublicDescription": "This event counts the number of uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",
39 "SampleAfterValue": "2000003",
40 "CounterHTOff": "0,1,2,3,4,5,6,7"
41 },
42 {
43 "EventCode": "0x79",
44 "UMask": "0x20",
45 "BriefDescription": "Uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
46 "Counter": "0,1,2,3",
47 "EventName": "IDQ.MS_MITE_UOPS",
48 "PublicDescription": "This event counts the number of uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",
49 "SampleAfterValue": "2000003",
50 "CounterHTOff": "0,1,2,3,4,5,6,7"
51 },
52 {
53 "EventCode": "0x79",
54 "UMask": "0x30",
55 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
56 "Counter": "0,1,2,3",26 "Counter": "0,1,2,3",
57 "EventName": "IDQ.MS_UOPS",27 "EventName": "IDQ.MITE_CYCLES",
58 "PublicDescription": "This event counts the total number of uops delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may \"bypass\" the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",28 "CounterMask": "1",
29 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ.",
59 "SampleAfterValue": "2000003",30 "SampleAfterValue": "2000003",
60 "CounterHTOff": "0,1,2,3,4,5,6,7"31 "CounterHTOff": "0,1,2,3,4,5,6,7"
61 },32 },
62 {33 {
63 "EventCode": "0x79",34 "EventCode": "0x79",
64 "UMask": "0x30",35 "UMask": "0x8",
65 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",36 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path",
66 "Counter": "0,1,2,3",37 "Counter": "0,1,2,3",
67 "EventName": "IDQ.MS_CYCLES",38 "EventName": "IDQ.DSB_UOPS",
68 "CounterMask": "1",39 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
69 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may \"bypass\" the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
70 "SampleAfterValue": "2000003",40 "SampleAfterValue": "2000003",
71 "CounterHTOff": "0,1,2,3,4,5,6,7"41 "CounterHTOff": "0,1,2,3,4,5,6,7"
72 },42 },
73 {43 {
74 "EventCode": "0x79",44 "EventCode": "0x79",
75 "UMask": "0x4",45 "UMask": "0x8",
76 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from MITE path",46 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path",
77 "Counter": "0,1,2,3",47 "Counter": "0,1,2,3",
78 "EventName": "IDQ.MITE_CYCLES",48 "EventName": "IDQ.DSB_CYCLES",
79 "CounterMask": "1",49 "CounterMask": "1",
80 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ.",50 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
81 "SampleAfterValue": "2000003",51 "SampleAfterValue": "2000003",
82 "CounterHTOff": "0,1,2,3,4,5,6,7"52 "CounterHTOff": "0,1,2,3,4,5,6,7"
83 },53 },
84 {54 {
85 "EventCode": "0x79",55 "EventCode": "0x79",
86 "UMask": "0x8",56 "UMask": "0x10",
87 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path",57 "BriefDescription": "Uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
88 "Counter": "0,1,2,3",58 "Counter": "0,1,2,3",
89 "EventName": "IDQ.DSB_CYCLES",59 "EventName": "IDQ.MS_DSB_UOPS",
90 "CounterMask": "1",60 "PublicDescription": "This event counts the number of uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may bypass the IDQ.",
91 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",
92 "SampleAfterValue": "2000003",61 "SampleAfterValue": "2000003",
93 "CounterHTOff": "0,1,2,3,4,5,6,7"62 "CounterHTOff": "0,1,2,3,4,5,6,7"
94 },63 },
@@ -99,7 +68,7 @@ · 4 unmodified lines
99 "Counter": "0,1,2,3",68 "Counter": "0,1,2,3",
100 "EventName": "IDQ.MS_DSB_CYCLES",69 "EventName": "IDQ.MS_DSB_CYCLES",
101 "CounterMask": "1",70 "CounterMask": "1",
102 "PublicDescription": "This event counts cycles during which uops initiated by Decode Stream Buffer (DSB) are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",71 "PublicDescription": "This event counts cycles during which uops initiated by Decode Stream Buffer (DSB) are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may bypass the IDQ.",
103 "SampleAfterValue": "2000003",72 "SampleAfterValue": "2000003",
104 "CounterHTOff": "0,1,2,3,4,5,6,7"73 "CounterHTOff": "0,1,2,3,4,5,6,7"
105 },74 },
@@ -111,7 +80,7 @@ · 5 unmodified lines
111 "Counter": "0,1,2,3",80 "Counter": "0,1,2,3",
112 "EventName": "IDQ.MS_DSB_OCCUR",81 "EventName": "IDQ.MS_DSB_OCCUR",
113 "CounterMask": "1",82 "CounterMask": "1",
114 "PublicDescription": "This event counts the number of deliveries to Instruction Decode Queue (IDQ) initiated by Decode Stream Buffer (DSB) while the Microcode Sequencer (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",83 "PublicDescription": "This event counts the number of deliveries to Instruction Decode Queue (IDQ) initiated by Decode Stream Buffer (DSB) while the Microcode Sequencer (MS) is busy. Counting includes uops that may bypass the IDQ.",
115 "SampleAfterValue": "2000003",84 "SampleAfterValue": "2000003",
116 "CounterHTOff": "0,1,2,3,4,5,6,7"85 "CounterHTOff": "0,1,2,3,4,5,6,7"
117 },86 },
@@ -122,7 +91,7 @@ · 4 unmodified lines
122 "Counter": "0,1,2,3",91 "Counter": "0,1,2,3",
123 "EventName": "IDQ.ALL_DSB_CYCLES_4_UOPS",92 "EventName": "IDQ.ALL_DSB_CYCLES_4_UOPS",
124 "CounterMask": "4",93 "CounterMask": "4",
125 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",94 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
126 "SampleAfterValue": "2000003",95 "SampleAfterValue": "2000003",
127 "CounterHTOff": "0,1,2,3,4,5,6,7"96 "CounterHTOff": "0,1,2,3,4,5,6,7"
128 },97 },
@@ -133,7 +102,17 @@ · 4 unmodified lines
133 "Counter": "0,1,2,3",102 "Counter": "0,1,2,3",
134 "EventName": "IDQ.ALL_DSB_CYCLES_ANY_UOPS",103 "EventName": "IDQ.ALL_DSB_CYCLES_ANY_UOPS",
135 "CounterMask": "1",104 "CounterMask": "1",
136 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",105 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
106 "SampleAfterValue": "2000003",
107 "CounterHTOff": "0,1,2,3,4,5,6,7"
108 },
109 {
110 "EventCode": "0x79",
111 "UMask": "0x20",
112 "BriefDescription": "Uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
113 "Counter": "0,1,2,3",
114 "EventName": "IDQ.MS_MITE_UOPS",
115 "PublicDescription": "This event counts the number of uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may bypass the IDQ.",
137 "SampleAfterValue": "2000003",116 "SampleAfterValue": "2000003",
138 "CounterHTOff": "0,1,2,3,4,5,6,7"117 "CounterHTOff": "0,1,2,3,4,5,6,7"
139 },118 },
@@ -144,7 +123,7 @@ · 4 unmodified lines
144 "Counter": "0,1,2,3",123 "Counter": "0,1,2,3",
145 "EventName": "IDQ.ALL_MITE_CYCLES_4_UOPS",124 "EventName": "IDQ.ALL_MITE_CYCLES_4_UOPS",
146 "CounterMask": "4",125 "CounterMask": "4",
147 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",126 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
148 "SampleAfterValue": "2000003",127 "SampleAfterValue": "2000003",
149 "CounterHTOff": "0,1,2,3,4,5,6,7"128 "CounterHTOff": "0,1,2,3,4,5,6,7"
150 },129 },
@@ -155,7 +134,39 @@ · 4 unmodified lines
155 "Counter": "0,1,2,3",134 "Counter": "0,1,2,3",
156 "EventName": "IDQ.ALL_MITE_CYCLES_ANY_UOPS",135 "EventName": "IDQ.ALL_MITE_CYCLES_ANY_UOPS",
157 "CounterMask": "1",136 "CounterMask": "1",
158 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",137 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
138 "SampleAfterValue": "2000003",
139 "CounterHTOff": "0,1,2,3,4,5,6,7"
140 },
141 {
142 "EventCode": "0x79",
143 "UMask": "0x30",
144 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
145 "Counter": "0,1,2,3",
146 "EventName": "IDQ.MS_UOPS",
147 "PublicDescription": "This event counts the total number of uops delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may bypass the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
148 "SampleAfterValue": "2000003",
149 "CounterHTOff": "0,1,2,3,4,5,6,7"
150 },
151 {
152 "EventCode": "0x79",
153 "UMask": "0x30",
154 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
155 "Counter": "0,1,2,3",
156 "EventName": "IDQ.MS_CYCLES",
157 "CounterMask": "1",
158 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may bypass the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
159 "SampleAfterValue": "2000003",
160 "CounterHTOff": "0,1,2,3,4,5,6,7"
161 },
162 {
163 "EdgeDetect": "1",
164 "EventCode": "0x79",
165 "UMask": "0x30",
166 "BriefDescription": "Number of switches from DSB (Decode Stream Buffer) or MITE (legacy decode pipeline) to the Microcode Sequencer.",
167 "Counter": "0,1,2,3",
168 "EventName": "IDQ.MS_SWITCHES",
169 "CounterMask": "1",
159 "SampleAfterValue": "2000003",170 "SampleAfterValue": "2000003",
160 "CounterHTOff": "0,1,2,3,4,5,6,7"171 "CounterHTOff": "0,1,2,3,4,5,6,7"
161 },172 },
@@ -165,7 +176,7 @@ · 3 unmodified lines
165 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",176 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",
166 "Counter": "0,1,2,3",177 "Counter": "0,1,2,3",
167 "EventName": "IDQ.MITE_ALL_UOPS",178 "EventName": "IDQ.MITE_ALL_UOPS",
168 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",179 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
169 "SampleAfterValue": "2000003",180 "SampleAfterValue": "2000003",
170 "CounterHTOff": "0,1,2,3,4,5,6,7"181 "CounterHTOff": "0,1,2,3,4,5,6,7"
171 },182 },
@@ -205,7 +216,7 @@ · 33 unmodified lines
205 "BriefDescription": "Uops not delivered to Resource Allocation Table (RAT) per thread when backend of the machine is not stalled",216 "BriefDescription": "Uops not delivered to Resource Allocation Table (RAT) per thread when backend of the machine is not stalled",
206 "Counter": "0,1,2,3",217 "Counter": "0,1,2,3",
207 "EventName": "IDQ_UOPS_NOT_DELIVERED.CORE",218 "EventName": "IDQ_UOPS_NOT_DELIVERED.CORE",
208 "PublicDescription": "This event counts the number of uops not delivered to Resource Allocation Table (RAT) per thread adding ?4 ? x? when Resource Allocation Table (RAT) is not stalled and Instruction Decode Queue (IDQ) delivers x uops to Resource Allocation Table (RAT) (where x belongs to {0,1,2,3}). Counting does not cover cases when:\n a. IDQ-Resource Allocation Table (RAT) pipe serves the other thread;\n b. Resource Allocation Table (RAT) is stalled for the thread (including uop drops and clear BE conditions); \n c. Instruction Decode Queue (IDQ) delivers four uops.",219 "PublicDescription": "This event counts the number of uops not delivered to Resource Allocation Table (RAT) per thread adding 4 x when Resource Allocation Table (RAT) is not stalled and Instruction Decode Queue (IDQ) delivers x uops to Resource Allocation Table (RAT) (where x belongs to {0,1,2,3}). Counting does not cover cases when:\n a. IDQ-Resource Allocation Table (RAT) pipe serves the other thread;\n b. Resource Allocation Table (RAT) is stalled for the thread (including uop drops and clear BE conditions); \n c. Instruction Decode Queue (IDQ) delivers four uops.",
209 "SampleAfterValue": "2000003",220 "SampleAfterValue": "2000003",
210 "CounterHTOff": "0,1,2,3"221 "CounterHTOff": "0,1,2,3"
211 },222 },
@@ -268,18 +279,7 @@ · 56 unmodified lines
268 "BriefDescription": "Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles.",279 "BriefDescription": "Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles.",
269 "Counter": "0,1,2,3",280 "Counter": "0,1,2,3",
270 "EventName": "DSB2MITE_SWITCHES.PENALTY_CYCLES",281 "EventName": "DSB2MITE_SWITCHES.PENALTY_CYCLES",
271 "PublicDescription": "This event counts Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles. These cycles do not include uops routed through because of the switch itself, for example, when Instruction Decode Queue (IDQ) pre-allocation is unavailable, or Instruction Decode Queue (IDQ) is full. SBD-to-MITE switch true penalty cycles happen after the merge mux (MM) receives Decode Stream Buffer (DSB) Sync-indication until receiving the first MITE uop. \nMM is placed before Instruction Decode Queue (IDQ) to merge uops being fed from the MITE and Decode Stream Buffer (DSB) paths. Decode Stream Buffer (DSB) inserts the Sync-indication whenever a Decode Stream Buffer (DSB)-to-MITE switch occurs.\nPenalty: A Decode Stream Buffer (DSB) hit followed by a Decode Stream Buffer (DSB) miss can cost up to six cycles in which no uops are delivered to the IDQ. Most often, such switches from the Decode Stream Buffer (DSB) to the legacy pipeline cost 0?2 cycles.",282 "PublicDescription": "This event counts Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles. These cycles do not include uops routed through because of the switch itself, for example, when Instruction Decode Queue (IDQ) pre-allocation is unavailable, or Instruction Decode Queue (IDQ) is full. SBD-to-MITE switch true penalty cycles happen after the merge mux (MM) receives Decode Stream Buffer (DSB) Sync-indication until receiving the first MITE uop. \nMM is placed before Instruction Decode Queue (IDQ) to merge uops being fed from the MITE and Decode Stream Buffer (DSB) paths. Decode Stream Buffer (DSB) inserts the Sync-indication whenever a Decode Stream Buffer (DSB)-to-MITE switch occurs.\nPenalty: A Decode Stream Buffer (DSB) hit followed by a Decode Stream Buffer (DSB) miss can cost up to six cycles in which no uops are delivered to the IDQ. Most often, such switches from the Decode Stream Buffer (DSB) to the legacy pipeline cost 02 cycles.",
272 "SampleAfterValue": "2000003",
273 "CounterHTOff": "0,1,2,3,4,5,6,7"
274 },
275 {
276 "EdgeDetect": "1",
277 "EventCode": "0x79",
278 "UMask": "0x30",
279 "BriefDescription": "Number of switches from DSB (Decode Stream Buffer) or MITE (legacy decode pipeline) to the Microcode Sequencer.",
280 "Counter": "0,1,2,3",
281 "EventName": "IDQ.MS_SWITCHES",
282 "CounterMask": "1",
283 "SampleAfterValue": "2000003",283 "SampleAfterValue": "2000003",
284 "CounterHTOff": "0,1,2,3,4,5,6,7"284 "CounterHTOff": "0,1,2,3,4,5,6,7"
285 }285 }
tools/perf/pmu-events/arch/x86/broadwellde/memory.json+4−5
@@ -95,7 +95,6 @@ · 94 unmodified lines
95 "BriefDescription": "Counts the number of times a class of instructions that may cause a transactional abort was executed. Since this is the count of execution, it may not always cause a transactional abort.",95 "BriefDescription": "Counts the number of times a class of instructions that may cause a transactional abort was executed. Since this is the count of execution, it may not always cause a transactional abort.",
96 "Counter": "0,1,2,3",96 "Counter": "0,1,2,3",
97 "EventName": "TX_EXEC.MISC1",97 "EventName": "TX_EXEC.MISC1",
98 "PublicDescription": "Unfriendly TSX abort triggered by a flowmarker.",
99 "SampleAfterValue": "2000003",98 "SampleAfterValue": "2000003",
100 "CounterHTOff": "0,1,2,3,4,5,6,7"99 "CounterHTOff": "0,1,2,3,4,5,6,7"
101 },100 },
@@ -171,11 +170,11 @@ · 69 unmodified lines
171 {170 {
172 "EventCode": "0xc8",171 "EventCode": "0xc8",
173 "UMask": "0x4",172 "UMask": "0x4",
174 "BriefDescription": "Number of times HLE abort was triggered",173 "BriefDescription": "Number of times HLE abort was triggered (PEBS)",
175 "PEBS": "1",174 "PEBS": "1",
176 "Counter": "0,1,2,3",175 "Counter": "0,1,2,3",
177 "EventName": "HLE_RETIRED.ABORTED",176 "EventName": "HLE_RETIRED.ABORTED",
178 "PublicDescription": "Number of times HLE abort was triggered.",177 "PublicDescription": "Number of times HLE abort was triggered (PEBS).",
179 "SampleAfterValue": "2000003",178 "SampleAfterValue": "2000003",
180 "CounterHTOff": "0,1,2,3,4,5,6,7"179 "CounterHTOff": "0,1,2,3,4,5,6,7"
181 },180 },
@@ -252,11 +251,11 @@ · 70 unmodified lines
252 {251 {
253 "EventCode": "0xc9",252 "EventCode": "0xc9",
254 "UMask": "0x4",253 "UMask": "0x4",
255 "BriefDescription": "Number of times RTM abort was triggered",254 "BriefDescription": "Number of times RTM abort was triggered (PEBS)",
256 "PEBS": "1",255 "PEBS": "1",
257 "Counter": "0,1,2,3",256 "Counter": "0,1,2,3",
258 "EventName": "RTM_RETIRED.ABORTED",257 "EventName": "RTM_RETIRED.ABORTED",
259 "PublicDescription": "Number of times RTM abort was triggered .",258 "PublicDescription": "Number of times RTM abort was triggered (PEBS).",
260 "SampleAfterValue": "2000003",259 "SampleAfterValue": "2000003",
261 "CounterHTOff": "0,1,2,3"260 "CounterHTOff": "0,1,2,3"
262 },261 },
tools/perf/pmu-events/arch/x86/broadwellde/other.json+10−10
@@ -9,16 +9,6 @@ · 8 unmodified lines
9 "SampleAfterValue": "2000003",9 "SampleAfterValue": "2000003",
10 "CounterHTOff": "0,1,2,3,4,5,6,7"10 "CounterHTOff": "0,1,2,3,4,5,6,7"
11 },11 },
12 {
13 "EventCode": "0x5C",
14 "UMask": "0x2",
15 "BriefDescription": "Unhalted core cycles when thread is in rings 1, 2, or 3",
16 "Counter": "0,1,2,3",
17 "EventName": "CPL_CYCLES.RING123",
18 "PublicDescription": "This event counts unhalted core cycles during which the thread is in rings 1, 2, or 3.",
19 "SampleAfterValue": "2000003",
20 "CounterHTOff": "0,1,2,3,4,5,6,7"
21 },
22 {12 {
23 "EdgeDetect": "1",13 "EdgeDetect": "1",
24 "EventCode": "0x5C",14 "EventCode": "0x5C",
@@ -31,6 +21,16 @@ · 6 unmodified lines
31 "SampleAfterValue": "100007",21 "SampleAfterValue": "100007",
32 "CounterHTOff": "0,1,2,3,4,5,6,7"22 "CounterHTOff": "0,1,2,3,4,5,6,7"
33 },23 },
24 {
25 "EventCode": "0x5C",
26 "UMask": "0x2",
27 "BriefDescription": "Unhalted core cycles when thread is in rings 1, 2, or 3",
28 "Counter": "0,1,2,3",
29 "EventName": "CPL_CYCLES.RING123",
30 "PublicDescription": "This event counts unhalted core cycles during which the thread is in rings 1, 2, or 3.",
31 "SampleAfterValue": "2000003",
32 "CounterHTOff": "0,1,2,3,4,5,6,7"
33 },
34 {34 {
35 "EventCode": "0x63",35 "EventCode": "0x63",
36 "UMask": "0x1",36 "UMask": "0x1",
tools/perf/pmu-events/arch/x86/broadwellde/pipeline.json+612−602
@@ -3,31 +3,41 @@ · 2 unmodified lines
3 "EventCode": "0x00",3 "EventCode": "0x00",
4 "UMask": "0x1",4 "UMask": "0x1",
5 "BriefDescription": "Instructions retired from execution.",5 "BriefDescription": "Instructions retired from execution.",
6 "Counter": "Fixed counter 1",6 "Counter": "Fixed counter 0",
7 "EventName": "INST_RETIRED.ANY",7 "EventName": "INST_RETIRED.ANY",
8 "PublicDescription": "This event counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. \nNotes: INST_RETIRED.ANY is counted by a designated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. INST_RETIRED.ANY_P is counted by a programmable counter and it is an architectural performance event. \nCounting: Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",8 "PublicDescription": "This event counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. \nNotes: INST_RETIRED.ANY is counted by a designated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. INST_RETIRED.ANY_P is counted by a programmable counter and it is an architectural performance event. \nCounting: Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",
9 "SampleAfterValue": "2000003",9 "SampleAfterValue": "2000003",
10 "CounterHTOff": "Fixed counter 1"10 "CounterHTOff": "Fixed counter 0"
11 },11 },
12 {12 {
13 "EventCode": "0x00",13 "EventCode": "0x00",
14 "UMask": "0x2",14 "UMask": "0x2",
15 "BriefDescription": "Core cycles when the thread is not in halt state",15 "BriefDescription": "Core cycles when the thread is not in halt state",
16 "Counter": "Fixed counter 2",16 "Counter": "Fixed counter 1",
17 "EventName": "CPU_CLK_UNHALTED.THREAD",17 "EventName": "CPU_CLK_UNHALTED.THREAD",
18 "PublicDescription": "This event counts the number of core cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events.",18 "PublicDescription": "This event counts the number of core cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events.",
19 "SampleAfterValue": "2000003",19 "SampleAfterValue": "2000003",
20 "CounterHTOff": "Fixed counter 2"20 "CounterHTOff": "Fixed counter 1"
21 },
22 {
23 "EventCode": "0x00",
24 "UMask": "0x2",
25 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
26 "Counter": "Fixed counter 1",
27 "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",
28 "AnyThread": "1",
29 "SampleAfterValue": "2000003",
30 "CounterHTOff": "Fixed counter 1"
21 },31 },
22 {32 {
23 "EventCode": "0x00",33 "EventCode": "0x00",
24 "UMask": "0x3",34 "UMask": "0x3",
25 "BriefDescription": "Reference cycles when the core is not in halt state.",35 "BriefDescription": "Reference cycles when the core is not in halt state.",
26 "Counter": "Fixed counter 3",36 "Counter": "Fixed counter 2",
27 "EventName": "CPU_CLK_UNHALTED.REF_TSC",37 "EventName": "CPU_CLK_UNHALTED.REF_TSC",
28 "PublicDescription": "This event counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. \nNote: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'. This event is clocked by base clock (100 Mhz) on Sandy Bridge. The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'. After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",38 "PublicDescription": "This event counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. \nNote: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'. This event is clocked by base clock (100 Mhz) on Sandy Bridge. The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'. After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",
29 "SampleAfterValue": "2000003",39 "SampleAfterValue": "2000003",
30 "CounterHTOff": "Fixed counter 3"40 "CounterHTOff": "Fixed counter 2"
31 },41 },
32 {42 {
33 "EventCode": "0x03",43 "EventCode": "0x03",
@@ -60,22 +70,33 @@ · 26 unmodified lines
60 },70 },
61 {71 {
62 "EventCode": "0x0D",72 "EventCode": "0x0D",
63 "UMask": "0x8",73 "UMask": "0x3",
64 "BriefDescription": "Cycles when Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the thread",74 "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread (e.g. misprediction or memory nuke)",
65 "Counter": "0,1,2,3",75 "Counter": "0,1,2,3",
66 "EventName": "INT_MISC.RAT_STALL_CYCLES",76 "EventName": "INT_MISC.RECOVERY_CYCLES",
67 "PublicDescription": "This event counts the number of cycles during which Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the current thread. This also includes the cycles during which the Allocator is serving another thread.",77 "CounterMask": "1",
78 "PublicDescription": "Cycles checkpoints in Resource Allocation Table (RAT) are recovering from JEClear or machine clear.",
68 "SampleAfterValue": "2000003",79 "SampleAfterValue": "2000003",
69 "CounterHTOff": "0,1,2,3,4,5,6,7"80 "CounterHTOff": "0,1,2,3,4,5,6,7"
70 },81 },
71 {82 {
72 "EventCode": "0x0D",83 "EventCode": "0x0D",
73 "UMask": "0x3",84 "UMask": "0x3",
74 "BriefDescription": "Number of cycles waiting for the checkpoints in Resource Allocation Table (RAT) to be recovered after Nuke due to all other cases except JEClear (e.g. whenever a ucode assist is needed like SSE exception, memory disambiguation, etc...)",85 "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke).",
75 "Counter": "0,1,2,3",86 "Counter": "0,1,2,3",
76 "EventName": "INT_MISC.RECOVERY_CYCLES",87 "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",
88 "AnyThread": "1",
77 "CounterMask": "1",89 "CounterMask": "1",
78 "PublicDescription": "Cycles checkpoints in Resource Allocation Table (RAT) are recovering from JEClear or machine clear.",90 "SampleAfterValue": "2000003",
91 "CounterHTOff": "0,1,2,3,4,5,6,7"
92 },
93 {
94 "EventCode": "0x0D",
95 "UMask": "0x8",
96 "BriefDescription": "Cycles when Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the thread",
97 "Counter": "0,1,2,3",
98 "EventName": "INT_MISC.RAT_STALL_CYCLES",
99 "PublicDescription": "This event counts the number of cycles during which Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the current thread. This also includes the cycles during which the Allocator is serving another thread.",
79 "SampleAfterValue": "2000003",100 "SampleAfterValue": "2000003",
80 "CounterHTOff": "0,1,2,3,4,5,6,7"101 "CounterHTOff": "0,1,2,3,4,5,6,7"
81 },102 },
@@ -89,6 +110,18 @@ · 7 unmodified lines
89 "SampleAfterValue": "2000003",110 "SampleAfterValue": "2000003",
90 "CounterHTOff": "0,1,2,3,4,5,6,7"111 "CounterHTOff": "0,1,2,3,4,5,6,7"
91 },112 },
113 {
114 "Invert": "1",
115 "EventCode": "0x0E",
116 "UMask": "0x1",
117 "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
118 "Counter": "0,1,2,3",
119 "EventName": "UOPS_ISSUED.STALL_CYCLES",
120 "CounterMask": "1",
121 "PublicDescription": "This event counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
122 "SampleAfterValue": "2000003",
123 "CounterHTOff": "0,1,2,3"
124 },
92 {125 {
93 "EventCode": "0x0E",126 "EventCode": "0x0E",
94 "UMask": "0x10",127 "UMask": "0x10",
@@ -117,18 +150,6 @@ · 22 unmodified lines
117 "SampleAfterValue": "2000003",150 "SampleAfterValue": "2000003",
118 "CounterHTOff": "0,1,2,3,4,5,6,7"151 "CounterHTOff": "0,1,2,3,4,5,6,7"
119 },152 },
120 {
121 "Invert": "1",
122 "EventCode": "0x0E",
123 "UMask": "0x1",
124 "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
125 "Counter": "0,1,2,3",
126 "EventName": "UOPS_ISSUED.STALL_CYCLES",
127 "CounterMask": "1",
128 "PublicDescription": "This event counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
129 "SampleAfterValue": "2000003",
130 "CounterHTOff": "0,1,2,3"
131 },
132 {153 {
133 "EventCode": "0x14",154 "EventCode": "0x14",
134 "UMask": "0x1",155 "UMask": "0x1",
@@ -139,6 +160,26 @@ · 4 unmodified lines
139 "SampleAfterValue": "2000003",160 "SampleAfterValue": "2000003",
140 "CounterHTOff": "0,1,2,3,4,5,6,7"161 "CounterHTOff": "0,1,2,3,4,5,6,7"
141 },162 },
163 {
164 "EventCode": "0x3C",
165 "UMask": "0x0",
166 "BriefDescription": "Thread cycles when thread is not in halt state",
167 "Counter": "0,1,2,3",
168 "EventName": "CPU_CLK_UNHALTED.THREAD_P",
169 "PublicDescription": "This is an architectural event that counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The core frequency may change from time to time due to power or thermal throttling. For this reason, this event may have a changing ratio with regards to wall clock time.",
170 "SampleAfterValue": "2000003",
171 "CounterHTOff": "0,1,2,3,4,5,6,7"
172 },
173 {
174 "EventCode": "0x3C",
175 "UMask": "0x0",
176 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
177 "Counter": "0,1,2,3",
178 "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",
179 "AnyThread": "1",
180 "SampleAfterValue": "2000003",
181 "CounterHTOff": "0,1,2,3,4,5,6,7"
182 },
142 {183 {
143 "EventCode": "0x3C",184 "EventCode": "0x3C",
144 "UMask": "0x1",185 "UMask": "0x1",
@@ -149,6 +190,36 @@ · 4 unmodified lines
149 "SampleAfterValue": "2000003",190 "SampleAfterValue": "2000003",
150 "CounterHTOff": "0,1,2,3,4,5,6,7"191 "CounterHTOff": "0,1,2,3,4,5,6,7"
151 },192 },
193 {
194 "EventCode": "0x3C",
195 "UMask": "0x1",
196 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
197 "Counter": "0,1,2,3",
198 "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",
199 "AnyThread": "1",
200 "SampleAfterValue": "2000003",
201 "CounterHTOff": "0,1,2,3,4,5,6,7"
202 },
203 {
204 "EventCode": "0x3C",
205 "UMask": "0x1",
206 "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
207 "Counter": "0,1,2,3",
208 "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
209 "PublicDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate).",
210 "SampleAfterValue": "2000003",
211 "CounterHTOff": "0,1,2,3,4,5,6,7"
212 },
213 {
214 "EventCode": "0x3C",
215 "UMask": "0x1",
216 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
217 "Counter": "0,1,2,3",
218 "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
219 "AnyThread": "1",
220 "SampleAfterValue": "2000003",
221 "CounterHTOff": "0,1,2,3,4,5,6,7"
222 },
152 {223 {
153 "EventCode": "0x3c",224 "EventCode": "0x3c",
154 "UMask": "0x2",225 "UMask": "0x2",
@@ -158,6 +229,15 @@ · 3 unmodified lines
158 "SampleAfterValue": "2000003",229 "SampleAfterValue": "2000003",
159 "CounterHTOff": "0,1,2,3"230 "CounterHTOff": "0,1,2,3"
160 },231 },
232 {
233 "EventCode": "0x3C",
234 "UMask": "0x2",
235 "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
236 "Counter": "0,1,2,3",
237 "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
238 "SampleAfterValue": "2000003",
239 "CounterHTOff": "0,1,2,3,4,5,6,7"
240 },
161 {241 {
162 "EventCode": "0x4c",242 "EventCode": "0x4c",
163 "UMask": "0x1",243 "UMask": "0x1",
@@ -224,6 +304,18 @@ · 60 unmodified lines
224 "SampleAfterValue": "2000003",304 "SampleAfterValue": "2000003",
225 "CounterHTOff": "0,1,2,3,4,5,6,7"305 "CounterHTOff": "0,1,2,3,4,5,6,7"
226 },306 },
307 {
308 "EdgeDetect": "1",
309 "Invert": "1",
310 "EventCode": "0x5E",
311 "UMask": "0x1",
312 "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
313 "Counter": "0,1,2,3",
314 "EventName": "RS_EVENTS.EMPTY_END",
315 "CounterMask": "1",
316 "SampleAfterValue": "200003",
317 "CounterHTOff": "0,1,2,3,4,5,6,7"
318 },
227 {319 {
228 "EventCode": "0x87",320 "EventCode": "0x87",
229 "UMask": "0x1",321 "UMask": "0x1",
@@ -404,6 +496,15 @@ · 174 unmodified lines
404 "SampleAfterValue": "200003",496 "SampleAfterValue": "200003",
405 "CounterHTOff": "0,1,2,3,4,5,6,7"497 "CounterHTOff": "0,1,2,3,4,5,6,7"
406 },498 },
499 {
500 "EventCode": "0x89",
501 "UMask": "0xa0",
502 "BriefDescription": "Taken speculative and retired mispredicted indirect calls.",
503 "Counter": "0,1,2,3",
504 "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_NEAR_CALL",
505 "SampleAfterValue": "200003",
506 "CounterHTOff": "0,1,2,3,4,5,6,7"
507 },
407 {508 {
408 "EventCode": "0x89",509 "EventCode": "0x89",
409 "UMask": "0xc1",510 "UMask": "0xc1",
@@ -434,6 +535,16 @@ · 24 unmodified lines
434 "SampleAfterValue": "200003",535 "SampleAfterValue": "200003",
435 "CounterHTOff": "0,1,2,3,4,5,6,7"536 "CounterHTOff": "0,1,2,3,4,5,6,7"
436 },537 },
538 {
539 "EventCode": "0xA0",
540 "UMask": "0x3",
541 "BriefDescription": "Micro-op dispatches cancelled due to insufficient SIMD physical register file read ports",
542 "Counter": "0,1,2,3",
543 "EventName": "UOP_DISPATCHES_CANCELLED.SIMD_PRF",
544 "PublicDescription": "This event counts the number of micro-operations cancelled after they were dispatched from the scheduler to the execution units when the total number of physical register read ports across all dispatch ports exceeds the read bandwidth of the physical register file. The SIMD_PRF subevent applies to the following instructions: VDPPS, DPPS, VPCMPESTRI, PCMPESTRI, VPCMPESTRM, PCMPESTRM, VFMADD*, VFMADDSUB*, VFMSUB*, VMSUBADD*, VFNMADD*, VFNMSUB*. See the Broadwell Optimization Guide for more information.",
545 "SampleAfterValue": "2000003",
546 "CounterHTOff": "0,1,2,3"
547 },
437 {548 {
438 "EventCode": "0xA1",549 "EventCode": "0xA1",
439 "UMask": "0x1",550 "UMask": "0x1",
@@ -446,601 +557,471 @@ · 6 unmodified lines
446 },557 },
447 {558 {
448 "EventCode": "0xA1",559 "EventCode": "0xA1",
449 "UMask": "0x2",560 "UMask": "0x1",
450 "BriefDescription": "Cycles per thread when uops are executed in port 1",561 "BriefDescription": "Cycles per core when uops are exectuted in port 0.",
451 "Counter": "0,1,2,3",562 "Counter": "0,1,2,3",
452 "EventName": "UOPS_DISPATCHED_PORT.PORT_1",563 "EventName": "UOPS_EXECUTED_PORT.PORT_0_CORE",
453 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",564 "AnyThread": "1",
454 "SampleAfterValue": "2000003",565 "SampleAfterValue": "2000003",
455 "CounterHTOff": "0,1,2,3,4,5,6,7"566 "CounterHTOff": "0,1,2,3,4,5,6,7"
456 },567 },
457 {568 {
458 "EventCode": "0xA1",569 "EventCode": "0xA1",
459 "UMask": "0x4",570 "UMask": "0x1",
460 "BriefDescription": "Cycles per thread when uops are executed in port 2",571 "BriefDescription": "Cycles per thread when uops are executed in port 0",
461 "Counter": "0,1,2,3",572 "Counter": "0,1,2,3",
462 "EventName": "UOPS_DISPATCHED_PORT.PORT_2",573 "EventName": "UOPS_EXECUTED_PORT.PORT_0",
463 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",574 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",
464 "SampleAfterValue": "2000003",575 "SampleAfterValue": "2000003",
465 "CounterHTOff": "0,1,2,3,4,5,6,7"576 "CounterHTOff": "0,1,2,3,4,5,6,7"
466 },577 },
467 {578 {
468 "EventCode": "0xA1",579 "EventCode": "0xA1",
469 "UMask": "0x8",580 "UMask": "0x2",
470 "BriefDescription": "Cycles per thread when uops are executed in port 3",581 "BriefDescription": "Cycles per thread when uops are executed in port 1",
471 "Counter": "0,1,2,3",582 "Counter": "0,1,2,3",
472 "EventName": "UOPS_DISPATCHED_PORT.PORT_3",583 "EventName": "UOPS_DISPATCHED_PORT.PORT_1",
473 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",584 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",
474 "SampleAfterValue": "2000003",585 "SampleAfterValue": "2000003",
475 "CounterHTOff": "0,1,2,3,4,5,6,7"586 "CounterHTOff": "0,1,2,3,4,5,6,7"
476 },587 },
477 {588 {
478 "EventCode": "0xA1",589 "EventCode": "0xA1",
479 "UMask": "0x10",590 "UMask": "0x2",
480 "BriefDescription": "Cycles per thread when uops are executed in port 4",591 "BriefDescription": "Cycles per core when uops are exectuted in port 1.",
481 "Counter": "0,1,2,3",592 "Counter": "0,1,2,3",
482 "EventName": "UOPS_DISPATCHED_PORT.PORT_4",593 "EventName": "UOPS_EXECUTED_PORT.PORT_1_CORE",
483 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",594 "AnyThread": "1",
484 "SampleAfterValue": "2000003",595 "SampleAfterValue": "2000003",
485 "CounterHTOff": "0,1,2,3,4,5,6,7"596 "CounterHTOff": "0,1,2,3,4,5,6,7"
486 },597 },
487 {598 {
488 "EventCode": "0xA1",599 "EventCode": "0xA1",
489 "UMask": "0x20",600 "UMask": "0x2",
490 "BriefDescription": "Cycles per thread when uops are executed in port 5",601 "BriefDescription": "Cycles per thread when uops are executed in port 1",
491 "Counter": "0,1,2,3",602 "Counter": "0,1,2,3",
492 "EventName": "UOPS_DISPATCHED_PORT.PORT_5",603 "EventName": "UOPS_EXECUTED_PORT.PORT_1",
493 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",604 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",
494 "SampleAfterValue": "2000003",605 "SampleAfterValue": "2000003",
495 "CounterHTOff": "0,1,2,3,4,5,6,7"606 "CounterHTOff": "0,1,2,3,4,5,6,7"
496 },607 },
497 {608 {
498 "EventCode": "0xA1",609 "EventCode": "0xA1",
499 "UMask": "0x40",610 "UMask": "0x4",
500 "BriefDescription": "Cycles per thread when uops are executed in port 6",611 "BriefDescription": "Cycles per thread when uops are executed in port 2",
501 "Counter": "0,1,2,3",612 "Counter": "0,1,2,3",
502 "EventName": "UOPS_DISPATCHED_PORT.PORT_6",613 "EventName": "UOPS_DISPATCHED_PORT.PORT_2",
503 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",614 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",
504 "SampleAfterValue": "2000003",615 "SampleAfterValue": "2000003",
505 "CounterHTOff": "0,1,2,3,4,5,6,7"616 "CounterHTOff": "0,1,2,3,4,5,6,7"
506 },617 },
507 {618 {
508 "EventCode": "0xA1",619 "EventCode": "0xA1",
509 "UMask": "0x80",620 "UMask": "0x4",
510 "BriefDescription": "Cycles per thread when uops are executed in port 7",621 "BriefDescription": "Cycles per core when uops are dispatched to port 2.",
511 "Counter": "0,1,2,3",622 "Counter": "0,1,2,3",
512 "EventName": "UOPS_DISPATCHED_PORT.PORT_7",623 "EventName": "UOPS_EXECUTED_PORT.PORT_2_CORE",
513 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",624 "AnyThread": "1",
514 "SampleAfterValue": "2000003",625 "SampleAfterValue": "2000003",
515 "CounterHTOff": "0,1,2,3,4,5,6,7"626 "CounterHTOff": "0,1,2,3,4,5,6,7"
516 },627 },
517 {628 {
518 "EventCode": "0xA2",629 "EventCode": "0xA1",
519 "UMask": "0x1",630 "UMask": "0x4",
520 "BriefDescription": "Resource-related stall cycles",631 "BriefDescription": "Cycles per thread when uops are executed in port 2",
521 "Counter": "0,1,2,3",632 "Counter": "0,1,2,3",
522 "EventName": "RESOURCE_STALLS.ANY",633 "EventName": "UOPS_EXECUTED_PORT.PORT_2",
523 "PublicDescription": "This event counts resource-related stall cycles. Reasons for stalls can be as follows:\n - *any* u-arch structure got full (LB, SB, RS, ROB, BOB, LM, Physical Register Reclaim Table (PRRT), or Physical History Table (PHT) slots)\n - *any* u-arch structure got empty (like INT/SIMD FreeLists)\n - FPU control word (FPCW), MXCSR\nand others. This counts cycles that the pipeline backend blocked uop delivery from the front end.",634 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",
524 "SampleAfterValue": "2000003",635 "SampleAfterValue": "2000003",
525 "CounterHTOff": "0,1,2,3,4,5,6,7"636 "CounterHTOff": "0,1,2,3,4,5,6,7"
526 },637 },
527 {638 {
528 "EventCode": "0xA2",639 "EventCode": "0xA1",
529 "UMask": "0x4",640 "UMask": "0x8",
530 "BriefDescription": "Cycles stalled due to no eligible RS entry available.",641 "BriefDescription": "Cycles per thread when uops are executed in port 3",
531 "Counter": "0,1,2,3",642 "Counter": "0,1,2,3",
532 "EventName": "RESOURCE_STALLS.RS",643 "EventName": "UOPS_DISPATCHED_PORT.PORT_3",
533 "PublicDescription": "This event counts stall cycles caused by absence of eligible entries in the reservation station (RS). This may result from RS overflow, or from RS deallocation because of the RS array Write Port allocation scheme (each RS entry has two write ports instead of four. As a result, empty entries could not be used, although RS is not really full). This counts cycles that the pipeline backend blocked uop delivery from the front end.",644 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",
534 "SampleAfterValue": "2000003",645 "SampleAfterValue": "2000003",
535 "CounterHTOff": "0,1,2,3,4,5,6,7"646 "CounterHTOff": "0,1,2,3,4,5,6,7"
536 },647 },
537 {648 {
538 "EventCode": "0xA2",649 "EventCode": "0xA1",
539 "UMask": "0x8",650 "UMask": "0x8",
540 "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",651 "BriefDescription": "Cycles per core when uops are dispatched to port 3.",
541 "Counter": "0,1,2,3",652 "Counter": "0,1,2,3",
542 "EventName": "RESOURCE_STALLS.SB",653 "EventName": "UOPS_EXECUTED_PORT.PORT_3_CORE",
543 "PublicDescription": "This event counts stall cycles caused by the store buffer (SB) overflow (excluding draining from synch). This counts cycles that the pipeline backend blocked uop delivery from the front end.",654 "AnyThread": "1",
544 "SampleAfterValue": "2000003",655 "SampleAfterValue": "2000003",
545 "CounterHTOff": "0,1,2,3,4,5,6,7"656 "CounterHTOff": "0,1,2,3,4,5,6,7"
546 },657 },
547 {658 {
548 "EventCode": "0xA2",659 "EventCode": "0xA1",
549 "UMask": "0x10",660 "UMask": "0x8",
550 "BriefDescription": "Cycles stalled due to re-order buffer full.",661 "BriefDescription": "Cycles per thread when uops are executed in port 3",
551 "Counter": "0,1,2,3",662 "Counter": "0,1,2,3",
552 "EventName": "RESOURCE_STALLS.ROB",663 "EventName": "UOPS_EXECUTED_PORT.PORT_3",
553 "PublicDescription": "This event counts ROB full stall cycles. This counts cycles that the pipeline backend blocked uop delivery from the front end.",664 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",
554 "SampleAfterValue": "2000003",665 "SampleAfterValue": "2000003",
555 "CounterHTOff": "0,1,2,3,4,5,6,7"666 "CounterHTOff": "0,1,2,3,4,5,6,7"
556 },667 },
557 {668 {
558 "EventCode": "0xA3",669 "EventCode": "0xA1",
559 "UMask": "0x1",670 "UMask": "0x10",
560 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",671 "BriefDescription": "Cycles per thread when uops are executed in port 4",
561 "Counter": "0,1,2,3",672 "Counter": "0,1,2,3",
562 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_PENDING",673 "EventName": "UOPS_DISPATCHED_PORT.PORT_4",
563 "CounterMask": "1",674 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",
564 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand* load request missing the L2 cache.",
565 "SampleAfterValue": "2000003",675 "SampleAfterValue": "2000003",
566 "CounterHTOff": "0,1,2,3,4,5,6,7"676 "CounterHTOff": "0,1,2,3,4,5,6,7"
567 },677 },
568 {678 {
569 "EventCode": "0xA3",679 "EventCode": "0xA1",
570 "UMask": "0x8",680 "UMask": "0x10",
571 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",681 "BriefDescription": "Cycles per core when uops are exectuted in port 4.",
572 "Counter": "2",
573 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_PENDING",
574 "CounterMask": "8",
575 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request missing the L1 data cache.",
576 "SampleAfterValue": "2000003",
577 "CounterHTOff": "2"
578 },
579 {
580 "EventCode": "0xA3",
581 "UMask": "0x2",
582 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
583 "Counter": "0,1,2,3",682 "Counter": "0,1,2,3",
584 "EventName": "CYCLE_ACTIVITY.CYCLES_LDM_PENDING",683 "EventName": "UOPS_EXECUTED_PORT.PORT_4_CORE",
585 "CounterMask": "2",684 "AnyThread": "1",
586 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request (that is cycles with non-completed load waiting for its data from memory subsystem).",
587 "SampleAfterValue": "2000003",685 "SampleAfterValue": "2000003",
588 "CounterHTOff": "0,1,2,3,4,5,6,7"686 "CounterHTOff": "0,1,2,3,4,5,6,7"
589 },687 },
590 {688 {
591 "EventCode": "0xA3",689 "EventCode": "0xA1",
592 "UMask": "0x4",690 "UMask": "0x10",
593 "BriefDescription": "Total execution stalls",691 "BriefDescription": "Cycles per thread when uops are executed in port 4",
594 "Counter": "0,1,2,3",692 "Counter": "0,1,2,3",
595 "EventName": "CYCLE_ACTIVITY.CYCLES_NO_EXECUTE",693 "EventName": "UOPS_EXECUTED_PORT.PORT_4",
596 "CounterMask": "4",694 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",
597 "PublicDescription": "Counts number of cycles nothing is executed on any execution port.",
598 "SampleAfterValue": "2000003",695 "SampleAfterValue": "2000003",
599 "CounterHTOff": "0,1,2,3"696 "CounterHTOff": "0,1,2,3,4,5,6,7"
600 },697 },
601 {698 {
602 "EventCode": "0xA3",699 "EventCode": "0xA1",
603 "UMask": "0x5",700 "UMask": "0x20",
604 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",701 "BriefDescription": "Cycles per thread when uops are executed in port 5",
605 "Counter": "0,1,2,3",702 "Counter": "0,1,2,3",
606 "EventName": "CYCLE_ACTIVITY.STALLS_L2_PENDING",703 "EventName": "UOPS_DISPATCHED_PORT.PORT_5",
607 "CounterMask": "5",704 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",
608 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand* load request missing the L2 cache.(as a footprint) * includes also L1 HW prefetch requests that may or may not be required by demands.",
609 "SampleAfterValue": "2000003",705 "SampleAfterValue": "2000003",
610 "CounterHTOff": "0,1,2,3"706 "CounterHTOff": "0,1,2,3,4,5,6,7"
611 },707 },
612 {708 {
613 "EventCode": "0xA3",709 "EventCode": "0xA1",
614 "UMask": "0x6",710 "UMask": "0x20",
615 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",711 "BriefDescription": "Cycles per core when uops are exectuted in port 5.",
616 "Counter": "0,1,2,3",712 "Counter": "0,1,2,3",
617 "EventName": "CYCLE_ACTIVITY.STALLS_LDM_PENDING",713 "EventName": "UOPS_EXECUTED_PORT.PORT_5_CORE",
618 "CounterMask": "6",714 "AnyThread": "1",
619 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request.",
620 "SampleAfterValue": "2000003",715 "SampleAfterValue": "2000003",
621 "CounterHTOff": "0,1,2,3"716 "CounterHTOff": "0,1,2,3,4,5,6,7"
622 },717 },
623 {718 {
624 "EventCode": "0xA3",719 "EventCode": "0xA1",
625 "UMask": "0xc",720 "UMask": "0x20",
626 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",721 "BriefDescription": "Cycles per thread when uops are executed in port 5",
627 "Counter": "2",722 "Counter": "0,1,2,3",
628 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_PENDING",723 "EventName": "UOPS_EXECUTED_PORT.PORT_5",
629 "CounterMask": "12",724 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",
630 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request missing the L1 data cache.",
631 "SampleAfterValue": "2000003",725 "SampleAfterValue": "2000003",
632 "CounterHTOff": "2"726 "CounterHTOff": "0,1,2,3,4,5,6,7"
633 },727 },
634 {728 {
635 "EventCode": "0xA8",729 "EventCode": "0xA1",
636 "UMask": "0x1",730 "UMask": "0x40",
637 "BriefDescription": "Number of Uops delivered by the LSD.",731 "BriefDescription": "Cycles per thread when uops are executed in port 6",
638 "Counter": "0,1,2,3",732 "Counter": "0,1,2,3",
639 "EventName": "LSD.UOPS",733 "EventName": "UOPS_DISPATCHED_PORT.PORT_6",
640 "PublicDescription": "Number of Uops delivered by the LSD. ",734 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",
641 "SampleAfterValue": "2000003",735 "SampleAfterValue": "2000003",
642 "CounterHTOff": "0,1,2,3,4,5,6,7"736 "CounterHTOff": "0,1,2,3,4,5,6,7"
643 },737 },
644 {738 {
645 "EventCode": "0xB1",739 "EventCode": "0xA1",
646 "UMask": "0x1",740 "UMask": "0x40",
647 "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",741 "BriefDescription": "Cycles per core when uops are exectuted in port 6.",
648 "Counter": "0,1,2,3",742 "Counter": "0,1,2,3",
649 "EventName": "UOPS_EXECUTED.THREAD",743 "EventName": "UOPS_EXECUTED_PORT.PORT_6_CORE",
650 "PublicDescription": "Number of uops to be executed per-thread each cycle.",744 "AnyThread": "1",
651 "SampleAfterValue": "2000003",745 "SampleAfterValue": "2000003",
652 "CounterHTOff": "0,1,2,3,4,5,6,7"746 "CounterHTOff": "0,1,2,3,4,5,6,7"
653 },747 },
654 {748 {
655 "EventCode": "0xB1",749 "EventCode": "0xA1",
656 "UMask": "0x2",750 "UMask": "0x40",
657 "BriefDescription": "Number of uops executed on the core.",751 "BriefDescription": "Cycles per thread when uops are executed in port 6",
658 "Counter": "0,1,2,3",752 "Counter": "0,1,2,3",
659 "EventName": "UOPS_EXECUTED.CORE",753 "EventName": "UOPS_EXECUTED_PORT.PORT_6",
660 "PublicDescription": "Number of uops executed from any thread.",754 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",
661 "SampleAfterValue": "2000003",755 "SampleAfterValue": "2000003",
662 "CounterHTOff": "0,1,2,3,4,5,6,7"756 "CounterHTOff": "0,1,2,3,4,5,6,7"
663 },757 },
664 {758 {
665 "Invert": "1",759 "EventCode": "0xA1",
666 "EventCode": "0xB1",760 "UMask": "0x80",
667 "UMask": "0x1",761 "BriefDescription": "Cycles per thread when uops are executed in port 7",
668 "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
669 "Counter": "0,1,2,3",762 "Counter": "0,1,2,3",
670 "EventName": "UOPS_EXECUTED.STALL_CYCLES",763 "EventName": "UOPS_DISPATCHED_PORT.PORT_7",
671 "CounterMask": "1",764 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",
672 "PublicDescription": "This event counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
673 "SampleAfterValue": "2000003",765 "SampleAfterValue": "2000003",
674 "CounterHTOff": "0,1,2,3"766 "CounterHTOff": "0,1,2,3,4,5,6,7"
675 },767 },
676 {768 {
677 "EventCode": "0xC0",769 "EventCode": "0xA1",
678 "UMask": "0x0",770 "UMask": "0x80",
679 "BriefDescription": "Number of instructions retired. General Counter - architectural event",771 "BriefDescription": "Cycles per core when uops are dispatched to port 7.",
680 "Counter": "0,1,2,3",772 "Counter": "0,1,2,3",
681 "EventName": "INST_RETIRED.ANY_P",773 "EventName": "UOPS_EXECUTED_PORT.PORT_7_CORE",
682 "Errata": "BDM61",774 "AnyThread": "1",
683 "PublicDescription": "This event counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
684 "SampleAfterValue": "2000003",775 "SampleAfterValue": "2000003",
685 "CounterHTOff": "0,1,2,3,4,5,6,7"776 "CounterHTOff": "0,1,2,3,4,5,6,7"
686 },777 },
687 {778 {
688 "EventCode": "0xC0",779 "EventCode": "0xA1",
689 "UMask": "0x2",780 "UMask": "0x80",
690 "BriefDescription": "FP operations retired. X87 FP operations that have no exceptions:",781 "BriefDescription": "Cycles per thread when uops are executed in port 7",
691 "Counter": "0,1,2,3",782 "Counter": "0,1,2,3",
692 "EventName": "INST_RETIRED.X87",783 "EventName": "UOPS_EXECUTED_PORT.PORT_7",
693 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts FP operations retired. For X87 FP operations that have no exceptions counting also includes flows that have several X87, or flows that use X87 uops in the exception handling.",784 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",
694 "SampleAfterValue": "2000003",785 "SampleAfterValue": "2000003",
695 "CounterHTOff": "0,1,2,3,4,5,6,7"786 "CounterHTOff": "0,1,2,3,4,5,6,7"
696 },787 },
697 {788 {
698 "EventCode": "0xC0",789 "EventCode": "0xA2",
699 "UMask": "0x1",790 "UMask": "0x1",
700 "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",791 "BriefDescription": "Resource-related stall cycles",
701 "PEBS": "2",792 "Counter": "0,1,2,3",
702 "Counter": "1",793 "EventName": "RESOURCE_STALLS.ANY",
703 "EventName": "INST_RETIRED.PREC_DIST",794 "PublicDescription": "This event counts resource-related stall cycles. Reasons for stalls can be as follows:\n - *any* u-arch structure got full (LB, SB, RS, ROB, BOB, LM, Physical Register Reclaim Table (PRRT), or Physical History Table (PHT) slots)\n - *any* u-arch structure got empty (like INT/SIMD FreeLists)\n - FPU control word (FPCW), MXCSR\nand others. This counts cycles that the pipeline backend blocked uop delivery from the front end.",
704 "Errata": "BDM11, BDM55",
705 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts instructions retired.",
706 "SampleAfterValue": "2000003",795 "SampleAfterValue": "2000003",
707 "CounterHTOff": "1"796 "CounterHTOff": "0,1,2,3,4,5,6,7"
708 },797 },
709 {798 {
710 "EventCode": "0xC1",799 "EventCode": "0xA2",
711 "UMask": "0x40",800 "UMask": "0x4",
712 "BriefDescription": "Number of times any microcode assist is invoked by HW upon uop writeback.",801 "BriefDescription": "Cycles stalled due to no eligible RS entry available.",
713 "Counter": "0,1,2,3",802 "Counter": "0,1,2,3",
714 "EventName": "OTHER_ASSISTS.ANY_WB_ASSIST",803 "EventName": "RESOURCE_STALLS.RS",
715 "SampleAfterValue": "100003",804 "PublicDescription": "This event counts stall cycles caused by absence of eligible entries in the reservation station (RS). This may result from RS overflow, or from RS deallocation because of the RS array Write Port allocation scheme (each RS entry has two write ports instead of four. As a result, empty entries could not be used, although RS is not really full). This counts cycles that the pipeline backend blocked uop delivery from the front end.",
805 "SampleAfterValue": "2000003",
716 "CounterHTOff": "0,1,2,3,4,5,6,7"806 "CounterHTOff": "0,1,2,3,4,5,6,7"
717 },807 },
718 {808 {
719 "EventCode": "0xC2",809 "EventCode": "0xA2",
720 "UMask": "0x1",810 "UMask": "0x8",
721 "BriefDescription": "Actually retired uops.",811 "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
722 "Data_LA": "1",
723 "PEBS": "1",
724 "Counter": "0,1,2,3",812 "Counter": "0,1,2,3",
725 "EventName": "UOPS_RETIRED.ALL",813 "EventName": "RESOURCE_STALLS.SB",
726 "PublicDescription": "This event counts all actually retired uops. Counting increments by two for micro-fused uops, and by one for macro-fused and other uops. Maximal increment value for one cycle is eight.",814 "PublicDescription": "This event counts stall cycles caused by the store buffer (SB) overflow (excluding draining from synch). This counts cycles that the pipeline backend blocked uop delivery from the front end.",
727 "SampleAfterValue": "2000003",815 "SampleAfterValue": "2000003",
728 "CounterHTOff": "0,1,2,3,4,5,6,7"816 "CounterHTOff": "0,1,2,3,4,5,6,7"
729 },817 },
730 {818 {
731 "EventCode": "0xC2",819 "EventCode": "0xA2",
732 "UMask": "0x2",820 "UMask": "0x10",
733 "BriefDescription": "Retirement slots used.",821 "BriefDescription": "Cycles stalled due to re-order buffer full.",
734 "PEBS": "1",
735 "Counter": "0,1,2,3",822 "Counter": "0,1,2,3",
736 "EventName": "UOPS_RETIRED.RETIRE_SLOTS",823 "EventName": "RESOURCE_STALLS.ROB",
737 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of retirement slots used.",824 "PublicDescription": "This event counts ROB full stall cycles. This counts cycles that the pipeline backend blocked uop delivery from the front end.",
738 "SampleAfterValue": "2000003",825 "SampleAfterValue": "2000003",
739 "CounterHTOff": "0,1,2,3,4,5,6,7"826 "CounterHTOff": "0,1,2,3,4,5,6,7"
740 },827 },
741 {828 {
742 "Invert": "1",829 "EventCode": "0xA3",
743 "EventCode": "0xC2",
744 "UMask": "0x1",830 "UMask": "0x1",
745 "BriefDescription": "Cycles without actually retired uops.",831 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
746 "Counter": "0,1,2,3",832 "Counter": "0,1,2,3",
747 "EventName": "UOPS_RETIRED.STALL_CYCLES",833 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_PENDING",
748 "CounterMask": "1",834 "CounterMask": "1",
749 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts cycles without actually retired uops.",835 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand* load request missing the L2 cache.",
750 "SampleAfterValue": "2000003",836 "SampleAfterValue": "2000003",
751 "CounterHTOff": "0,1,2,3"837 "CounterHTOff": "0,1,2,3,4,5,6,7"
752 },838 },
753 {839 {
754 "Invert": "1",840 "EventCode": "0xA3",
755 "EventCode": "0xC2",
756 "UMask": "0x1",841 "UMask": "0x1",
757 "BriefDescription": "Cycles with less than 10 actually retired uops.",842 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
758 "Counter": "0,1,2,3",843 "Counter": "0,1,2,3",
759 "EventName": "UOPS_RETIRED.TOTAL_CYCLES",844 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
760 "CounterMask": "10",845 "CounterMask": "1",
761 "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
762 "SampleAfterValue": "2000003",846 "SampleAfterValue": "2000003",
763 "CounterHTOff": "0,1,2,3"847 "CounterHTOff": "0,1,2,3,4,5,6,7"
764 },848 },
765 {849 {
766 "EventCode": "0xC3",850 "EventCode": "0xA3",
767 "UMask": "0x1",851 "UMask": "0x2",
768 "BriefDescription": "Cycles there was a Nuke. Account for both thread-specific and All Thread Nukes.",852 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
769 "Counter": "0,1,2,3",853 "Counter": "0,1,2,3",
770 "EventName": "MACHINE_CLEARS.CYCLES",854 "EventName": "CYCLE_ACTIVITY.CYCLES_LDM_PENDING",
771 "PublicDescription": "This event counts both thread-specific (TS) and all-thread (AT) nukes.",855 "CounterMask": "2",
856 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request (that is cycles with non-completed load waiting for its data from memory subsystem).",
772 "SampleAfterValue": "2000003",857 "SampleAfterValue": "2000003",
773 "CounterHTOff": "0,1,2,3,4,5,6,7"858 "CounterHTOff": "0,1,2,3,4,5,6,7"
774 },859 },
775 {860 {
776 "EventCode": "0xC3",861 "EventCode": "0xA3",
862 "UMask": "0x2",
863 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
864 "Counter": "0,1,2,3",
865 "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
866 "CounterMask": "2",
867 "SampleAfterValue": "2000003",
868 "CounterHTOff": "0,1,2,3"
869 },
870 {
871 "EventCode": "0xA3",
777 "UMask": "0x4",872 "UMask": "0x4",
778 "BriefDescription": "Self-modifying code (SMC) detected.",873 "BriefDescription": "This event increments by 1 for every cycle where there was no execute for this thread.",
779 "Counter": "0,1,2,3",874 "Counter": "0,1,2,3",
780 "EventName": "MACHINE_CLEARS.SMC",875 "EventName": "CYCLE_ACTIVITY.CYCLES_NO_EXECUTE",
781 "PublicDescription": "This event counts self-modifying code (SMC) detected, which causes a machine clear.",876 "CounterMask": "4",
782 "SampleAfterValue": "100003",877 "PublicDescription": "Counts number of cycles nothing is executed on any execution port.",
783 "CounterHTOff": "0,1,2,3,4,5,6,7"878 "SampleAfterValue": "2000003",
879 "CounterHTOff": "0,1,2,3"
784 },880 },
785 {881 {
786 "EventCode": "0xC3",882 "EventCode": "0xA3",
787 "UMask": "0x20",883 "UMask": "0x4",
788 "BriefDescription": "This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0.",884 "BriefDescription": "Total execution stalls.",
789 "Counter": "0,1,2,3",885 "Counter": "0,1,2,3",
790 "EventName": "MACHINE_CLEARS.MASKMOV",886 "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
791 "PublicDescription": "Maskmov false fault - counts number of time ucode passes through Maskmov flow due to instruction's mask being 0 while the flow was completed without raising a fault.",887 "CounterMask": "4",
792 "SampleAfterValue": "100003",888 "SampleAfterValue": "2000003",
793 "CounterHTOff": "0,1,2,3,4,5,6,7"889 "CounterHTOff": "0,1,2,3,4,5,6,7"
794 },890 },
795 {891 {
796 "EventCode": "0xC4",892 "EventCode": "0xA3",
797 "UMask": "0x1",893 "UMask": "0x5",
798 "BriefDescription": "Conditional branch instructions retired.",894 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
799 "PEBS": "1",
800 "Counter": "0,1,2,3",
801 "EventName": "BR_INST_RETIRED.CONDITIONAL",
802 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts conditional branch instructions retired.",
803 "SampleAfterValue": "400009",
804 "CounterHTOff": "0,1,2,3,4,5,6,7"
805 },
806 {
807 "EventCode": "0xC4",
808 "UMask": "0x2",
809 "BriefDescription": "Direct and indirect near call instructions retired.",
810 "PEBS": "1",
811 "Counter": "0,1,2,3",
812 "EventName": "BR_INST_RETIRED.NEAR_CALL",
813 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts both direct and indirect near call instructions retired.",
814 "SampleAfterValue": "100007",
815 "CounterHTOff": "0,1,2,3,4,5,6,7"
816 },
817 {
818 "EventCode": "0xC4",
819 "UMask": "0x0",
820 "BriefDescription": "All (macro) branch instructions retired.",
821 "Counter": "0,1,2,3",
822 "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
823 "PublicDescription": "This event counts all (macro) branch instructions retired.",
824 "SampleAfterValue": "400009",
825 "CounterHTOff": "0,1,2,3,4,5,6,7"
826 },
827 {
828 "EventCode": "0xC4",
829 "UMask": "0x8",
830 "BriefDescription": "Return instructions retired.",
831 "PEBS": "1",
832 "Counter": "0,1,2,3",
833 "EventName": "BR_INST_RETIRED.NEAR_RETURN",
834 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts return instructions retired.",
835 "SampleAfterValue": "100007",
836 "CounterHTOff": "0,1,2,3,4,5,6,7"
837 },
838 {
839 "EventCode": "0xC4",
840 "UMask": "0x10",
841 "BriefDescription": "Not taken branch instructions retired.",
842 "Counter": "0,1,2,3",
843 "EventName": "BR_INST_RETIRED.NOT_TAKEN",
844 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts not taken branch instructions retired.",
845 "SampleAfterValue": "400009",
846 "CounterHTOff": "0,1,2,3,4,5,6,7"
847 },
848 {
849 "EventCode": "0xC4",
850 "UMask": "0x20",
851 "BriefDescription": "Taken branch instructions retired.",
852 "PEBS": "1",
853 "Counter": "0,1,2,3",
854 "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
855 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts taken branch instructions retired.",
856 "SampleAfterValue": "400009",
857 "CounterHTOff": "0,1,2,3,4,5,6,7"
858 },
859 {
860 "EventCode": "0xC4",
861 "UMask": "0x40",
862 "BriefDescription": "Far branch instructions retired.",
863 "Counter": "0,1,2,3",
864 "EventName": "BR_INST_RETIRED.FAR_BRANCH",
865 "Errata": "BDW98",
866 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts far branch instructions retired.",
867 "SampleAfterValue": "100007",
868 "CounterHTOff": "0,1,2,3,4,5,6,7"
869 },
870 {
871 "EventCode": "0xC4",
872 "UMask": "0x4",
873 "BriefDescription": "All (macro) branch instructions retired. (Precise Event - PEBS)",
874 "PEBS": "2",
875 "Counter": "0,1,2,3",895 "Counter": "0,1,2,3",
876 "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",896 "EventName": "CYCLE_ACTIVITY.STALLS_L2_PENDING",
877 "Errata": "BDW98",897 "CounterMask": "5",
878 "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",898 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand* load request missing the L2 cache.(as a footprint) * includes also L1 HW prefetch requests that may or may not be required by demands.",
879 "SampleAfterValue": "400009",899 "SampleAfterValue": "2000003",
880 "CounterHTOff": "0,1,2,3"900 "CounterHTOff": "0,1,2,3"
881 },901 },
882 {902 {
883 "EventCode": "0xC5",903 "EventCode": "0xA3",
884 "UMask": "0x1",904 "UMask": "0x5",
885 "BriefDescription": "Mispredicted conditional branch instructions retired.",905 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
886 "PEBS": "1",
887 "Counter": "0,1,2,3",
888 "EventName": "BR_MISP_RETIRED.CONDITIONAL",
889 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts mispredicted conditional branch instructions retired.",
890 "SampleAfterValue": "400009",
891 "CounterHTOff": "0,1,2,3,4,5,6,7"
892 },
893 {
894 "EventCode": "0xC5",
895 "UMask": "0x0",
896 "BriefDescription": "All mispredicted macro branch instructions retired.",
897 "Counter": "0,1,2,3",
898 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
899 "PublicDescription": "This event counts all mispredicted macro branch instructions retired.",
900 "SampleAfterValue": "400009",
901 "CounterHTOff": "0,1,2,3,4,5,6,7"
902 },
903 {
904 "EventCode": "0xC5",
905 "UMask": "0x8",
906 "BriefDescription": "This event counts the number of mispredicted ret instructions retired. Non PEBS",
907 "PEBS": "1",
908 "Counter": "0,1,2,3",906 "Counter": "0,1,2,3",
909 "EventName": "BR_MISP_RETIRED.RET",907 "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
910 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts mispredicted return instructions retired.",908 "CounterMask": "5",
911 "SampleAfterValue": "100007",909 "SampleAfterValue": "2000003",
912 "CounterHTOff": "0,1,2,3,4,5,6,7"910 "CounterHTOff": "0,1,2,3,4,5,6,7"
913 },911 },
914 {912 {
915 "EventCode": "0xC5",913 "EventCode": "0xA3",
916 "UMask": "0x4",914 "UMask": "0x6",
917 "BriefDescription": "Mispredicted macro branch instructions retired. (Precise Event - PEBS)",915 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
918 "PEBS": "2",
919 "Counter": "0,1,2,3",916 "Counter": "0,1,2,3",
920 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",917 "EventName": "CYCLE_ACTIVITY.STALLS_LDM_PENDING",
921 "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",918 "CounterMask": "6",
922 "SampleAfterValue": "400009",919 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request.",
920 "SampleAfterValue": "2000003",
923 "CounterHTOff": "0,1,2,3"921 "CounterHTOff": "0,1,2,3"
924 },922 },
925 {923 {
926 "EventCode": "0xCC",924 "EventCode": "0xA3",
927 "UMask": "0x20",925 "UMask": "0x6",
928 "BriefDescription": "Count cases of saving new LBR",926 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
929 "Counter": "0,1,2,3",927 "Counter": "0,1,2,3",
930 "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",928 "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
931 "PublicDescription": "This event counts cases of saving new LBR records by hardware. This assumes proper enabling of LBRs and takes into account LBR filtering done by the LBR_SELECT register.",929 "CounterMask": "6",
932 "SampleAfterValue": "2000003",930 "SampleAfterValue": "2000003",
933 "CounterHTOff": "0,1,2,3,4,5,6,7"931 "CounterHTOff": "0,1,2,3,4,5,6,7"
934 },932 },
935 {933 {
936 "EventCode": "0x3C",934 "EventCode": "0xA3",
937 "UMask": "0x0",935 "UMask": "0x8",
938 "BriefDescription": "Thread cycles when thread is not in halt state",936 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
939 "Counter": "0,1,2,3",937 "Counter": "2",
940 "EventName": "CPU_CLK_UNHALTED.THREAD_P",938 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_PENDING",
941 "PublicDescription": "This is an architectural event that counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The core frequency may change from time to time due to power or thermal throttling. For this reason, this event may have a changing ratio with regards to wall clock time.",939 "CounterMask": "8",
940 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request missing the L1 data cache.",
942 "SampleAfterValue": "2000003",941 "SampleAfterValue": "2000003",
943 "CounterHTOff": "0,1,2,3,4,5,6,7"942 "CounterHTOff": "2"
944 },
945 {
946 "EventCode": "0x89",
947 "UMask": "0xa0",
948 "BriefDescription": "Taken speculative and retired mispredicted indirect calls.",
949 "Counter": "0,1,2,3",
950 "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_NEAR_CALL",
951 "SampleAfterValue": "200003",
952 "CounterHTOff": "0,1,2,3,4,5,6,7"
953 },943 },
954 {944 {
955 "EventCode": "0xA1",945 "EventCode": "0xA3",
956 "UMask": "0x1",946 "UMask": "0x8",
957 "BriefDescription": "Cycles per core when uops are exectuted in port 0.",947 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
958 "Counter": "0,1,2,3",948 "Counter": "2",
959 "EventName": "UOPS_EXECUTED_PORT.PORT_0_CORE",949 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
960 "AnyThread": "1",950 "CounterMask": "8",
961 "SampleAfterValue": "2000003",951 "SampleAfterValue": "2000003",
962 "CounterHTOff": "0,1,2,3,4,5,6,7"952 "CounterHTOff": "2"
963 },953 },
964 {954 {
965 "EventCode": "0xA1",955 "EventCode": "0xA3",
966 "UMask": "0x2",956 "UMask": "0xc",
967 "BriefDescription": "Cycles per core when uops are exectuted in port 1.",957 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
968 "Counter": "0,1,2,3",958 "Counter": "2",
969 "EventName": "UOPS_EXECUTED_PORT.PORT_1_CORE",959 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_PENDING",
970 "AnyThread": "1",960 "CounterMask": "12",
961 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request missing the L1 data cache.",
971 "SampleAfterValue": "2000003",962 "SampleAfterValue": "2000003",
972 "CounterHTOff": "0,1,2,3,4,5,6,7"963 "CounterHTOff": "2"
973 },964 },
974 {965 {
975 "EventCode": "0xA1",966 "EventCode": "0xA3",
976 "UMask": "0x4",967 "UMask": "0xc",
977 "BriefDescription": "Cycles per core when uops are dispatched to port 2.",968 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
978 "Counter": "0,1,2,3",969 "Counter": "2",
979 "EventName": "UOPS_EXECUTED_PORT.PORT_2_CORE",970 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
980 "AnyThread": "1",971 "CounterMask": "12",
981 "SampleAfterValue": "2000003",972 "SampleAfterValue": "2000003",
982 "CounterHTOff": "0,1,2,3,4,5,6,7"973 "CounterHTOff": "2"
983 },974 },
984 {975 {
985 "EventCode": "0xA1",976 "EventCode": "0xA8",
986 "UMask": "0x8",977 "UMask": "0x1",
987 "BriefDescription": "Cycles per core when uops are dispatched to port 3.",978 "BriefDescription": "Number of Uops delivered by the LSD.",
988 "Counter": "0,1,2,3",979 "Counter": "0,1,2,3",
989 "EventName": "UOPS_EXECUTED_PORT.PORT_3_CORE",980 "EventName": "LSD.UOPS",
990 "AnyThread": "1",
991 "SampleAfterValue": "2000003",981 "SampleAfterValue": "2000003",
992 "CounterHTOff": "0,1,2,3,4,5,6,7"982 "CounterHTOff": "0,1,2,3,4,5,6,7"
993 },983 },
994 {984 {
995 "EventCode": "0xA1",985 "EventCode": "0xA8",
996 "UMask": "0x10",986 "UMask": "0x1",
997 "BriefDescription": "Cycles per core when uops are exectuted in port 4.",987 "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",
998 "Counter": "0,1,2,3",988 "Counter": "0,1,2,3",
999 "EventName": "UOPS_EXECUTED_PORT.PORT_4_CORE",989 "EventName": "LSD.CYCLES_4_UOPS",
1000 "AnyThread": "1",990 "CounterMask": "4",
1001 "SampleAfterValue": "2000003",991 "SampleAfterValue": "2000003",
1002 "CounterHTOff": "0,1,2,3,4,5,6,7"992 "CounterHTOff": "0,1,2,3,4,5,6,7"
1003 },993 },
1004 {994 {
1005 "EventCode": "0xA1",995 "EventCode": "0xA8",
1006 "UMask": "0x20",996 "UMask": "0x1",
1007 "BriefDescription": "Cycles per core when uops are exectuted in port 5.",997 "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
1008 "Counter": "0,1,2,3",998 "Counter": "0,1,2,3",
1009 "EventName": "UOPS_EXECUTED_PORT.PORT_5_CORE",999 "EventName": "LSD.CYCLES_ACTIVE",
1010 "AnyThread": "1",1000 "CounterMask": "1",
1011 "SampleAfterValue": "2000003",1001 "SampleAfterValue": "2000003",
1012 "CounterHTOff": "0,1,2,3,4,5,6,7"1002 "CounterHTOff": "0,1,2,3,4,5,6,7"
1013 },1003 },
1014 {1004 {
1015 "EventCode": "0xA1",1005 "EventCode": "0xB1",
1016 "UMask": "0x40",1006 "UMask": "0x1",
1017 "BriefDescription": "Cycles per core when uops are exectuted in port 6.",1007 "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
1018 "Counter": "0,1,2,3",1008 "Counter": "0,1,2,3",
1019 "EventName": "UOPS_EXECUTED_PORT.PORT_6_CORE",1009 "EventName": "UOPS_EXECUTED.THREAD",
1020 "AnyThread": "1",1010 "PublicDescription": "Number of uops to be executed per-thread each cycle.",
1021 "SampleAfterValue": "2000003",1011 "SampleAfterValue": "2000003",
1022 "CounterHTOff": "0,1,2,3,4,5,6,7"1012 "CounterHTOff": "0,1,2,3,4,5,6,7"
1023 },1013 },
1024 {1014 {
1025 "EventCode": "0xA1",1015 "Invert": "1",
1026 "UMask": "0x80",1016 "EventCode": "0xB1",
1027 "BriefDescription": "Cycles per core when uops are dispatched to port 7.",1017 "UMask": "0x1",
1018 "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
1028 "Counter": "0,1,2,3",1019 "Counter": "0,1,2,3",
1029 "EventName": "UOPS_EXECUTED_PORT.PORT_7_CORE",1020 "EventName": "UOPS_EXECUTED.STALL_CYCLES",
1030 "AnyThread": "1",1021 "CounterMask": "1",
1022 "PublicDescription": "This event counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
1031 "SampleAfterValue": "2000003",1023 "SampleAfterValue": "2000003",
1032 "CounterHTOff": "0,1,2,3,4,5,6,7"1024 "CounterHTOff": "0,1,2,3"
1033 },
1034 {
1035 "EventCode": "0xC5",
1036 "UMask": "0x20",
1037 "BriefDescription": "number of near branch instructions retired that were mispredicted and taken.",
1038 "PEBS": "1",
1039 "Counter": "0,1,2,3",
1040 "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
1041 "PublicDescription": "Number of near branch instructions retired that were mispredicted and taken.",
1042 "SampleAfterValue": "400009",
1043 "CounterHTOff": "0,1,2,3,4,5,6,7"
1044 },1025 },
1045 {1026 {
1046 "EventCode": "0xB1",1027 "EventCode": "0xB1",
@@ -1083,335 +1064,364 @@ · 36 unmodified lines
1083 "CounterHTOff": "0,1,2,3"1064 "CounterHTOff": "0,1,2,3"
1084 },1065 },
1085 {1066 {
1086 "EventCode": "0xe6",1067 "EventCode": "0xB1",
1087 "UMask": "0x1f",1068 "UMask": "0x2",
1088 "BriefDescription": "Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end.",1069 "BriefDescription": "Number of uops executed on the core.",
1089 "Counter": "0,1,2,3",1070 "Counter": "0,1,2,3",
1090 "EventName": "BACLEARS.ANY",1071 "EventName": "UOPS_EXECUTED.CORE",
1091 "SampleAfterValue": "100003",1072 "PublicDescription": "Number of uops executed from any thread.",
1092 "CounterHTOff": "0,1,2,3,4,5,6,7"
1093 },
1094 {
1095 "EventCode": "0xA3",
1096 "UMask": "0x8",
1097 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
1098 "Counter": "2",
1099 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
1100 "CounterMask": "8",
1101 "SampleAfterValue": "2000003",1073 "SampleAfterValue": "2000003",
1102 "CounterHTOff": "2"1074 "CounterHTOff": "0,1,2,3,4,5,6,7"
1103 },1075 },
1104 {1076 {
1105 "EventCode": "0xA3",1077 "EventCode": "0xb1",
1106 "UMask": "0x1",1078 "UMask": "0x2",
1107 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",1079 "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
1108 "Counter": "0,1,2,3",1080 "Counter": "0,1,2,3",
1109 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",1081 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
1110 "CounterMask": "1",1082 "CounterMask": "1",
1111 "SampleAfterValue": "2000003",1083 "SampleAfterValue": "2000003",
1112 "CounterHTOff": "0,1,2,3,4,5,6,7"1084 "CounterHTOff": "0,1,2,3,4,5,6,7"
1113 },1085 },
1114 {1086 {
1115 "EventCode": "0xA3",1087 "EventCode": "0xb1",
1116 "UMask": "0x2",1088 "UMask": "0x2",
1117 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",1089 "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
1118 "Counter": "0,1,2,3",1090 "Counter": "0,1,2,3",
1119 "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",1091 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
1120 "CounterMask": "2",1092 "CounterMask": "2",
1121 "SampleAfterValue": "2000003",1093 "SampleAfterValue": "2000003",
1122 "CounterHTOff": "0,1,2,3"1094 "CounterHTOff": "0,1,2,3,4,5,6,7"
1123 },1095 },
1124 {1096 {
1125 "EventCode": "0xA3",1097 "EventCode": "0xb1",
1126 "UMask": "0x4",1098 "UMask": "0x2",
1127 "BriefDescription": "Total execution stalls.",1099 "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
1128 "Counter": "0,1,2,3",1100 "Counter": "0,1,2,3",
1129 "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",1101 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
1130 "CounterMask": "4",1102 "CounterMask": "3",
1131 "SampleAfterValue": "2000003",1103 "SampleAfterValue": "2000003",
1132 "CounterHTOff": "0,1,2,3,4,5,6,7"1104 "CounterHTOff": "0,1,2,3,4,5,6,7"
1133 },1105 },
1134 {1106 {
1135 "EventCode": "0xA3",1107 "EventCode": "0xb1",
1136 "UMask": "0xc",1108 "UMask": "0x2",
1137 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",1109 "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
1138 "Counter": "2",1110 "Counter": "0,1,2,3",
1139 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",1111 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
1140 "CounterMask": "12",1112 "CounterMask": "4",
1141 "SampleAfterValue": "2000003",1113 "SampleAfterValue": "2000003",
1142 "CounterHTOff": "2"1114 "CounterHTOff": "0,1,2,3,4,5,6,7"
1143 },1115 },
1144 {1116 {
1145 "EventCode": "0xA3",1117 "Invert": "1",
1146 "UMask": "0x5",1118 "EventCode": "0xb1",
1147 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",1119 "UMask": "0x2",
1120 "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",
1148 "Counter": "0,1,2,3",1121 "Counter": "0,1,2,3",
1149 "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",1122 "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",
1150 "CounterMask": "5",
1151 "SampleAfterValue": "2000003",1123 "SampleAfterValue": "2000003",
1152 "CounterHTOff": "0,1,2,3,4,5,6,7"1124 "CounterHTOff": "0,1,2,3,4,5,6,7"
1153 },1125 },
1154 {1126 {
1155 "EventCode": "0xA3",1127 "EventCode": "0xC0",
1156 "UMask": "0x6",1128 "UMask": "0x0",
1157 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",1129 "BriefDescription": "Number of instructions retired. General Counter - architectural event",
1158 "Counter": "0,1,2,3",1130 "Counter": "0,1,2,3",
1159 "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",1131 "EventName": "INST_RETIRED.ANY_P",
1160 "CounterMask": "6",1132 "Errata": "BDM61",
1133 "PublicDescription": "This event counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
1161 "SampleAfterValue": "2000003",1134 "SampleAfterValue": "2000003",
1162 "CounterHTOff": "0,1,2,3,4,5,6,7"1135 "CounterHTOff": "0,1,2,3,4,5,6,7"
1163 },1136 },
1164 {1137 {
1165 "EdgeDetect": "1",1138 "EventCode": "0xC0",
1166 "EventCode": "0xC3",
1167 "UMask": "0x1",1139 "UMask": "0x1",
1168 "BriefDescription": "Number of machine clears (nukes) of any type.",1140 "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",
1141 "PEBS": "2",
1142 "Counter": "1",
1143 "EventName": "INST_RETIRED.PREC_DIST",
1144 "Errata": "BDM11, BDM55",
1145 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts instructions retired.",
1146 "SampleAfterValue": "2000003",
1147 "CounterHTOff": "1"
1148 },
1149 {
1150 "EventCode": "0xC0",
1151 "UMask": "0x2",
1152 "BriefDescription": "FP operations retired. X87 FP operations that have no exceptions:",
1169 "Counter": "0,1,2,3",1153 "Counter": "0,1,2,3",
1170 "EventName": "MACHINE_CLEARS.COUNT",1154 "EventName": "INST_RETIRED.X87",
1171 "CounterMask": "1",1155 "PublicDescription": "This event counts FP operations retired. For X87 FP operations that have no exceptions counting also includes flows that have several X87, or flows that use X87 uops in the exception handling.",
1172 "SampleAfterValue": "100003",1156 "SampleAfterValue": "2000003",
1173 "CounterHTOff": "0,1,2,3,4,5,6,7"1157 "CounterHTOff": "0,1,2,3,4,5,6,7"
1174 },1158 },
1175 {1159 {
1176 "EventCode": "0xA8",1160 "EventCode": "0xC1",
1177 "UMask": "0x1",1161 "UMask": "0x40",
1178 "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",1162 "BriefDescription": "Number of times any microcode assist is invoked by HW upon uop writeback.",
1179 "Counter": "0,1,2,3",1163 "Counter": "0,1,2,3",
1180 "EventName": "LSD.CYCLES_4_UOPS",1164 "EventName": "OTHER_ASSISTS.ANY_WB_ASSIST",
1181 "CounterMask": "4",1165 "SampleAfterValue": "100003",
1182 "SampleAfterValue": "2000003",
1183 "CounterHTOff": "0,1,2,3,4,5,6,7"1166 "CounterHTOff": "0,1,2,3,4,5,6,7"
1184 },1167 },
1185 {1168 {
1186 "EdgeDetect": "1",1169 "EventCode": "0xC2",
1187 "Invert": "1",
1188 "EventCode": "0x5E",
1189 "UMask": "0x1",1170 "UMask": "0x1",
1190 "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",1171 "BriefDescription": "Actually retired uops. (Precise Event - PEBS)",
1172 "Data_LA": "1",
1173 "PEBS": "1",
1191 "Counter": "0,1,2,3",1174 "Counter": "0,1,2,3",
1192 "EventName": "RS_EVENTS.EMPTY_END",1175 "EventName": "UOPS_RETIRED.ALL",
1193 "CounterMask": "1",1176 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts all actually retired uops. Counting increments by two for micro-fused uops, and by one for macro-fused and other uops. Maximal increment value for one cycle is eight.",
1194 "SampleAfterValue": "200003",1177 "SampleAfterValue": "2000003",
1195 "CounterHTOff": "0,1,2,3,4,5,6,7"1178 "CounterHTOff": "0,1,2,3,4,5,6,7"
1196 },1179 },
1197 {1180 {
1198 "EventCode": "0xA8",1181 "Invert": "1",
1182 "EventCode": "0xC2",
1199 "UMask": "0x1",1183 "UMask": "0x1",
1200 "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",1184 "BriefDescription": "Cycles without actually retired uops.",
1201 "Counter": "0,1,2,3",1185 "Counter": "0,1,2,3",
1202 "EventName": "LSD.CYCLES_ACTIVE",1186 "EventName": "UOPS_RETIRED.STALL_CYCLES",
1203 "CounterMask": "1",1187 "CounterMask": "1",
1188 "PublicDescription": "This event counts cycles without actually retired uops.",
1204 "SampleAfterValue": "2000003",1189 "SampleAfterValue": "2000003",
1205 "CounterHTOff": "0,1,2,3,4,5,6,7"1190 "CounterHTOff": "0,1,2,3"
1206 },1191 },
1207 {1192 {
1208 "EventCode": "0xA1",1193 "Invert": "1",
1194 "EventCode": "0xC2",
1209 "UMask": "0x1",1195 "UMask": "0x1",
1210 "BriefDescription": "Cycles per thread when uops are executed in port 0",1196 "BriefDescription": "Cycles with less than 10 actually retired uops.",
1211 "Counter": "0,1,2,3",1197 "Counter": "0,1,2,3",
1212 "EventName": "UOPS_EXECUTED_PORT.PORT_0",1198 "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
1213 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",1199 "CounterMask": "10",
1200 "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
1214 "SampleAfterValue": "2000003",1201 "SampleAfterValue": "2000003",
1215 "CounterHTOff": "0,1,2,3,4,5,6,7"1202 "CounterHTOff": "0,1,2,3"
1216 },1203 },
1217 {1204 {
1218 "EventCode": "0xA1",1205 "EventCode": "0xC2",
1219 "UMask": "0x2",1206 "UMask": "0x2",
1220 "BriefDescription": "Cycles per thread when uops are executed in port 1",1207 "BriefDescription": "Retirement slots used. (Precise Event - PEBS)",
1208 "PEBS": "1",
1221 "Counter": "0,1,2,3",1209 "Counter": "0,1,2,3",
1222 "EventName": "UOPS_EXECUTED_PORT.PORT_1",1210 "EventName": "UOPS_RETIRED.RETIRE_SLOTS",
1223 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",1211 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts the number of retirement slots used.",
1224 "SampleAfterValue": "2000003",1212 "SampleAfterValue": "2000003",
1225 "CounterHTOff": "0,1,2,3,4,5,6,7"1213 "CounterHTOff": "0,1,2,3,4,5,6,7"
1226 },1214 },
1227 {1215 {
1228 "EventCode": "0xA1",1216 "EventCode": "0xC3",
1229 "UMask": "0x4",1217 "UMask": "0x1",
1230 "BriefDescription": "Cycles per thread when uops are executed in port 2",1218 "BriefDescription": "Cycles there was a Nuke. Account for both thread-specific and All Thread Nukes.",
1231 "Counter": "0,1,2,3",1219 "Counter": "0,1,2,3",
1232 "EventName": "UOPS_EXECUTED_PORT.PORT_2",1220 "EventName": "MACHINE_CLEARS.CYCLES",
1233 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",1221 "PublicDescription": "This event counts both thread-specific (TS) and all-thread (AT) nukes.",
1234 "SampleAfterValue": "2000003",1222 "SampleAfterValue": "2000003",
1235 "CounterHTOff": "0,1,2,3,4,5,6,7"1223 "CounterHTOff": "0,1,2,3,4,5,6,7"
1236 },1224 },
1237 {1225 {
1238 "EventCode": "0xA1",1226 "EdgeDetect": "1",
1239 "UMask": "0x8",1227 "EventCode": "0xC3",
1240 "BriefDescription": "Cycles per thread when uops are executed in port 3",1228 "UMask": "0x1",
1229 "BriefDescription": "Number of machine clears (nukes) of any type.",
1241 "Counter": "0,1,2,3",1230 "Counter": "0,1,2,3",
1242 "EventName": "UOPS_EXECUTED_PORT.PORT_3",1231 "EventName": "MACHINE_CLEARS.COUNT",
1243 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",1232 "CounterMask": "1",
1244 "SampleAfterValue": "2000003",1233 "SampleAfterValue": "100003",
1245 "CounterHTOff": "0,1,2,3,4,5,6,7"1234 "CounterHTOff": "0,1,2,3,4,5,6,7"
1246 },1235 },
1247 {1236 {
1248 "EventCode": "0xA1",1237 "EventCode": "0xC3",
1249 "UMask": "0x10",1238 "UMask": "0x4",
1250 "BriefDescription": "Cycles per thread when uops are executed in port 4",1239 "BriefDescription": "Self-modifying code (SMC) detected.",
1251 "Counter": "0,1,2,3",1240 "Counter": "0,1,2,3",
1252 "EventName": "UOPS_EXECUTED_PORT.PORT_4",1241 "EventName": "MACHINE_CLEARS.SMC",
1253 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",1242 "PublicDescription": "This event counts self-modifying code (SMC) detected, which causes a machine clear.",
1254 "SampleAfterValue": "2000003",1243 "SampleAfterValue": "100003",
1255 "CounterHTOff": "0,1,2,3,4,5,6,7"1244 "CounterHTOff": "0,1,2,3,4,5,6,7"
1256 },1245 },
1257 {1246 {
1258 "EventCode": "0xA1",1247 "EventCode": "0xC3",
1259 "UMask": "0x20",1248 "UMask": "0x20",
1260 "BriefDescription": "Cycles per thread when uops are executed in port 5",1249 "BriefDescription": "This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0.",
1261 "Counter": "0,1,2,3",1250 "Counter": "0,1,2,3",
1262 "EventName": "UOPS_EXECUTED_PORT.PORT_5",1251 "EventName": "MACHINE_CLEARS.MASKMOV",
1263 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",1252 "PublicDescription": "Maskmov false fault - counts number of time ucode passes through Maskmov flow due to instruction's mask being 0 while the flow was completed without raising a fault.",
1264 "SampleAfterValue": "2000003",1253 "SampleAfterValue": "100003",
1265 "CounterHTOff": "0,1,2,3,4,5,6,7"1254 "CounterHTOff": "0,1,2,3,4,5,6,7"
1266 },1255 },
1267 {1256 {
1268 "EventCode": "0xA1",1257 "EventCode": "0xC4",
1269 "UMask": "0x40",1258 "UMask": "0x0",
1270 "BriefDescription": "Cycles per thread when uops are executed in port 6",1259 "BriefDescription": "All (macro) branch instructions retired.",
1271 "Counter": "0,1,2,3",1260 "Counter": "0,1,2,3",
1272 "EventName": "UOPS_EXECUTED_PORT.PORT_6",1261 "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
1273 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",1262 "PublicDescription": "This event counts all (macro) branch instructions retired.",
1274 "SampleAfterValue": "2000003",1263 "SampleAfterValue": "400009",
1275 "CounterHTOff": "0,1,2,3,4,5,6,7"1264 "CounterHTOff": "0,1,2,3,4,5,6,7"
1276 },1265 },
1277 {1266 {
1278 "EventCode": "0xA1",1267 "EventCode": "0xC4",
1279 "UMask": "0x80",1268 "UMask": "0x1",
1280 "BriefDescription": "Cycles per thread when uops are executed in port 7",1269 "BriefDescription": "Conditional branch instructions retired. (Precise Event - PEBS)",
1270 "PEBS": "1",
1281 "Counter": "0,1,2,3",1271 "Counter": "0,1,2,3",
1282 "EventName": "UOPS_EXECUTED_PORT.PORT_7",1272 "EventName": "BR_INST_RETIRED.CONDITIONAL",
1283 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",1273 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts conditional branch instructions retired.",
1284 "SampleAfterValue": "2000003",1274 "SampleAfterValue": "400009",
1285 "CounterHTOff": "0,1,2,3,4,5,6,7"1275 "CounterHTOff": "0,1,2,3,4,5,6,7"
1286 },1276 },
1287 {1277 {
1288 "EventCode": "0xA0",1278 "EventCode": "0xC4",
1289 "UMask": "0x3",1279 "UMask": "0x2",
1290 "BriefDescription": "Micro-op dispatches cancelled due to insufficient SIMD physical register file read ports",1280 "BriefDescription": "Direct and indirect near call instructions retired. (Precise Event - PEBS)",
1281 "PEBS": "1",
1291 "Counter": "0,1,2,3",1282 "Counter": "0,1,2,3",
1292 "EventName": "UOP_DISPATCHES_CANCELLED.SIMD_PRF",1283 "EventName": "BR_INST_RETIRED.NEAR_CALL",
1293 "PublicDescription": "This event counts the number of micro-operations cancelled after they were dispatched from the scheduler to the execution units when the total number of physical register read ports across all dispatch ports exceeds the read bandwidth of the physical register file. The SIMD_PRF subevent applies to the following instructions: VDPPS, DPPS, VPCMPESTRI, PCMPESTRI, VPCMPESTRM, PCMPESTRM, VFMADD*, VFMADDSUB*, VFMSUB*, VMSUBADD*, VFNMADD*, VFNMSUB*. See the Broadwell Optimization Guide for more information.",1284 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts both direct and indirect near call instructions retired.",
1294 "SampleAfterValue": "2000003",1285 "SampleAfterValue": "100007",
1295 "CounterHTOff": "0,1,2,3"1286 "CounterHTOff": "0,1,2,3,4,5,6,7"
1296 },1287 },
1297 {1288 {
1298 "EventCode": "0x00",1289 "EventCode": "0xC4",
1299 "UMask": "0x2",1290 "UMask": "0x2",
1300 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",1291 "BriefDescription": "Direct and indirect macro near call instructions retired (captured in ring 3). (Precise Event - PEBS)",
1301 "Counter": "Fixed counter 2",1292 "PEBS": "1",
1302 "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",1293 "Counter": "0,1,2,3",
1303 "AnyThread": "1",1294 "EventName": "BR_INST_RETIRED.NEAR_CALL_R3",
1304 "SampleAfterValue": "2000003",1295 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts both direct and indirect macro near call instructions retired (captured in ring 3).",
1305 "CounterHTOff": "Fixed counter 2"1296 "SampleAfterValue": "100007",
1297 "CounterHTOff": "0,1,2,3,4,5,6,7"
1306 },1298 },
1307 {1299 {
1308 "EventCode": "0x3C",1300 "EventCode": "0xC4",
1309 "UMask": "0x0",1301 "UMask": "0x4",
1310 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",1302 "BriefDescription": "All (macro) branch instructions retired. (Precise Event - PEBS)",
1303 "PEBS": "2",
1311 "Counter": "0,1,2,3",1304 "Counter": "0,1,2,3",
1312 "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",1305 "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",
1313 "AnyThread": "1",1306 "Errata": "BDW98",
1314 "SampleAfterValue": "2000003",1307 "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",
1315 "CounterHTOff": "0,1,2,3,4,5,6,7"1308 "SampleAfterValue": "400009",
1309 "CounterHTOff": "0,1,2,3"
1316 },1310 },
1317 {1311 {
1318 "EventCode": "0x3C",1312 "EventCode": "0xC4",
1319 "UMask": "0x1",1313 "UMask": "0x8",
1320 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",1314 "BriefDescription": "Return instructions retired. (Precise Event - PEBS)",
1315 "PEBS": "1",
1321 "Counter": "0,1,2,3",1316 "Counter": "0,1,2,3",
1322 "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",1317 "EventName": "BR_INST_RETIRED.NEAR_RETURN",
1323 "AnyThread": "1",1318 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts return instructions retired.",
1324 "SampleAfterValue": "2000003",1319 "SampleAfterValue": "100007",
1325 "CounterHTOff": "0,1,2,3,4,5,6,7"1320 "CounterHTOff": "0,1,2,3,4,5,6,7"
1326 },1321 },
1327 {1322 {
1328 "EventCode": "0x0D",1323 "EventCode": "0xC4",
1329 "UMask": "0x3",1324 "UMask": "0x10",
1330 "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke).",1325 "BriefDescription": "Not taken branch instructions retired.",
1331 "Counter": "0,1,2,3",1326 "Counter": "0,1,2,3",
1332 "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",1327 "EventName": "BR_INST_RETIRED.NOT_TAKEN",
1333 "AnyThread": "1",1328 "PublicDescription": "This event counts not taken branch instructions retired.",
1334 "CounterMask": "1",1329 "SampleAfterValue": "400009",
1335 "SampleAfterValue": "2000003",
1336 "CounterHTOff": "0,1,2,3,4,5,6,7"1330 "CounterHTOff": "0,1,2,3,4,5,6,7"
1337 },1331 },
1338 {1332 {
1339 "EventCode": "0xb1",1333 "EventCode": "0xC4",
1340 "UMask": "0x2",1334 "UMask": "0x20",
1341 "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",1335 "BriefDescription": "Taken branch instructions retired. (Precise Event - PEBS)",
1336 "PEBS": "1",
1342 "Counter": "0,1,2,3",1337 "Counter": "0,1,2,3",
1343 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",1338 "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
1344 "CounterMask": "1",1339 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts taken branch instructions retired.",
1345 "SampleAfterValue": "2000003",1340 "SampleAfterValue": "400009",
1346 "CounterHTOff": "0,1,2,3,4,5,6,7"1341 "CounterHTOff": "0,1,2,3,4,5,6,7"
1347 },1342 },
1348 {1343 {
1349 "EventCode": "0xb1",1344 "EventCode": "0xC4",
1350 "UMask": "0x2",1345 "UMask": "0x40",
1351 "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",1346 "BriefDescription": "Far branch instructions retired.",
1352 "Counter": "0,1,2,3",1347 "Counter": "0,1,2,3",
1353 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",1348 "EventName": "BR_INST_RETIRED.FAR_BRANCH",
1354 "CounterMask": "2",1349 "Errata": "BDW98",
1355 "SampleAfterValue": "2000003",1350 "PublicDescription": "This event counts far branch instructions retired.",
1351 "SampleAfterValue": "100007",
1356 "CounterHTOff": "0,1,2,3,4,5,6,7"1352 "CounterHTOff": "0,1,2,3,4,5,6,7"
1357 },1353 },
1358 {1354 {
1359 "EventCode": "0xb1",1355 "EventCode": "0xC5",
1360 "UMask": "0x2",1356 "UMask": "0x0",
1361 "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",1357 "BriefDescription": "All mispredicted macro branch instructions retired.",
1362 "Counter": "0,1,2,3",1358 "Counter": "0,1,2,3",
1363 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",1359 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
1364 "CounterMask": "3",1360 "PublicDescription": "This event counts all mispredicted macro branch instructions retired.",
1365 "SampleAfterValue": "2000003",1361 "SampleAfterValue": "400009",
1366 "CounterHTOff": "0,1,2,3,4,5,6,7"1362 "CounterHTOff": "0,1,2,3,4,5,6,7"
1367 },1363 },
1368 {1364 {
1369 "EventCode": "0xb1",1365 "EventCode": "0xC5",
1370 "UMask": "0x2",1366 "UMask": "0x1",
1371 "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",1367 "BriefDescription": "Mispredicted conditional branch instructions retired. (Precise Event - PEBS)",
1368 "PEBS": "1",
1372 "Counter": "0,1,2,3",1369 "Counter": "0,1,2,3",
1373 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",1370 "EventName": "BR_MISP_RETIRED.CONDITIONAL",
1374 "CounterMask": "4",1371 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts mispredicted conditional branch instructions retired.",
1375 "SampleAfterValue": "2000003",1372 "SampleAfterValue": "400009",
1376 "CounterHTOff": "0,1,2,3,4,5,6,7"1373 "CounterHTOff": "0,1,2,3,4,5,6,7"
1377 },1374 },
1378 {1375 {
1379 "Invert": "1",1376 "EventCode": "0xC5",
1380 "EventCode": "0xb1",1377 "UMask": "0x4",
1381 "UMask": "0x2",1378 "BriefDescription": "Mispredicted macro branch instructions retired. (Precise Event - PEBS)",
1382 "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",1379 "PEBS": "2",
1383 "Counter": "0,1,2,3",1380 "Counter": "0,1,2,3",
1384 "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",1381 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",
1385 "SampleAfterValue": "2000003",1382 "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",
1383 "SampleAfterValue": "400009",
1384 "CounterHTOff": "0,1,2,3"
1385 },
1386 {
1387 "EventCode": "0xC5",
1388 "UMask": "0x8",
1389 "BriefDescription": "This event counts the number of mispredicted ret instructions retired.(Precise Event)",
1390 "PEBS": "1",
1391 "Counter": "0,1,2,3",
1392 "EventName": "BR_MISP_RETIRED.RET",
1393 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts mispredicted return instructions retired.",
1394 "SampleAfterValue": "100007",
1386 "CounterHTOff": "0,1,2,3,4,5,6,7"1395 "CounterHTOff": "0,1,2,3,4,5,6,7"
1387 },1396 },
1388 {1397 {
1389 "EventCode": "0x3C",1398 "EventCode": "0xC5",
1390 "UMask": "0x1",1399 "UMask": "0x20",
1391 "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",1400 "BriefDescription": "number of near branch instructions retired that were mispredicted and taken. (Precise Event - PEBS).",
1401 "PEBS": "1",
1392 "Counter": "0,1,2,3",1402 "Counter": "0,1,2,3",
1393 "EventName": "CPU_CLK_UNHALTED.REF_XCLK",1403 "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
1394 "PublicDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate).",1404 "PublicDescription": "Number of near branch instructions retired that were mispredicted and taken. (Precise Event - PEBS).",
1395 "SampleAfterValue": "2000003",1405 "SampleAfterValue": "400009",
1396 "CounterHTOff": "0,1,2,3,4,5,6,7"1406 "CounterHTOff": "0,1,2,3,4,5,6,7"
1397 },1407 },
1398 {1408 {
1399 "EventCode": "0x3C",1409 "EventCode": "0xCC",
1400 "UMask": "0x1",1410 "UMask": "0x20",
1401 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",1411 "BriefDescription": "Count cases of saving new LBR",
1402 "Counter": "0,1,2,3",1412 "Counter": "0,1,2,3",
1403 "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",1413 "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",
1404 "AnyThread": "1",1414 "PublicDescription": "This event counts cases of saving new LBR records by hardware. This assumes proper enabling of LBRs and takes into account LBR filtering done by the LBR_SELECT register.",
1405 "SampleAfterValue": "2000003",1415 "SampleAfterValue": "2000003",
1406 "CounterHTOff": "0,1,2,3,4,5,6,7"1416 "CounterHTOff": "0,1,2,3,4,5,6,7"
1407 },1417 },
1408 {1418 {
1409 "EventCode": "0x3C",1419 "EventCode": "0xe6",
1410 "UMask": "0x2",1420 "UMask": "0x1f",
1411 "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",1421 "BriefDescription": "Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end.",
1412 "Counter": "0,1,2,3",1422 "Counter": "0,1,2,3",
1413 "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",1423 "EventName": "BACLEARS.ANY",
1414 "SampleAfterValue": "2000003",1424 "SampleAfterValue": "100003",
1415 "CounterHTOff": "0,1,2,3,4,5,6,7"1425 "CounterHTOff": "0,1,2,3,4,5,6,7"
1416 }1426 }
1417]1427]
tools/perf/pmu-events/arch/x86/broadwellde/virtual-memory.json+75−75
@@ -43,6 +43,16 @@ · 42 unmodified lines
43 "SampleAfterValue": "2000003",43 "SampleAfterValue": "2000003",
44 "CounterHTOff": "0,1,2,3,4,5,6,7"44 "CounterHTOff": "0,1,2,3,4,5,6,7"
45 },45 },
46 {
47 "EventCode": "0x08",
48 "UMask": "0xe",
49 "BriefDescription": "Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.",
50 "Counter": "0,1,2,3",
51 "EventName": "DTLB_LOAD_MISSES.WALK_COMPLETED",
52 "Errata": "BDM69",
53 "SampleAfterValue": "100003",
54 "CounterHTOff": "0,1,2,3,4,5,6,7"
55 },
46 {56 {
47 "EventCode": "0x08",57 "EventCode": "0x08",
48 "UMask": "0x10",58 "UMask": "0x10",
@@ -72,6 +82,15 @@ · 23 unmodified lines
72 "SampleAfterValue": "2000003",82 "SampleAfterValue": "2000003",
73 "CounterHTOff": "0,1,2,3,4,5,6,7"83 "CounterHTOff": "0,1,2,3,4,5,6,7"
74 },84 },
85 {
86 "EventCode": "0x08",
87 "UMask": "0x60",
88 "BriefDescription": "Load operations that miss the first DTLB level but hit the second and do not cause page walks.",
89 "Counter": "0,1,2,3",
90 "EventName": "DTLB_LOAD_MISSES.STLB_HIT",
91 "SampleAfterValue": "2000003",
92 "CounterHTOff": "0,1,2,3,4,5,6,7"
93 },
75 {94 {
76 "EventCode": "0x49",95 "EventCode": "0x49",
77 "UMask": "0x1",96 "UMask": "0x1",
@@ -116,6 +135,16 @@ · 38 unmodified lines
116 "SampleAfterValue": "100003",135 "SampleAfterValue": "100003",
117 "CounterHTOff": "0,1,2,3,4,5,6,7"136 "CounterHTOff": "0,1,2,3,4,5,6,7"
118 },137 },
138 {
139 "EventCode": "0x49",
140 "UMask": "0xe",
141 "BriefDescription": "Store misses in all DTLB levels that cause completed page walks.",
142 "Counter": "0,1,2,3",
143 "EventName": "DTLB_STORE_MISSES.WALK_COMPLETED",
144 "Errata": "BDM69",
145 "SampleAfterValue": "100003",
146 "CounterHTOff": "0,1,2,3,4,5,6,7"
147 },
119 {148 {
120 "EventCode": "0x49",149 "EventCode": "0x49",
121 "UMask": "0x10",150 "UMask": "0x10",
@@ -145,6 +174,15 @@ · 23 unmodified lines
145 "SampleAfterValue": "100003",174 "SampleAfterValue": "100003",
146 "CounterHTOff": "0,1,2,3,4,5,6,7"175 "CounterHTOff": "0,1,2,3,4,5,6,7"
147 },176 },
177 {
178 "EventCode": "0x49",
179 "UMask": "0x60",
180 "BriefDescription": "Store operations that miss the first TLB level but hit the second and do not cause page walks.",
181 "Counter": "0,1,2,3",
182 "EventName": "DTLB_STORE_MISSES.STLB_HIT",
183 "SampleAfterValue": "100003",
184 "CounterHTOff": "0,1,2,3,4,5,6,7"
185 },
148 {186 {
149 "EventCode": "0x4F",187 "EventCode": "0x4F",
150 "UMask": "0x10",188 "UMask": "0x10",
@@ -199,6 +237,16 @@ · 48 unmodified lines
199 "SampleAfterValue": "100003",237 "SampleAfterValue": "100003",
200 "CounterHTOff": "0,1,2,3,4,5,6,7"238 "CounterHTOff": "0,1,2,3,4,5,6,7"
201 },239 },
240 {
241 "EventCode": "0x85",
242 "UMask": "0xe",
243 "BriefDescription": "Misses in all ITLB levels that cause completed page walks.",
244 "Counter": "0,1,2,3",
245 "EventName": "ITLB_MISSES.WALK_COMPLETED",
246 "Errata": "BDM69",
247 "SampleAfterValue": "100003",
248 "CounterHTOff": "0,1,2,3,4,5,6,7"
249 },
202 {250 {
203 "EventCode": "0x85",251 "EventCode": "0x85",
204 "UMask": "0x10",252 "UMask": "0x10",
@@ -228,6 +276,15 @@ · 23 unmodified lines
228 "SampleAfterValue": "100003",276 "SampleAfterValue": "100003",
229 "CounterHTOff": "0,1,2,3,4,5,6,7"277 "CounterHTOff": "0,1,2,3,4,5,6,7"
230 },278 },
279 {
280 "EventCode": "0x85",
281 "UMask": "0x60",
282 "BriefDescription": "Operations that miss the first ITLB level but hit the second and do not cause any page walks.",
283 "Counter": "0,1,2,3",
284 "EventName": "ITLB_MISSES.STLB_HIT",
285 "SampleAfterValue": "100003",
286 "CounterHTOff": "0,1,2,3,4,5,6,7"
287 },
231 {288 {
232 "EventCode": "0xAE",289 "EventCode": "0xAE",
233 "UMask": "0x1",290 "UMask": "0x1",
@@ -250,60 +307,60 @@ · 16 unmodified lines
250 },307 },
251 {308 {
252 "EventCode": "0xBC",309 "EventCode": "0xBC",
253 "UMask": "0x21",310 "UMask": "0x12",
254 "BriefDescription": "Number of ITLB page walker hits in the L1+FB.",311 "BriefDescription": "Number of DTLB page walker hits in the L2.",
255 "Counter": "0,1,2,3",312 "Counter": "0,1,2,3",
256 "EventName": "PAGE_WALKER_LOADS.ITLB_L1",313 "EventName": "PAGE_WALKER_LOADS.DTLB_L2",
257 "Errata": "BDM69, BDM98",314 "Errata": "BDM69, BDM98",
258 "SampleAfterValue": "2000003",315 "SampleAfterValue": "2000003",
259 "CounterHTOff": "0,1,2,3"316 "CounterHTOff": "0,1,2,3"
260 },317 },
261 {318 {
262 "EventCode": "0xBC",319 "EventCode": "0xBC",
263 "UMask": "0x12",320 "UMask": "0x14",
264 "BriefDescription": "Number of DTLB page walker hits in the L2.",321 "BriefDescription": "Number of DTLB page walker hits in the L3 + XSNP.",
265 "Counter": "0,1,2,3",322 "Counter": "0,1,2,3",
266 "EventName": "PAGE_WALKER_LOADS.DTLB_L2",323 "EventName": "PAGE_WALKER_LOADS.DTLB_L3",
267 "Errata": "BDM69, BDM98",324 "Errata": "BDM69, BDM98",
268 "SampleAfterValue": "2000003",325 "SampleAfterValue": "2000003",
269 "CounterHTOff": "0,1,2,3"326 "CounterHTOff": "0,1,2,3"
270 },327 },
271 {328 {
272 "EventCode": "0xBC",329 "EventCode": "0xBC",
273 "UMask": "0x22",330 "UMask": "0x18",
274 "BriefDescription": "Number of ITLB page walker hits in the L2.",331 "BriefDescription": "Number of DTLB page walker hits in Memory.",
275 "Counter": "0,1,2,3",332 "Counter": "0,1,2,3",
276 "EventName": "PAGE_WALKER_LOADS.ITLB_L2",333 "EventName": "PAGE_WALKER_LOADS.DTLB_MEMORY",
277 "Errata": "BDM69, BDM98",334 "Errata": "BDM69, BDM98",
278 "SampleAfterValue": "2000003",335 "SampleAfterValue": "2000003",
279 "CounterHTOff": "0,1,2,3"336 "CounterHTOff": "0,1,2,3"
280 },337 },
281 {338 {
282 "EventCode": "0xBC",339 "EventCode": "0xBC",
283 "UMask": "0x14",340 "UMask": "0x21",
284 "BriefDescription": "Number of DTLB page walker hits in the L3 + XSNP.",341 "BriefDescription": "Number of ITLB page walker hits in the L1+FB.",
285 "Counter": "0,1,2,3",342 "Counter": "0,1,2,3",
286 "EventName": "PAGE_WALKER_LOADS.DTLB_L3",343 "EventName": "PAGE_WALKER_LOADS.ITLB_L1",
287 "Errata": "BDM69, BDM98",344 "Errata": "BDM69, BDM98",
288 "SampleAfterValue": "2000003",345 "SampleAfterValue": "2000003",
289 "CounterHTOff": "0,1,2,3"346 "CounterHTOff": "0,1,2,3"
290 },347 },
291 {348 {
292 "EventCode": "0xBC",349 "EventCode": "0xBC",
293 "UMask": "0x24",350 "UMask": "0x22",
294 "BriefDescription": "Number of ITLB page walker hits in the L3 + XSNP.",351 "BriefDescription": "Number of ITLB page walker hits in the L2.",
295 "Counter": "0,1,2,3",352 "Counter": "0,1,2,3",
296 "EventName": "PAGE_WALKER_LOADS.ITLB_L3",353 "EventName": "PAGE_WALKER_LOADS.ITLB_L2",
297 "Errata": "BDM69, BDM98",354 "Errata": "BDM69, BDM98",
298 "SampleAfterValue": "2000003",355 "SampleAfterValue": "2000003",
299 "CounterHTOff": "0,1,2,3"356 "CounterHTOff": "0,1,2,3"
300 },357 },
301 {358 {
302 "EventCode": "0xBC",359 "EventCode": "0xBC",
303 "UMask": "0x18",360 "UMask": "0x24",
304 "BriefDescription": "Number of DTLB page walker hits in Memory.",361 "BriefDescription": "Number of ITLB page walker hits in the L3 + XSNP.",
305 "Counter": "0,1,2,3",362 "Counter": "0,1,2,3",
306 "EventName": "PAGE_WALKER_LOADS.DTLB_MEMORY",363 "EventName": "PAGE_WALKER_LOADS.ITLB_L3",
307 "Errata": "BDM69, BDM98",364 "Errata": "BDM69, BDM98",
308 "SampleAfterValue": "2000003",365 "SampleAfterValue": "2000003",
309 "CounterHTOff": "0,1,2,3"366 "CounterHTOff": "0,1,2,3"
@@ -327,62 +384,5 @@ · 17 unmodified lines
327 "PublicDescription": "This event counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3 write, and so on).",384 "PublicDescription": "This event counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3 write, and so on).",
328 "SampleAfterValue": "100007",385 "SampleAfterValue": "100007",
329 "CounterHTOff": "0,1,2,3,4,5,6,7"386 "CounterHTOff": "0,1,2,3,4,5,6,7"
330 },
331 {
332 "EventCode": "0x08",
333 "UMask": "0xe",
334 "BriefDescription": "Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.",
335 "Counter": "0,1,2,3",
336 "EventName": "DTLB_LOAD_MISSES.WALK_COMPLETED",
337 "Errata": "BDM69",
338 "SampleAfterValue": "100003",
339 "CounterHTOff": "0,1,2,3,4,5,6,7"
340 },
341 {
342 "EventCode": "0x08",
343 "UMask": "0x60",
344 "BriefDescription": "Load operations that miss the first DTLB level but hit the second and do not cause page walks.",
345 "Counter": "0,1,2,3",
346 "EventName": "DTLB_LOAD_MISSES.STLB_HIT",
347 "SampleAfterValue": "2000003",
348 "CounterHTOff": "0,1,2,3,4,5,6,7"
349 },
350 {
351 "EventCode": "0x49",
352 "UMask": "0xe",
353 "BriefDescription": "Store misses in all DTLB levels that cause completed page walks.",
354 "Counter": "0,1,2,3",
355 "EventName": "DTLB_STORE_MISSES.WALK_COMPLETED",
356 "Errata": "BDM69",
357 "SampleAfterValue": "100003",
358 "CounterHTOff": "0,1,2,3,4,5,6,7"
359 },
360 {
361 "EventCode": "0x49",
362 "UMask": "0x60",
363 "BriefDescription": "Store operations that miss the first TLB level but hit the second and do not cause page walks.",
364 "Counter": "0,1,2,3",
365 "EventName": "DTLB_STORE_MISSES.STLB_HIT",
366 "SampleAfterValue": "100003",
367 "CounterHTOff": "0,1,2,3,4,5,6,7"
368 },
369 {
370 "EventCode": "0x85",
371 "UMask": "0xe",
372 "BriefDescription": "Misses in all ITLB levels that cause completed page walks.",
373 "Counter": "0,1,2,3",
374 "EventName": "ITLB_MISSES.WALK_COMPLETED",
375 "Errata": "BDM69",
376 "SampleAfterValue": "100003",
377 "CounterHTOff": "0,1,2,3,4,5,6,7"
378 },
379 {
380 "EventCode": "0x85",
381 "UMask": "0x60",
382 "BriefDescription": "Operations that miss the first ITLB level but hit the second and do not cause any page walks.",
383 "Counter": "0,1,2,3",
384 "EventName": "ITLB_MISSES.STLB_HIT",
385 "SampleAfterValue": "100003",
386 "CounterHTOff": "0,1,2,3,4,5,6,7"
387 }387 }
388]388]
tools/perf/pmu-events/arch/x86/broadwellx/cache.json+203−180
@@ -11,11 +11,28 @@ · 10 unmodified lines
11 },11 },
12 {12 {
13 "EventCode": "0x24",13 "EventCode": "0x24",
14 "UMask": "0x41",14 "UMask": "0x22",
15 "BriefDescription": "Demand Data Read requests that hit L2 cache",15 "BriefDescription": "RFO requests that miss L2 cache.",
16 "Counter": "0,1,2,3",16 "Counter": "0,1,2,3",
17 "EventName": "L2_RQSTS.DEMAND_DATA_RD_HIT",17 "EventName": "L2_RQSTS.RFO_MISS",
18 "PublicDescription": "This event counts the number of demand Data Read requests that hit L2 cache. Only not rejected loads are counted.",18 "SampleAfterValue": "200003",
19 "CounterHTOff": "0,1,2,3,4,5,6,7"
20 },
21 {
22 "EventCode": "0x24",
23 "UMask": "0x24",
24 "BriefDescription": "L2 cache misses when fetching instructions.",
25 "Counter": "0,1,2,3",
26 "EventName": "L2_RQSTS.CODE_RD_MISS",
27 "SampleAfterValue": "200003",
28 "CounterHTOff": "0,1,2,3,4,5,6,7"
29 },
30 {
31 "EventCode": "0x24",
32 "UMask": "0x27",
33 "BriefDescription": "Demand requests that miss L2 cache.",
34 "Counter": "0,1,2,3",
35 "EventName": "L2_RQSTS.ALL_DEMAND_MISS",
19 "SampleAfterValue": "200003",36 "SampleAfterValue": "200003",
20 "CounterHTOff": "0,1,2,3,4,5,6,7"37 "CounterHTOff": "0,1,2,3,4,5,6,7"
21 },38 },
@@ -29,6 +46,43 @@ · 7 unmodified lines
29 "SampleAfterValue": "200003",46 "SampleAfterValue": "200003",
30 "CounterHTOff": "0,1,2,3,4,5,6,7"47 "CounterHTOff": "0,1,2,3,4,5,6,7"
31 },48 },
49 {
50 "EventCode": "0x24",
51 "UMask": "0x3f",
52 "BriefDescription": "All requests that miss L2 cache.",
53 "Counter": "0,1,2,3",
54 "EventName": "L2_RQSTS.MISS",
55 "SampleAfterValue": "200003",
56 "CounterHTOff": "0,1,2,3,4,5,6,7"
57 },
58 {
59 "EventCode": "0x24",
60 "UMask": "0x41",
61 "BriefDescription": "Demand Data Read requests that hit L2 cache",
62 "Counter": "0,1,2,3",
63 "EventName": "L2_RQSTS.DEMAND_DATA_RD_HIT",
64 "PublicDescription": "This event counts the number of demand Data Read requests that hit L2 cache. Only not rejected loads are counted.",
65 "SampleAfterValue": "200003",
66 "CounterHTOff": "0,1,2,3,4,5,6,7"
67 },
68 {
69 "EventCode": "0x24",
70 "UMask": "0x42",
71 "BriefDescription": "RFO requests that hit L2 cache.",
72 "Counter": "0,1,2,3",
73 "EventName": "L2_RQSTS.RFO_HIT",
74 "SampleAfterValue": "200003",
75 "CounterHTOff": "0,1,2,3,4,5,6,7"
76 },
77 {
78 "EventCode": "0x24",
79 "UMask": "0x44",
80 "BriefDescription": "L2 cache hits when fetching instructions, code reads.",
81 "Counter": "0,1,2,3",
82 "EventName": "L2_RQSTS.CODE_RD_HIT",
83 "SampleAfterValue": "200003",
84 "CounterHTOff": "0,1,2,3,4,5,6,7"
85 },
32 {86 {
33 "EventCode": "0x24",87 "EventCode": "0x24",
34 "UMask": "0x50",88 "UMask": "0x50",
@@ -69,6 +123,15 @@ · 34 unmodified lines
69 "SampleAfterValue": "200003",123 "SampleAfterValue": "200003",
70 "CounterHTOff": "0,1,2,3,4,5,6,7"124 "CounterHTOff": "0,1,2,3,4,5,6,7"
71 },125 },
126 {
127 "EventCode": "0x24",
128 "UMask": "0xe7",
129 "BriefDescription": "Demand requests to L2 cache.",
130 "Counter": "0,1,2,3",
131 "EventName": "L2_RQSTS.ALL_DEMAND_REFERENCES",
132 "SampleAfterValue": "200003",
133 "CounterHTOff": "0,1,2,3,4,5,6,7"
134 },
72 {135 {
73 "EventCode": "0x24",136 "EventCode": "0x24",
74 "UMask": "0xf8",137 "UMask": "0xf8",
@@ -79,6 +142,15 @@ · 4 unmodified lines
79 "SampleAfterValue": "200003",142 "SampleAfterValue": "200003",
80 "CounterHTOff": "0,1,2,3,4,5,6,7"143 "CounterHTOff": "0,1,2,3,4,5,6,7"
81 },144 },
145 {
146 "EventCode": "0x24",
147 "UMask": "0xff",
148 "BriefDescription": "All L2 requests.",
149 "Counter": "0,1,2,3",
150 "EventName": "L2_RQSTS.REFERENCES",
151 "SampleAfterValue": "200003",
152 "CounterHTOff": "0,1,2,3,4,5,6,7"
153 },
82 {154 {
83 "EventCode": "0x27",155 "EventCode": "0x27",
84 "UMask": "0x50",156 "UMask": "0x50",
@@ -130,6 +202,27 @@ · 45 unmodified lines
130 "SampleAfterValue": "2000003",202 "SampleAfterValue": "2000003",
131 "CounterHTOff": "2"203 "CounterHTOff": "2"
132 },204 },
205 {
206 "EventCode": "0x48",
207 "UMask": "0x1",
208 "BriefDescription": "Cycles with L1D load Misses outstanding from any thread on physical core.",
209 "Counter": "2",
210 "EventName": "L1D_PEND_MISS.PENDING_CYCLES_ANY",
211 "AnyThread": "1",
212 "CounterMask": "1",
213 "SampleAfterValue": "2000003",
214 "CounterHTOff": "2"
215 },
216 {
217 "EventCode": "0x48",
218 "UMask": "0x2",
219 "BriefDescription": "Cycles a demand request was blocked due to Fill Buffers inavailability.",
220 "Counter": "0,1,2,3",
221 "EventName": "L1D_PEND_MISS.FB_FULL",
222 "CounterMask": "1",
223 "SampleAfterValue": "2000003",
224 "CounterHTOff": "0,1,2,3,4,5,6,7"
225 },
133 {226 {
134 "EventCode": "0x51",227 "EventCode": "0x51",
135 "UMask": "0x1",228 "UMask": "0x1",
@@ -151,6 +244,29 @@ · 15 unmodified lines
151 "SampleAfterValue": "2000003",244 "SampleAfterValue": "2000003",
152 "CounterHTOff": "0,1,2,3,4,5,6,7"245 "CounterHTOff": "0,1,2,3,4,5,6,7"
153 },246 },
247 {
248 "EventCode": "0x60",
249 "UMask": "0x1",
250 "BriefDescription": "Cycles when offcore outstanding Demand Data Read transactions are present in SuperQueue (SQ), queue to uncore",
251 "Counter": "0,1,2,3",
252 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
253 "CounterMask": "1",
254 "Errata": "BDM76",
255 "PublicDescription": "This event counts cycles when offcore outstanding Demand Data Read transactions are present in the super queue (SQ). A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation).",
256 "SampleAfterValue": "2000003",
257 "CounterHTOff": "0,1,2,3,4,5,6,7"
258 },
259 {
260 "EventCode": "0x60",
261 "UMask": "0x1",
262 "BriefDescription": "Cycles with at least 6 offcore outstanding Demand Data Read transactions in uncore queue.",
263 "Counter": "0,1,2,3",
264 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD_GE_6",
265 "CounterMask": "6",
266 "Errata": "BDM76",
267 "SampleAfterValue": "2000003",
268 "CounterHTOff": "0,1,2,3,4,5,6,7"
269 },
154 {270 {
155 "EventCode": "0x60",271 "EventCode": "0x60",
156 "UMask": "0x2",272 "UMask": "0x2",
@@ -158,7 +274,7 @@ · 1 unmodified line
158 "Counter": "0,1,2,3",274 "Counter": "0,1,2,3",
159 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD",275 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD",
160 "Errata": "BDM76",276 "Errata": "BDM76",
161 "PublicDescription": "This event counts the number of offcore outstanding Code Reads transactions in the super queue every cycle. The \"Offcore outstanding\" state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",277 "PublicDescription": "This event counts the number of offcore outstanding Code Reads transactions in the super queue every cycle. The Offcore outstanding state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",
162 "SampleAfterValue": "2000003",278 "SampleAfterValue": "2000003",
163 "CounterHTOff": "0,1,2,3,4,5,6,7"279 "CounterHTOff": "0,1,2,3,4,5,6,7"
164 },280 },
@@ -175,24 +291,24 @@ · 10 unmodified lines
175 },291 },
176 {292 {
177 "EventCode": "0x60",293 "EventCode": "0x60",
178 "UMask": "0x8",294 "UMask": "0x4",
179 "BriefDescription": "Offcore outstanding cacheable Core Data Read transactions in SuperQueue (SQ), queue to uncore",295 "BriefDescription": "Offcore outstanding demand rfo reads transactions in SuperQueue (SQ), queue to uncore, every cycle",
180 "Counter": "0,1,2,3",296 "Counter": "0,1,2,3",
181 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD",297 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO",
298 "CounterMask": "1",
182 "Errata": "BDM76",299 "Errata": "BDM76",
183 "PublicDescription": "This event counts the number of offcore outstanding cacheable Core Data Read transactions in the super queue every cycle. A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation). See corresponding Umask under OFFCORE_REQUESTS.",300 "PublicDescription": "This event counts the number of offcore outstanding demand rfo Reads transactions in the super queue every cycle. The Offcore outstanding state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",
184 "SampleAfterValue": "2000003",301 "SampleAfterValue": "2000003",
185 "CounterHTOff": "0,1,2,3,4,5,6,7"302 "CounterHTOff": "0,1,2,3,4,5,6,7"
186 },303 },
187 {304 {
188 "EventCode": "0x60",305 "EventCode": "0x60",
189 "UMask": "0x1",306 "UMask": "0x8",
190 "BriefDescription": "Cycles when offcore outstanding Demand Data Read transactions are present in SuperQueue (SQ), queue to uncore",307 "BriefDescription": "Offcore outstanding cacheable Core Data Read transactions in SuperQueue (SQ), queue to uncore",
191 "Counter": "0,1,2,3",308 "Counter": "0,1,2,3",
192 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",309 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD",
193 "CounterMask": "1",
194 "Errata": "BDM76",310 "Errata": "BDM76",
195 "PublicDescription": "This event counts cycles when offcore outstanding Demand Data Read transactions are present in the super queue (SQ). A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation).",311 "PublicDescription": "This event counts the number of offcore outstanding cacheable Core Data Read transactions in the super queue every cycle. A transaction is considered to be in the Offcore outstanding state between L2 miss and transaction completion sent to requestor (SQ de-allocation). See corresponding Umask under OFFCORE_REQUESTS.",
196 "SampleAfterValue": "2000003",312 "SampleAfterValue": "2000003",
197 "CounterHTOff": "0,1,2,3,4,5,6,7"313 "CounterHTOff": "0,1,2,3,4,5,6,7"
198 },314 },
@@ -208,18 +324,6 @@ · 9 unmodified lines
208 "SampleAfterValue": "2000003",324 "SampleAfterValue": "2000003",
209 "CounterHTOff": "0,1,2,3,4,5,6,7"325 "CounterHTOff": "0,1,2,3,4,5,6,7"
210 },326 },
211 {
212 "EventCode": "0x60",
213 "UMask": "0x4",
214 "BriefDescription": "Offcore outstanding demand rfo reads transactions in SuperQueue (SQ), queue to uncore, every cycle",
215 "Counter": "0,1,2,3",
216 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO",
217 "CounterMask": "1",
218 "Errata": "BDM76",
219 "PublicDescription": "This event counts the number of offcore outstanding demand rfo Reads transactions in the super queue every cycle. The \"Offcore outstanding\" state of the transaction lasts from the L2 miss until the sending transaction completion to requestor (SQ deallocation). See the corresponding Umask under OFFCORE_REQUESTS.",
220 "SampleAfterValue": "2000003",
221 "CounterHTOff": "0,1,2,3,4,5,6,7"
222 },
223 {327 {
224 "EventCode": "0x63",328 "EventCode": "0x63",
225 "UMask": "0x2",329 "UMask": "0x2",
@@ -266,7 +370,7 @@ · 40 unmodified lines
266 "BriefDescription": "Demand and prefetch data reads",370 "BriefDescription": "Demand and prefetch data reads",
267 "Counter": "0,1,2,3",371 "Counter": "0,1,2,3",
268 "EventName": "OFFCORE_REQUESTS.ALL_DATA_RD",372 "EventName": "OFFCORE_REQUESTS.ALL_DATA_RD",
269 "PublicDescription": "This event counts the demand and prefetch data reads. All Core Data Reads include cacheable \"Demands\" and L2 prefetchers (not L3 prefetchers). Counting also covers reads due to page walks resulted from any request type.",373 "PublicDescription": "This event counts the demand and prefetch data reads. All Core Data Reads include cacheable Demands and L2 prefetchers (not L3 prefetchers). Counting also covers reads due to page walks resulted from any request type.",
270 "SampleAfterValue": "100003",374 "SampleAfterValue": "100003",
271 "CounterHTOff": "0,1,2,3,4,5,6,7"375 "CounterHTOff": "0,1,2,3,4,5,6,7"
272 },376 },
@@ -280,27 +384,36 @@ · 7 unmodified lines
280 "SampleAfterValue": "2000003",384 "SampleAfterValue": "2000003",
281 "CounterHTOff": "0,1,2,3,4,5,6,7"385 "CounterHTOff": "0,1,2,3,4,5,6,7"
282 },386 },
387 {
388 "EventCode": "0xB7, 0xBB",
389 "UMask": "0x1",
390 "BriefDescription": "Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
391 "Counter": "0,1,2,3",
392 "EventName": "OFFCORE_RESPONSE",
393 "SampleAfterValue": "100003",
394 "CounterHTOff": "0,1,2,3"
395 },
283 {396 {
284 "EventCode": "0xD0",397 "EventCode": "0xD0",
285 "UMask": "0x11",398 "UMask": "0x11",
286 "BriefDescription": "Retired load uops that miss the STLB.",399 "BriefDescription": "Retired load uops that miss the STLB. (Precise Event - PEBS)",
287 "Data_LA": "1",400 "Data_LA": "1",
288 "PEBS": "1",401 "PEBS": "1",
289 "Counter": "0,1,2,3",402 "Counter": "0,1,2,3",
290 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_LOADS",403 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_LOADS",
291 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts load uops with true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",404 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts load uops with true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",
292 "SampleAfterValue": "100003",405 "SampleAfterValue": "100003",
293 "CounterHTOff": "0,1,2,3"406 "CounterHTOff": "0,1,2,3"
294 },407 },
295 {408 {
296 "EventCode": "0xD0",409 "EventCode": "0xD0",
297 "UMask": "0x12",410 "UMask": "0x12",
298 "BriefDescription": "Retired store uops that miss the STLB.",411 "BriefDescription": "Retired store uops that miss the STLB. (Precise Event - PEBS)",
299 "Data_LA": "1",412 "Data_LA": "1",
300 "PEBS": "1",413 "PEBS": "1",
301 "Counter": "0,1,2,3",414 "Counter": "0,1,2,3",
302 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_STORES",415 "EventName": "MEM_UOPS_RETIRED.STLB_MISS_STORES",
303 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts store uops with true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",416 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts store uops true STLB miss retired to the architected path. True STLB miss is an uop triggering page walk that gets completed without blocks, and later gets retired. This page walk can end up with or without a fault.",
304 "SampleAfterValue": "100003",417 "SampleAfterValue": "100003",
305 "L1_Hit_Indication": "1",418 "L1_Hit_Indication": "1",
306 "CounterHTOff": "0,1,2,3"419 "CounterHTOff": "0,1,2,3"
@@ -308,37 +421,37 @@ · 1 unmodified line
308 {421 {
309 "EventCode": "0xD0",422 "EventCode": "0xD0",
310 "UMask": "0x21",423 "UMask": "0x21",
311 "BriefDescription": "Retired load uops with locked access.",424 "BriefDescription": "Retired load uops with locked access. (Precise Event - PEBS)",
312 "Data_LA": "1",425 "Data_LA": "1",
313 "PEBS": "1",426 "PEBS": "1",
314 "Counter": "0,1,2,3",427 "Counter": "0,1,2,3",
315 "EventName": "MEM_UOPS_RETIRED.LOCK_LOADS",428 "EventName": "MEM_UOPS_RETIRED.LOCK_LOADS",
316 "Errata": "BDM35",429 "Errata": "BDM35",
317 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts load uops with locked access retired to the architected path.",430 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts load uops with locked access retired to the architected path.",
318 "SampleAfterValue": "100007",431 "SampleAfterValue": "100007",
319 "CounterHTOff": "0,1,2,3"432 "CounterHTOff": "0,1,2,3"
320 },433 },
321 {434 {
322 "EventCode": "0xD0",435 "EventCode": "0xD0",
323 "UMask": "0x41",436 "UMask": "0x41",
324 "BriefDescription": "Retired load uops that split across a cacheline boundary.",437 "BriefDescription": "Retired load uops that split across a cacheline boundary.(Precise Event - PEBS)",
325 "Data_LA": "1",438 "Data_LA": "1",
326 "PEBS": "1",439 "PEBS": "1",
327 "Counter": "0,1,2,3",440 "Counter": "0,1,2,3",
328 "EventName": "MEM_UOPS_RETIRED.SPLIT_LOADS",441 "EventName": "MEM_UOPS_RETIRED.SPLIT_LOADS",
329 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts line-splitted load uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",442 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts line-splitted load uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",
330 "SampleAfterValue": "100003",443 "SampleAfterValue": "100003",
331 "CounterHTOff": "0,1,2,3"444 "CounterHTOff": "0,1,2,3"
332 },445 },
333 {446 {
334 "EventCode": "0xD0",447 "EventCode": "0xD0",
335 "UMask": "0x42",448 "UMask": "0x42",
336 "BriefDescription": "Retired store uops that split across a cacheline boundary.",449 "BriefDescription": "Retired store uops that split across a cacheline boundary. (Precise Event - PEBS)",
337 "Data_LA": "1",450 "Data_LA": "1",
338 "PEBS": "1",451 "PEBS": "1",
339 "Counter": "0,1,2,3",452 "Counter": "0,1,2,3",
340 "EventName": "MEM_UOPS_RETIRED.SPLIT_STORES",453 "EventName": "MEM_UOPS_RETIRED.SPLIT_STORES",
341 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts line-splitted store uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",454 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts line-splitted store uops retired to the architected path. A line split is across 64B cache-line which includes a page split (4K).",
342 "SampleAfterValue": "100003",455 "SampleAfterValue": "100003",
343 "L1_Hit_Indication": "1",456 "L1_Hit_Indication": "1",
344 "CounterHTOff": "0,1,2,3"457 "CounterHTOff": "0,1,2,3"
@@ -346,24 +459,24 @@ · 1 unmodified line
346 {459 {
347 "EventCode": "0xD0",460 "EventCode": "0xD0",
348 "UMask": "0x81",461 "UMask": "0x81",
349 "BriefDescription": "All retired load uops.",462 "BriefDescription": "All retired load uops. (Precise Event - PEBS)",
350 "Data_LA": "1",463 "Data_LA": "1",
351 "PEBS": "1",464 "PEBS": "1",
352 "Counter": "0,1,2,3",465 "Counter": "0,1,2,3",
353 "EventName": "MEM_UOPS_RETIRED.ALL_LOADS",466 "EventName": "MEM_UOPS_RETIRED.ALL_LOADS",
354 "PublicDescription": "This event counts load uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event counts AVX-256bit load/store double-pump memory uops as a single uop at retirement. This event also counts SW prefetches.",467 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts load uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event ?ounts AVX-256bit load/store double-pump memory uops as a single uop at retirement. This event also counts SW prefetches.",
355 "SampleAfterValue": "2000003",468 "SampleAfterValue": "2000003",
356 "CounterHTOff": "0,1,2,3"469 "CounterHTOff": "0,1,2,3"
357 },470 },
358 {471 {
359 "EventCode": "0xD0",472 "EventCode": "0xD0",
360 "UMask": "0x82",473 "UMask": "0x82",
361 "BriefDescription": "All retired store uops.",474 "BriefDescription": "Retired store uops that split across a cacheline boundary. (Precise Event - PEBS)",
362 "Data_LA": "1",475 "Data_LA": "1",
363 "PEBS": "1",476 "PEBS": "1",
364 "Counter": "0,1,2,3",477 "Counter": "0,1,2,3",
365 "EventName": "MEM_UOPS_RETIRED.ALL_STORES",478 "EventName": "MEM_UOPS_RETIRED.ALL_STORES",
366 "PublicDescription": "This event counts store uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event counts AVX-256bit load/store double-pump memory uops as a single uop at retirement.",479 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts store uops retired to the architected path with a filter on bits 0 and 1 applied.\nNote: This event ?ounts AVX-256bit load/store double-pump memory uops as a single uop at retirement.",
367 "SampleAfterValue": "2000003",480 "SampleAfterValue": "2000003",
368 "L1_Hit_Indication": "1",481 "L1_Hit_Indication": "1",
369 "CounterHTOff": "0,1,2,3"482 "CounterHTOff": "0,1,2,3"
@@ -371,69 +484,69 @@ · 1 unmodified line
371 {484 {
372 "EventCode": "0xD1",485 "EventCode": "0xD1",
373 "UMask": "0x1",486 "UMask": "0x1",
374 "BriefDescription": "Retired load uops with L1 cache hits as data sources.",487 "BriefDescription": "Retired load uops with L1 cache hits as data sources. (Precise Event - PEBS)",
375 "Data_LA": "1",488 "Data_LA": "1",
376 "PEBS": "1",489 "PEBS": "1",
377 "Counter": "0,1,2,3",490 "Counter": "0,1,2,3",
378 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_HIT",491 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_HIT",
379 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were hits in the nearest-level (L1) cache.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load. This event also counts SW prefetches independent of the actual data source.",492 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data source were hits in the nearest-level (L1) cache.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load. This event also counts SW prefetches independent of the actual data source.",
380 "SampleAfterValue": "2000003",493 "SampleAfterValue": "2000003",
381 "CounterHTOff": "0,1,2,3"494 "CounterHTOff": "0,1,2,3"
382 },495 },
383 {496 {
384 "EventCode": "0xD1",497 "EventCode": "0xD1",
385 "UMask": "0x2",498 "UMask": "0x2",
386 "BriefDescription": "Retired load uops with L2 cache hits as data sources.",499 "BriefDescription": "Retired load uops with L2 cache hits as data sources. (Precise Event - PEBS)",
387 "Data_LA": "1",500 "Data_LA": "1",
388 "PEBS": "1",501 "PEBS": "1",
389 "Counter": "0,1,2,3",502 "Counter": "0,1,2,3",
390 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT",503 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT",
391 "Errata": "BDM35",504 "Errata": "BDM35",
392 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were hits in the mid-level (L2) cache.",505 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were hits in the mid-level (L2) cache.",
393 "SampleAfterValue": "100003",506 "SampleAfterValue": "100003",
394 "CounterHTOff": "0,1,2,3"507 "CounterHTOff": "0,1,2,3"
395 },508 },
396 {509 {
397 "EventCode": "0xD1",510 "EventCode": "0xD1",
398 "UMask": "0x4",511 "UMask": "0x4",
399 "BriefDescription": "Retired load uops which data sources were data hits in L3 without snoops required.",512 "BriefDescription": "Hit in last-level (L3) cache. Excludes Unknown data-source. (Precise Event - PEBS)",
400 "Data_LA": "1",513 "Data_LA": "1",
401 "PEBS": "1",514 "PEBS": "1",
402 "Counter": "0,1,2,3",515 "Counter": "0,1,2,3",
403 "EventName": "MEM_LOAD_UOPS_RETIRED.L3_HIT",516 "EventName": "MEM_LOAD_UOPS_RETIRED.L3_HIT",
404 "Errata": "BDM100",517 "Errata": "BDM100",
405 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were data hits in the last-level (L3) cache without snoops required.",518 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were data hits in the last-level (L3) cache without snoops required.",
406 "SampleAfterValue": "50021",519 "SampleAfterValue": "50021",
407 "CounterHTOff": "0,1,2,3"520 "CounterHTOff": "0,1,2,3"
408 },521 },
409 {522 {
410 "EventCode": "0xD1",523 "EventCode": "0xD1",
411 "UMask": "0x8",524 "UMask": "0x8",
412 "BriefDescription": "Retired load uops misses in L1 cache as data sources.",525 "BriefDescription": "Retired load uops misses in L1 cache as data sources. Uses PEBS.",
413 "Data_LA": "1",526 "Data_LA": "1",
414 "PEBS": "1",527 "PEBS": "1",
415 "Counter": "0,1,2,3",528 "Counter": "0,1,2,3",
416 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS",529 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS",
417 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were misses in the nearest-level (L1) cache. Counting excludes unknown and UC data source.",530 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were misses in the nearest-level (L1) cache. Counting excludes unknown and UC data source.",
418 "SampleAfterValue": "100003",531 "SampleAfterValue": "100003",
419 "CounterHTOff": "0,1,2,3"532 "CounterHTOff": "0,1,2,3"
420 },533 },
421 {534 {
422 "EventCode": "0xD1",535 "EventCode": "0xD1",
423 "UMask": "0x10",536 "UMask": "0x10",
424 "BriefDescription": "Miss in mid-level (L2) cache. Excludes Unknown data-source.",537 "BriefDescription": "Retired load uops with L2 cache misses as data sources. Uses PEBS.",
425 "Data_LA": "1",538 "Data_LA": "1",
426 "PEBS": "1",539 "PEBS": "1",
427 "Counter": "0,1,2,3",540 "Counter": "0,1,2,3",
428 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_MISS",541 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_MISS",
429 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were misses in the mid-level (L2) cache. Counting excludes unknown and UC data source.",542 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were misses in the mid-level (L2) cache. Counting excludes unknown and UC data source.",
430 "SampleAfterValue": "50021",543 "SampleAfterValue": "50021",
431 "CounterHTOff": "0,1,2,3"544 "CounterHTOff": "0,1,2,3"
432 },545 },
433 {546 {
434 "EventCode": "0xD1",547 "EventCode": "0xD1",
435 "UMask": "0x20",548 "UMask": "0x20",
436 "BriefDescription": "Miss in last-level (L3) cache. Excludes Unknown data-source.",549 "BriefDescription": "Miss in last-level (L3) cache. Excludes Unknown data-source. (Precise Event - PEBS).",
437 "Data_LA": "1",550 "Data_LA": "1",
438 "PEBS": "1",551 "PEBS": "1",
439 "Counter": "0,1,2,3",552 "Counter": "0,1,2,3",
@@ -445,84 +558,83 @@ · 5 unmodified lines
445 {558 {
446 "EventCode": "0xD1",559 "EventCode": "0xD1",
447 "UMask": "0x40",560 "UMask": "0x40",
448 "BriefDescription": "Retired load uops which data sources were load uops missed L1 but hit FB due to preceding miss to the same cache line with data not ready.",561 "BriefDescription": "Retired load uops which data sources were load uops missed L1 but hit FB due to preceding miss to the same cache line with data not ready. (Precise Event - PEBS)",
449 "Data_LA": "1",562 "Data_LA": "1",
450 "PEBS": "1",563 "PEBS": "1",
451 "Counter": "0,1,2,3",564 "Counter": "0,1,2,3",
452 "EventName": "MEM_LOAD_UOPS_RETIRED.HIT_LFB",565 "EventName": "MEM_LOAD_UOPS_RETIRED.HIT_LFB",
453 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were load uops missed L1 but hit a fill buffer due to a preceding miss to the same cache line with the data not ready.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load.",566 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were load uops missed L1 but hit a fill buffer due to a preceding miss to the same cache line with the data not ready.\nNote: Only two data-sources of L1/FB are applicable for AVX-256bit even though the corresponding AVX load could be serviced by a deeper level in the memory hierarchy. Data source is reported for the Low-half load.",
454 "SampleAfterValue": "100003",567 "SampleAfterValue": "100003",
455 "CounterHTOff": "0,1,2,3"568 "CounterHTOff": "0,1,2,3"
456 },569 },
457 {570 {
458 "EventCode": "0xD2",571 "EventCode": "0xD2",
459 "UMask": "0x1",572 "UMask": "0x1",
460 "BriefDescription": "Retired load uops which data sources were L3 hit and cross-core snoop missed in on-pkg core cache.",573 "BriefDescription": "Retired load uops which data sources were L3 hit and cross-core snoop missed in on-pkg core cache. (Precise Event - PEBS)",
461 "Data_LA": "1",574 "Data_LA": "1",
462 "PEBS": "1",575 "PEBS": "1",
463 "Counter": "0,1,2,3",576 "Counter": "0,1,2,3",
464 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS",577 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS",
465 "Errata": "BDM100",578 "Errata": "BDM100",
466 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were L3 Hit and a cross-core snoop missed in the on-pkg core cache.",579 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were L3 Hit and a cross-core snoop missed in the on-pkg core cache.",
467 "SampleAfterValue": "20011",580 "SampleAfterValue": "20011",
468 "CounterHTOff": "0,1,2,3"581 "CounterHTOff": "0,1,2,3"
469 },582 },
470 {583 {
471 "EventCode": "0xD2",584 "EventCode": "0xD2",
472 "UMask": "0x2",585 "UMask": "0x2",
473 "BriefDescription": "Retired load uops which data sources were L3 and cross-core snoop hits in on-pkg core cache.",586 "BriefDescription": "Retired load uops which data sources were L3 and cross-core snoop hits in on-pkg core cache. (Precise Event - PEBS)",
474 "Data_LA": "1",587 "Data_LA": "1",
475 "PEBS": "1",588 "PEBS": "1",
476 "Counter": "0,1,2,3",589 "Counter": "0,1,2,3",
477 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT",590 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT",
478 "Errata": "BDM100",591 "Errata": "BDM100",
479 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were L3 hit and a cross-core snoop hit in the on-pkg core cache.",592 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were L3 hit and a cross-core snoop hit in the on-pkg core cache.",
480 "SampleAfterValue": "20011",593 "SampleAfterValue": "20011",
481 "CounterHTOff": "0,1,2,3"594 "CounterHTOff": "0,1,2,3"
482 },595 },
483 {596 {
484 "EventCode": "0xD2",597 "EventCode": "0xD2",
485 "UMask": "0x4",598 "UMask": "0x4",
486 "BriefDescription": "Retired load uops which data sources were HitM responses from shared L3.",599 "BriefDescription": "Retired load uops which data sources were HitM responses from shared L3. (Precise Event - PEBS)",
487 "Data_LA": "1",600 "Data_LA": "1",
488 "PEBS": "1",601 "PEBS": "1",
489 "Counter": "0,1,2,3",602 "Counter": "0,1,2,3",
490 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM",603 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM",
491 "Errata": "BDM100",604 "Errata": "BDM100",
492 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were HitM responses from a core on same socket (shared L3).",605 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were HitM responses from a core on same socket (shared L3).",
493 "SampleAfterValue": "20011",606 "SampleAfterValue": "20011",
494 "CounterHTOff": "0,1,2,3"607 "CounterHTOff": "0,1,2,3"
495 },608 },
496 {609 {
497 "EventCode": "0xD2",610 "EventCode": "0xD2",
498 "UMask": "0x8",611 "UMask": "0x8",
499 "BriefDescription": "Retired load uops which data sources were hits in L3 without snoops required.",612 "BriefDescription": "Retired load uops which data sources were hits in L3 without snoops required. (Precise Event - PEBS)",
500 "Data_LA": "1",613 "Data_LA": "1",
501 "PEBS": "1",614 "PEBS": "1",
502 "Counter": "0,1,2,3",615 "Counter": "0,1,2,3",
503 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_NONE",616 "EventName": "MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_NONE",
504 "Errata": "BDM100",617 "Errata": "BDM100",
505 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts retired load uops which data sources were hits in the last-level (L3) cache without snoops required.",618 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts retired load uops which data sources were hits in the last-level (L3) cache without snoops required.",
506 "SampleAfterValue": "100003",619 "SampleAfterValue": "100003",
507 "CounterHTOff": "0,1,2,3"620 "CounterHTOff": "0,1,2,3"
508 },621 },
509 {622 {
510 "EventCode": "0xD3",623 "EventCode": "0xD3",
511 "UMask": "0x1",624 "UMask": "0x1",
512 "BriefDescription": "Data from local DRAM either Snoop not needed or Snoop Miss (RspI)",
513 "Data_LA": "1",625 "Data_LA": "1",
514 "PEBS": "1",626 "PEBS": "1",
515 "Counter": "0,1,2,3",627 "Counter": "0,1,2,3",
516 "EventName": "MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM",628 "EventName": "MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM",
517 "Errata": "BDE70, BDM100",629 "Errata": "BDE70, BDM100",
518 "PublicDescription": "Retired load uop whose Data Source was: local DRAM either Snoop not needed or Snoop Miss (RspI).",630 "PublicDescription": "This event counts retired load uops where the data came from local DRAM. This does not include hardware prefetches. This is a precise event.",
519 "SampleAfterValue": "100007",631 "SampleAfterValue": "100007",
520 "CounterHTOff": "0,1,2,3"632 "CounterHTOff": "0,1,2,3"
521 },633 },
522 {634 {
523 "EventCode": "0xD3",635 "EventCode": "0xD3",
524 "UMask": "0x4",636 "UMask": "0x4",
525 "BriefDescription": "Retired load uop whose Data Source was: remote DRAM either Snoop not needed or Snoop Miss (RspI)",637 "BriefDescription": "Retired load uop whose Data Source was: remote DRAM either Snoop not needed or Snoop Miss (RspI) (Precise Event)",
526 "Data_LA": "1",638 "Data_LA": "1",
527 "PEBS": "1",639 "PEBS": "1",
528 "Counter": "0,1,2,3",640 "Counter": "0,1,2,3",
@@ -534,7 +646,7 @@ · 5 unmodified lines
534 {646 {
535 "EventCode": "0xD3",647 "EventCode": "0xD3",
536 "UMask": "0x10",648 "UMask": "0x10",
537 "BriefDescription": "Retired load uop whose Data Source was: Remote cache HITM",649 "BriefDescription": "Retired load uop whose Data Source was: Remote cache HITM (Precise Event)",
538 "Data_LA": "1",650 "Data_LA": "1",
539 "PEBS": "1",651 "PEBS": "1",
540 "Counter": "0,1,2,3",652 "Counter": "0,1,2,3",
@@ -546,7 +658,7 @@ · 5 unmodified lines
546 {658 {
547 "EventCode": "0xD3",659 "EventCode": "0xD3",
548 "UMask": "0x20",660 "UMask": "0x20",
549 "BriefDescription": "Retired load uop whose Data Source was: forwarded from remote cache",661 "BriefDescription": "Retired load uop whose Data Source was: forwarded from remote cache (Precise Event)",
550 "Data_LA": "1",662 "Data_LA": "1",
551 "PEBS": "1",663 "PEBS": "1",
552 "Counter": "0,1,2,3",664 "Counter": "0,1,2,3",
@@ -694,119 +806,6 @@ · 141 unmodified lines
694 "SampleAfterValue": "100003",806 "SampleAfterValue": "100003",
695 "CounterHTOff": "0,1,2,3,4,5,6,7"807 "CounterHTOff": "0,1,2,3,4,5,6,7"
696 },808 },
697 {
698 "EventCode": "0x24",
699 "UMask": "0x42",
700 "BriefDescription": "RFO requests that hit L2 cache.",
701 "Counter": "0,1,2,3",
702 "EventName": "L2_RQSTS.RFO_HIT",
703 "SampleAfterValue": "200003",
704 "CounterHTOff": "0,1,2,3,4,5,6,7"
705 },
706 {
707 "EventCode": "0x24",
708 "UMask": "0x22",
709 "BriefDescription": "RFO requests that miss L2 cache.",
710 "Counter": "0,1,2,3",
711 "EventName": "L2_RQSTS.RFO_MISS",
712 "SampleAfterValue": "200003",
713 "CounterHTOff": "0,1,2,3,4,5,6,7"
714 },
715 {
716 "EventCode": "0x24",
717 "UMask": "0x44",
718 "BriefDescription": "L2 cache hits when fetching instructions, code reads.",
719 "Counter": "0,1,2,3",
720 "EventName": "L2_RQSTS.CODE_RD_HIT",
721 "SampleAfterValue": "200003",
722 "CounterHTOff": "0,1,2,3,4,5,6,7"
723 },
724 {
725 "EventCode": "0x24",
726 "UMask": "0x24",
727 "BriefDescription": "L2 cache misses when fetching instructions.",
728 "Counter": "0,1,2,3",
729 "EventName": "L2_RQSTS.CODE_RD_MISS",
730 "SampleAfterValue": "200003",
731 "CounterHTOff": "0,1,2,3,4,5,6,7"
732 },
733 {
734 "EventCode": "0x24",
735 "UMask": "0x27",
736 "BriefDescription": "Demand requests that miss L2 cache.",
737 "Counter": "0,1,2,3",
738 "EventName": "L2_RQSTS.ALL_DEMAND_MISS",
739 "SampleAfterValue": "200003",
740 "CounterHTOff": "0,1,2,3,4,5,6,7"
741 },
742 {
743 "EventCode": "0x24",
744 "UMask": "0xe7",
745 "BriefDescription": "Demand requests to L2 cache.",
746 "Counter": "0,1,2,3",
747 "EventName": "L2_RQSTS.ALL_DEMAND_REFERENCES",
748 "SampleAfterValue": "200003",
749 "CounterHTOff": "0,1,2,3,4,5,6,7"
750 },
751 {
752 "EventCode": "0x24",
753 "UMask": "0x3f",
754 "BriefDescription": "All requests that miss L2 cache.",
755 "Counter": "0,1,2,3",
756 "EventName": "L2_RQSTS.MISS",
757 "SampleAfterValue": "200003",
758 "CounterHTOff": "0,1,2,3,4,5,6,7"
759 },
760 {
761 "EventCode": "0x24",
762 "UMask": "0xff",
763 "BriefDescription": "All L2 requests.",
764 "Counter": "0,1,2,3",
765 "EventName": "L2_RQSTS.REFERENCES",
766 "SampleAfterValue": "200003",
767 "CounterHTOff": "0,1,2,3,4,5,6,7"
768 },
769 {
770 "EventCode": "0xB7, 0xBB",
771 "UMask": "0x1",
772 "BriefDescription": "Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
773 "Counter": "0,1,2,3",
774 "EventName": "OFFCORE_RESPONSE",
775 "SampleAfterValue": "100003",
776 "CounterHTOff": "0,1,2,3"
777 },
778 {
779 "EventCode": "0x60",
780 "UMask": "0x1",
781 "BriefDescription": "Cycles with at least 6 offcore outstanding Demand Data Read transactions in uncore queue.",
782 "Counter": "0,1,2,3",
783 "EventName": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD_GE_6",
784 "CounterMask": "6",
785 "Errata": "BDM76",
786 "SampleAfterValue": "2000003",
787 "CounterHTOff": "0,1,2,3,4,5,6,7"
788 },
789 {
790 "EventCode": "0x48",
791 "UMask": "0x1",
792 "BriefDescription": "Cycles with L1D load Misses outstanding from any thread on physical core.",
793 "Counter": "2",
794 "EventName": "L1D_PEND_MISS.PENDING_CYCLES_ANY",
795 "AnyThread": "1",
796 "CounterMask": "1",
797 "SampleAfterValue": "2000003",
798 "CounterHTOff": "2"
799 },
800 {
801 "EventCode": "0x48",
802 "UMask": "0x2",
803 "BriefDescription": "Cycles a demand request was blocked due to Fill Buffers inavailability.",
804 "Counter": "0,1,2,3",
805 "EventName": "L1D_PEND_MISS.FB_FULL",
806 "CounterMask": "1",
807 "SampleAfterValue": "2000003",
808 "CounterHTOff": "0,1,2,3,4,5,6,7"
809 },
810 {809 {
811 "Offcore": "1",810 "Offcore": "1",
812 "EventCode": "0xB7, 0xBB",811 "EventCode": "0xB7, 0xBB",
@@ -816,6 +815,7 @@ · 3 unmodified lines
816 "Counter": "0,1,2,3",815 "Counter": "0,1,2,3",
817 "EventName": "OFFCORE_RESPONSE.ALL_REQUESTS.LLC_HIT.ANY_RESPONSE",816 "EventName": "OFFCORE_RESPONSE.ALL_REQUESTS.LLC_HIT.ANY_RESPONSE",
818 "MSRIndex": "0x1a6,0x1a7",817 "MSRIndex": "0x1a6,0x1a7",
818 "PublicDescription": "Counts all requests that hit in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
819 "SampleAfterValue": "100003",819 "SampleAfterValue": "100003",
820 "CounterHTOff": "0,1,2,3"820 "CounterHTOff": "0,1,2,3"
821 },821 },
@@ -828,6 +828,7 @@ · 6 unmodified lines
828 "Counter": "0,1,2,3",828 "Counter": "0,1,2,3",
829 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_HIT.HITM_OTHER_CORE",829 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_HIT.HITM_OTHER_CORE",
830 "MSRIndex": "0x1a6,0x1a7",830 "MSRIndex": "0x1a6,0x1a7",
831 "PublicDescription": "Counts all data/code/rfo reads (demand & prefetch) that hit in the L3 and the snoop to one of the sibling cores hits the line in M state and the line is forwarded Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
831 "SampleAfterValue": "100003",832 "SampleAfterValue": "100003",
832 "CounterHTOff": "0,1,2,3"833 "CounterHTOff": "0,1,2,3"
833 },834 },
@@ -840,6 +841,7 @@ · 6 unmodified lines
840 "Counter": "0,1,2,3",841 "Counter": "0,1,2,3",
841 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_HIT.HIT_OTHER_CORE_NO_FWD",842 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_HIT.HIT_OTHER_CORE_NO_FWD",
842 "MSRIndex": "0x1a6,0x1a7",843 "MSRIndex": "0x1a6,0x1a7",
844 "PublicDescription": "Counts all data/code/rfo reads (demand & prefetch) that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
843 "SampleAfterValue": "100003",845 "SampleAfterValue": "100003",
844 "CounterHTOff": "0,1,2,3"846 "CounterHTOff": "0,1,2,3"
845 },847 },
@@ -852,6 +854,7 @@ · 6 unmodified lines
852 "Counter": "0,1,2,3",854 "Counter": "0,1,2,3",
853 "EventName": "OFFCORE_RESPONSE.ALL_CODE_RD.LLC_HIT.HIT_OTHER_CORE_NO_FWD",855 "EventName": "OFFCORE_RESPONSE.ALL_CODE_RD.LLC_HIT.HIT_OTHER_CORE_NO_FWD",
854 "MSRIndex": "0x1a6,0x1a7",856 "MSRIndex": "0x1a6,0x1a7",
857 "PublicDescription": "Counts all demand & prefetch code reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
855 "SampleAfterValue": "100003",858 "SampleAfterValue": "100003",
856 "CounterHTOff": "0,1,2,3"859 "CounterHTOff": "0,1,2,3"
857 },860 },
@@ -864,6 +867,7 @@ · 6 unmodified lines
864 "Counter": "0,1,2,3",867 "Counter": "0,1,2,3",
865 "EventName": "OFFCORE_RESPONSE.ALL_RFO.LLC_HIT.HITM_OTHER_CORE",868 "EventName": "OFFCORE_RESPONSE.ALL_RFO.LLC_HIT.HITM_OTHER_CORE",
866 "MSRIndex": "0x1a6,0x1a7",869 "MSRIndex": "0x1a6,0x1a7",
870 "PublicDescription": "Counts all demand & prefetch RFOs that hit in the L3 and the snoop to one of the sibling cores hits the line in M state and the line is forwarded Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
867 "SampleAfterValue": "100003",871 "SampleAfterValue": "100003",
868 "CounterHTOff": "0,1,2,3"872 "CounterHTOff": "0,1,2,3"
869 },873 },
@@ -876,6 +880,7 @@ · 6 unmodified lines
876 "Counter": "0,1,2,3",880 "Counter": "0,1,2,3",
877 "EventName": "OFFCORE_RESPONSE.ALL_RFO.LLC_HIT.HIT_OTHER_CORE_NO_FWD",881 "EventName": "OFFCORE_RESPONSE.ALL_RFO.LLC_HIT.HIT_OTHER_CORE_NO_FWD",
878 "MSRIndex": "0x1a6,0x1a7",882 "MSRIndex": "0x1a6,0x1a7",
883 "PublicDescription": "Counts all demand & prefetch RFOs that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
879 "SampleAfterValue": "100003",884 "SampleAfterValue": "100003",
880 "CounterHTOff": "0,1,2,3"885 "CounterHTOff": "0,1,2,3"
881 },886 },
@@ -888,6 +893,7 @@ · 6 unmodified lines
888 "Counter": "0,1,2,3",893 "Counter": "0,1,2,3",
889 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_HIT.HITM_OTHER_CORE",894 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_HIT.HITM_OTHER_CORE",
890 "MSRIndex": "0x1a6,0x1a7",895 "MSRIndex": "0x1a6,0x1a7",
896 "PublicDescription": "Counts all demand & prefetch data reads that hit in the L3 and the snoop to one of the sibling cores hits the line in M state and the line is forwarded Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
891 "SampleAfterValue": "100003",897 "SampleAfterValue": "100003",
892 "CounterHTOff": "0,1,2,3"898 "CounterHTOff": "0,1,2,3"
893 },899 },
@@ -900,6 +906,7 @@ · 6 unmodified lines
900 "Counter": "0,1,2,3",906 "Counter": "0,1,2,3",
901 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_HIT.HIT_OTHER_CORE_NO_FWD",907 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_HIT.HIT_OTHER_CORE_NO_FWD",
902 "MSRIndex": "0x1a6,0x1a7",908 "MSRIndex": "0x1a6,0x1a7",
909 "PublicDescription": "Counts all demand & prefetch data reads that hit in the L3 and the snoops to sibling cores hit in either E/S state and the line is not forwarded Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
903 "SampleAfterValue": "100003",910 "SampleAfterValue": "100003",
904 "CounterHTOff": "0,1,2,3"911 "CounterHTOff": "0,1,2,3"
905 },912 },
@@ -912,6 +919,7 @@ · 6 unmodified lines
912 "Counter": "0,1,2,3",919 "Counter": "0,1,2,3",
913 "EventName": "OFFCORE_RESPONSE.PF_LLC_CODE_RD.LLC_HIT.ANY_RESPONSE",920 "EventName": "OFFCORE_RESPONSE.PF_LLC_CODE_RD.LLC_HIT.ANY_RESPONSE",
914 "MSRIndex": "0x1a6,0x1a7",921 "MSRIndex": "0x1a6,0x1a7",
922 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that hit in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
915 "SampleAfterValue": "100003",923 "SampleAfterValue": "100003",
916 "CounterHTOff": "0,1,2,3"924 "CounterHTOff": "0,1,2,3"
917 },925 },
@@ -924,6 +932,7 @@ · 6 unmodified lines
924 "Counter": "0,1,2,3",932 "Counter": "0,1,2,3",
925 "EventName": "OFFCORE_RESPONSE.PF_LLC_RFO.LLC_HIT.ANY_RESPONSE",933 "EventName": "OFFCORE_RESPONSE.PF_LLC_RFO.LLC_HIT.ANY_RESPONSE",
926 "MSRIndex": "0x1a6,0x1a7",934 "MSRIndex": "0x1a6,0x1a7",
935 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that hit in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
927 "SampleAfterValue": "100003",936 "SampleAfterValue": "100003",
928 "CounterHTOff": "0,1,2,3"937 "CounterHTOff": "0,1,2,3"
929 },938 },
@@ -936,6 +945,20 @@ · 6 unmodified lines
936 "Counter": "0,1,2,3",945 "Counter": "0,1,2,3",
937 "EventName": "OFFCORE_RESPONSE.DEMAND_RFO.LLC_HIT.HITM_OTHER_CORE",946 "EventName": "OFFCORE_RESPONSE.DEMAND_RFO.LLC_HIT.HITM_OTHER_CORE",
938 "MSRIndex": "0x1a6,0x1a7",947 "MSRIndex": "0x1a6,0x1a7",
948 "PublicDescription": "Counts all demand data writes (RFOs) that hit in the L3 and the snoop to one of the sibling cores hits the line in M state and the line is forwarded Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
949 "SampleAfterValue": "100003",
950 "CounterHTOff": "0,1,2,3"
951 },
952 {
953 "Offcore": "1",
954 "EventCode": "0xB7, 0xBB",
955 "UMask": "0x1",
956 "BriefDescription": "Counts all demand data writes (RFOs) that hit in the L3",
957 "MSRValue": "0x3f803c0002",
958 "Counter": "0,1,2,3",
959 "EventName": "OFFCORE_RESPONSE.DEMAND_RFO.LLC_HIT.ANY_RESPONSE",
960 "MSRIndex": "0x1a6,0x1a7",
961 "PublicDescription": "Counts all demand data writes (RFOs) that hit in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
939 "SampleAfterValue": "100003",962 "SampleAfterValue": "100003",
940 "CounterHTOff": "0,1,2,3"963 "CounterHTOff": "0,1,2,3"
941 }964 }
tools/perf/pmu-events/arch/x86/broadwellx/floating-point.json+51−57
@@ -6,7 +6,7 @@ · 5 unmodified lines
6 "Counter": "0,1,2,3",6 "Counter": "0,1,2,3",
7 "EventName": "OTHER_ASSISTS.AVX_TO_SSE",7 "EventName": "OTHER_ASSISTS.AVX_TO_SSE",
8 "Errata": "BDM30",8 "Errata": "BDM30",
9 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of transitions from AVX-256 to legacy SSE when penalty is applicable.",9 "PublicDescription": "This event counts the number of transitions from AVX-256 to legacy SSE when penalty is applicable.",
10 "SampleAfterValue": "100003",10 "SampleAfterValue": "100003",
11 "CounterHTOff": "0,1,2,3,4,5,6,7"11 "CounterHTOff": "0,1,2,3,4,5,6,7"
12 },12 },
@@ -17,7 +17,7 @@ · 4 unmodified lines
17 "Counter": "0,1,2,3",17 "Counter": "0,1,2,3",
18 "EventName": "OTHER_ASSISTS.SSE_TO_AVX",18 "EventName": "OTHER_ASSISTS.SSE_TO_AVX",
19 "Errata": "BDM30",19 "Errata": "BDM30",
20 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of transitions from legacy SSE to AVX-256 when penalty is applicable.",20 "PublicDescription": "This event counts the number of transitions from legacy SSE to AVX-256 when penalty is applicable.",
21 "SampleAfterValue": "100003",21 "SampleAfterValue": "100003",
22 "CounterHTOff": "0,1,2,3,4,5,6,7"22 "CounterHTOff": "0,1,2,3,4,5,6,7"
23 },23 },
@@ -25,7 +25,6 @@ · 1 unmodified line
25 "EventCode": "0xC7",25 "EventCode": "0xC7",
26 "UMask": "0x1",26 "UMask": "0x1",
27 "BriefDescription": "Number of SSE/AVX computational scalar double precision floating-point instructions retired. Each count represents 1 computation. Applies to SSE* and AVX* scalar double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",27 "BriefDescription": "Number of SSE/AVX computational scalar double precision floating-point instructions retired. Each count represents 1 computation. Applies to SSE* and AVX* scalar double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
28 "PEBS": "1",
29 "Counter": "0,1,2,3",28 "Counter": "0,1,2,3",
30 "EventName": "FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",29 "EventName": "FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
31 "SampleAfterValue": "2000003",30 "SampleAfterValue": "2000003",
@@ -35,17 +34,24 @@ · 3 unmodified lines
35 "EventCode": "0xC7",34 "EventCode": "0xC7",
36 "UMask": "0x2",35 "UMask": "0x2",
37 "BriefDescription": "Number of SSE/AVX computational scalar single precision floating-point instructions retired. Each count represents 1 computation. Applies to SSE* and AVX* scalar single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",36 "BriefDescription": "Number of SSE/AVX computational scalar single precision floating-point instructions retired. Each count represents 1 computation. Applies to SSE* and AVX* scalar single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
38 "PEBS": "1",
39 "Counter": "0,1,2,3",37 "Counter": "0,1,2,3",
40 "EventName": "FP_ARITH_INST_RETIRED.SCALAR_SINGLE",38 "EventName": "FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
41 "SampleAfterValue": "2000003",39 "SampleAfterValue": "2000003",
42 "CounterHTOff": "0,1,2,3"40 "CounterHTOff": "0,1,2,3"
43 },41 },
42 {
43 "EventCode": "0xC7",
44 "UMask": "0x3",
45 "BriefDescription": "Number of SSE/AVX computational scalar floating-point instructions retired. Applies to SSE* and AVX* scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
46 "Counter": "0,1,2,3",
47 "EventName": "FP_ARITH_INST_RETIRED.SCALAR",
48 "SampleAfterValue": "2000003",
49 "CounterHTOff": "0,1,2,3"
50 },
44 {51 {
45 "EventCode": "0xC7",52 "EventCode": "0xC7",
46 "UMask": "0x4",53 "UMask": "0x4",
47 "BriefDescription": "Number of SSE/AVX computational 128-bit packed double precision floating-point instructions retired. Each count represents 2 computations. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",54 "BriefDescription": "Number of SSE/AVX computational 128-bit packed double precision floating-point instructions retired. Each count represents 2 computations. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
48 "PEBS": "1",
49 "Counter": "0,1,2,3",55 "Counter": "0,1,2,3",
50 "EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE",56 "EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE",
51 "SampleAfterValue": "2000003",57 "SampleAfterValue": "2000003",
@@ -55,7 +61,6 @@ · 3 unmodified lines
55 "EventCode": "0xC7",61 "EventCode": "0xC7",
56 "UMask": "0x8",62 "UMask": "0x8",
57 "BriefDescription": "Number of SSE/AVX computational 128-bit packed single precision floating-point instructions retired. Each count represents 4 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",63 "BriefDescription": "Number of SSE/AVX computational 128-bit packed single precision floating-point instructions retired. Each count represents 4 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
58 "PEBS": "1",
59 "Counter": "0,1,2,3",64 "Counter": "0,1,2,3",
60 "EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE",65 "EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE",
61 "SampleAfterValue": "2000003",66 "SampleAfterValue": "2000003",
@@ -65,19 +70,54 @@ · 3 unmodified lines
65 "EventCode": "0xC7",70 "EventCode": "0xC7",
66 "UMask": "0x10",71 "UMask": "0x10",
67 "BriefDescription": "Number of SSE/AVX computational 256-bit packed double precision floating-point instructions retired. Each count represents 4 computations. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",72 "BriefDescription": "Number of SSE/AVX computational 256-bit packed double precision floating-point instructions retired. Each count represents 4 computations. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
68 "PEBS": "1",
69 "Counter": "0,1,2,3",73 "Counter": "0,1,2,3",
70 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE",74 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE",
71 "SampleAfterValue": "2000003",75 "SampleAfterValue": "2000003",
72 "CounterHTOff": "0,1,2,3"76 "CounterHTOff": "0,1,2,3"
73 },77 },
78 {
79 "EventCode": "0xC7",
80 "UMask": "0x15",
81 "BriefDescription": "Number of SSE/AVX computational double precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
82 "Counter": "0,1,2,3",
83 "EventName": "FP_ARITH_INST_RETIRED.DOUBLE",
84 "SampleAfterValue": "2000006",
85 "CounterHTOff": "0,1,2,3"
86 },
87 {
88 "EventCode": "0xc7",
89 "UMask": "0x20",
90 "BriefDescription": "Number of SSE/AVX computational 256-bit packed single precision floating-point instructions retired. Each count represents 8 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
91 "Counter": "0,1,2,3",
92 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE",
93 "SampleAfterValue": "2000003",
94 "CounterHTOff": "0,1,2,3"
95 },
96 {
97 "EventCode": "0xC7",
98 "UMask": "0x2a",
99 "BriefDescription": "Number of SSE/AVX computational single precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
100 "Counter": "0,1,2,3",
101 "EventName": "FP_ARITH_INST_RETIRED.SINGLE",
102 "SampleAfterValue": "2000005",
103 "CounterHTOff": "0,1,2,3"
104 },
105 {
106 "EventCode": "0xC7",
107 "UMask": "0x3c",
108 "BriefDescription": "Number of SSE/AVX computational packed floating-point instructions retired. Applies to SSE* and AVX*, packed, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
109 "Counter": "0,1,2,3",
110 "EventName": "FP_ARITH_INST_RETIRED.PACKED",
111 "SampleAfterValue": "2000004",
112 "CounterHTOff": "0,1,2,3"
113 },
74 {114 {
75 "EventCode": "0xCA",115 "EventCode": "0xCA",
76 "UMask": "0x2",116 "UMask": "0x2",
77 "BriefDescription": "Number of X87 assists due to output value.",117 "BriefDescription": "Number of X87 assists due to output value.",
78 "Counter": "0,1,2,3",118 "Counter": "0,1,2,3",
79 "EventName": "FP_ASSIST.X87_OUTPUT",119 "EventName": "FP_ASSIST.X87_OUTPUT",
80 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of x87 floating point (FP) micro-code assist (numeric overflow/underflow, inexact result) when the output value (destination register) is invalid.",120 "PublicDescription": "This event counts the number of x87 floating point (FP) micro-code assist (numeric overflow/underflow, inexact result) when the output value (destination register) is invalid.",
81 "SampleAfterValue": "100003",121 "SampleAfterValue": "100003",
82 "CounterHTOff": "0,1,2,3,4,5,6,7"122 "CounterHTOff": "0,1,2,3,4,5,6,7"
83 },123 },
@@ -87,7 +127,7 @@ · 3 unmodified lines
87 "BriefDescription": "Number of X87 assists due to input value.",127 "BriefDescription": "Number of X87 assists due to input value.",
88 "Counter": "0,1,2,3",128 "Counter": "0,1,2,3",
89 "EventName": "FP_ASSIST.X87_INPUT",129 "EventName": "FP_ASSIST.X87_INPUT",
90 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts x87 floating point (FP) micro-code assist (invalid operation, denormal operand, SNaN operand) when the input value (one of the source operands to an FP instruction) is invalid.",130 "PublicDescription": "This event counts x87 floating point (FP) micro-code assist (invalid operation, denormal operand, SNaN operand) when the input value (one of the source operands to an FP instruction) is invalid.",
91 "SampleAfterValue": "100003",131 "SampleAfterValue": "100003",
92 "CounterHTOff": "0,1,2,3,4,5,6,7"132 "CounterHTOff": "0,1,2,3,4,5,6,7"
93 },133 },
@@ -97,7 +137,7 @@ · 3 unmodified lines
97 "BriefDescription": "Number of SIMD FP assists due to Output values",137 "BriefDescription": "Number of SIMD FP assists due to Output values",
98 "Counter": "0,1,2,3",138 "Counter": "0,1,2,3",
99 "EventName": "FP_ASSIST.SIMD_OUTPUT",139 "EventName": "FP_ASSIST.SIMD_OUTPUT",
100 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of SSE* floating point (FP) micro-code assist (numeric overflow/underflow) when the output value (destination register) is invalid. Counting covers only cases involving penalties that require micro-code assist intervention.",140 "PublicDescription": "This event counts the number of SSE* floating point (FP) micro-code assist (numeric overflow/underflow) when the output value (destination register) is invalid. Counting covers only cases involving penalties that require micro-code assist intervention.",
101 "SampleAfterValue": "100003",141 "SampleAfterValue": "100003",
102 "CounterHTOff": "0,1,2,3,4,5,6,7"142 "CounterHTOff": "0,1,2,3,4,5,6,7"
103 },143 },
@@ -107,7 +147,7 @@ · 3 unmodified lines
107 "BriefDescription": "Number of SIMD FP assists due to input values",147 "BriefDescription": "Number of SIMD FP assists due to input values",
108 "Counter": "0,1,2,3",148 "Counter": "0,1,2,3",
109 "EventName": "FP_ASSIST.SIMD_INPUT",149 "EventName": "FP_ASSIST.SIMD_INPUT",
110 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts any input SSE* FP assist - invalid operation, denormal operand, dividing by zero, SNaN operand. Counting includes only cases involving penalties that required micro-code assist intervention.",150 "PublicDescription": "This event counts any input SSE* FP assist - invalid operation, denormal operand, dividing by zero, SNaN operand. Counting includes only cases involving penalties that required micro-code assist intervention.",
111 "SampleAfterValue": "100003",151 "SampleAfterValue": "100003",
112 "CounterHTOff": "0,1,2,3,4,5,6,7"152 "CounterHTOff": "0,1,2,3,4,5,6,7"
113 },153 },
@@ -121,51 +161,5 @@ · 7 unmodified lines
121 "PublicDescription": "This event counts cycles with any input and output SSE or x87 FP assist. If an input and output assist are detected on the same cycle the event increments by 1.",161 "PublicDescription": "This event counts cycles with any input and output SSE or x87 FP assist. If an input and output assist are detected on the same cycle the event increments by 1.",
122 "SampleAfterValue": "100003",162 "SampleAfterValue": "100003",
123 "CounterHTOff": "0,1,2,3"163 "CounterHTOff": "0,1,2,3"
124 },
125 {
126 "EventCode": "0xc7",
127 "UMask": "0x20",
128 "BriefDescription": "Number of SSE/AVX computational 256-bit packed single precision floating-point instructions retired. Each count represents 8 computations. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
129 "PEBS": "1",
130 "Counter": "0,1,2,3",
131 "EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE",
132 "SampleAfterValue": "2000003",
133 "CounterHTOff": "0,1,2,3"
134 },
135 {
136 "EventCode": "0xC7",
137 "UMask": "0x3",
138 "BriefDescription": "Number of SSE/AVX computational scalar floating-point instructions retired. Applies to SSE* and AVX* scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
139 "Counter": "0,1,2,3",
140 "EventName": "FP_ARITH_INST_RETIRED.SCALAR",
141 "SampleAfterValue": "2000003",
142 "CounterHTOff": "0,1,2,3"
143 },
144 {
145 "EventCode": "0xC7",
146 "UMask": "0x3c",
147 "BriefDescription": "Number of SSE/AVX computational packed floating-point instructions retired. Applies to SSE* and AVX*, packed, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RSQRT RCP SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
148 "Counter": "0,1,2,3",
149 "EventName": "FP_ARITH_INST_RETIRED.PACKED",
150 "SampleAfterValue": "2000004",
151 "CounterHTOff": "0,1,2,3"
152 },
153 {
154 "EventCode": "0xC7",
155 "UMask": "0x2a",
156 "BriefDescription": "Number of SSE/AVX computational single precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RCP RSQRT SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
157 "Counter": "0,1,2,3",
158 "EventName": "FP_ARITH_INST_RETIRED.SINGLE",
159 "SampleAfterValue": "2000005",
160 "CounterHTOff": "0,1,2,3"
161 },
162 {
163 "EventCode": "0xC7",
164 "UMask": "0x15",
165 "BriefDescription": "Number of SSE/AVX computational double precision floating-point instructions retired. Applies to SSE* and AVX*scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element. ?.",
166 "Counter": "0,1,2,3",
167 "EventName": "FP_ARITH_INST_RETIRED.DOUBLE",
168 "SampleAfterValue": "2000006",
169 "CounterHTOff": "0,1,2,3"
170 }164 }
171]165]
tools/perf/pmu-events/arch/x86/broadwellx/frontend.json+69−69
@@ -15,80 +15,49 @@ · 14 unmodified lines
15 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",15 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",
16 "Counter": "0,1,2,3",16 "Counter": "0,1,2,3",
17 "EventName": "IDQ.MITE_UOPS",17 "EventName": "IDQ.MITE_UOPS",
18 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",18 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
19 "SampleAfterValue": "2000003",19 "SampleAfterValue": "2000003",
20 "CounterHTOff": "0,1,2,3,4,5,6,7"20 "CounterHTOff": "0,1,2,3,4,5,6,7"
21 },21 },
22 {22 {
23 "EventCode": "0x79",23 "EventCode": "0x79",
24 "UMask": "0x8",24 "UMask": "0x4",
25 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path",25 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from MITE path",
26 "Counter": "0,1,2,3",
27 "EventName": "IDQ.DSB_UOPS",
28 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",
29 "SampleAfterValue": "2000003",
30 "CounterHTOff": "0,1,2,3,4,5,6,7"
31 },
32 {
33 "EventCode": "0x79",
34 "UMask": "0x10",
35 "BriefDescription": "Uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
36 "Counter": "0,1,2,3",
37 "EventName": "IDQ.MS_DSB_UOPS",
38 "PublicDescription": "This event counts the number of uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",
39 "SampleAfterValue": "2000003",
40 "CounterHTOff": "0,1,2,3,4,5,6,7"
41 },
42 {
43 "EventCode": "0x79",
44 "UMask": "0x20",
45 "BriefDescription": "Uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
46 "Counter": "0,1,2,3",
47 "EventName": "IDQ.MS_MITE_UOPS",
48 "PublicDescription": "This event counts the number of uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",
49 "SampleAfterValue": "2000003",
50 "CounterHTOff": "0,1,2,3,4,5,6,7"
51 },
52 {
53 "EventCode": "0x79",
54 "UMask": "0x30",
55 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
56 "Counter": "0,1,2,3",26 "Counter": "0,1,2,3",
57 "EventName": "IDQ.MS_UOPS",27 "EventName": "IDQ.MITE_CYCLES",
58 "PublicDescription": "This event counts the total number of uops delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may \"bypass\" the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",28 "CounterMask": "1",
29 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ.",
59 "SampleAfterValue": "2000003",30 "SampleAfterValue": "2000003",
60 "CounterHTOff": "0,1,2,3,4,5,6,7"31 "CounterHTOff": "0,1,2,3,4,5,6,7"
61 },32 },
62 {33 {
63 "EventCode": "0x79",34 "EventCode": "0x79",
64 "UMask": "0x30",35 "UMask": "0x8",
65 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",36 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path",
66 "Counter": "0,1,2,3",37 "Counter": "0,1,2,3",
67 "EventName": "IDQ.MS_CYCLES",38 "EventName": "IDQ.DSB_UOPS",
68 "CounterMask": "1",39 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
69 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may \"bypass\" the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
70 "SampleAfterValue": "2000003",40 "SampleAfterValue": "2000003",
71 "CounterHTOff": "0,1,2,3,4,5,6,7"41 "CounterHTOff": "0,1,2,3,4,5,6,7"
72 },42 },
73 {43 {
74 "EventCode": "0x79",44 "EventCode": "0x79",
75 "UMask": "0x4",45 "UMask": "0x8",
76 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from MITE path",46 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path",
77 "Counter": "0,1,2,3",47 "Counter": "0,1,2,3",
78 "EventName": "IDQ.MITE_CYCLES",48 "EventName": "IDQ.DSB_CYCLES",
79 "CounterMask": "1",49 "CounterMask": "1",
80 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ.",50 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
81 "SampleAfterValue": "2000003",51 "SampleAfterValue": "2000003",
82 "CounterHTOff": "0,1,2,3,4,5,6,7"52 "CounterHTOff": "0,1,2,3,4,5,6,7"
83 },53 },
84 {54 {
85 "EventCode": "0x79",55 "EventCode": "0x79",
86 "UMask": "0x8",56 "UMask": "0x10",
87 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path",57 "BriefDescription": "Uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
88 "Counter": "0,1,2,3",58 "Counter": "0,1,2,3",
89 "EventName": "IDQ.DSB_CYCLES",59 "EventName": "IDQ.MS_DSB_UOPS",
90 "CounterMask": "1",60 "PublicDescription": "This event counts the number of uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may bypass the IDQ.",
91 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",
92 "SampleAfterValue": "2000003",61 "SampleAfterValue": "2000003",
93 "CounterHTOff": "0,1,2,3,4,5,6,7"62 "CounterHTOff": "0,1,2,3,4,5,6,7"
94 },63 },
@@ -99,7 +68,7 @@ · 4 unmodified lines
99 "Counter": "0,1,2,3",68 "Counter": "0,1,2,3",
100 "EventName": "IDQ.MS_DSB_CYCLES",69 "EventName": "IDQ.MS_DSB_CYCLES",
101 "CounterMask": "1",70 "CounterMask": "1",
102 "PublicDescription": "This event counts cycles during which uops initiated by Decode Stream Buffer (DSB) are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",71 "PublicDescription": "This event counts cycles during which uops initiated by Decode Stream Buffer (DSB) are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Counting includes uops that may bypass the IDQ.",
103 "SampleAfterValue": "2000003",72 "SampleAfterValue": "2000003",
104 "CounterHTOff": "0,1,2,3,4,5,6,7"73 "CounterHTOff": "0,1,2,3,4,5,6,7"
105 },74 },
@@ -111,7 +80,7 @@ · 5 unmodified lines
111 "Counter": "0,1,2,3",80 "Counter": "0,1,2,3",
112 "EventName": "IDQ.MS_DSB_OCCUR",81 "EventName": "IDQ.MS_DSB_OCCUR",
113 "CounterMask": "1",82 "CounterMask": "1",
114 "PublicDescription": "This event counts the number of deliveries to Instruction Decode Queue (IDQ) initiated by Decode Stream Buffer (DSB) while the Microcode Sequencer (MS) is busy. Counting includes uops that may \"bypass\" the IDQ.",83 "PublicDescription": "This event counts the number of deliveries to Instruction Decode Queue (IDQ) initiated by Decode Stream Buffer (DSB) while the Microcode Sequencer (MS) is busy. Counting includes uops that may bypass the IDQ.",
115 "SampleAfterValue": "2000003",84 "SampleAfterValue": "2000003",
116 "CounterHTOff": "0,1,2,3,4,5,6,7"85 "CounterHTOff": "0,1,2,3,4,5,6,7"
117 },86 },
@@ -122,7 +91,7 @@ · 4 unmodified lines
122 "Counter": "0,1,2,3",91 "Counter": "0,1,2,3",
123 "EventName": "IDQ.ALL_DSB_CYCLES_4_UOPS",92 "EventName": "IDQ.ALL_DSB_CYCLES_4_UOPS",
124 "CounterMask": "4",93 "CounterMask": "4",
125 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",94 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
126 "SampleAfterValue": "2000003",95 "SampleAfterValue": "2000003",
127 "CounterHTOff": "0,1,2,3,4,5,6,7"96 "CounterHTOff": "0,1,2,3,4,5,6,7"
128 },97 },
@@ -133,7 +102,17 @@ · 4 unmodified lines
133 "Counter": "0,1,2,3",102 "Counter": "0,1,2,3",
134 "EventName": "IDQ.ALL_DSB_CYCLES_ANY_UOPS",103 "EventName": "IDQ.ALL_DSB_CYCLES_ANY_UOPS",
135 "CounterMask": "1",104 "CounterMask": "1",
136 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may \"bypass\" the IDQ.",105 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path. Counting includes uops that may bypass the IDQ.",
106 "SampleAfterValue": "2000003",
107 "CounterHTOff": "0,1,2,3,4,5,6,7"
108 },
109 {
110 "EventCode": "0x79",
111 "UMask": "0x20",
112 "BriefDescription": "Uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
113 "Counter": "0,1,2,3",
114 "EventName": "IDQ.MS_MITE_UOPS",
115 "PublicDescription": "This event counts the number of uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may bypass the IDQ.",
137 "SampleAfterValue": "2000003",116 "SampleAfterValue": "2000003",
138 "CounterHTOff": "0,1,2,3,4,5,6,7"117 "CounterHTOff": "0,1,2,3,4,5,6,7"
139 },118 },
@@ -144,7 +123,7 @@ · 4 unmodified lines
144 "Counter": "0,1,2,3",123 "Counter": "0,1,2,3",
145 "EventName": "IDQ.ALL_MITE_CYCLES_4_UOPS",124 "EventName": "IDQ.ALL_MITE_CYCLES_4_UOPS",
146 "CounterMask": "4",125 "CounterMask": "4",
147 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",126 "PublicDescription": "This event counts the number of cycles 4 uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
148 "SampleAfterValue": "2000003",127 "SampleAfterValue": "2000003",
149 "CounterHTOff": "0,1,2,3,4,5,6,7"128 "CounterHTOff": "0,1,2,3,4,5,6,7"
150 },129 },
@@ -155,7 +134,39 @@ · 4 unmodified lines
155 "Counter": "0,1,2,3",134 "Counter": "0,1,2,3",
156 "EventName": "IDQ.ALL_MITE_CYCLES_ANY_UOPS",135 "EventName": "IDQ.ALL_MITE_CYCLES_ANY_UOPS",
157 "CounterMask": "1",136 "CounterMask": "1",
158 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",137 "PublicDescription": "This event counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
138 "SampleAfterValue": "2000003",
139 "CounterHTOff": "0,1,2,3,4,5,6,7"
140 },
141 {
142 "EventCode": "0x79",
143 "UMask": "0x30",
144 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
145 "Counter": "0,1,2,3",
146 "EventName": "IDQ.MS_UOPS",
147 "PublicDescription": "This event counts the total number of uops delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may bypass the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
148 "SampleAfterValue": "2000003",
149 "CounterHTOff": "0,1,2,3,4,5,6,7"
150 },
151 {
152 "EventCode": "0x79",
153 "UMask": "0x30",
154 "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
155 "Counter": "0,1,2,3",
156 "EventName": "IDQ.MS_CYCLES",
157 "CounterMask": "1",
158 "PublicDescription": "This event counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequenser (MS) is busy. Counting includes uops that may bypass the IDQ. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
159 "SampleAfterValue": "2000003",
160 "CounterHTOff": "0,1,2,3,4,5,6,7"
161 },
162 {
163 "EdgeDetect": "1",
164 "EventCode": "0x79",
165 "UMask": "0x30",
166 "BriefDescription": "Number of switches from DSB (Decode Stream Buffer) or MITE (legacy decode pipeline) to the Microcode Sequencer.",
167 "Counter": "0,1,2,3",
168 "EventName": "IDQ.MS_SWITCHES",
169 "CounterMask": "1",
159 "SampleAfterValue": "2000003",170 "SampleAfterValue": "2000003",
160 "CounterHTOff": "0,1,2,3,4,5,6,7"171 "CounterHTOff": "0,1,2,3,4,5,6,7"
161 },172 },
@@ -165,7 +176,7 @@ · 3 unmodified lines
165 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",176 "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",
166 "Counter": "0,1,2,3",177 "Counter": "0,1,2,3",
167 "EventName": "IDQ.MITE_ALL_UOPS",178 "EventName": "IDQ.MITE_ALL_UOPS",
168 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may \"bypass\" the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",179 "PublicDescription": "This event counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. Counting includes uops that may bypass the IDQ. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
169 "SampleAfterValue": "2000003",180 "SampleAfterValue": "2000003",
170 "CounterHTOff": "0,1,2,3,4,5,6,7"181 "CounterHTOff": "0,1,2,3,4,5,6,7"
171 },182 },
@@ -205,7 +216,7 @@ · 33 unmodified lines
205 "BriefDescription": "Uops not delivered to Resource Allocation Table (RAT) per thread when backend of the machine is not stalled",216 "BriefDescription": "Uops not delivered to Resource Allocation Table (RAT) per thread when backend of the machine is not stalled",
206 "Counter": "0,1,2,3",217 "Counter": "0,1,2,3",
207 "EventName": "IDQ_UOPS_NOT_DELIVERED.CORE",218 "EventName": "IDQ_UOPS_NOT_DELIVERED.CORE",
208 "PublicDescription": "This event counts the number of uops not delivered to Resource Allocation Table (RAT) per thread adding ?4 ? x? when Resource Allocation Table (RAT) is not stalled and Instruction Decode Queue (IDQ) delivers x uops to Resource Allocation Table (RAT) (where x belongs to {0,1,2,3}). Counting does not cover cases when:\n a. IDQ-Resource Allocation Table (RAT) pipe serves the other thread;\n b. Resource Allocation Table (RAT) is stalled for the thread (including uop drops and clear BE conditions); \n c. Instruction Decode Queue (IDQ) delivers four uops.",219 "PublicDescription": "This event counts the number of uops not delivered to Resource Allocation Table (RAT) per thread adding 4 x when Resource Allocation Table (RAT) is not stalled and Instruction Decode Queue (IDQ) delivers x uops to Resource Allocation Table (RAT) (where x belongs to {0,1,2,3}). Counting does not cover cases when:\n a. IDQ-Resource Allocation Table (RAT) pipe serves the other thread;\n b. Resource Allocation Table (RAT) is stalled for the thread (including uop drops and clear BE conditions); \n c. Instruction Decode Queue (IDQ) delivers four uops.",
209 "SampleAfterValue": "2000003",220 "SampleAfterValue": "2000003",
210 "CounterHTOff": "0,1,2,3"221 "CounterHTOff": "0,1,2,3"
211 },222 },
@@ -268,18 +279,7 @@ · 56 unmodified lines
268 "BriefDescription": "Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles.",279 "BriefDescription": "Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles.",
269 "Counter": "0,1,2,3",280 "Counter": "0,1,2,3",
270 "EventName": "DSB2MITE_SWITCHES.PENALTY_CYCLES",281 "EventName": "DSB2MITE_SWITCHES.PENALTY_CYCLES",
271 "PublicDescription": "This event counts Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles. These cycles do not include uops routed through because of the switch itself, for example, when Instruction Decode Queue (IDQ) pre-allocation is unavailable, or Instruction Decode Queue (IDQ) is full. SBD-to-MITE switch true penalty cycles happen after the merge mux (MM) receives Decode Stream Buffer (DSB) Sync-indication until receiving the first MITE uop. \nMM is placed before Instruction Decode Queue (IDQ) to merge uops being fed from the MITE and Decode Stream Buffer (DSB) paths. Decode Stream Buffer (DSB) inserts the Sync-indication whenever a Decode Stream Buffer (DSB)-to-MITE switch occurs.\nPenalty: A Decode Stream Buffer (DSB) hit followed by a Decode Stream Buffer (DSB) miss can cost up to six cycles in which no uops are delivered to the IDQ. Most often, such switches from the Decode Stream Buffer (DSB) to the legacy pipeline cost 0?2 cycles.",282 "PublicDescription": "This event counts Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles. These cycles do not include uops routed through because of the switch itself, for example, when Instruction Decode Queue (IDQ) pre-allocation is unavailable, or Instruction Decode Queue (IDQ) is full. SBD-to-MITE switch true penalty cycles happen after the merge mux (MM) receives Decode Stream Buffer (DSB) Sync-indication until receiving the first MITE uop. \nMM is placed before Instruction Decode Queue (IDQ) to merge uops being fed from the MITE and Decode Stream Buffer (DSB) paths. Decode Stream Buffer (DSB) inserts the Sync-indication whenever a Decode Stream Buffer (DSB)-to-MITE switch occurs.\nPenalty: A Decode Stream Buffer (DSB) hit followed by a Decode Stream Buffer (DSB) miss can cost up to six cycles in which no uops are delivered to the IDQ. Most often, such switches from the Decode Stream Buffer (DSB) to the legacy pipeline cost 02 cycles.",
272 "SampleAfterValue": "2000003",
273 "CounterHTOff": "0,1,2,3,4,5,6,7"
274 },
275 {
276 "EdgeDetect": "1",
277 "EventCode": "0x79",
278 "UMask": "0x30",
279 "BriefDescription": "Number of switches from DSB (Decode Stream Buffer) or MITE (legacy decode pipeline) to the Microcode Sequencer.",
280 "Counter": "0,1,2,3",
281 "EventName": "IDQ.MS_SWITCHES",
282 "CounterMask": "1",
283 "SampleAfterValue": "2000003",283 "SampleAfterValue": "2000003",
284 "CounterHTOff": "0,1,2,3,4,5,6,7"284 "CounterHTOff": "0,1,2,3,4,5,6,7"
285 }285 }
tools/perf/pmu-events/arch/x86/broadwellx/memory.json+35−5
@@ -95,7 +95,6 @@ · 94 unmodified lines
95 "BriefDescription": "Counts the number of times a class of instructions that may cause a transactional abort was executed. Since this is the count of execution, it may not always cause a transactional abort.",95 "BriefDescription": "Counts the number of times a class of instructions that may cause a transactional abort was executed. Since this is the count of execution, it may not always cause a transactional abort.",
96 "Counter": "0,1,2,3",96 "Counter": "0,1,2,3",
97 "EventName": "TX_EXEC.MISC1",97 "EventName": "TX_EXEC.MISC1",
98 "PublicDescription": "Unfriendly TSX abort triggered by a flowmarker.",
99 "SampleAfterValue": "2000003",98 "SampleAfterValue": "2000003",
100 "CounterHTOff": "0,1,2,3,4,5,6,7"99 "CounterHTOff": "0,1,2,3,4,5,6,7"
101 },100 },
@@ -171,11 +170,11 @@ · 69 unmodified lines
171 {170 {
172 "EventCode": "0xc8",171 "EventCode": "0xc8",
173 "UMask": "0x4",172 "UMask": "0x4",
174 "BriefDescription": "Number of times HLE abort was triggered",173 "BriefDescription": "Number of times HLE abort was triggered (PEBS)",
175 "PEBS": "1",174 "PEBS": "1",
176 "Counter": "0,1,2,3",175 "Counter": "0,1,2,3",
177 "EventName": "HLE_RETIRED.ABORTED",176 "EventName": "HLE_RETIRED.ABORTED",
178 "PublicDescription": "Number of times HLE abort was triggered.",177 "PublicDescription": "Number of times HLE abort was triggered (PEBS).",
179 "SampleAfterValue": "2000003",178 "SampleAfterValue": "2000003",
180 "CounterHTOff": "0,1,2,3,4,5,6,7"179 "CounterHTOff": "0,1,2,3,4,5,6,7"
181 },180 },
@@ -252,11 +251,11 @@ · 70 unmodified lines
252 {251 {
253 "EventCode": "0xc9",252 "EventCode": "0xc9",
254 "UMask": "0x4",253 "UMask": "0x4",
255 "BriefDescription": "Number of times RTM abort was triggered",254 "BriefDescription": "Number of times RTM abort was triggered (PEBS)",
256 "PEBS": "1",255 "PEBS": "1",
257 "Counter": "0,1,2,3",256 "Counter": "0,1,2,3",
258 "EventName": "RTM_RETIRED.ABORTED",257 "EventName": "RTM_RETIRED.ABORTED",
259 "PublicDescription": "Number of times RTM abort was triggered .",258 "PublicDescription": "Number of times RTM abort was triggered (PEBS).",
260 "SampleAfterValue": "2000003",259 "SampleAfterValue": "2000003",
261 "CounterHTOff": "0,1,2,3"260 "CounterHTOff": "0,1,2,3"
262 },261 },
@@ -439,6 +438,7 @@ · 176 unmodified lines
439 "Counter": "0,1,2,3",438 "Counter": "0,1,2,3",
440 "EventName": "OFFCORE_RESPONSE.ALL_REQUESTS.LLC_MISS.ANY_RESPONSE",439 "EventName": "OFFCORE_RESPONSE.ALL_REQUESTS.LLC_MISS.ANY_RESPONSE",
441 "MSRIndex": "0x1a6,0x1a7",440 "MSRIndex": "0x1a6,0x1a7",
441 "PublicDescription": "Counts all requests that miss in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
442 "SampleAfterValue": "100003",442 "SampleAfterValue": "100003",
443 "CounterHTOff": "0,1,2,3"443 "CounterHTOff": "0,1,2,3"
444 },444 },
@@ -451,6 +451,7 @@ · 6 unmodified lines
451 "Counter": "0,1,2,3",451 "Counter": "0,1,2,3",
452 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.REMOTE_HIT_FORWARD",452 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.REMOTE_HIT_FORWARD",
453 "MSRIndex": "0x1a6,0x1a7",453 "MSRIndex": "0x1a6,0x1a7",
454 "PublicDescription": "Counts all data/code/rfo reads (demand & prefetch) that miss the L3 and clean or shared data is transferred from remote cache Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
454 "SampleAfterValue": "100003",455 "SampleAfterValue": "100003",
455 "CounterHTOff": "0,1,2,3"456 "CounterHTOff": "0,1,2,3"
456 },457 },
@@ -463,6 +464,7 @@ · 6 unmodified lines
463 "Counter": "0,1,2,3",464 "Counter": "0,1,2,3",
464 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.REMOTE_HITM",465 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.REMOTE_HITM",
465 "MSRIndex": "0x1a6,0x1a7",466 "MSRIndex": "0x1a6,0x1a7",
467 "PublicDescription": "Counts all data/code/rfo reads (demand & prefetch) that miss the L3 and the modified data is transferred from remote cache Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
466 "SampleAfterValue": "100003",468 "SampleAfterValue": "100003",
467 "CounterHTOff": "0,1,2,3"469 "CounterHTOff": "0,1,2,3"
468 },470 },
@@ -475,6 +477,7 @@ · 6 unmodified lines
475 "Counter": "0,1,2,3",477 "Counter": "0,1,2,3",
476 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.REMOTE_DRAM",478 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.REMOTE_DRAM",
477 "MSRIndex": "0x1a6,0x1a7",479 "MSRIndex": "0x1a6,0x1a7",
480 "PublicDescription": "Counts all data/code/rfo reads (demand & prefetch) that miss the L3 and the data is returned from remote dram Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
478 "SampleAfterValue": "100003",481 "SampleAfterValue": "100003",
479 "CounterHTOff": "0,1,2,3"482 "CounterHTOff": "0,1,2,3"
480 },483 },
@@ -487,6 +490,7 @@ · 6 unmodified lines
487 "Counter": "0,1,2,3",490 "Counter": "0,1,2,3",
488 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.LOCAL_DRAM",491 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.LOCAL_DRAM",
489 "MSRIndex": "0x1a6,0x1a7",492 "MSRIndex": "0x1a6,0x1a7",
493 "PublicDescription": "Counts all data/code/rfo reads (demand & prefetch) that miss the L3 and the data is returned from local dram Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
490 "SampleAfterValue": "100003",494 "SampleAfterValue": "100003",
491 "CounterHTOff": "0,1,2,3"495 "CounterHTOff": "0,1,2,3"
492 },496 },
@@ -499,6 +503,7 @@ · 6 unmodified lines
499 "Counter": "0,1,2,3",503 "Counter": "0,1,2,3",
500 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.ANY_RESPONSE",504 "EventName": "OFFCORE_RESPONSE.ALL_READS.LLC_MISS.ANY_RESPONSE",
501 "MSRIndex": "0x1a6,0x1a7",505 "MSRIndex": "0x1a6,0x1a7",
506 "PublicDescription": "Counts all data/code/rfo reads (demand & prefetch) that miss in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
502 "SampleAfterValue": "100003",507 "SampleAfterValue": "100003",
503 "CounterHTOff": "0,1,2,3"508 "CounterHTOff": "0,1,2,3"
504 },509 },
@@ -511,6 +516,7 @@ · 6 unmodified lines
511 "Counter": "0,1,2,3",516 "Counter": "0,1,2,3",
512 "EventName": "OFFCORE_RESPONSE.ALL_CODE_RD.LLC_MISS.LOCAL_DRAM",517 "EventName": "OFFCORE_RESPONSE.ALL_CODE_RD.LLC_MISS.LOCAL_DRAM",
513 "MSRIndex": "0x1a6,0x1a7",518 "MSRIndex": "0x1a6,0x1a7",
519 "PublicDescription": "Counts all demand & prefetch code reads that miss the L3 and the data is returned from local dram Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
514 "SampleAfterValue": "100003",520 "SampleAfterValue": "100003",
515 "CounterHTOff": "0,1,2,3"521 "CounterHTOff": "0,1,2,3"
516 },522 },
@@ -523,6 +529,7 @@ · 6 unmodified lines
523 "Counter": "0,1,2,3",529 "Counter": "0,1,2,3",
524 "EventName": "OFFCORE_RESPONSE.ALL_CODE_RD.LLC_MISS.ANY_RESPONSE",530 "EventName": "OFFCORE_RESPONSE.ALL_CODE_RD.LLC_MISS.ANY_RESPONSE",
525 "MSRIndex": "0x1a6,0x1a7",531 "MSRIndex": "0x1a6,0x1a7",
532 "PublicDescription": "Counts all demand & prefetch code reads that miss in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
526 "SampleAfterValue": "100003",533 "SampleAfterValue": "100003",
527 "CounterHTOff": "0,1,2,3"534 "CounterHTOff": "0,1,2,3"
528 },535 },
@@ -535,6 +542,7 @@ · 6 unmodified lines
535 "Counter": "0,1,2,3",542 "Counter": "0,1,2,3",
536 "EventName": "OFFCORE_RESPONSE.ALL_RFO.LLC_MISS.LOCAL_DRAM",543 "EventName": "OFFCORE_RESPONSE.ALL_RFO.LLC_MISS.LOCAL_DRAM",
537 "MSRIndex": "0x1a6,0x1a7",544 "MSRIndex": "0x1a6,0x1a7",
545 "PublicDescription": "Counts all demand & prefetch RFOs that miss the L3 and the data is returned from local dram Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
538 "SampleAfterValue": "100003",546 "SampleAfterValue": "100003",
539 "CounterHTOff": "0,1,2,3"547 "CounterHTOff": "0,1,2,3"
540 },548 },
@@ -547,6 +555,7 @@ · 6 unmodified lines
547 "Counter": "0,1,2,3",555 "Counter": "0,1,2,3",
548 "EventName": "OFFCORE_RESPONSE.ALL_RFO.LLC_MISS.ANY_RESPONSE",556 "EventName": "OFFCORE_RESPONSE.ALL_RFO.LLC_MISS.ANY_RESPONSE",
549 "MSRIndex": "0x1a6,0x1a7",557 "MSRIndex": "0x1a6,0x1a7",
558 "PublicDescription": "Counts all demand & prefetch RFOs that miss in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
550 "SampleAfterValue": "100003",559 "SampleAfterValue": "100003",
551 "CounterHTOff": "0,1,2,3"560 "CounterHTOff": "0,1,2,3"
552 },561 },
@@ -559,6 +568,7 @@ · 6 unmodified lines
559 "Counter": "0,1,2,3",568 "Counter": "0,1,2,3",
560 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.REMOTE_HIT_FORWARD",569 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.REMOTE_HIT_FORWARD",
561 "MSRIndex": "0x1a6,0x1a7",570 "MSRIndex": "0x1a6,0x1a7",
571 "PublicDescription": "Counts all demand & prefetch data reads that miss the L3 and clean or shared data is transferred from remote cache Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
562 "SampleAfterValue": "100003",572 "SampleAfterValue": "100003",
563 "CounterHTOff": "0,1,2,3"573 "CounterHTOff": "0,1,2,3"
564 },574 },
@@ -571,6 +581,7 @@ · 6 unmodified lines
571 "Counter": "0,1,2,3",581 "Counter": "0,1,2,3",
572 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.REMOTE_HITM",582 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.REMOTE_HITM",
573 "MSRIndex": "0x1a6,0x1a7",583 "MSRIndex": "0x1a6,0x1a7",
584 "PublicDescription": "Counts all demand & prefetch data reads that miss the L3 and the modified data is transferred from remote cache Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
574 "SampleAfterValue": "100003",585 "SampleAfterValue": "100003",
575 "CounterHTOff": "0,1,2,3"586 "CounterHTOff": "0,1,2,3"
576 },587 },
@@ -583,6 +594,7 @@ · 6 unmodified lines
583 "Counter": "0,1,2,3",594 "Counter": "0,1,2,3",
584 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.REMOTE_DRAM",595 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.REMOTE_DRAM",
585 "MSRIndex": "0x1a6,0x1a7",596 "MSRIndex": "0x1a6,0x1a7",
597 "PublicDescription": "Counts all demand & prefetch data reads that miss the L3 and the data is returned from remote dram Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
586 "SampleAfterValue": "100003",598 "SampleAfterValue": "100003",
587 "CounterHTOff": "0,1,2,3"599 "CounterHTOff": "0,1,2,3"
588 },600 },
@@ -595,6 +607,7 @@ · 6 unmodified lines
595 "Counter": "0,1,2,3",607 "Counter": "0,1,2,3",
596 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.LOCAL_DRAM",608 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.LOCAL_DRAM",
597 "MSRIndex": "0x1a6,0x1a7",609 "MSRIndex": "0x1a6,0x1a7",
610 "PublicDescription": "Counts all demand & prefetch data reads that miss the L3 and the data is returned from local dram Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
598 "SampleAfterValue": "100003",611 "SampleAfterValue": "100003",
599 "CounterHTOff": "0,1,2,3"612 "CounterHTOff": "0,1,2,3"
600 },613 },
@@ -607,6 +620,7 @@ · 6 unmodified lines
607 "Counter": "0,1,2,3",620 "Counter": "0,1,2,3",
608 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.ANY_RESPONSE",621 "EventName": "OFFCORE_RESPONSE.ALL_DATA_RD.LLC_MISS.ANY_RESPONSE",
609 "MSRIndex": "0x1a6,0x1a7",622 "MSRIndex": "0x1a6,0x1a7",
623 "PublicDescription": "Counts all demand & prefetch data reads that miss in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
610 "SampleAfterValue": "100003",624 "SampleAfterValue": "100003",
611 "CounterHTOff": "0,1,2,3"625 "CounterHTOff": "0,1,2,3"
612 },626 },
@@ -619,6 +633,7 @@ · 6 unmodified lines
619 "Counter": "0,1,2,3",633 "Counter": "0,1,2,3",
620 "EventName": "OFFCORE_RESPONSE.PF_LLC_CODE_RD.LLC_MISS.ANY_RESPONSE",634 "EventName": "OFFCORE_RESPONSE.PF_LLC_CODE_RD.LLC_MISS.ANY_RESPONSE",
621 "MSRIndex": "0x1a6,0x1a7",635 "MSRIndex": "0x1a6,0x1a7",
636 "PublicDescription": "Counts prefetch (that bring data to LLC only) code reads that miss in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
622 "SampleAfterValue": "100003",637 "SampleAfterValue": "100003",
623 "CounterHTOff": "0,1,2,3"638 "CounterHTOff": "0,1,2,3"
624 },639 },
@@ -631,6 +646,7 @@ · 6 unmodified lines
631 "Counter": "0,1,2,3",646 "Counter": "0,1,2,3",
632 "EventName": "OFFCORE_RESPONSE.PF_LLC_RFO.LLC_MISS.ANY_RESPONSE",647 "EventName": "OFFCORE_RESPONSE.PF_LLC_RFO.LLC_MISS.ANY_RESPONSE",
633 "MSRIndex": "0x1a6,0x1a7",648 "MSRIndex": "0x1a6,0x1a7",
649 "PublicDescription": "Counts all prefetch (that bring data to LLC only) RFOs that miss in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
634 "SampleAfterValue": "100003",650 "SampleAfterValue": "100003",
635 "CounterHTOff": "0,1,2,3"651 "CounterHTOff": "0,1,2,3"
636 },652 },
@@ -643,6 +659,20 @@ · 6 unmodified lines
643 "Counter": "0,1,2,3",659 "Counter": "0,1,2,3",
644 "EventName": "OFFCORE_RESPONSE.DEMAND_RFO.LLC_MISS.REMOTE_HITM",660 "EventName": "OFFCORE_RESPONSE.DEMAND_RFO.LLC_MISS.REMOTE_HITM",
645 "MSRIndex": "0x1a6,0x1a7",661 "MSRIndex": "0x1a6,0x1a7",
662 "PublicDescription": "Counts all demand data writes (RFOs) that miss the L3 and the modified data is transferred from remote cache Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
663 "SampleAfterValue": "100003",
664 "CounterHTOff": "0,1,2,3"
665 },
666 {
667 "Offcore": "1",
668 "EventCode": "0xB7, 0xBB",
669 "UMask": "0x1",
670 "BriefDescription": "Counts all demand data writes (RFOs) that miss in the L3",
671 "MSRValue": "0x3fbfc00002",
672 "Counter": "0,1,2,3",
673 "EventName": "OFFCORE_RESPONSE.DEMAND_RFO.LLC_MISS.ANY_RESPONSE",
674 "MSRIndex": "0x1a6,0x1a7",
675 "PublicDescription": "Counts all demand data writes (RFOs) that miss in the L3 Offcore response can be programmed only with a specific pair of event select and counter MSR, and with specific event codes and predefine mask bit value in a dedicated MSR to specify attributes of the offcore transaction.",
646 "SampleAfterValue": "100003",676 "SampleAfterValue": "100003",
647 "CounterHTOff": "0,1,2,3"677 "CounterHTOff": "0,1,2,3"
648 }678 }
tools/perf/pmu-events/arch/x86/broadwellx/other.json+10−10
@@ -9,16 +9,6 @@ · 8 unmodified lines
9 "SampleAfterValue": "2000003",9 "SampleAfterValue": "2000003",
10 "CounterHTOff": "0,1,2,3,4,5,6,7"10 "CounterHTOff": "0,1,2,3,4,5,6,7"
11 },11 },
12 {
13 "EventCode": "0x5C",
14 "UMask": "0x2",
15 "BriefDescription": "Unhalted core cycles when thread is in rings 1, 2, or 3",
16 "Counter": "0,1,2,3",
17 "EventName": "CPL_CYCLES.RING123",
18 "PublicDescription": "This event counts unhalted core cycles during which the thread is in rings 1, 2, or 3.",
19 "SampleAfterValue": "2000003",
20 "CounterHTOff": "0,1,2,3,4,5,6,7"
21 },
22 {12 {
23 "EdgeDetect": "1",13 "EdgeDetect": "1",
24 "EventCode": "0x5C",14 "EventCode": "0x5C",
@@ -31,6 +21,16 @@ · 6 unmodified lines
31 "SampleAfterValue": "100007",21 "SampleAfterValue": "100007",
32 "CounterHTOff": "0,1,2,3,4,5,6,7"22 "CounterHTOff": "0,1,2,3,4,5,6,7"
33 },23 },
24 {
25 "EventCode": "0x5C",
26 "UMask": "0x2",
27 "BriefDescription": "Unhalted core cycles when thread is in rings 1, 2, or 3",
28 "Counter": "0,1,2,3",
29 "EventName": "CPL_CYCLES.RING123",
30 "PublicDescription": "This event counts unhalted core cycles during which the thread is in rings 1, 2, or 3.",
31 "SampleAfterValue": "2000003",
32 "CounterHTOff": "0,1,2,3,4,5,6,7"
33 },
34 {34 {
35 "EventCode": "0x63",35 "EventCode": "0x63",
36 "UMask": "0x1",36 "UMask": "0x1",
tools/perf/pmu-events/arch/x86/broadwellx/pipeline.json+612−602
@@ -3,31 +3,41 @@ · 2 unmodified lines
3 "EventCode": "0x00",3 "EventCode": "0x00",
4 "UMask": "0x1",4 "UMask": "0x1",
5 "BriefDescription": "Instructions retired from execution.",5 "BriefDescription": "Instructions retired from execution.",
6 "Counter": "Fixed counter 1",6 "Counter": "Fixed counter 0",
7 "EventName": "INST_RETIRED.ANY",7 "EventName": "INST_RETIRED.ANY",
8 "PublicDescription": "This event counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. \nNotes: INST_RETIRED.ANY is counted by a designated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. INST_RETIRED.ANY_P is counted by a programmable counter and it is an architectural performance event. \nCounting: Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",8 "PublicDescription": "This event counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. \nNotes: INST_RETIRED.ANY is counted by a designated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. INST_RETIRED.ANY_P is counted by a programmable counter and it is an architectural performance event. \nCounting: Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",
9 "SampleAfterValue": "2000003",9 "SampleAfterValue": "2000003",
10 "CounterHTOff": "Fixed counter 1"10 "CounterHTOff": "Fixed counter 0"
11 },11 },
12 {12 {
13 "EventCode": "0x00",13 "EventCode": "0x00",
14 "UMask": "0x2",14 "UMask": "0x2",
15 "BriefDescription": "Core cycles when the thread is not in halt state",15 "BriefDescription": "Core cycles when the thread is not in halt state",
16 "Counter": "Fixed counter 2",16 "Counter": "Fixed counter 1",
17 "EventName": "CPU_CLK_UNHALTED.THREAD",17 "EventName": "CPU_CLK_UNHALTED.THREAD",
18 "PublicDescription": "This event counts the number of core cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events.",18 "PublicDescription": "This event counts the number of core cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events.",
19 "SampleAfterValue": "2000003",19 "SampleAfterValue": "2000003",
20 "CounterHTOff": "Fixed counter 2"20 "CounterHTOff": "Fixed counter 1"
21 },
22 {
23 "EventCode": "0x00",
24 "UMask": "0x2",
25 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
26 "Counter": "Fixed counter 1",
27 "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",
28 "AnyThread": "1",
29 "SampleAfterValue": "2000003",
30 "CounterHTOff": "Fixed counter 1"
21 },31 },
22 {32 {
23 "EventCode": "0x00",33 "EventCode": "0x00",
24 "UMask": "0x3",34 "UMask": "0x3",
25 "BriefDescription": "Reference cycles when the core is not in halt state.",35 "BriefDescription": "Reference cycles when the core is not in halt state.",
26 "Counter": "Fixed counter 3",36 "Counter": "Fixed counter 2",
27 "EventName": "CPU_CLK_UNHALTED.REF_TSC",37 "EventName": "CPU_CLK_UNHALTED.REF_TSC",
28 "PublicDescription": "This event counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. \nNote: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'. This event is clocked by base clock (100 Mhz) on Sandy Bridge. The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'. After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",38 "PublicDescription": "This event counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. \nNote: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'. This event is clocked by base clock (100 Mhz) on Sandy Bridge. The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'. After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",
29 "SampleAfterValue": "2000003",39 "SampleAfterValue": "2000003",
30 "CounterHTOff": "Fixed counter 3"40 "CounterHTOff": "Fixed counter 2"
31 },41 },
32 {42 {
33 "EventCode": "0x03",43 "EventCode": "0x03",
@@ -60,22 +70,33 @@ · 26 unmodified lines
60 },70 },
61 {71 {
62 "EventCode": "0x0D",72 "EventCode": "0x0D",
63 "UMask": "0x8",73 "UMask": "0x3",
64 "BriefDescription": "Cycles when Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the thread",74 "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread (e.g. misprediction or memory nuke)",
65 "Counter": "0,1,2,3",75 "Counter": "0,1,2,3",
66 "EventName": "INT_MISC.RAT_STALL_CYCLES",76 "EventName": "INT_MISC.RECOVERY_CYCLES",
67 "PublicDescription": "This event counts the number of cycles during which Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the current thread. This also includes the cycles during which the Allocator is serving another thread.",77 "CounterMask": "1",
78 "PublicDescription": "Cycles checkpoints in Resource Allocation Table (RAT) are recovering from JEClear or machine clear.",
68 "SampleAfterValue": "2000003",79 "SampleAfterValue": "2000003",
69 "CounterHTOff": "0,1,2,3,4,5,6,7"80 "CounterHTOff": "0,1,2,3,4,5,6,7"
70 },81 },
71 {82 {
72 "EventCode": "0x0D",83 "EventCode": "0x0D",
73 "UMask": "0x3",84 "UMask": "0x3",
74 "BriefDescription": "Number of cycles waiting for the checkpoints in Resource Allocation Table (RAT) to be recovered after Nuke due to all other cases except JEClear (e.g. whenever a ucode assist is needed like SSE exception, memory disambiguation, etc...)",85 "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke).",
75 "Counter": "0,1,2,3",86 "Counter": "0,1,2,3",
76 "EventName": "INT_MISC.RECOVERY_CYCLES",87 "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",
88 "AnyThread": "1",
77 "CounterMask": "1",89 "CounterMask": "1",
78 "PublicDescription": "Cycles checkpoints in Resource Allocation Table (RAT) are recovering from JEClear or machine clear.",90 "SampleAfterValue": "2000003",
91 "CounterHTOff": "0,1,2,3,4,5,6,7"
92 },
93 {
94 "EventCode": "0x0D",
95 "UMask": "0x8",
96 "BriefDescription": "Cycles when Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the thread",
97 "Counter": "0,1,2,3",
98 "EventName": "INT_MISC.RAT_STALL_CYCLES",
99 "PublicDescription": "This event counts the number of cycles during which Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the current thread. This also includes the cycles during which the Allocator is serving another thread.",
79 "SampleAfterValue": "2000003",100 "SampleAfterValue": "2000003",
80 "CounterHTOff": "0,1,2,3,4,5,6,7"101 "CounterHTOff": "0,1,2,3,4,5,6,7"
81 },102 },
@@ -89,6 +110,18 @@ · 7 unmodified lines
89 "SampleAfterValue": "2000003",110 "SampleAfterValue": "2000003",
90 "CounterHTOff": "0,1,2,3,4,5,6,7"111 "CounterHTOff": "0,1,2,3,4,5,6,7"
91 },112 },
113 {
114 "Invert": "1",
115 "EventCode": "0x0E",
116 "UMask": "0x1",
117 "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
118 "Counter": "0,1,2,3",
119 "EventName": "UOPS_ISSUED.STALL_CYCLES",
120 "CounterMask": "1",
121 "PublicDescription": "This event counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
122 "SampleAfterValue": "2000003",
123 "CounterHTOff": "0,1,2,3"
124 },
92 {125 {
93 "EventCode": "0x0E",126 "EventCode": "0x0E",
94 "UMask": "0x10",127 "UMask": "0x10",
@@ -117,18 +150,6 @@ · 22 unmodified lines
117 "SampleAfterValue": "2000003",150 "SampleAfterValue": "2000003",
118 "CounterHTOff": "0,1,2,3,4,5,6,7"151 "CounterHTOff": "0,1,2,3,4,5,6,7"
119 },152 },
120 {
121 "Invert": "1",
122 "EventCode": "0x0E",
123 "UMask": "0x1",
124 "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
125 "Counter": "0,1,2,3",
126 "EventName": "UOPS_ISSUED.STALL_CYCLES",
127 "CounterMask": "1",
128 "PublicDescription": "This event counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
129 "SampleAfterValue": "2000003",
130 "CounterHTOff": "0,1,2,3"
131 },
132 {153 {
133 "EventCode": "0x14",154 "EventCode": "0x14",
134 "UMask": "0x1",155 "UMask": "0x1",
@@ -139,6 +160,26 @@ · 4 unmodified lines
139 "SampleAfterValue": "2000003",160 "SampleAfterValue": "2000003",
140 "CounterHTOff": "0,1,2,3,4,5,6,7"161 "CounterHTOff": "0,1,2,3,4,5,6,7"
141 },162 },
163 {
164 "EventCode": "0x3C",
165 "UMask": "0x0",
166 "BriefDescription": "Thread cycles when thread is not in halt state",
167 "Counter": "0,1,2,3",
168 "EventName": "CPU_CLK_UNHALTED.THREAD_P",
169 "PublicDescription": "This is an architectural event that counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The core frequency may change from time to time due to power or thermal throttling. For this reason, this event may have a changing ratio with regards to wall clock time.",
170 "SampleAfterValue": "2000003",
171 "CounterHTOff": "0,1,2,3,4,5,6,7"
172 },
173 {
174 "EventCode": "0x3C",
175 "UMask": "0x0",
176 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
177 "Counter": "0,1,2,3",
178 "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",
179 "AnyThread": "1",
180 "SampleAfterValue": "2000003",
181 "CounterHTOff": "0,1,2,3,4,5,6,7"
182 },
142 {183 {
143 "EventCode": "0x3C",184 "EventCode": "0x3C",
144 "UMask": "0x1",185 "UMask": "0x1",
@@ -149,6 +190,36 @@ · 4 unmodified lines
149 "SampleAfterValue": "2000003",190 "SampleAfterValue": "2000003",
150 "CounterHTOff": "0,1,2,3,4,5,6,7"191 "CounterHTOff": "0,1,2,3,4,5,6,7"
151 },192 },
193 {
194 "EventCode": "0x3C",
195 "UMask": "0x1",
196 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
197 "Counter": "0,1,2,3",
198 "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",
199 "AnyThread": "1",
200 "SampleAfterValue": "2000003",
201 "CounterHTOff": "0,1,2,3,4,5,6,7"
202 },
203 {
204 "EventCode": "0x3C",
205 "UMask": "0x1",
206 "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
207 "Counter": "0,1,2,3",
208 "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
209 "PublicDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate).",
210 "SampleAfterValue": "2000003",
211 "CounterHTOff": "0,1,2,3,4,5,6,7"
212 },
213 {
214 "EventCode": "0x3C",
215 "UMask": "0x1",
216 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
217 "Counter": "0,1,2,3",
218 "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
219 "AnyThread": "1",
220 "SampleAfterValue": "2000003",
221 "CounterHTOff": "0,1,2,3,4,5,6,7"
222 },
152 {223 {
153 "EventCode": "0x3c",224 "EventCode": "0x3c",
154 "UMask": "0x2",225 "UMask": "0x2",
@@ -158,6 +229,15 @@ · 3 unmodified lines
158 "SampleAfterValue": "2000003",229 "SampleAfterValue": "2000003",
159 "CounterHTOff": "0,1,2,3"230 "CounterHTOff": "0,1,2,3"
160 },231 },
232 {
233 "EventCode": "0x3C",
234 "UMask": "0x2",
235 "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
236 "Counter": "0,1,2,3",
237 "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
238 "SampleAfterValue": "2000003",
239 "CounterHTOff": "0,1,2,3,4,5,6,7"
240 },
161 {241 {
162 "EventCode": "0x4c",242 "EventCode": "0x4c",
163 "UMask": "0x1",243 "UMask": "0x1",
@@ -224,6 +304,18 @@ · 60 unmodified lines
224 "SampleAfterValue": "2000003",304 "SampleAfterValue": "2000003",
225 "CounterHTOff": "0,1,2,3,4,5,6,7"305 "CounterHTOff": "0,1,2,3,4,5,6,7"
226 },306 },
307 {
308 "EdgeDetect": "1",
309 "Invert": "1",
310 "EventCode": "0x5E",
311 "UMask": "0x1",
312 "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
313 "Counter": "0,1,2,3",
314 "EventName": "RS_EVENTS.EMPTY_END",
315 "CounterMask": "1",
316 "SampleAfterValue": "200003",
317 "CounterHTOff": "0,1,2,3,4,5,6,7"
318 },
227 {319 {
228 "EventCode": "0x87",320 "EventCode": "0x87",
229 "UMask": "0x1",321 "UMask": "0x1",
@@ -404,6 +496,15 @@ · 174 unmodified lines
404 "SampleAfterValue": "200003",496 "SampleAfterValue": "200003",
405 "CounterHTOff": "0,1,2,3,4,5,6,7"497 "CounterHTOff": "0,1,2,3,4,5,6,7"
406 },498 },
499 {
500 "EventCode": "0x89",
501 "UMask": "0xa0",
502 "BriefDescription": "Taken speculative and retired mispredicted indirect calls.",
503 "Counter": "0,1,2,3",
504 "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_NEAR_CALL",
505 "SampleAfterValue": "200003",
506 "CounterHTOff": "0,1,2,3,4,5,6,7"
507 },
407 {508 {
408 "EventCode": "0x89",509 "EventCode": "0x89",
409 "UMask": "0xc1",510 "UMask": "0xc1",
@@ -434,6 +535,16 @@ · 24 unmodified lines
434 "SampleAfterValue": "200003",535 "SampleAfterValue": "200003",
435 "CounterHTOff": "0,1,2,3,4,5,6,7"536 "CounterHTOff": "0,1,2,3,4,5,6,7"
436 },537 },
538 {
539 "EventCode": "0xA0",
540 "UMask": "0x3",
541 "BriefDescription": "Micro-op dispatches cancelled due to insufficient SIMD physical register file read ports",
542 "Counter": "0,1,2,3",
543 "EventName": "UOP_DISPATCHES_CANCELLED.SIMD_PRF",
544 "PublicDescription": "This event counts the number of micro-operations cancelled after they were dispatched from the scheduler to the execution units when the total number of physical register read ports across all dispatch ports exceeds the read bandwidth of the physical register file. The SIMD_PRF subevent applies to the following instructions: VDPPS, DPPS, VPCMPESTRI, PCMPESTRI, VPCMPESTRM, PCMPESTRM, VFMADD*, VFMADDSUB*, VFMSUB*, VMSUBADD*, VFNMADD*, VFNMSUB*. See the Broadwell Optimization Guide for more information.",
545 "SampleAfterValue": "2000003",
546 "CounterHTOff": "0,1,2,3"
547 },
437 {548 {
438 "EventCode": "0xA1",549 "EventCode": "0xA1",
439 "UMask": "0x1",550 "UMask": "0x1",
@@ -446,601 +557,471 @@ · 6 unmodified lines
446 },557 },
447 {558 {
448 "EventCode": "0xA1",559 "EventCode": "0xA1",
449 "UMask": "0x2",560 "UMask": "0x1",
450 "BriefDescription": "Cycles per thread when uops are executed in port 1",561 "BriefDescription": "Cycles per core when uops are exectuted in port 0.",
451 "Counter": "0,1,2,3",562 "Counter": "0,1,2,3",
452 "EventName": "UOPS_DISPATCHED_PORT.PORT_1",563 "EventName": "UOPS_EXECUTED_PORT.PORT_0_CORE",
453 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",564 "AnyThread": "1",
454 "SampleAfterValue": "2000003",565 "SampleAfterValue": "2000003",
455 "CounterHTOff": "0,1,2,3,4,5,6,7"566 "CounterHTOff": "0,1,2,3,4,5,6,7"
456 },567 },
457 {568 {
458 "EventCode": "0xA1",569 "EventCode": "0xA1",
459 "UMask": "0x4",570 "UMask": "0x1",
460 "BriefDescription": "Cycles per thread when uops are executed in port 2",571 "BriefDescription": "Cycles per thread when uops are executed in port 0",
461 "Counter": "0,1,2,3",572 "Counter": "0,1,2,3",
462 "EventName": "UOPS_DISPATCHED_PORT.PORT_2",573 "EventName": "UOPS_EXECUTED_PORT.PORT_0",
463 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",574 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",
464 "SampleAfterValue": "2000003",575 "SampleAfterValue": "2000003",
465 "CounterHTOff": "0,1,2,3,4,5,6,7"576 "CounterHTOff": "0,1,2,3,4,5,6,7"
466 },577 },
467 {578 {
468 "EventCode": "0xA1",579 "EventCode": "0xA1",
469 "UMask": "0x8",580 "UMask": "0x2",
470 "BriefDescription": "Cycles per thread when uops are executed in port 3",581 "BriefDescription": "Cycles per thread when uops are executed in port 1",
471 "Counter": "0,1,2,3",582 "Counter": "0,1,2,3",
472 "EventName": "UOPS_DISPATCHED_PORT.PORT_3",583 "EventName": "UOPS_DISPATCHED_PORT.PORT_1",
473 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",584 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",
474 "SampleAfterValue": "2000003",585 "SampleAfterValue": "2000003",
475 "CounterHTOff": "0,1,2,3,4,5,6,7"586 "CounterHTOff": "0,1,2,3,4,5,6,7"
476 },587 },
477 {588 {
478 "EventCode": "0xA1",589 "EventCode": "0xA1",
479 "UMask": "0x10",590 "UMask": "0x2",
480 "BriefDescription": "Cycles per thread when uops are executed in port 4",591 "BriefDescription": "Cycles per core when uops are exectuted in port 1.",
481 "Counter": "0,1,2,3",592 "Counter": "0,1,2,3",
482 "EventName": "UOPS_DISPATCHED_PORT.PORT_4",593 "EventName": "UOPS_EXECUTED_PORT.PORT_1_CORE",
483 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",594 "AnyThread": "1",
484 "SampleAfterValue": "2000003",595 "SampleAfterValue": "2000003",
485 "CounterHTOff": "0,1,2,3,4,5,6,7"596 "CounterHTOff": "0,1,2,3,4,5,6,7"
486 },597 },
487 {598 {
488 "EventCode": "0xA1",599 "EventCode": "0xA1",
489 "UMask": "0x20",600 "UMask": "0x2",
490 "BriefDescription": "Cycles per thread when uops are executed in port 5",601 "BriefDescription": "Cycles per thread when uops are executed in port 1",
491 "Counter": "0,1,2,3",602 "Counter": "0,1,2,3",
492 "EventName": "UOPS_DISPATCHED_PORT.PORT_5",603 "EventName": "UOPS_EXECUTED_PORT.PORT_1",
493 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",604 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",
494 "SampleAfterValue": "2000003",605 "SampleAfterValue": "2000003",
495 "CounterHTOff": "0,1,2,3,4,5,6,7"606 "CounterHTOff": "0,1,2,3,4,5,6,7"
496 },607 },
497 {608 {
498 "EventCode": "0xA1",609 "EventCode": "0xA1",
499 "UMask": "0x40",610 "UMask": "0x4",
500 "BriefDescription": "Cycles per thread when uops are executed in port 6",611 "BriefDescription": "Cycles per thread when uops are executed in port 2",
501 "Counter": "0,1,2,3",612 "Counter": "0,1,2,3",
502 "EventName": "UOPS_DISPATCHED_PORT.PORT_6",613 "EventName": "UOPS_DISPATCHED_PORT.PORT_2",
503 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",614 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",
504 "SampleAfterValue": "2000003",615 "SampleAfterValue": "2000003",
505 "CounterHTOff": "0,1,2,3,4,5,6,7"616 "CounterHTOff": "0,1,2,3,4,5,6,7"
506 },617 },
507 {618 {
508 "EventCode": "0xA1",619 "EventCode": "0xA1",
509 "UMask": "0x80",620 "UMask": "0x4",
510 "BriefDescription": "Cycles per thread when uops are executed in port 7",621 "BriefDescription": "Cycles per core when uops are dispatched to port 2.",
511 "Counter": "0,1,2,3",622 "Counter": "0,1,2,3",
512 "EventName": "UOPS_DISPATCHED_PORT.PORT_7",623 "EventName": "UOPS_EXECUTED_PORT.PORT_2_CORE",
513 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",624 "AnyThread": "1",
514 "SampleAfterValue": "2000003",625 "SampleAfterValue": "2000003",
515 "CounterHTOff": "0,1,2,3,4,5,6,7"626 "CounterHTOff": "0,1,2,3,4,5,6,7"
516 },627 },
517 {628 {
518 "EventCode": "0xA2",629 "EventCode": "0xA1",
519 "UMask": "0x1",630 "UMask": "0x4",
520 "BriefDescription": "Resource-related stall cycles",631 "BriefDescription": "Cycles per thread when uops are executed in port 2",
521 "Counter": "0,1,2,3",632 "Counter": "0,1,2,3",
522 "EventName": "RESOURCE_STALLS.ANY",633 "EventName": "UOPS_EXECUTED_PORT.PORT_2",
523 "PublicDescription": "This event counts resource-related stall cycles. Reasons for stalls can be as follows:\n - *any* u-arch structure got full (LB, SB, RS, ROB, BOB, LM, Physical Register Reclaim Table (PRRT), or Physical History Table (PHT) slots)\n - *any* u-arch structure got empty (like INT/SIMD FreeLists)\n - FPU control word (FPCW), MXCSR\nand others. This counts cycles that the pipeline backend blocked uop delivery from the front end.",634 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",
524 "SampleAfterValue": "2000003",635 "SampleAfterValue": "2000003",
525 "CounterHTOff": "0,1,2,3,4,5,6,7"636 "CounterHTOff": "0,1,2,3,4,5,6,7"
526 },637 },
527 {638 {
528 "EventCode": "0xA2",639 "EventCode": "0xA1",
529 "UMask": "0x4",640 "UMask": "0x8",
530 "BriefDescription": "Cycles stalled due to no eligible RS entry available.",641 "BriefDescription": "Cycles per thread when uops are executed in port 3",
531 "Counter": "0,1,2,3",642 "Counter": "0,1,2,3",
532 "EventName": "RESOURCE_STALLS.RS",643 "EventName": "UOPS_DISPATCHED_PORT.PORT_3",
533 "PublicDescription": "This event counts stall cycles caused by absence of eligible entries in the reservation station (RS). This may result from RS overflow, or from RS deallocation because of the RS array Write Port allocation scheme (each RS entry has two write ports instead of four. As a result, empty entries could not be used, although RS is not really full). This counts cycles that the pipeline backend blocked uop delivery from the front end.",644 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",
534 "SampleAfterValue": "2000003",645 "SampleAfterValue": "2000003",
535 "CounterHTOff": "0,1,2,3,4,5,6,7"646 "CounterHTOff": "0,1,2,3,4,5,6,7"
536 },647 },
537 {648 {
538 "EventCode": "0xA2",649 "EventCode": "0xA1",
539 "UMask": "0x8",650 "UMask": "0x8",
540 "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",651 "BriefDescription": "Cycles per core when uops are dispatched to port 3.",
541 "Counter": "0,1,2,3",652 "Counter": "0,1,2,3",
542 "EventName": "RESOURCE_STALLS.SB",653 "EventName": "UOPS_EXECUTED_PORT.PORT_3_CORE",
543 "PublicDescription": "This event counts stall cycles caused by the store buffer (SB) overflow (excluding draining from synch). This counts cycles that the pipeline backend blocked uop delivery from the front end.",654 "AnyThread": "1",
544 "SampleAfterValue": "2000003",655 "SampleAfterValue": "2000003",
545 "CounterHTOff": "0,1,2,3,4,5,6,7"656 "CounterHTOff": "0,1,2,3,4,5,6,7"
546 },657 },
547 {658 {
548 "EventCode": "0xA2",659 "EventCode": "0xA1",
549 "UMask": "0x10",660 "UMask": "0x8",
550 "BriefDescription": "Cycles stalled due to re-order buffer full.",661 "BriefDescription": "Cycles per thread when uops are executed in port 3",
551 "Counter": "0,1,2,3",662 "Counter": "0,1,2,3",
552 "EventName": "RESOURCE_STALLS.ROB",663 "EventName": "UOPS_EXECUTED_PORT.PORT_3",
553 "PublicDescription": "This event counts ROB full stall cycles. This counts cycles that the pipeline backend blocked uop delivery from the front end.",664 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",
554 "SampleAfterValue": "2000003",665 "SampleAfterValue": "2000003",
555 "CounterHTOff": "0,1,2,3,4,5,6,7"666 "CounterHTOff": "0,1,2,3,4,5,6,7"
556 },667 },
557 {668 {
558 "EventCode": "0xA3",669 "EventCode": "0xA1",
559 "UMask": "0x1",670 "UMask": "0x10",
560 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",671 "BriefDescription": "Cycles per thread when uops are executed in port 4",
561 "Counter": "0,1,2,3",672 "Counter": "0,1,2,3",
562 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_PENDING",673 "EventName": "UOPS_DISPATCHED_PORT.PORT_4",
563 "CounterMask": "1",674 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",
564 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand* load request missing the L2 cache.",
565 "SampleAfterValue": "2000003",675 "SampleAfterValue": "2000003",
566 "CounterHTOff": "0,1,2,3,4,5,6,7"676 "CounterHTOff": "0,1,2,3,4,5,6,7"
567 },677 },
568 {678 {
569 "EventCode": "0xA3",679 "EventCode": "0xA1",
570 "UMask": "0x8",680 "UMask": "0x10",
571 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",681 "BriefDescription": "Cycles per core when uops are exectuted in port 4.",
572 "Counter": "2",
573 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_PENDING",
574 "CounterMask": "8",
575 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request missing the L1 data cache.",
576 "SampleAfterValue": "2000003",
577 "CounterHTOff": "2"
578 },
579 {
580 "EventCode": "0xA3",
581 "UMask": "0x2",
582 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
583 "Counter": "0,1,2,3",682 "Counter": "0,1,2,3",
584 "EventName": "CYCLE_ACTIVITY.CYCLES_LDM_PENDING",683 "EventName": "UOPS_EXECUTED_PORT.PORT_4_CORE",
585 "CounterMask": "2",684 "AnyThread": "1",
586 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request (that is cycles with non-completed load waiting for its data from memory subsystem).",
587 "SampleAfterValue": "2000003",685 "SampleAfterValue": "2000003",
588 "CounterHTOff": "0,1,2,3,4,5,6,7"686 "CounterHTOff": "0,1,2,3,4,5,6,7"
589 },687 },
590 {688 {
591 "EventCode": "0xA3",689 "EventCode": "0xA1",
592 "UMask": "0x4",690 "UMask": "0x10",
593 "BriefDescription": "Total execution stalls",691 "BriefDescription": "Cycles per thread when uops are executed in port 4",
594 "Counter": "0,1,2,3",692 "Counter": "0,1,2,3",
595 "EventName": "CYCLE_ACTIVITY.CYCLES_NO_EXECUTE",693 "EventName": "UOPS_EXECUTED_PORT.PORT_4",
596 "CounterMask": "4",694 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",
597 "PublicDescription": "Counts number of cycles nothing is executed on any execution port.",
598 "SampleAfterValue": "2000003",695 "SampleAfterValue": "2000003",
599 "CounterHTOff": "0,1,2,3"696 "CounterHTOff": "0,1,2,3,4,5,6,7"
600 },697 },
601 {698 {
602 "EventCode": "0xA3",699 "EventCode": "0xA1",
603 "UMask": "0x5",700 "UMask": "0x20",
604 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",701 "BriefDescription": "Cycles per thread when uops are executed in port 5",
605 "Counter": "0,1,2,3",702 "Counter": "0,1,2,3",
606 "EventName": "CYCLE_ACTIVITY.STALLS_L2_PENDING",703 "EventName": "UOPS_DISPATCHED_PORT.PORT_5",
607 "CounterMask": "5",704 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",
608 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand* load request missing the L2 cache.(as a footprint) * includes also L1 HW prefetch requests that may or may not be required by demands.",
609 "SampleAfterValue": "2000003",705 "SampleAfterValue": "2000003",
610 "CounterHTOff": "0,1,2,3"706 "CounterHTOff": "0,1,2,3,4,5,6,7"
611 },707 },
612 {708 {
613 "EventCode": "0xA3",709 "EventCode": "0xA1",
614 "UMask": "0x6",710 "UMask": "0x20",
615 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",711 "BriefDescription": "Cycles per core when uops are exectuted in port 5.",
616 "Counter": "0,1,2,3",712 "Counter": "0,1,2,3",
617 "EventName": "CYCLE_ACTIVITY.STALLS_LDM_PENDING",713 "EventName": "UOPS_EXECUTED_PORT.PORT_5_CORE",
618 "CounterMask": "6",714 "AnyThread": "1",
619 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request.",
620 "SampleAfterValue": "2000003",715 "SampleAfterValue": "2000003",
621 "CounterHTOff": "0,1,2,3"716 "CounterHTOff": "0,1,2,3,4,5,6,7"
622 },717 },
623 {718 {
624 "EventCode": "0xA3",719 "EventCode": "0xA1",
625 "UMask": "0xc",720 "UMask": "0x20",
626 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",721 "BriefDescription": "Cycles per thread when uops are executed in port 5",
627 "Counter": "2",722 "Counter": "0,1,2,3",
628 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_PENDING",723 "EventName": "UOPS_EXECUTED_PORT.PORT_5",
629 "CounterMask": "12",724 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",
630 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request missing the L1 data cache.",
631 "SampleAfterValue": "2000003",725 "SampleAfterValue": "2000003",
632 "CounterHTOff": "2"726 "CounterHTOff": "0,1,2,3,4,5,6,7"
633 },727 },
634 {728 {
635 "EventCode": "0xA8",729 "EventCode": "0xA1",
636 "UMask": "0x1",730 "UMask": "0x40",
637 "BriefDescription": "Number of Uops delivered by the LSD.",731 "BriefDescription": "Cycles per thread when uops are executed in port 6",
638 "Counter": "0,1,2,3",732 "Counter": "0,1,2,3",
639 "EventName": "LSD.UOPS",733 "EventName": "UOPS_DISPATCHED_PORT.PORT_6",
640 "PublicDescription": "Number of Uops delivered by the LSD. ",734 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",
641 "SampleAfterValue": "2000003",735 "SampleAfterValue": "2000003",
642 "CounterHTOff": "0,1,2,3,4,5,6,7"736 "CounterHTOff": "0,1,2,3,4,5,6,7"
643 },737 },
644 {738 {
645 "EventCode": "0xB1",739 "EventCode": "0xA1",
646 "UMask": "0x1",740 "UMask": "0x40",
647 "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",741 "BriefDescription": "Cycles per core when uops are exectuted in port 6.",
648 "Counter": "0,1,2,3",742 "Counter": "0,1,2,3",
649 "EventName": "UOPS_EXECUTED.THREAD",743 "EventName": "UOPS_EXECUTED_PORT.PORT_6_CORE",
650 "PublicDescription": "Number of uops to be executed per-thread each cycle.",744 "AnyThread": "1",
651 "SampleAfterValue": "2000003",745 "SampleAfterValue": "2000003",
652 "CounterHTOff": "0,1,2,3,4,5,6,7"746 "CounterHTOff": "0,1,2,3,4,5,6,7"
653 },747 },
654 {748 {
655 "EventCode": "0xB1",749 "EventCode": "0xA1",
656 "UMask": "0x2",750 "UMask": "0x40",
657 "BriefDescription": "Number of uops executed on the core.",751 "BriefDescription": "Cycles per thread when uops are executed in port 6",
658 "Counter": "0,1,2,3",752 "Counter": "0,1,2,3",
659 "EventName": "UOPS_EXECUTED.CORE",753 "EventName": "UOPS_EXECUTED_PORT.PORT_6",
660 "PublicDescription": "Number of uops executed from any thread.",754 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",
661 "SampleAfterValue": "2000003",755 "SampleAfterValue": "2000003",
662 "CounterHTOff": "0,1,2,3,4,5,6,7"756 "CounterHTOff": "0,1,2,3,4,5,6,7"
663 },757 },
664 {758 {
665 "Invert": "1",759 "EventCode": "0xA1",
666 "EventCode": "0xB1",760 "UMask": "0x80",
667 "UMask": "0x1",761 "BriefDescription": "Cycles per thread when uops are executed in port 7",
668 "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
669 "Counter": "0,1,2,3",762 "Counter": "0,1,2,3",
670 "EventName": "UOPS_EXECUTED.STALL_CYCLES",763 "EventName": "UOPS_DISPATCHED_PORT.PORT_7",
671 "CounterMask": "1",764 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",
672 "PublicDescription": "This event counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
673 "SampleAfterValue": "2000003",765 "SampleAfterValue": "2000003",
674 "CounterHTOff": "0,1,2,3"766 "CounterHTOff": "0,1,2,3,4,5,6,7"
675 },767 },
676 {768 {
677 "EventCode": "0xC0",769 "EventCode": "0xA1",
678 "UMask": "0x0",770 "UMask": "0x80",
679 "BriefDescription": "Number of instructions retired. General Counter - architectural event",771 "BriefDescription": "Cycles per core when uops are dispatched to port 7.",
680 "Counter": "0,1,2,3",772 "Counter": "0,1,2,3",
681 "EventName": "INST_RETIRED.ANY_P",773 "EventName": "UOPS_EXECUTED_PORT.PORT_7_CORE",
682 "Errata": "BDM61",774 "AnyThread": "1",
683 "PublicDescription": "This event counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
684 "SampleAfterValue": "2000003",775 "SampleAfterValue": "2000003",
685 "CounterHTOff": "0,1,2,3,4,5,6,7"776 "CounterHTOff": "0,1,2,3,4,5,6,7"
686 },777 },
687 {778 {
688 "EventCode": "0xC0",779 "EventCode": "0xA1",
689 "UMask": "0x2",780 "UMask": "0x80",
690 "BriefDescription": "FP operations retired. X87 FP operations that have no exceptions:",781 "BriefDescription": "Cycles per thread when uops are executed in port 7",
691 "Counter": "0,1,2,3",782 "Counter": "0,1,2,3",
692 "EventName": "INST_RETIRED.X87",783 "EventName": "UOPS_EXECUTED_PORT.PORT_7",
693 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts FP operations retired. For X87 FP operations that have no exceptions counting also includes flows that have several X87, or flows that use X87 uops in the exception handling.",784 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",
694 "SampleAfterValue": "2000003",785 "SampleAfterValue": "2000003",
695 "CounterHTOff": "0,1,2,3,4,5,6,7"786 "CounterHTOff": "0,1,2,3,4,5,6,7"
696 },787 },
697 {788 {
698 "EventCode": "0xC0",789 "EventCode": "0xA2",
699 "UMask": "0x1",790 "UMask": "0x1",
700 "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",791 "BriefDescription": "Resource-related stall cycles",
701 "PEBS": "2",792 "Counter": "0,1,2,3",
702 "Counter": "1",793 "EventName": "RESOURCE_STALLS.ANY",
703 "EventName": "INST_RETIRED.PREC_DIST",794 "PublicDescription": "This event counts resource-related stall cycles. Reasons for stalls can be as follows:\n - *any* u-arch structure got full (LB, SB, RS, ROB, BOB, LM, Physical Register Reclaim Table (PRRT), or Physical History Table (PHT) slots)\n - *any* u-arch structure got empty (like INT/SIMD FreeLists)\n - FPU control word (FPCW), MXCSR\nand others. This counts cycles that the pipeline backend blocked uop delivery from the front end.",
704 "Errata": "BDM11, BDM55",
705 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts instructions retired.",
706 "SampleAfterValue": "2000003",795 "SampleAfterValue": "2000003",
707 "CounterHTOff": "1"796 "CounterHTOff": "0,1,2,3,4,5,6,7"
708 },797 },
709 {798 {
710 "EventCode": "0xC1",799 "EventCode": "0xA2",
711 "UMask": "0x40",800 "UMask": "0x4",
712 "BriefDescription": "Number of times any microcode assist is invoked by HW upon uop writeback.",801 "BriefDescription": "Cycles stalled due to no eligible RS entry available.",
713 "Counter": "0,1,2,3",802 "Counter": "0,1,2,3",
714 "EventName": "OTHER_ASSISTS.ANY_WB_ASSIST",803 "EventName": "RESOURCE_STALLS.RS",
715 "SampleAfterValue": "100003",804 "PublicDescription": "This event counts stall cycles caused by absence of eligible entries in the reservation station (RS). This may result from RS overflow, or from RS deallocation because of the RS array Write Port allocation scheme (each RS entry has two write ports instead of four. As a result, empty entries could not be used, although RS is not really full). This counts cycles that the pipeline backend blocked uop delivery from the front end.",
805 "SampleAfterValue": "2000003",
716 "CounterHTOff": "0,1,2,3,4,5,6,7"806 "CounterHTOff": "0,1,2,3,4,5,6,7"
717 },807 },
718 {808 {
719 "EventCode": "0xC2",809 "EventCode": "0xA2",
720 "UMask": "0x1",810 "UMask": "0x8",
721 "BriefDescription": "Actually retired uops.",811 "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
722 "Data_LA": "1",
723 "PEBS": "1",
724 "Counter": "0,1,2,3",812 "Counter": "0,1,2,3",
725 "EventName": "UOPS_RETIRED.ALL",813 "EventName": "RESOURCE_STALLS.SB",
726 "PublicDescription": "This event counts all actually retired uops. Counting increments by two for micro-fused uops, and by one for macro-fused and other uops. Maximal increment value for one cycle is eight.",814 "PublicDescription": "This event counts stall cycles caused by the store buffer (SB) overflow (excluding draining from synch). This counts cycles that the pipeline backend blocked uop delivery from the front end.",
727 "SampleAfterValue": "2000003",815 "SampleAfterValue": "2000003",
728 "CounterHTOff": "0,1,2,3,4,5,6,7"816 "CounterHTOff": "0,1,2,3,4,5,6,7"
729 },817 },
730 {818 {
731 "EventCode": "0xC2",819 "EventCode": "0xA2",
732 "UMask": "0x2",820 "UMask": "0x10",
733 "BriefDescription": "Retirement slots used.",821 "BriefDescription": "Cycles stalled due to re-order buffer full.",
734 "PEBS": "1",
735 "Counter": "0,1,2,3",822 "Counter": "0,1,2,3",
736 "EventName": "UOPS_RETIRED.RETIRE_SLOTS",823 "EventName": "RESOURCE_STALLS.ROB",
737 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts the number of retirement slots used.",824 "PublicDescription": "This event counts ROB full stall cycles. This counts cycles that the pipeline backend blocked uop delivery from the front end.",
738 "SampleAfterValue": "2000003",825 "SampleAfterValue": "2000003",
739 "CounterHTOff": "0,1,2,3,4,5,6,7"826 "CounterHTOff": "0,1,2,3,4,5,6,7"
740 },827 },
741 {828 {
742 "Invert": "1",829 "EventCode": "0xA3",
743 "EventCode": "0xC2",
744 "UMask": "0x1",830 "UMask": "0x1",
745 "BriefDescription": "Cycles without actually retired uops.",831 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
746 "Counter": "0,1,2,3",832 "Counter": "0,1,2,3",
747 "EventName": "UOPS_RETIRED.STALL_CYCLES",833 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_PENDING",
748 "CounterMask": "1",834 "CounterMask": "1",
749 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts cycles without actually retired uops.",835 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand* load request missing the L2 cache.",
750 "SampleAfterValue": "2000003",836 "SampleAfterValue": "2000003",
751 "CounterHTOff": "0,1,2,3"837 "CounterHTOff": "0,1,2,3,4,5,6,7"
752 },838 },
753 {839 {
754 "Invert": "1",840 "EventCode": "0xA3",
755 "EventCode": "0xC2",
756 "UMask": "0x1",841 "UMask": "0x1",
757 "BriefDescription": "Cycles with less than 10 actually retired uops.",842 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
758 "Counter": "0,1,2,3",843 "Counter": "0,1,2,3",
759 "EventName": "UOPS_RETIRED.TOTAL_CYCLES",844 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
760 "CounterMask": "10",845 "CounterMask": "1",
761 "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
762 "SampleAfterValue": "2000003",846 "SampleAfterValue": "2000003",
763 "CounterHTOff": "0,1,2,3"847 "CounterHTOff": "0,1,2,3,4,5,6,7"
764 },848 },
765 {849 {
766 "EventCode": "0xC3",850 "EventCode": "0xA3",
767 "UMask": "0x1",851 "UMask": "0x2",
768 "BriefDescription": "Cycles there was a Nuke. Account for both thread-specific and All Thread Nukes.",852 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
769 "Counter": "0,1,2,3",853 "Counter": "0,1,2,3",
770 "EventName": "MACHINE_CLEARS.CYCLES",854 "EventName": "CYCLE_ACTIVITY.CYCLES_LDM_PENDING",
771 "PublicDescription": "This event counts both thread-specific (TS) and all-thread (AT) nukes.",855 "CounterMask": "2",
856 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request (that is cycles with non-completed load waiting for its data from memory subsystem).",
772 "SampleAfterValue": "2000003",857 "SampleAfterValue": "2000003",
773 "CounterHTOff": "0,1,2,3,4,5,6,7"858 "CounterHTOff": "0,1,2,3,4,5,6,7"
774 },859 },
775 {860 {
776 "EventCode": "0xC3",861 "EventCode": "0xA3",
862 "UMask": "0x2",
863 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
864 "Counter": "0,1,2,3",
865 "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
866 "CounterMask": "2",
867 "SampleAfterValue": "2000003",
868 "CounterHTOff": "0,1,2,3"
869 },
870 {
871 "EventCode": "0xA3",
777 "UMask": "0x4",872 "UMask": "0x4",
778 "BriefDescription": "Self-modifying code (SMC) detected.",873 "BriefDescription": "This event increments by 1 for every cycle where there was no execute for this thread.",
779 "Counter": "0,1,2,3",874 "Counter": "0,1,2,3",
780 "EventName": "MACHINE_CLEARS.SMC",875 "EventName": "CYCLE_ACTIVITY.CYCLES_NO_EXECUTE",
781 "PublicDescription": "This event counts self-modifying code (SMC) detected, which causes a machine clear.",876 "CounterMask": "4",
782 "SampleAfterValue": "100003",877 "PublicDescription": "Counts number of cycles nothing is executed on any execution port.",
783 "CounterHTOff": "0,1,2,3,4,5,6,7"878 "SampleAfterValue": "2000003",
879 "CounterHTOff": "0,1,2,3"
784 },880 },
785 {881 {
786 "EventCode": "0xC3",882 "EventCode": "0xA3",
787 "UMask": "0x20",883 "UMask": "0x4",
788 "BriefDescription": "This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0.",884 "BriefDescription": "Total execution stalls.",
789 "Counter": "0,1,2,3",885 "Counter": "0,1,2,3",
790 "EventName": "MACHINE_CLEARS.MASKMOV",886 "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
791 "PublicDescription": "Maskmov false fault - counts number of time ucode passes through Maskmov flow due to instruction's mask being 0 while the flow was completed without raising a fault.",887 "CounterMask": "4",
792 "SampleAfterValue": "100003",888 "SampleAfterValue": "2000003",
793 "CounterHTOff": "0,1,2,3,4,5,6,7"889 "CounterHTOff": "0,1,2,3,4,5,6,7"
794 },890 },
795 {891 {
796 "EventCode": "0xC4",892 "EventCode": "0xA3",
797 "UMask": "0x1",893 "UMask": "0x5",
798 "BriefDescription": "Conditional branch instructions retired.",894 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
799 "PEBS": "1",
800 "Counter": "0,1,2,3",
801 "EventName": "BR_INST_RETIRED.CONDITIONAL",
802 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts conditional branch instructions retired.",
803 "SampleAfterValue": "400009",
804 "CounterHTOff": "0,1,2,3,4,5,6,7"
805 },
806 {
807 "EventCode": "0xC4",
808 "UMask": "0x2",
809 "BriefDescription": "Direct and indirect near call instructions retired.",
810 "PEBS": "1",
811 "Counter": "0,1,2,3",
812 "EventName": "BR_INST_RETIRED.NEAR_CALL",
813 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts both direct and indirect near call instructions retired.",
814 "SampleAfterValue": "100007",
815 "CounterHTOff": "0,1,2,3,4,5,6,7"
816 },
817 {
818 "EventCode": "0xC4",
819 "UMask": "0x0",
820 "BriefDescription": "All (macro) branch instructions retired.",
821 "Counter": "0,1,2,3",
822 "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
823 "PublicDescription": "This event counts all (macro) branch instructions retired.",
824 "SampleAfterValue": "400009",
825 "CounterHTOff": "0,1,2,3,4,5,6,7"
826 },
827 {
828 "EventCode": "0xC4",
829 "UMask": "0x8",
830 "BriefDescription": "Return instructions retired.",
831 "PEBS": "1",
832 "Counter": "0,1,2,3",
833 "EventName": "BR_INST_RETIRED.NEAR_RETURN",
834 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts return instructions retired.",
835 "SampleAfterValue": "100007",
836 "CounterHTOff": "0,1,2,3,4,5,6,7"
837 },
838 {
839 "EventCode": "0xC4",
840 "UMask": "0x10",
841 "BriefDescription": "Not taken branch instructions retired.",
842 "Counter": "0,1,2,3",
843 "EventName": "BR_INST_RETIRED.NOT_TAKEN",
844 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts not taken branch instructions retired.",
845 "SampleAfterValue": "400009",
846 "CounterHTOff": "0,1,2,3,4,5,6,7"
847 },
848 {
849 "EventCode": "0xC4",
850 "UMask": "0x20",
851 "BriefDescription": "Taken branch instructions retired.",
852 "PEBS": "1",
853 "Counter": "0,1,2,3",
854 "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
855 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts taken branch instructions retired.",
856 "SampleAfterValue": "400009",
857 "CounterHTOff": "0,1,2,3,4,5,6,7"
858 },
859 {
860 "EventCode": "0xC4",
861 "UMask": "0x40",
862 "BriefDescription": "Far branch instructions retired.",
863 "Counter": "0,1,2,3",
864 "EventName": "BR_INST_RETIRED.FAR_BRANCH",
865 "Errata": "BDW98",
866 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts far branch instructions retired.",
867 "SampleAfterValue": "100007",
868 "CounterHTOff": "0,1,2,3,4,5,6,7"
869 },
870 {
871 "EventCode": "0xC4",
872 "UMask": "0x4",
873 "BriefDescription": "All (macro) branch instructions retired. (Precise Event - PEBS)",
874 "PEBS": "2",
875 "Counter": "0,1,2,3",895 "Counter": "0,1,2,3",
876 "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",896 "EventName": "CYCLE_ACTIVITY.STALLS_L2_PENDING",
877 "Errata": "BDW98",897 "CounterMask": "5",
878 "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",898 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand* load request missing the L2 cache.(as a footprint) * includes also L1 HW prefetch requests that may or may not be required by demands.",
879 "SampleAfterValue": "400009",899 "SampleAfterValue": "2000003",
880 "CounterHTOff": "0,1,2,3"900 "CounterHTOff": "0,1,2,3"
881 },901 },
882 {902 {
883 "EventCode": "0xC5",903 "EventCode": "0xA3",
884 "UMask": "0x1",904 "UMask": "0x5",
885 "BriefDescription": "Mispredicted conditional branch instructions retired.",905 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
886 "PEBS": "1",
887 "Counter": "0,1,2,3",
888 "EventName": "BR_MISP_RETIRED.CONDITIONAL",
889 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts mispredicted conditional branch instructions retired.",
890 "SampleAfterValue": "400009",
891 "CounterHTOff": "0,1,2,3,4,5,6,7"
892 },
893 {
894 "EventCode": "0xC5",
895 "UMask": "0x0",
896 "BriefDescription": "All mispredicted macro branch instructions retired.",
897 "Counter": "0,1,2,3",
898 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
899 "PublicDescription": "This event counts all mispredicted macro branch instructions retired.",
900 "SampleAfterValue": "400009",
901 "CounterHTOff": "0,1,2,3,4,5,6,7"
902 },
903 {
904 "EventCode": "0xC5",
905 "UMask": "0x8",
906 "BriefDescription": "This event counts the number of mispredicted ret instructions retired. Non PEBS",
907 "PEBS": "1",
908 "Counter": "0,1,2,3",906 "Counter": "0,1,2,3",
909 "EventName": "BR_MISP_RETIRED.RET",907 "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
910 "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts mispredicted return instructions retired.",908 "CounterMask": "5",
911 "SampleAfterValue": "100007",909 "SampleAfterValue": "2000003",
912 "CounterHTOff": "0,1,2,3,4,5,6,7"910 "CounterHTOff": "0,1,2,3,4,5,6,7"
913 },911 },
914 {912 {
915 "EventCode": "0xC5",913 "EventCode": "0xA3",
916 "UMask": "0x4",914 "UMask": "0x6",
917 "BriefDescription": "Mispredicted macro branch instructions retired. (Precise Event - PEBS)",915 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
918 "PEBS": "2",
919 "Counter": "0,1,2,3",916 "Counter": "0,1,2,3",
920 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",917 "EventName": "CYCLE_ACTIVITY.STALLS_LDM_PENDING",
921 "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",918 "CounterMask": "6",
922 "SampleAfterValue": "400009",919 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request.",
920 "SampleAfterValue": "2000003",
923 "CounterHTOff": "0,1,2,3"921 "CounterHTOff": "0,1,2,3"
924 },922 },
925 {923 {
926 "EventCode": "0xCC",924 "EventCode": "0xA3",
927 "UMask": "0x20",925 "UMask": "0x6",
928 "BriefDescription": "Count cases of saving new LBR",926 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
929 "Counter": "0,1,2,3",927 "Counter": "0,1,2,3",
930 "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",928 "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
931 "PublicDescription": "This event counts cases of saving new LBR records by hardware. This assumes proper enabling of LBRs and takes into account LBR filtering done by the LBR_SELECT register.",929 "CounterMask": "6",
932 "SampleAfterValue": "2000003",930 "SampleAfterValue": "2000003",
933 "CounterHTOff": "0,1,2,3,4,5,6,7"931 "CounterHTOff": "0,1,2,3,4,5,6,7"
934 },932 },
935 {933 {
936 "EventCode": "0x3C",934 "EventCode": "0xA3",
937 "UMask": "0x0",935 "UMask": "0x8",
938 "BriefDescription": "Thread cycles when thread is not in halt state",936 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
939 "Counter": "0,1,2,3",937 "Counter": "2",
940 "EventName": "CPU_CLK_UNHALTED.THREAD_P",938 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_PENDING",
941 "PublicDescription": "This is an architectural event that counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The core frequency may change from time to time due to power or thermal throttling. For this reason, this event may have a changing ratio with regards to wall clock time.",939 "CounterMask": "8",
940 "PublicDescription": "Counts number of cycles the CPU has at least one pending demand load request missing the L1 data cache.",
942 "SampleAfterValue": "2000003",941 "SampleAfterValue": "2000003",
943 "CounterHTOff": "0,1,2,3,4,5,6,7"942 "CounterHTOff": "2"
944 },
945 {
946 "EventCode": "0x89",
947 "UMask": "0xa0",
948 "BriefDescription": "Taken speculative and retired mispredicted indirect calls.",
949 "Counter": "0,1,2,3",
950 "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_NEAR_CALL",
951 "SampleAfterValue": "200003",
952 "CounterHTOff": "0,1,2,3,4,5,6,7"
953 },943 },
954 {944 {
955 "EventCode": "0xA1",945 "EventCode": "0xA3",
956 "UMask": "0x1",946 "UMask": "0x8",
957 "BriefDescription": "Cycles per core when uops are exectuted in port 0.",947 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
958 "Counter": "0,1,2,3",948 "Counter": "2",
959 "EventName": "UOPS_EXECUTED_PORT.PORT_0_CORE",949 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
960 "AnyThread": "1",950 "CounterMask": "8",
961 "SampleAfterValue": "2000003",951 "SampleAfterValue": "2000003",
962 "CounterHTOff": "0,1,2,3,4,5,6,7"952 "CounterHTOff": "2"
963 },953 },
964 {954 {
965 "EventCode": "0xA1",955 "EventCode": "0xA3",
966 "UMask": "0x2",956 "UMask": "0xc",
967 "BriefDescription": "Cycles per core when uops are exectuted in port 1.",957 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
968 "Counter": "0,1,2,3",958 "Counter": "2",
969 "EventName": "UOPS_EXECUTED_PORT.PORT_1_CORE",959 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_PENDING",
970 "AnyThread": "1",960 "CounterMask": "12",
961 "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request missing the L1 data cache.",
971 "SampleAfterValue": "2000003",962 "SampleAfterValue": "2000003",
972 "CounterHTOff": "0,1,2,3,4,5,6,7"963 "CounterHTOff": "2"
973 },964 },
974 {965 {
975 "EventCode": "0xA1",966 "EventCode": "0xA3",
976 "UMask": "0x4",967 "UMask": "0xc",
977 "BriefDescription": "Cycles per core when uops are dispatched to port 2.",968 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
978 "Counter": "0,1,2,3",969 "Counter": "2",
979 "EventName": "UOPS_EXECUTED_PORT.PORT_2_CORE",970 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
980 "AnyThread": "1",971 "CounterMask": "12",
981 "SampleAfterValue": "2000003",972 "SampleAfterValue": "2000003",
982 "CounterHTOff": "0,1,2,3,4,5,6,7"973 "CounterHTOff": "2"
983 },974 },
984 {975 {
985 "EventCode": "0xA1",976 "EventCode": "0xA8",
986 "UMask": "0x8",977 "UMask": "0x1",
987 "BriefDescription": "Cycles per core when uops are dispatched to port 3.",978 "BriefDescription": "Number of Uops delivered by the LSD.",
988 "Counter": "0,1,2,3",979 "Counter": "0,1,2,3",
989 "EventName": "UOPS_EXECUTED_PORT.PORT_3_CORE",980 "EventName": "LSD.UOPS",
990 "AnyThread": "1",
991 "SampleAfterValue": "2000003",981 "SampleAfterValue": "2000003",
992 "CounterHTOff": "0,1,2,3,4,5,6,7"982 "CounterHTOff": "0,1,2,3,4,5,6,7"
993 },983 },
994 {984 {
995 "EventCode": "0xA1",985 "EventCode": "0xA8",
996 "UMask": "0x10",986 "UMask": "0x1",
997 "BriefDescription": "Cycles per core when uops are exectuted in port 4.",987 "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",
998 "Counter": "0,1,2,3",988 "Counter": "0,1,2,3",
999 "EventName": "UOPS_EXECUTED_PORT.PORT_4_CORE",989 "EventName": "LSD.CYCLES_4_UOPS",
1000 "AnyThread": "1",990 "CounterMask": "4",
1001 "SampleAfterValue": "2000003",991 "SampleAfterValue": "2000003",
1002 "CounterHTOff": "0,1,2,3,4,5,6,7"992 "CounterHTOff": "0,1,2,3,4,5,6,7"
1003 },993 },
1004 {994 {
1005 "EventCode": "0xA1",995 "EventCode": "0xA8",
1006 "UMask": "0x20",996 "UMask": "0x1",
1007 "BriefDescription": "Cycles per core when uops are exectuted in port 5.",997 "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
1008 "Counter": "0,1,2,3",998 "Counter": "0,1,2,3",
1009 "EventName": "UOPS_EXECUTED_PORT.PORT_5_CORE",999 "EventName": "LSD.CYCLES_ACTIVE",
1010 "AnyThread": "1",1000 "CounterMask": "1",
1011 "SampleAfterValue": "2000003",1001 "SampleAfterValue": "2000003",
1012 "CounterHTOff": "0,1,2,3,4,5,6,7"1002 "CounterHTOff": "0,1,2,3,4,5,6,7"
1013 },1003 },
1014 {1004 {
1015 "EventCode": "0xA1",1005 "EventCode": "0xB1",
1016 "UMask": "0x40",1006 "UMask": "0x1",
1017 "BriefDescription": "Cycles per core when uops are exectuted in port 6.",1007 "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
1018 "Counter": "0,1,2,3",1008 "Counter": "0,1,2,3",
1019 "EventName": "UOPS_EXECUTED_PORT.PORT_6_CORE",1009 "EventName": "UOPS_EXECUTED.THREAD",
1020 "AnyThread": "1",1010 "PublicDescription": "Number of uops to be executed per-thread each cycle.",
1021 "SampleAfterValue": "2000003",1011 "SampleAfterValue": "2000003",
1022 "CounterHTOff": "0,1,2,3,4,5,6,7"1012 "CounterHTOff": "0,1,2,3,4,5,6,7"
1023 },1013 },
1024 {1014 {
1025 "EventCode": "0xA1",1015 "Invert": "1",
1026 "UMask": "0x80",1016 "EventCode": "0xB1",
1027 "BriefDescription": "Cycles per core when uops are dispatched to port 7.",1017 "UMask": "0x1",
1018 "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
1028 "Counter": "0,1,2,3",1019 "Counter": "0,1,2,3",
1029 "EventName": "UOPS_EXECUTED_PORT.PORT_7_CORE",1020 "EventName": "UOPS_EXECUTED.STALL_CYCLES",
1030 "AnyThread": "1",1021 "CounterMask": "1",
1022 "PublicDescription": "This event counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
1031 "SampleAfterValue": "2000003",1023 "SampleAfterValue": "2000003",
1032 "CounterHTOff": "0,1,2,3,4,5,6,7"1024 "CounterHTOff": "0,1,2,3"
1033 },
1034 {
1035 "EventCode": "0xC5",
1036 "UMask": "0x20",
1037 "BriefDescription": "number of near branch instructions retired that were mispredicted and taken.",
1038 "PEBS": "1",
1039 "Counter": "0,1,2,3",
1040 "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
1041 "PublicDescription": "Number of near branch instructions retired that were mispredicted and taken.",
1042 "SampleAfterValue": "400009",
1043 "CounterHTOff": "0,1,2,3,4,5,6,7"
1044 },1025 },
1045 {1026 {
1046 "EventCode": "0xB1",1027 "EventCode": "0xB1",
@@ -1083,335 +1064,364 @@ · 36 unmodified lines
1083 "CounterHTOff": "0,1,2,3"1064 "CounterHTOff": "0,1,2,3"
1084 },1065 },
1085 {1066 {
1086 "EventCode": "0xe6",1067 "EventCode": "0xB1",
1087 "UMask": "0x1f",1068 "UMask": "0x2",
1088 "BriefDescription": "Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end.",1069 "BriefDescription": "Number of uops executed on the core.",
1089 "Counter": "0,1,2,3",1070 "Counter": "0,1,2,3",
1090 "EventName": "BACLEARS.ANY",1071 "EventName": "UOPS_EXECUTED.CORE",
1091 "SampleAfterValue": "100003",1072 "PublicDescription": "Number of uops executed from any thread.",
1092 "CounterHTOff": "0,1,2,3,4,5,6,7"
1093 },
1094 {
1095 "EventCode": "0xA3",
1096 "UMask": "0x8",
1097 "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
1098 "Counter": "2",
1099 "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
1100 "CounterMask": "8",
1101 "SampleAfterValue": "2000003",1073 "SampleAfterValue": "2000003",
1102 "CounterHTOff": "2"1074 "CounterHTOff": "0,1,2,3,4,5,6,7"
1103 },1075 },
1104 {1076 {
1105 "EventCode": "0xA3",1077 "EventCode": "0xb1",
1106 "UMask": "0x1",1078 "UMask": "0x2",
1107 "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",1079 "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
1108 "Counter": "0,1,2,3",1080 "Counter": "0,1,2,3",
1109 "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",1081 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
1110 "CounterMask": "1",1082 "CounterMask": "1",
1111 "SampleAfterValue": "2000003",1083 "SampleAfterValue": "2000003",
1112 "CounterHTOff": "0,1,2,3,4,5,6,7"1084 "CounterHTOff": "0,1,2,3,4,5,6,7"
1113 },1085 },
1114 {1086 {
1115 "EventCode": "0xA3",1087 "EventCode": "0xb1",
1116 "UMask": "0x2",1088 "UMask": "0x2",
1117 "BriefDescription": "Cycles while memory subsystem has an outstanding load.",1089 "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
1118 "Counter": "0,1,2,3",1090 "Counter": "0,1,2,3",
1119 "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",1091 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
1120 "CounterMask": "2",1092 "CounterMask": "2",
1121 "SampleAfterValue": "2000003",1093 "SampleAfterValue": "2000003",
1122 "CounterHTOff": "0,1,2,3"1094 "CounterHTOff": "0,1,2,3,4,5,6,7"
1123 },1095 },
1124 {1096 {
1125 "EventCode": "0xA3",1097 "EventCode": "0xb1",
1126 "UMask": "0x4",1098 "UMask": "0x2",
1127 "BriefDescription": "Total execution stalls.",1099 "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
1128 "Counter": "0,1,2,3",1100 "Counter": "0,1,2,3",
1129 "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",1101 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
1130 "CounterMask": "4",1102 "CounterMask": "3",
1131 "SampleAfterValue": "2000003",1103 "SampleAfterValue": "2000003",
1132 "CounterHTOff": "0,1,2,3,4,5,6,7"1104 "CounterHTOff": "0,1,2,3,4,5,6,7"
1133 },1105 },
1134 {1106 {
1135 "EventCode": "0xA3",1107 "EventCode": "0xb1",
1136 "UMask": "0xc",1108 "UMask": "0x2",
1137 "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",1109 "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
1138 "Counter": "2",1110 "Counter": "0,1,2,3",
1139 "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",1111 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
1140 "CounterMask": "12",1112 "CounterMask": "4",
1141 "SampleAfterValue": "2000003",1113 "SampleAfterValue": "2000003",
1142 "CounterHTOff": "2"1114 "CounterHTOff": "0,1,2,3,4,5,6,7"
1143 },1115 },
1144 {1116 {
1145 "EventCode": "0xA3",1117 "Invert": "1",
1146 "UMask": "0x5",1118 "EventCode": "0xb1",
1147 "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",1119 "UMask": "0x2",
1120 "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",
1148 "Counter": "0,1,2,3",1121 "Counter": "0,1,2,3",
1149 "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",1122 "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",
1150 "CounterMask": "5",
1151 "SampleAfterValue": "2000003",1123 "SampleAfterValue": "2000003",
1152 "CounterHTOff": "0,1,2,3,4,5,6,7"1124 "CounterHTOff": "0,1,2,3,4,5,6,7"
1153 },1125 },
1154 {1126 {
1155 "EventCode": "0xA3",1127 "EventCode": "0xC0",
1156 "UMask": "0x6",1128 "UMask": "0x0",
1157 "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",1129 "BriefDescription": "Number of instructions retired. General Counter - architectural event",
1158 "Counter": "0,1,2,3",1130 "Counter": "0,1,2,3",
1159 "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",1131 "EventName": "INST_RETIRED.ANY_P",
1160 "CounterMask": "6",1132 "Errata": "BDM61",
1133 "PublicDescription": "This event counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
1161 "SampleAfterValue": "2000003",1134 "SampleAfterValue": "2000003",
1162 "CounterHTOff": "0,1,2,3,4,5,6,7"1135 "CounterHTOff": "0,1,2,3,4,5,6,7"
1163 },1136 },
1164 {1137 {
1165 "EdgeDetect": "1",1138 "EventCode": "0xC0",
1166 "EventCode": "0xC3",
1167 "UMask": "0x1",1139 "UMask": "0x1",
1168 "BriefDescription": "Number of machine clears (nukes) of any type.",1140 "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",
1141 "PEBS": "2",
1142 "Counter": "1",
1143 "EventName": "INST_RETIRED.PREC_DIST",
1144 "Errata": "BDM11, BDM55",
1145 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts instructions retired.",
1146 "SampleAfterValue": "2000003",
1147 "CounterHTOff": "1"
1148 },
1149 {
1150 "EventCode": "0xC0",
1151 "UMask": "0x2",
1152 "BriefDescription": "FP operations retired. X87 FP operations that have no exceptions:",
1169 "Counter": "0,1,2,3",1153 "Counter": "0,1,2,3",
1170 "EventName": "MACHINE_CLEARS.COUNT",1154 "EventName": "INST_RETIRED.X87",
1171 "CounterMask": "1",1155 "PublicDescription": "This event counts FP operations retired. For X87 FP operations that have no exceptions counting also includes flows that have several X87, or flows that use X87 uops in the exception handling.",
1172 "SampleAfterValue": "100003",1156 "SampleAfterValue": "2000003",
1173 "CounterHTOff": "0,1,2,3,4,5,6,7"1157 "CounterHTOff": "0,1,2,3,4,5,6,7"
1174 },1158 },
1175 {1159 {
1176 "EventCode": "0xA8",1160 "EventCode": "0xC1",
1177 "UMask": "0x1",1161 "UMask": "0x40",
1178 "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",1162 "BriefDescription": "Number of times any microcode assist is invoked by HW upon uop writeback.",
1179 "Counter": "0,1,2,3",1163 "Counter": "0,1,2,3",
1180 "EventName": "LSD.CYCLES_4_UOPS",1164 "EventName": "OTHER_ASSISTS.ANY_WB_ASSIST",
1181 "CounterMask": "4",1165 "SampleAfterValue": "100003",
1182 "SampleAfterValue": "2000003",
1183 "CounterHTOff": "0,1,2,3,4,5,6,7"1166 "CounterHTOff": "0,1,2,3,4,5,6,7"
1184 },1167 },
1185 {1168 {
1186 "EdgeDetect": "1",1169 "EventCode": "0xC2",
1187 "Invert": "1",
1188 "EventCode": "0x5E",
1189 "UMask": "0x1",1170 "UMask": "0x1",
1190 "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",1171 "BriefDescription": "Actually retired uops. (Precise Event - PEBS)",
1172 "Data_LA": "1",
1173 "PEBS": "1",
1191 "Counter": "0,1,2,3",1174 "Counter": "0,1,2,3",
1192 "EventName": "RS_EVENTS.EMPTY_END",1175 "EventName": "UOPS_RETIRED.ALL",
1193 "CounterMask": "1",1176 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts all actually retired uops. Counting increments by two for micro-fused uops, and by one for macro-fused and other uops. Maximal increment value for one cycle is eight.",
1194 "SampleAfterValue": "200003",1177 "SampleAfterValue": "2000003",
1195 "CounterHTOff": "0,1,2,3,4,5,6,7"1178 "CounterHTOff": "0,1,2,3,4,5,6,7"
1196 },1179 },
1197 {1180 {
1198 "EventCode": "0xA8",1181 "Invert": "1",
1182 "EventCode": "0xC2",
1199 "UMask": "0x1",1183 "UMask": "0x1",
1200 "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",1184 "BriefDescription": "Cycles without actually retired uops.",
1201 "Counter": "0,1,2,3",1185 "Counter": "0,1,2,3",
1202 "EventName": "LSD.CYCLES_ACTIVE",1186 "EventName": "UOPS_RETIRED.STALL_CYCLES",
1203 "CounterMask": "1",1187 "CounterMask": "1",
1188 "PublicDescription": "This event counts cycles without actually retired uops.",
1204 "SampleAfterValue": "2000003",1189 "SampleAfterValue": "2000003",
1205 "CounterHTOff": "0,1,2,3,4,5,6,7"1190 "CounterHTOff": "0,1,2,3"
1206 },1191 },
1207 {1192 {
1208 "EventCode": "0xA1",1193 "Invert": "1",
1194 "EventCode": "0xC2",
1209 "UMask": "0x1",1195 "UMask": "0x1",
1210 "BriefDescription": "Cycles per thread when uops are executed in port 0",1196 "BriefDescription": "Cycles with less than 10 actually retired uops.",
1211 "Counter": "0,1,2,3",1197 "Counter": "0,1,2,3",
1212 "EventName": "UOPS_EXECUTED_PORT.PORT_0",1198 "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
1213 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",1199 "CounterMask": "10",
1200 "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
1214 "SampleAfterValue": "2000003",1201 "SampleAfterValue": "2000003",
1215 "CounterHTOff": "0,1,2,3,4,5,6,7"1202 "CounterHTOff": "0,1,2,3"
1216 },1203 },
1217 {1204 {
1218 "EventCode": "0xA1",1205 "EventCode": "0xC2",
1219 "UMask": "0x2",1206 "UMask": "0x2",
1220 "BriefDescription": "Cycles per thread when uops are executed in port 1",1207 "BriefDescription": "Retirement slots used. (Precise Event - PEBS)",
1208 "PEBS": "1",
1221 "Counter": "0,1,2,3",1209 "Counter": "0,1,2,3",
1222 "EventName": "UOPS_EXECUTED_PORT.PORT_1",1210 "EventName": "UOPS_RETIRED.RETIRE_SLOTS",
1223 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",1211 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts the number of retirement slots used.",
1224 "SampleAfterValue": "2000003",1212 "SampleAfterValue": "2000003",
1225 "CounterHTOff": "0,1,2,3,4,5,6,7"1213 "CounterHTOff": "0,1,2,3,4,5,6,7"
1226 },1214 },
1227 {1215 {
1228 "EventCode": "0xA1",1216 "EventCode": "0xC3",
1229 "UMask": "0x4",1217 "UMask": "0x1",
1230 "BriefDescription": "Cycles per thread when uops are executed in port 2",1218 "BriefDescription": "Cycles there was a Nuke. Account for both thread-specific and All Thread Nukes.",
1231 "Counter": "0,1,2,3",1219 "Counter": "0,1,2,3",
1232 "EventName": "UOPS_EXECUTED_PORT.PORT_2",1220 "EventName": "MACHINE_CLEARS.CYCLES",
1233 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",1221 "PublicDescription": "This event counts both thread-specific (TS) and all-thread (AT) nukes.",
1234 "SampleAfterValue": "2000003",1222 "SampleAfterValue": "2000003",
1235 "CounterHTOff": "0,1,2,3,4,5,6,7"1223 "CounterHTOff": "0,1,2,3,4,5,6,7"
1236 },1224 },
1237 {1225 {
1238 "EventCode": "0xA1",1226 "EdgeDetect": "1",
1239 "UMask": "0x8",1227 "EventCode": "0xC3",
1240 "BriefDescription": "Cycles per thread when uops are executed in port 3",1228 "UMask": "0x1",
1229 "BriefDescription": "Number of machine clears (nukes) of any type.",
1241 "Counter": "0,1,2,3",1230 "Counter": "0,1,2,3",
1242 "EventName": "UOPS_EXECUTED_PORT.PORT_3",1231 "EventName": "MACHINE_CLEARS.COUNT",
1243 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",1232 "CounterMask": "1",
1244 "SampleAfterValue": "2000003",1233 "SampleAfterValue": "100003",
1245 "CounterHTOff": "0,1,2,3,4,5,6,7"1234 "CounterHTOff": "0,1,2,3,4,5,6,7"
1246 },1235 },
1247 {1236 {
1248 "EventCode": "0xA1",1237 "EventCode": "0xC3",
1249 "UMask": "0x10",1238 "UMask": "0x4",
1250 "BriefDescription": "Cycles per thread when uops are executed in port 4",1239 "BriefDescription": "Self-modifying code (SMC) detected.",
1251 "Counter": "0,1,2,3",1240 "Counter": "0,1,2,3",
1252 "EventName": "UOPS_EXECUTED_PORT.PORT_4",1241 "EventName": "MACHINE_CLEARS.SMC",
1253 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",1242 "PublicDescription": "This event counts self-modifying code (SMC) detected, which causes a machine clear.",
1254 "SampleAfterValue": "2000003",1243 "SampleAfterValue": "100003",
1255 "CounterHTOff": "0,1,2,3,4,5,6,7"1244 "CounterHTOff": "0,1,2,3,4,5,6,7"
1256 },1245 },
1257 {1246 {
1258 "EventCode": "0xA1",1247 "EventCode": "0xC3",
1259 "UMask": "0x20",1248 "UMask": "0x20",
1260 "BriefDescription": "Cycles per thread when uops are executed in port 5",1249 "BriefDescription": "This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0.",
1261 "Counter": "0,1,2,3",1250 "Counter": "0,1,2,3",
1262 "EventName": "UOPS_EXECUTED_PORT.PORT_5",1251 "EventName": "MACHINE_CLEARS.MASKMOV",
1263 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",1252 "PublicDescription": "Maskmov false fault - counts number of time ucode passes through Maskmov flow due to instruction's mask being 0 while the flow was completed without raising a fault.",
1264 "SampleAfterValue": "2000003",1253 "SampleAfterValue": "100003",
1265 "CounterHTOff": "0,1,2,3,4,5,6,7"1254 "CounterHTOff": "0,1,2,3,4,5,6,7"
1266 },1255 },
1267 {1256 {
1268 "EventCode": "0xA1",1257 "EventCode": "0xC4",
1269 "UMask": "0x40",1258 "UMask": "0x0",
1270 "BriefDescription": "Cycles per thread when uops are executed in port 6",1259 "BriefDescription": "All (macro) branch instructions retired.",
1271 "Counter": "0,1,2,3",1260 "Counter": "0,1,2,3",
1272 "EventName": "UOPS_EXECUTED_PORT.PORT_6",1261 "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
1273 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",1262 "PublicDescription": "This event counts all (macro) branch instructions retired.",
1274 "SampleAfterValue": "2000003",1263 "SampleAfterValue": "400009",
1275 "CounterHTOff": "0,1,2,3,4,5,6,7"1264 "CounterHTOff": "0,1,2,3,4,5,6,7"
1276 },1265 },
1277 {1266 {
1278 "EventCode": "0xA1",1267 "EventCode": "0xC4",
1279 "UMask": "0x80",1268 "UMask": "0x1",
1280 "BriefDescription": "Cycles per thread when uops are executed in port 7",1269 "BriefDescription": "Conditional branch instructions retired. (Precise Event - PEBS)",
1270 "PEBS": "1",
1281 "Counter": "0,1,2,3",1271 "Counter": "0,1,2,3",
1282 "EventName": "UOPS_EXECUTED_PORT.PORT_7",1272 "EventName": "BR_INST_RETIRED.CONDITIONAL",
1283 "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",1273 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts conditional branch instructions retired.",
1284 "SampleAfterValue": "2000003",1274 "SampleAfterValue": "400009",
1285 "CounterHTOff": "0,1,2,3,4,5,6,7"1275 "CounterHTOff": "0,1,2,3,4,5,6,7"
1286 },1276 },
1287 {1277 {
1288 "EventCode": "0xA0",1278 "EventCode": "0xC4",
1289 "UMask": "0x3",1279 "UMask": "0x2",
1290 "BriefDescription": "Micro-op dispatches cancelled due to insufficient SIMD physical register file read ports",1280 "BriefDescription": "Direct and indirect near call instructions retired. (Precise Event - PEBS)",
1281 "PEBS": "1",
1291 "Counter": "0,1,2,3",1282 "Counter": "0,1,2,3",
1292 "EventName": "UOP_DISPATCHES_CANCELLED.SIMD_PRF",1283 "EventName": "BR_INST_RETIRED.NEAR_CALL",
1293 "PublicDescription": "This event counts the number of micro-operations cancelled after they were dispatched from the scheduler to the execution units when the total number of physical register read ports across all dispatch ports exceeds the read bandwidth of the physical register file. The SIMD_PRF subevent applies to the following instructions: VDPPS, DPPS, VPCMPESTRI, PCMPESTRI, VPCMPESTRM, PCMPESTRM, VFMADD*, VFMADDSUB*, VFMSUB*, VMSUBADD*, VFNMADD*, VFNMSUB*. See the Broadwell Optimization Guide for more information.",1284 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts both direct and indirect near call instructions retired.",
1294 "SampleAfterValue": "2000003",1285 "SampleAfterValue": "100007",
1295 "CounterHTOff": "0,1,2,3"1286 "CounterHTOff": "0,1,2,3,4,5,6,7"
1296 },1287 },
1297 {1288 {
1298 "EventCode": "0x00",1289 "EventCode": "0xC4",
1299 "UMask": "0x2",1290 "UMask": "0x2",
1300 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",1291 "BriefDescription": "Direct and indirect macro near call instructions retired (captured in ring 3). (Precise Event - PEBS)",
1301 "Counter": "Fixed counter 2",1292 "PEBS": "1",
1302 "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",1293 "Counter": "0,1,2,3",
1303 "AnyThread": "1",1294 "EventName": "BR_INST_RETIRED.NEAR_CALL_R3",
1304 "SampleAfterValue": "2000003",1295 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts both direct and indirect macro near call instructions retired (captured in ring 3).",
1305 "CounterHTOff": "Fixed counter 2"1296 "SampleAfterValue": "100007",
1297 "CounterHTOff": "0,1,2,3,4,5,6,7"
1306 },1298 },
1307 {1299 {
1308 "EventCode": "0x3C",1300 "EventCode": "0xC4",
1309 "UMask": "0x0",1301 "UMask": "0x4",
1310 "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",1302 "BriefDescription": "All (macro) branch instructions retired. (Precise Event - PEBS)",
1303 "PEBS": "2",
1311 "Counter": "0,1,2,3",1304 "Counter": "0,1,2,3",
1312 "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",1305 "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",
1313 "AnyThread": "1",1306 "Errata": "BDW98",
1314 "SampleAfterValue": "2000003",1307 "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",
1315 "CounterHTOff": "0,1,2,3,4,5,6,7"1308 "SampleAfterValue": "400009",
1309 "CounterHTOff": "0,1,2,3"
1316 },1310 },
1317 {1311 {
1318 "EventCode": "0x3C",1312 "EventCode": "0xC4",
1319 "UMask": "0x1",1313 "UMask": "0x8",
1320 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",1314 "BriefDescription": "Return instructions retired. (Precise Event - PEBS)",
1315 "PEBS": "1",
1321 "Counter": "0,1,2,3",1316 "Counter": "0,1,2,3",
1322 "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",1317 "EventName": "BR_INST_RETIRED.NEAR_RETURN",
1323 "AnyThread": "1",1318 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts return instructions retired.",
1324 "SampleAfterValue": "2000003",1319 "SampleAfterValue": "100007",
1325 "CounterHTOff": "0,1,2,3,4,5,6,7"1320 "CounterHTOff": "0,1,2,3,4,5,6,7"
1326 },1321 },
1327 {1322 {
1328 "EventCode": "0x0D",1323 "EventCode": "0xC4",
1329 "UMask": "0x3",1324 "UMask": "0x10",
1330 "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke).",1325 "BriefDescription": "Not taken branch instructions retired.",
1331 "Counter": "0,1,2,3",1326 "Counter": "0,1,2,3",
1332 "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",1327 "EventName": "BR_INST_RETIRED.NOT_TAKEN",
1333 "AnyThread": "1",1328 "PublicDescription": "This event counts not taken branch instructions retired.",
1334 "CounterMask": "1",1329 "SampleAfterValue": "400009",
1335 "SampleAfterValue": "2000003",
1336 "CounterHTOff": "0,1,2,3,4,5,6,7"1330 "CounterHTOff": "0,1,2,3,4,5,6,7"
1337 },1331 },
1338 {1332 {
1339 "EventCode": "0xb1",1333 "EventCode": "0xC4",
1340 "UMask": "0x2",1334 "UMask": "0x20",
1341 "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",1335 "BriefDescription": "Taken branch instructions retired. (Precise Event - PEBS)",
1336 "PEBS": "1",
1342 "Counter": "0,1,2,3",1337 "Counter": "0,1,2,3",
1343 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",1338 "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
1344 "CounterMask": "1",1339 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts taken branch instructions retired.",
1345 "SampleAfterValue": "2000003",1340 "SampleAfterValue": "400009",
1346 "CounterHTOff": "0,1,2,3,4,5,6,7"1341 "CounterHTOff": "0,1,2,3,4,5,6,7"
1347 },1342 },
1348 {1343 {
1349 "EventCode": "0xb1",1344 "EventCode": "0xC4",
1350 "UMask": "0x2",1345 "UMask": "0x40",
1351 "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",1346 "BriefDescription": "Far branch instructions retired.",
1352 "Counter": "0,1,2,3",1347 "Counter": "0,1,2,3",
1353 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",1348 "EventName": "BR_INST_RETIRED.FAR_BRANCH",
1354 "CounterMask": "2",1349 "Errata": "BDW98",
1355 "SampleAfterValue": "2000003",1350 "PublicDescription": "This event counts far branch instructions retired.",
1351 "SampleAfterValue": "100007",
1356 "CounterHTOff": "0,1,2,3,4,5,6,7"1352 "CounterHTOff": "0,1,2,3,4,5,6,7"
1357 },1353 },
1358 {1354 {
1359 "EventCode": "0xb1",1355 "EventCode": "0xC5",
1360 "UMask": "0x2",1356 "UMask": "0x0",
1361 "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",1357 "BriefDescription": "All mispredicted macro branch instructions retired.",
1362 "Counter": "0,1,2,3",1358 "Counter": "0,1,2,3",
1363 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",1359 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
1364 "CounterMask": "3",1360 "PublicDescription": "This event counts all mispredicted macro branch instructions retired.",
1365 "SampleAfterValue": "2000003",1361 "SampleAfterValue": "400009",
1366 "CounterHTOff": "0,1,2,3,4,5,6,7"1362 "CounterHTOff": "0,1,2,3,4,5,6,7"
1367 },1363 },
1368 {1364 {
1369 "EventCode": "0xb1",1365 "EventCode": "0xC5",
1370 "UMask": "0x2",1366 "UMask": "0x1",
1371 "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",1367 "BriefDescription": "Mispredicted conditional branch instructions retired. (Precise Event - PEBS)",
1368 "PEBS": "1",
1372 "Counter": "0,1,2,3",1369 "Counter": "0,1,2,3",
1373 "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",1370 "EventName": "BR_MISP_RETIRED.CONDITIONAL",
1374 "CounterMask": "4",1371 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts mispredicted conditional branch instructions retired.",
1375 "SampleAfterValue": "2000003",1372 "SampleAfterValue": "400009",
1376 "CounterHTOff": "0,1,2,3,4,5,6,7"1373 "CounterHTOff": "0,1,2,3,4,5,6,7"
1377 },1374 },
1378 {1375 {
1379 "Invert": "1",1376 "EventCode": "0xC5",
1380 "EventCode": "0xb1",1377 "UMask": "0x4",
1381 "UMask": "0x2",1378 "BriefDescription": "Mispredicted macro branch instructions retired. (Precise Event - PEBS)",
1382 "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",1379 "PEBS": "2",
1383 "Counter": "0,1,2,3",1380 "Counter": "0,1,2,3",
1384 "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",1381 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",
1385 "SampleAfterValue": "2000003",1382 "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",
1383 "SampleAfterValue": "400009",
1384 "CounterHTOff": "0,1,2,3"
1385 },
1386 {
1387 "EventCode": "0xC5",
1388 "UMask": "0x8",
1389 "BriefDescription": "This event counts the number of mispredicted ret instructions retired.(Precise Event)",
1390 "PEBS": "1",
1391 "Counter": "0,1,2,3",
1392 "EventName": "BR_MISP_RETIRED.RET",
1393 "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts mispredicted return instructions retired.",
1394 "SampleAfterValue": "100007",
1386 "CounterHTOff": "0,1,2,3,4,5,6,7"1395 "CounterHTOff": "0,1,2,3,4,5,6,7"
1387 },1396 },
1388 {1397 {
1389 "EventCode": "0x3C",1398 "EventCode": "0xC5",
1390 "UMask": "0x1",1399 "UMask": "0x20",
1391 "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",1400 "BriefDescription": "number of near branch instructions retired that were mispredicted and taken. (Precise Event - PEBS).",
1401 "PEBS": "1",
1392 "Counter": "0,1,2,3",1402 "Counter": "0,1,2,3",
1393 "EventName": "CPU_CLK_UNHALTED.REF_XCLK",1403 "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
1394 "PublicDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate).",1404 "PublicDescription": "Number of near branch instructions retired that were mispredicted and taken. (Precise Event - PEBS).",
1395 "SampleAfterValue": "2000003",1405 "SampleAfterValue": "400009",
1396 "CounterHTOff": "0,1,2,3,4,5,6,7"1406 "CounterHTOff": "0,1,2,3,4,5,6,7"
1397 },1407 },
1398 {1408 {
1399 "EventCode": "0x3C",1409 "EventCode": "0xCC",
1400 "UMask": "0x1",1410 "UMask": "0x20",
1401 "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",1411 "BriefDescription": "Count cases of saving new LBR",
1402 "Counter": "0,1,2,3",1412 "Counter": "0,1,2,3",
1403 "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",1413 "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",
1404 "AnyThread": "1",1414 "PublicDescription": "This event counts cases of saving new LBR records by hardware. This assumes proper enabling of LBRs and takes into account LBR filtering done by the LBR_SELECT register.",
1405 "SampleAfterValue": "2000003",1415 "SampleAfterValue": "2000003",
1406 "CounterHTOff": "0,1,2,3,4,5,6,7"1416 "CounterHTOff": "0,1,2,3,4,5,6,7"
1407 },1417 },
1408 {1418 {
1409 "EventCode": "0x3C",1419 "EventCode": "0xe6",
1410 "UMask": "0x2",1420 "UMask": "0x1f",
1411 "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",1421 "BriefDescription": "Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end.",
1412 "Counter": "0,1,2,3",1422 "Counter": "0,1,2,3",
1413 "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",1423 "EventName": "BACLEARS.ANY",
1414 "SampleAfterValue": "2000003",1424 "SampleAfterValue": "100003",
1415 "CounterHTOff": "0,1,2,3,4,5,6,7"1425 "CounterHTOff": "0,1,2,3,4,5,6,7"
1416 }1426 }
1417]1427]
tools/perf/pmu-events/arch/x86/broadwellx/virtual-memory.json+75−75
@@ -43,6 +43,16 @@ · 42 unmodified lines
43 "SampleAfterValue": "2000003",43 "SampleAfterValue": "2000003",
44 "CounterHTOff": "0,1,2,3,4,5,6,7"44 "CounterHTOff": "0,1,2,3,4,5,6,7"
45 },45 },
46 {
47 "EventCode": "0x08",
48 "UMask": "0xe",
49 "BriefDescription": "Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.",
50 "Counter": "0,1,2,3",
51 "EventName": "DTLB_LOAD_MISSES.WALK_COMPLETED",
52 "Errata": "BDM69",
53 "SampleAfterValue": "100003",
54 "CounterHTOff": "0,1,2,3,4,5,6,7"
55 },
46 {56 {
47 "EventCode": "0x08",57 "EventCode": "0x08",
48 "UMask": "0x10",58 "UMask": "0x10",
@@ -72,6 +82,15 @@ · 23 unmodified lines
72 "SampleAfterValue": "2000003",82 "SampleAfterValue": "2000003",
73 "CounterHTOff": "0,1,2,3,4,5,6,7"83 "CounterHTOff": "0,1,2,3,4,5,6,7"
74 },84 },
85 {
86 "EventCode": "0x08",
87 "UMask": "0x60",
88 "BriefDescription": "Load operations that miss the first DTLB level but hit the second and do not cause page walks.",
89 "Counter": "0,1,2,3",
90 "EventName": "DTLB_LOAD_MISSES.STLB_HIT",
91 "SampleAfterValue": "2000003",
92 "CounterHTOff": "0,1,2,3,4,5,6,7"
93 },
75 {94 {
76 "EventCode": "0x49",95 "EventCode": "0x49",
77 "UMask": "0x1",96 "UMask": "0x1",
@@ -116,6 +135,16 @@ · 38 unmodified lines
116 "SampleAfterValue": "100003",135 "SampleAfterValue": "100003",
117 "CounterHTOff": "0,1,2,3,4,5,6,7"136 "CounterHTOff": "0,1,2,3,4,5,6,7"
118 },137 },
138 {
139 "EventCode": "0x49",
140 "UMask": "0xe",
141 "BriefDescription": "Store misses in all DTLB levels that cause completed page walks.",
142 "Counter": "0,1,2,3",
143 "EventName": "DTLB_STORE_MISSES.WALK_COMPLETED",
144 "Errata": "BDM69",
145 "SampleAfterValue": "100003",
146 "CounterHTOff": "0,1,2,3,4,5,6,7"
147 },
119 {148 {
120 "EventCode": "0x49",149 "EventCode": "0x49",
121 "UMask": "0x10",150 "UMask": "0x10",
@@ -145,6 +174,15 @@ · 23 unmodified lines
145 "SampleAfterValue": "100003",174 "SampleAfterValue": "100003",
146 "CounterHTOff": "0,1,2,3,4,5,6,7"175 "CounterHTOff": "0,1,2,3,4,5,6,7"
147 },176 },
177 {
178 "EventCode": "0x49",
179 "UMask": "0x60",
180 "BriefDescription": "Store operations that miss the first TLB level but hit the second and do not cause page walks.",
181 "Counter": "0,1,2,3",
182 "EventName": "DTLB_STORE_MISSES.STLB_HIT",
183 "SampleAfterValue": "100003",
184 "CounterHTOff": "0,1,2,3,4,5,6,7"
185 },
148 {186 {
149 "EventCode": "0x4F",187 "EventCode": "0x4F",
150 "UMask": "0x10",188 "UMask": "0x10",
@@ -199,6 +237,16 @@ · 48 unmodified lines
199 "SampleAfterValue": "100003",237 "SampleAfterValue": "100003",
200 "CounterHTOff": "0,1,2,3,4,5,6,7"238 "CounterHTOff": "0,1,2,3,4,5,6,7"
201 },239 },
240 {
241 "EventCode": "0x85",
242 "UMask": "0xe",
243 "BriefDescription": "Misses in all ITLB levels that cause completed page walks.",
244 "Counter": "0,1,2,3",
245 "EventName": "ITLB_MISSES.WALK_COMPLETED",
246 "Errata": "BDM69",
247 "SampleAfterValue": "100003",
248 "CounterHTOff": "0,1,2,3,4,5,6,7"
249 },
202 {250 {
203 "EventCode": "0x85",251 "EventCode": "0x85",
204 "UMask": "0x10",252 "UMask": "0x10",
@@ -228,6 +276,15 @@ · 23 unmodified lines
228 "SampleAfterValue": "100003",276 "SampleAfterValue": "100003",
229 "CounterHTOff": "0,1,2,3,4,5,6,7"277 "CounterHTOff": "0,1,2,3,4,5,6,7"
230 },278 },
279 {
280 "EventCode": "0x85",
281 "UMask": "0x60",
282 "BriefDescription": "Operations that miss the first ITLB level but hit the second and do not cause any page walks.",
283 "Counter": "0,1,2,3",
284 "EventName": "ITLB_MISSES.STLB_HIT",
285 "SampleAfterValue": "100003",
286 "CounterHTOff": "0,1,2,3,4,5,6,7"
287 },
231 {288 {
232 "EventCode": "0xAE",289 "EventCode": "0xAE",
233 "UMask": "0x1",290 "UMask": "0x1",
@@ -250,60 +307,60 @@ · 16 unmodified lines
250 },307 },
251 {308 {
252 "EventCode": "0xBC",309 "EventCode": "0xBC",
253 "UMask": "0x21",310 "UMask": "0x12",
254 "BriefDescription": "Number of ITLB page walker hits in the L1+FB.",311 "BriefDescription": "Number of DTLB page walker hits in the L2.",
255 "Counter": "0,1,2,3",312 "Counter": "0,1,2,3",
256 "EventName": "PAGE_WALKER_LOADS.ITLB_L1",313 "EventName": "PAGE_WALKER_LOADS.DTLB_L2",
257 "Errata": "BDM69, BDM98",314 "Errata": "BDM69, BDM98",
258 "SampleAfterValue": "2000003",315 "SampleAfterValue": "2000003",
259 "CounterHTOff": "0,1,2,3"316 "CounterHTOff": "0,1,2,3"
260 },317 },
261 {318 {
262 "EventCode": "0xBC",319 "EventCode": "0xBC",
263 "UMask": "0x12",320 "UMask": "0x14",
264 "BriefDescription": "Number of DTLB page walker hits in the L2.",321 "BriefDescription": "Number of DTLB page walker hits in the L3 + XSNP.",
265 "Counter": "0,1,2,3",322 "Counter": "0,1,2,3",
266 "EventName": "PAGE_WALKER_LOADS.DTLB_L2",323 "EventName": "PAGE_WALKER_LOADS.DTLB_L3",
267 "Errata": "BDM69, BDM98",324 "Errata": "BDM69, BDM98",
268 "SampleAfterValue": "2000003",325 "SampleAfterValue": "2000003",
269 "CounterHTOff": "0,1,2,3"326 "CounterHTOff": "0,1,2,3"
270 },327 },
271 {328 {
272 "EventCode": "0xBC",329 "EventCode": "0xBC",
273 "UMask": "0x22",330 "UMask": "0x18",
274 "BriefDescription": "Number of ITLB page walker hits in the L2.",331 "BriefDescription": "Number of DTLB page walker hits in Memory.",
275 "Counter": "0,1,2,3",332 "Counter": "0,1,2,3",
276 "EventName": "PAGE_WALKER_LOADS.ITLB_L2",333 "EventName": "PAGE_WALKER_LOADS.DTLB_MEMORY",
277 "Errata": "BDM69, BDM98",334 "Errata": "BDM69, BDM98",
278 "SampleAfterValue": "2000003",335 "SampleAfterValue": "2000003",
279 "CounterHTOff": "0,1,2,3"336 "CounterHTOff": "0,1,2,3"
280 },337 },
281 {338 {
282 "EventCode": "0xBC",339 "EventCode": "0xBC",
283 "UMask": "0x14",340 "UMask": "0x21",
284 "BriefDescription": "Number of DTLB page walker hits in the L3 + XSNP.",341 "BriefDescription": "Number of ITLB page walker hits in the L1+FB.",
285 "Counter": "0,1,2,3",342 "Counter": "0,1,2,3",
286 "EventName": "PAGE_WALKER_LOADS.DTLB_L3",343 "EventName": "PAGE_WALKER_LOADS.ITLB_L1",
287 "Errata": "BDM69, BDM98",344 "Errata": "BDM69, BDM98",
288 "SampleAfterValue": "2000003",345 "SampleAfterValue": "2000003",
289 "CounterHTOff": "0,1,2,3"346 "CounterHTOff": "0,1,2,3"
290 },347 },
291 {348 {
292 "EventCode": "0xBC",349 "EventCode": "0xBC",
293 "UMask": "0x24",350 "UMask": "0x22",
294 "BriefDescription": "Number of ITLB page walker hits in the L3 + XSNP.",351 "BriefDescription": "Number of ITLB page walker hits in the L2.",
295 "Counter": "0,1,2,3",352 "Counter": "0,1,2,3",
296 "EventName": "PAGE_WALKER_LOADS.ITLB_L3",353 "EventName": "PAGE_WALKER_LOADS.ITLB_L2",
297 "Errata": "BDM69, BDM98",354 "Errata": "BDM69, BDM98",
298 "SampleAfterValue": "2000003",355 "SampleAfterValue": "2000003",
299 "CounterHTOff": "0,1,2,3"356 "CounterHTOff": "0,1,2,3"
300 },357 },
301 {358 {
302 "EventCode": "0xBC",359 "EventCode": "0xBC",
303 "UMask": "0x18",360 "UMask": "0x24",
304 "BriefDescription": "Number of DTLB page walker hits in Memory.",361 "BriefDescription": "Number of ITLB page walker hits in the L3 + XSNP.",
305 "Counter": "0,1,2,3",362 "Counter": "0,1,2,3",
306 "EventName": "PAGE_WALKER_LOADS.DTLB_MEMORY",363 "EventName": "PAGE_WALKER_LOADS.ITLB_L3",
307 "Errata": "BDM69, BDM98",364 "Errata": "BDM69, BDM98",
308 "SampleAfterValue": "2000003",365 "SampleAfterValue": "2000003",
309 "CounterHTOff": "0,1,2,3"366 "CounterHTOff": "0,1,2,3"
@@ -327,62 +384,5 @@ · 17 unmodified lines
327 "PublicDescription": "This event counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3 write, and so on).",384 "PublicDescription": "This event counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3 write, and so on).",
328 "SampleAfterValue": "100007",385 "SampleAfterValue": "100007",
329 "CounterHTOff": "0,1,2,3,4,5,6,7"386 "CounterHTOff": "0,1,2,3,4,5,6,7"
330 },
331 {
332 "EventCode": "0x08",
333 "UMask": "0xe",
334 "BriefDescription": "Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.",
335 "Counter": "0,1,2,3",
336 "EventName": "DTLB_LOAD_MISSES.WALK_COMPLETED",
337 "Errata": "BDM69",
338 "SampleAfterValue": "100003",
339 "CounterHTOff": "0,1,2,3,4,5,6,7"
340 },
341 {
342 "EventCode": "0x08",
343 "UMask": "0x60",
344 "BriefDescription": "Load operations that miss the first DTLB level but hit the second and do not cause page walks.",
345 "Counter": "0,1,2,3",
346 "EventName": "DTLB_LOAD_MISSES.STLB_HIT",
347 "SampleAfterValue": "2000003",
348 "CounterHTOff": "0,1,2,3,4,5,6,7"
349 },
350 {
351 "EventCode": "0x49",
352 "UMask": "0xe",
353 "BriefDescription": "Store misses in all DTLB levels that cause completed page walks.",
354 "Counter": "0,1,2,3",
355 "EventName": "DTLB_STORE_MISSES.WALK_COMPLETED",
356 "Errata": "BDM69",
357 "SampleAfterValue": "100003",
358 "CounterHTOff": "0,1,2,3,4,5,6,7"
359 },
360 {
361 "EventCode": "0x49",
362 "UMask": "0x60",
363 "BriefDescription": "Store operations that miss the first TLB level but hit the second and do not cause page walks.",
364 "Counter": "0,1,2,3",
365 "EventName": "DTLB_STORE_MISSES.STLB_HIT",
366 "SampleAfterValue": "100003",
367 "CounterHTOff": "0,1,2,3,4,5,6,7"
368 },
369 {
370 "EventCode": "0x85",
371 "UMask": "0xe",
372 "BriefDescription": "Misses in all ITLB levels that cause completed page walks.",
373 "Counter": "0,1,2,3",
374 "EventName": "ITLB_MISSES.WALK_COMPLETED",
375 "Errata": "BDM69",
376 "SampleAfterValue": "100003",
377 "CounterHTOff": "0,1,2,3,4,5,6,7"
378 },
379 {
380 "EventCode": "0x85",
381 "UMask": "0x60",
382 "BriefDescription": "Operations that miss the first ITLB level but hit the second and do not cause any page walks.",
383 "Counter": "0,1,2,3",
384 "EventName": "ITLB_MISSES.STLB_HIT",
385 "SampleAfterValue": "100003",
386 "CounterHTOff": "0,1,2,3,4,5,6,7"
387 }387 }
388]388]
tools/perf/pmu-events/arch/x86/goldmont/cache.json+1081−163
@@ -1,4 +1,24 @@
1[1[
2 {
3 "CollectPEBSRecord": "1",
4 "PublicDescription": "Counts memory requests originating from the core that miss in the L2 cache.",
5 "EventCode": "0x2E",
6 "Counter": "0,1,2,3",
7 "UMask": "0x41",
8 "EventName": "LONGEST_LAT_CACHE.MISS",
9 "SampleAfterValue": "200003",
10 "BriefDescription": "L2 cache request misses"
11 },
12 {
13 "CollectPEBSRecord": "1",
14 "PublicDescription": "Counts memory requests originating from the core that reference a cache line in the L2 cache.",
15 "EventCode": "0x2E",
16 "Counter": "0,1,2,3",
17 "UMask": "0x4f",
18 "EventName": "LONGEST_LAT_CACHE.REFERENCE",
19 "SampleAfterValue": "200003",
20 "BriefDescription": "L2 cache requests"
21 },
2 {22 {
3 "CollectPEBSRecord": "1",23 "CollectPEBSRecord": "1",
4 "PublicDescription": "Counts the number of demand and prefetch transactions that the L2 XQ rejects due to a full or near full condition which likely indicates back pressure from the intra-die interconnect (IDI) fabric. The XQ may reject transactions from the L2Q (non-cacheable requests), L2 misses and L2 write-back victims.",24 "PublicDescription": "Counts the number of demand and prefetch transactions that the L2 XQ rejects due to a full or near full condition which likely indicates back pressure from the intra-die interconnect (IDI) fabric. The XQ may reject transactions from the L2Q (non-cacheable requests), L2 misses and L2 write-back victims.",
@@ -11,120 +31,119 @@ · 6 unmodified lines
11 },31 },
12 {32 {
13 "CollectPEBSRecord": "1",33 "CollectPEBSRecord": "1",
14 "PublicDescription": "Counts the number of demand and L1 prefetcher requests rejected by the L2Q due to a full or nearly full condition which likely indicates back pressure from L2Q. It also counts requests that would have gone directly to the XQ, but are rejected due to a full or nearly full condition, indicating back pressure from the IDI link. The L2Q may also reject transactions from a core to insure fairness between cores, or to delay a core's dirty eviction when the address conflicts with incoming external snoops.",34 "PublicDescription": "Counts the number of demand and L1 prefetcher requests rejected by the L2Q due to a full or nearly full condition which likely indicates back pressure from L2Q. It also counts requests that would have gone directly to the XQ, but are rejected due to a full or nearly full condition, indicating back pressure from the IDI link. The L2Q may also reject transactions from a core to ensure fairness between cores, or to delay a core's dirty eviction when the address conflicts with incoming external snoops.",
15 "EventCode": "0x31",35 "EventCode": "0x31",
16 "Counter": "0,1,2,3",36 "Counter": "0,1,2,3",
17 "UMask": "0x0",37 "UMask": "0x0",
18 "EventName": "CORE_REJECT_L2Q.ALL",38 "EventName": "CORE_REJECT_L2Q.ALL",
19 "SampleAfterValue": "200003",39 "SampleAfterValue": "200003",
20 "BriefDescription": "Requests rejected by the L2Q "40 "BriefDescription": "Requests rejected by the L2Q"
21 },41 },
22 {42 {
23 "CollectPEBSRecord": "1",43 "CollectPEBSRecord": "1",
24 "PublicDescription": "Counts memory requests originating from the core that reference a cache line in the L2 cache.",44 "PublicDescription": "Counts when a modified (dirty) cache line is evicted from the data L1 cache and needs to be written back to memory. No count will occur if the evicted line is clean, and hence does not require a writeback.",
25 "EventCode": "0x2E",45 "EventCode": "0x51",
26 "Counter": "0,1,2,3",46 "Counter": "0,1,2,3",
27 "UMask": "0x4f",47 "UMask": "0x1",
28 "EventName": "LONGEST_LAT_CACHE.REFERENCE",48 "EventName": "DL1.DIRTY_EVICTION",
29 "SampleAfterValue": "200003",49 "SampleAfterValue": "200003",
30 "BriefDescription": "L2 cache requests"50 "BriefDescription": "L1 Cache evictions for dirty data"
31 },51 },
32 {52 {
33 "CollectPEBSRecord": "1",53 "CollectPEBSRecord": "1",
34 "PublicDescription": "Counts memory requests originating from the core that miss in the L2 cache.",54 "PublicDescription": "Counts cycles that fetch is stalled due to an outstanding ICache miss. That is, the decoder queue is able to accept bytes, but the fetch unit is unable to provide bytes due to an ICache miss. Note: this event is not the same as the total number of cycles spent retrieving instruction cache lines from the memory hierarchy.",
35 "EventCode": "0x2E",55 "EventCode": "0x86",
36 "Counter": "0,1,2,3",56 "Counter": "0,1,2,3",
37 "UMask": "0x41",57 "UMask": "0x2",
38 "EventName": "LONGEST_LAT_CACHE.MISS",58 "EventName": "FETCH_STALL.ICACHE_FILL_PENDING_CYCLES",
39 "SampleAfterValue": "200003",59 "SampleAfterValue": "200003",
40 "BriefDescription": "L2 cache request misses"60 "BriefDescription": "Cycles code-fetch stalled due to an outstanding ICache miss."
41 },61 },
42 {62 {
43 "CollectPEBSRecord": "1",63 "CollectPEBSRecord": "1",
44 "PublicDescription": "Counts cycles that an ICache miss is outstanding, and instruction fetch is stalled. That is, the decoder queue is able to accept bytes, but the fetch unit is unable to provide bytes, while an Icache miss outstanding. Note this event is not the same as cycles to retrieve an instruction due to an Icache miss. Rather, it is the part of the Instruction Cache (ICache) miss time where no bytes are available for the decoder.",64 "EventCode": "0xB7",
45 "EventCode": "0x86",
46 "Counter": "0,1,2,3",65 "Counter": "0,1,2,3",
47 "UMask": "0x2",66 "UMask": "0x1",
48 "EventName": "FETCH_STALL.ICACHE_FILL_PENDING_CYCLES",67 "EventName": "OFFCORE_RESPONSE",
49 "SampleAfterValue": "200003",68 "SampleAfterValue": "100007",
50 "BriefDescription": "Cycles where code-fetch is stalled and an ICache miss is outstanding. This is not the same as an ICache Miss."69 "BriefDescription": "Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)"
51 },70 },
52 {71 {
53 "PEBS": "2",72 "PEBS": "2",
54 "CollectPEBSRecord": "2",73 "CollectPEBSRecord": "2",
55 "PublicDescription": "Counts the number of load uops retired.",74 "PublicDescription": "Counts locked memory uops retired. This includes regular locks and bus locks. (To specifically count bus locks only, see the Offcore response event.) A locked access is one with a lock prefix, or an exchange to memory. See the SDM for a complete description of which memory load accesses are locks.",
56 "EventCode": "0xD0",75 "EventCode": "0xD0",
57 "Counter": "0,1,2,3",76 "Counter": "0,1,2,3",
58 "UMask": "0x81",77 "UMask": "0x21",
59 "EventName": "MEM_UOPS_RETIRED.ALL_LOADS",78 "EventName": "MEM_UOPS_RETIRED.LOCK_LOADS",
60 "SampleAfterValue": "200003",79 "SampleAfterValue": "200003",
61 "BriefDescription": "Load uops retired (Precise event capable)"80 "BriefDescription": "Locked load uops retired (Precise event capable)"
62 },81 },
63 {82 {
64 "PEBS": "2",83 "PEBS": "2",
65 "CollectPEBSRecord": "2",84 "CollectPEBSRecord": "2",
66 "PublicDescription": "Counts the number of store uops retired.",85 "PublicDescription": "Counts load uops retired where the data requested spans a 64 byte cache line boundary.",
67 "EventCode": "0xD0",86 "EventCode": "0xD0",
68 "Counter": "0,1,2,3",87 "Counter": "0,1,2,3",
69 "UMask": "0x82",88 "UMask": "0x41",
70 "EventName": "MEM_UOPS_RETIRED.ALL_STORES",89 "EventName": "MEM_UOPS_RETIRED.SPLIT_LOADS",
71 "SampleAfterValue": "200003",90 "SampleAfterValue": "200003",
72 "BriefDescription": "Store uops retired (Precise event capable)"91 "BriefDescription": "Load uops retired that split a cache-line (Precise event capable)"
73 },92 },
74 {93 {
75 "PEBS": "2",94 "PEBS": "2",
76 "CollectPEBSRecord": "2",95 "CollectPEBSRecord": "2",
77 "PublicDescription": "Counts the number of memory uops retired that is either a loads or a store or both.",96 "PublicDescription": "Counts store uops retired where the data requested spans a 64 byte cache line boundary.",
78 "EventCode": "0xD0",97 "EventCode": "0xD0",
79 "Counter": "0,1,2,3",98 "Counter": "0,1,2,3",
80 "UMask": "0x83",99 "UMask": "0x42",
81 "EventName": "MEM_UOPS_RETIRED.ALL",100 "EventName": "MEM_UOPS_RETIRED.SPLIT_STORES",
82 "SampleAfterValue": "200003",101 "SampleAfterValue": "200003",
83 "BriefDescription": "Memory uops retired (Precise event capable)"102 "BriefDescription": "Stores uops retired that split a cache-line (Precise event capable)"
84 },103 },
85 {104 {
86 "PEBS": "2",105 "PEBS": "2",
87 "CollectPEBSRecord": "2",106 "CollectPEBSRecord": "2",
88 "PublicDescription": "Counts locked memory uops retired. This includes \"regular\" locks and bus locks. (To specifically count bus locks only, see the Offcore response event.) A locked access is one with a lock prefix, or an exchange to memory. See the SDM for a complete description of which memory load accesses are locks.",107 "PublicDescription": "Counts memory uops retired where the data requested spans a 64 byte cache line boundary.",
89 "EventCode": "0xD0",108 "EventCode": "0xD0",
90 "Counter": "0,1,2,3",109 "Counter": "0,1,2,3",
91 "UMask": "0x21",110 "UMask": "0x43",
92 "EventName": "MEM_UOPS_RETIRED.LOCK_LOADS",111 "EventName": "MEM_UOPS_RETIRED.SPLIT",
93 "SampleAfterValue": "200003",112 "SampleAfterValue": "200003",
94 "BriefDescription": "Locked load uops retired (Precise event capable)"113 "BriefDescription": "Memory uops retired that split a cache-line (Precise event capable)"
95 },114 },
96 {115 {
97 "PEBS": "2",116 "PEBS": "2",
98 "CollectPEBSRecord": "2",117 "CollectPEBSRecord": "2",
99 "PublicDescription": "Counts load uops retired where the data requested spans a 64 byte cache line boundary.",118 "PublicDescription": "Counts the number of load uops retired.",
100 "EventCode": "0xD0",119 "EventCode": "0xD0",
101 "Counter": "0,1,2,3",120 "Counter": "0,1,2,3",
102 "UMask": "0x41",121 "UMask": "0x81",
103 "EventName": "MEM_UOPS_RETIRED.SPLIT_LOADS",122 "EventName": "MEM_UOPS_RETIRED.ALL_LOADS",
104 "SampleAfterValue": "200003",123 "SampleAfterValue": "200003",
105 "BriefDescription": "Load uops retired that split a cache-line (Precise event capable)"124 "BriefDescription": "Load uops retired (Precise event capable)"
106 },125 },
107 {126 {
108 "PEBS": "2",127 "PEBS": "2",
109 "CollectPEBSRecord": "2",128 "CollectPEBSRecord": "2",
110 "PublicDescription": "Counts store uops retired where the data requested spans a 64 byte cache line boundary.",129 "PublicDescription": "Counts the number of store uops retired.",
111 "EventCode": "0xD0",130 "EventCode": "0xD0",
112 "Counter": "0,1,2,3",131 "Counter": "0,1,2,3",
113 "UMask": "0x42",132 "UMask": "0x82",
114 "EventName": "MEM_UOPS_RETIRED.SPLIT_STORES",133 "EventName": "MEM_UOPS_RETIRED.ALL_STORES",
115 "SampleAfterValue": "200003",134 "SampleAfterValue": "200003",
116 "BriefDescription": "Stores uops retired that split a cache-line (Precise event capable)"135 "BriefDescription": "Store uops retired (Precise event capable)"
117 },136 },
118 {137 {
119 "PEBS": "2",138 "PEBS": "2",
120 "CollectPEBSRecord": "2",139 "CollectPEBSRecord": "2",
121 "PublicDescription": "Counts memory uops retired where the data requested spans a 64 byte cache line boundary.",140 "PublicDescription": "Counts the number of memory uops retired that is either a loads or a store or both.",
122 "EventCode": "0xD0",141 "EventCode": "0xD0",
123 "Counter": "0,1,2,3",142 "Counter": "0,1,2,3",
124 "UMask": "0x43",143 "UMask": "0x83",
125 "EventName": "MEM_UOPS_RETIRED.SPLIT",144 "EventName": "MEM_UOPS_RETIRED.ALL",
126 "SampleAfterValue": "200003",145 "SampleAfterValue": "200003",
127 "BriefDescription": "Memory uops retired that split a cache-line (Precise event capable)"146 "BriefDescription": "Memory uops retired (Precise event capable)"
128 },147 },
129 {148 {
130 "PEBS": "2",149 "PEBS": "2",
@@ -140,24 +159,24 @@ · 9 unmodified lines
140 {159 {
141 "PEBS": "2",160 "PEBS": "2",
142 "CollectPEBSRecord": "2",161 "CollectPEBSRecord": "2",
143 "PublicDescription": "Counts load uops retired that miss the L1 data cache.",162 "PublicDescription": "Counts load uops retired that hit in the L2 cache.",
144 "EventCode": "0xD1",163 "EventCode": "0xD1",
145 "Counter": "0,1,2,3",164 "Counter": "0,1,2,3",
146 "UMask": "0x8",165 "UMask": "0x2",
147 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS",166 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT",
148 "SampleAfterValue": "200003",167 "SampleAfterValue": "200003",
149 "BriefDescription": "Load uops retired that missed L1 data cache (Precise event capable)"168 "BriefDescription": "Load uops retired that hit L2 (Precise event capable)"
150 },169 },
151 {170 {
152 "PEBS": "2",171 "PEBS": "2",
153 "CollectPEBSRecord": "2",172 "CollectPEBSRecord": "2",
154 "PublicDescription": "Counts load uops retired that hit in the L2 cache.",173 "PublicDescription": "Counts load uops retired that miss the L1 data cache.",
155 "EventCode": "0xD1",174 "EventCode": "0xD1",
156 "Counter": "0,1,2,3",175 "Counter": "0,1,2,3",
157 "UMask": "0x2",176 "UMask": "0x8",
158 "EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT",177 "EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS",
159 "SampleAfterValue": "200003",178 "SampleAfterValue": "200003",
160 "BriefDescription": "Load uops retired that hit L2 (Precise event capable)"179 "BriefDescription": "Load uops retired that missed L1 data cache (Precise event capable)"
161 },180 },
162 {181 {
163 "PEBS": "2",182 "PEBS": "2",
@@ -205,24 +224,20 @@ · 41 unmodified lines
205 },224 },
206 {225 {
207 "CollectPEBSRecord": "1",226 "CollectPEBSRecord": "1",
208 "PublicDescription": "Counts when a modified (dirty) cache line is evicted from the data L1 cache and needs to be written back to memory. No count will occur if the evicted line is clean, and hence does not require a writeback.",227 "PublicDescription": "Counts data read, code read, and read for ownership (RFO) requests (demand & prefetch) that are outstanding, per cycle, from the time of the L2 miss to when any response is received. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
209 "EventCode": "0x51",
210 "Counter": "0,1,2,3",
211 "UMask": "0x1",
212 "EventName": "DL1.DIRTY_EVICTION",
213 "SampleAfterValue": "200003",
214 "BriefDescription": "L1 Cache evictions for dirty data"
215 },
216 {
217 "CollectPEBSRecord": "1",
218 "EventCode": "0xB7",228 "EventCode": "0xB7",
229 "MSRValue": "0x40000032b7 ",
219 "Counter": "0,1,2,3",230 "Counter": "0,1,2,3",
220 "UMask": "0x1",231 "UMask": "0x1",
221 "EventName": "OFFCORE_RESPONSE",232 "EventName": "OFFCORE_RESPONSE.ANY_READ.OUTSTANDING",
233 "MSRIndex": "0x1a6",
222 "SampleAfterValue": "100007",234 "SampleAfterValue": "100007",
223 "BriefDescription": "Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)"235 "BriefDescription": "Counts data read, code read, and read for ownership (RFO) requests (demand & prefetch) that are outstanding, per cycle, from the time of the L2 miss to when any response is received.",
236 "Offcore": "1"
224 },237 },
225 {238 {
239 "CollectPEBSRecord": "1",
240 "PublicDescription": "Counts data read, code read, and read for ownership (RFO) requests (demand & prefetch) that miss the L2 cache. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
226 "EventCode": "0xB7",241 "EventCode": "0xB7",
227 "MSRValue": "0x36000032b7 ",242 "MSRValue": "0x36000032b7 ",
228 "Counter": "0,1,2,3",243 "Counter": "0,1,2,3",
@@ -234,6 +249,8 @@ · 5 unmodified lines
234 "Offcore": "1"249 "Offcore": "1"
235 },250 },
236 {251 {
252 "CollectPEBSRecord": "1",
253 "PublicDescription": "Counts data read, code read, and read for ownership (RFO) requests (demand & prefetch) that miss the L2 cache with a snoop hit in the other processor module, data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
237 "EventCode": "0xB7",254 "EventCode": "0xB7",
238 "MSRValue": "0x10000032b7 ",255 "MSRValue": "0x10000032b7 ",
239 "Counter": "0,1,2,3",256 "Counter": "0,1,2,3",
@@ -245,6 +262,8 @@ · 5 unmodified lines
245 "Offcore": "1"262 "Offcore": "1"
246 },263 },
247 {264 {
265 "CollectPEBSRecord": "1",
266 "PublicDescription": "Counts data read, code read, and read for ownership (RFO) requests (demand & prefetch) that miss the L2 cache with a snoop hit in the other processor module, no data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
248 "EventCode": "0xB7",267 "EventCode": "0xB7",
249 "MSRValue": "0x04000032b7 ",268 "MSRValue": "0x04000032b7 ",
250 "Counter": "0,1,2,3",269 "Counter": "0,1,2,3",
@@ -256,6 +275,8 @@ · 5 unmodified lines
256 "Offcore": "1"275 "Offcore": "1"
257 },276 },
258 {277 {
278 "CollectPEBSRecord": "1",
279 "PublicDescription": "Counts data read, code read, and read for ownership (RFO) requests (demand & prefetch) that true miss for the L2 cache with a snoop miss in the other processor module. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
259 "EventCode": "0xB7",280 "EventCode": "0xB7",
260 "MSRValue": "0x02000032b7 ",281 "MSRValue": "0x02000032b7 ",
261 "Counter": "0,1,2,3",282 "Counter": "0,1,2,3",
@@ -267,6 +288,8 @@ · 5 unmodified lines
267 "Offcore": "1"288 "Offcore": "1"
268 },289 },
269 {290 {
291 "CollectPEBSRecord": "1",
292 "PublicDescription": "Counts data read, code read, and read for ownership (RFO) requests (demand & prefetch) that hit the L2 cache. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
270 "EventCode": "0xB7",293 "EventCode": "0xB7",
271 "MSRValue": "0x00000432b7 ",294 "MSRValue": "0x00000432b7 ",
272 "Counter": "0,1,2,3",295 "Counter": "0,1,2,3",
@@ -278,6 +301,34 @@ · 5 unmodified lines
278 "Offcore": "1"301 "Offcore": "1"
279 },302 },
280 {303 {
304 "CollectPEBSRecord": "1",
305 "PublicDescription": "Counts data read, code read, and read for ownership (RFO) requests (demand & prefetch) that have any transaction responses from the uncore subsystem. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
306 "EventCode": "0xB7",
307 "MSRValue": "0x00000132b7 ",
308 "Counter": "0,1,2,3",
309 "UMask": "0x1",
310 "EventName": "OFFCORE_RESPONSE.ANY_READ.ANY_RESPONSE",
311 "MSRIndex": "0x1a6,0x1a7",
312 "SampleAfterValue": "100007",
313 "BriefDescription": "Counts data read, code read, and read for ownership (RFO) requests (demand & prefetch) that have any transaction responses from the uncore subsystem.",
314 "Offcore": "1"
315 },
316 {
317 "CollectPEBSRecord": "1",
318 "PublicDescription": "Counts reads for ownership (RFO) requests (demand & prefetch) that are outstanding, per cycle, from the time of the L2 miss to when any response is received. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
319 "EventCode": "0xB7",
320 "MSRValue": "0x4000000022 ",
321 "Counter": "0,1,2,3",
322 "UMask": "0x1",
323 "EventName": "OFFCORE_RESPONSE.ANY_RFO.OUTSTANDING",
324 "MSRIndex": "0x1a6",
325 "SampleAfterValue": "100007",
326 "BriefDescription": "Counts reads for ownership (RFO) requests (demand & prefetch) that are outstanding, per cycle, from the time of the L2 miss to when any response is received.",
327 "Offcore": "1"
328 },
329 {
330 "CollectPEBSRecord": "1",
331 "PublicDescription": "Counts reads for ownership (RFO) requests (demand & prefetch) that miss the L2 cache. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
281 "EventCode": "0xB7",332 "EventCode": "0xB7",
282 "MSRValue": "0x3600000022 ",333 "MSRValue": "0x3600000022 ",
283 "Counter": "0,1,2,3",334 "Counter": "0,1,2,3",
@@ -289,6 +340,8 @@ · 5 unmodified lines
289 "Offcore": "1"340 "Offcore": "1"
290 },341 },
291 {342 {
343 "CollectPEBSRecord": "1",
344 "PublicDescription": "Counts reads for ownership (RFO) requests (demand & prefetch) that miss the L2 cache with a snoop hit in the other processor module, data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
292 "EventCode": "0xB7",345 "EventCode": "0xB7",
293 "MSRValue": "0x1000000022 ",346 "MSRValue": "0x1000000022 ",
294 "Counter": "0,1,2,3",347 "Counter": "0,1,2,3",
@@ -300,6 +353,8 @@ · 5 unmodified lines
300 "Offcore": "1"353 "Offcore": "1"
301 },354 },
302 {355 {
356 "CollectPEBSRecord": "1",
357 "PublicDescription": "Counts reads for ownership (RFO) requests (demand & prefetch) that miss the L2 cache with a snoop hit in the other processor module, no data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
303 "EventCode": "0xB7",358 "EventCode": "0xB7",
304 "MSRValue": "0x0400000022 ",359 "MSRValue": "0x0400000022 ",
305 "Counter": "0,1,2,3",360 "Counter": "0,1,2,3",
@@ -311,6 +366,8 @@ · 5 unmodified lines
311 "Offcore": "1"366 "Offcore": "1"
312 },367 },
313 {368 {
369 "CollectPEBSRecord": "1",
370 "PublicDescription": "Counts reads for ownership (RFO) requests (demand & prefetch) that true miss for the L2 cache with a snoop miss in the other processor module. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
314 "EventCode": "0xB7",371 "EventCode": "0xB7",
315 "MSRValue": "0x0200000022 ",372 "MSRValue": "0x0200000022 ",
316 "Counter": "0,1,2,3",373 "Counter": "0,1,2,3",
@@ -322,6 +379,8 @@ · 5 unmodified lines
322 "Offcore": "1"379 "Offcore": "1"
323 },380 },
324 {381 {
382 "CollectPEBSRecord": "1",
383 "PublicDescription": "Counts reads for ownership (RFO) requests (demand & prefetch) that hit the L2 cache. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
325 "EventCode": "0xB7",384 "EventCode": "0xB7",
326 "MSRValue": "0x0000040022 ",385 "MSRValue": "0x0000040022 ",
327 "Counter": "0,1,2,3",386 "Counter": "0,1,2,3",
@@ -333,6 +392,34 @@ · 5 unmodified lines
333 "Offcore": "1"392 "Offcore": "1"
334 },393 },
335 {394 {
395 "CollectPEBSRecord": "1",
396 "PublicDescription": "Counts reads for ownership (RFO) requests (demand & prefetch) that have any transaction responses from the uncore subsystem. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
397 "EventCode": "0xB7",
398 "MSRValue": "0x0000010022 ",
399 "Counter": "0,1,2,3",
400 "UMask": "0x1",
401 "EventName": "OFFCORE_RESPONSE.ANY_RFO.ANY_RESPONSE",
402 "MSRIndex": "0x1a6,0x1a7",
403 "SampleAfterValue": "100007",
404 "BriefDescription": "Counts reads for ownership (RFO) requests (demand & prefetch) that have any transaction responses from the uncore subsystem.",
405 "Offcore": "1"
406 },
407 {
408 "CollectPEBSRecord": "1",
409 "PublicDescription": "Counts data reads (demand & prefetch) that are outstanding, per cycle, from the time of the L2 miss to when any response is received. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
410 "EventCode": "0xB7",
411 "MSRValue": "0x4000003091",
412 "Counter": "0,1,2,3",
413 "UMask": "0x1",
414 "EventName": "OFFCORE_RESPONSE.ANY_DATA_RD.OUTSTANDING",
415 "MSRIndex": "0x1a6",
416 "SampleAfterValue": "100007",
417 "BriefDescription": "Counts data reads (demand & prefetch) that are outstanding, per cycle, from the time of the L2 miss to when any response is received.",
418 "Offcore": "1"
419 },
420 {
421 "CollectPEBSRecord": "1",
422 "PublicDescription": "Counts data reads (demand & prefetch) that miss the L2 cache. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
336 "EventCode": "0xB7",423 "EventCode": "0xB7",
337 "MSRValue": "0x3600003091",424 "MSRValue": "0x3600003091",
338 "Counter": "0,1,2,3",425 "Counter": "0,1,2,3",
@@ -344,6 +431,8 @@ · 5 unmodified lines
344 "Offcore": "1"431 "Offcore": "1"
345 },432 },
346 {433 {
434 "CollectPEBSRecord": "1",
435 "PublicDescription": "Counts data reads (demand & prefetch) that miss the L2 cache with a snoop hit in the other processor module, data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
347 "EventCode": "0xB7",436 "EventCode": "0xB7",
348 "MSRValue": "0x1000003091",437 "MSRValue": "0x1000003091",
349 "Counter": "0,1,2,3",438 "Counter": "0,1,2,3",
@@ -355,6 +444,8 @@ · 5 unmodified lines
355 "Offcore": "1"444 "Offcore": "1"
356 },445 },
357 {446 {
447 "CollectPEBSRecord": "1",
448 "PublicDescription": "Counts data reads (demand & prefetch) that miss the L2 cache with a snoop hit in the other processor module, no data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
358 "EventCode": "0xB7",449 "EventCode": "0xB7",
359 "MSRValue": "0x0400003091",450 "MSRValue": "0x0400003091",
360 "Counter": "0,1,2,3",451 "Counter": "0,1,2,3",
@@ -366,6 +457,8 @@ · 5 unmodified lines
366 "Offcore": "1"457 "Offcore": "1"
367 },458 },
368 {459 {
460 "CollectPEBSRecord": "1",
461 "PublicDescription": "Counts data reads (demand & prefetch) that true miss for the L2 cache with a snoop miss in the other processor module. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
369 "EventCode": "0xB7",462 "EventCode": "0xB7",
370 "MSRValue": "0x0200003091",463 "MSRValue": "0x0200003091",
371 "Counter": "0,1,2,3",464 "Counter": "0,1,2,3",
@@ -377,6 +470,8 @@ · 5 unmodified lines
377 "Offcore": "1"470 "Offcore": "1"
378 },471 },
379 {472 {
473 "CollectPEBSRecord": "1",
474 "PublicDescription": "Counts data reads (demand & prefetch) that hit the L2 cache. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
380 "EventCode": "0xB7",475 "EventCode": "0xB7",
381 "MSRValue": "0x0000043091",476 "MSRValue": "0x0000043091",
382 "Counter": "0,1,2,3",477 "Counter": "0,1,2,3",
@@ -388,6 +483,34 @@ · 5 unmodified lines
388 "Offcore": "1"483 "Offcore": "1"
389 },484 },
390 {485 {
486 "CollectPEBSRecord": "1",
487 "PublicDescription": "Counts data reads (demand & prefetch) that have any transaction responses from the uncore subsystem. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
488 "EventCode": "0xB7",
489 "MSRValue": "0x0000013091",
490 "Counter": "0,1,2,3",
491 "UMask": "0x1",
492 "EventName": "OFFCORE_RESPONSE.ANY_DATA_RD.ANY_RESPONSE",
493 "MSRIndex": "0x1a6,0x1a7",
494 "SampleAfterValue": "100007",
495 "BriefDescription": "Counts data reads (demand & prefetch) that have any transaction responses from the uncore subsystem.",
496 "Offcore": "1"
497 },
498 {
499 "CollectPEBSRecord": "1",
500 "PublicDescription": "Counts data reads generated by L1 or L2 prefetchers that are outstanding, per cycle, from the time of the L2 miss to when any response is received. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
501 "EventCode": "0xB7",
502 "MSRValue": "0x4000003010 ",
503 "Counter": "0,1,2,3",
504 "UMask": "0x1",
505 "EventName": "OFFCORE_RESPONSE.ANY_PF_DATA_RD.OUTSTANDING",
506 "MSRIndex": "0x1a6",
507 "SampleAfterValue": "100007",
508 "BriefDescription": "Counts data reads generated by L1 or L2 prefetchers that are outstanding, per cycle, from the time of the L2 miss to when any response is received.",
509 "Offcore": "1"
510 },
511 {
512 "CollectPEBSRecord": "1",
513 "PublicDescription": "Counts data reads generated by L1 or L2 prefetchers that miss the L2 cache. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
391 "EventCode": "0xB7",514 "EventCode": "0xB7",
392 "MSRValue": "0x3600003010 ",515 "MSRValue": "0x3600003010 ",
393 "Counter": "0,1,2,3",516 "Counter": "0,1,2,3",
@@ -399,6 +522,8 @@ · 5 unmodified lines
399 "Offcore": "1"522 "Offcore": "1"
400 },523 },
401 {524 {
525 "CollectPEBSRecord": "1",
526 "PublicDescription": "Counts data reads generated by L1 or L2 prefetchers that miss the L2 cache with a snoop hit in the other processor module, data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
402 "EventCode": "0xB7",527 "EventCode": "0xB7",
403 "MSRValue": "0x1000003010 ",528 "MSRValue": "0x1000003010 ",
404 "Counter": "0,1,2,3",529 "Counter": "0,1,2,3",
@@ -410,6 +535,8 @@ · 5 unmodified lines
410 "Offcore": "1"535 "Offcore": "1"
411 },536 },
412 {537 {
538 "CollectPEBSRecord": "1",
539 "PublicDescription": "Counts data reads generated by L1 or L2 prefetchers that miss the L2 cache with a snoop hit in the other processor module, no data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
413 "EventCode": "0xB7",540 "EventCode": "0xB7",
414 "MSRValue": "0x0400003010 ",541 "MSRValue": "0x0400003010 ",
415 "Counter": "0,1,2,3",542 "Counter": "0,1,2,3",
@@ -421,6 +548,8 @@ · 5 unmodified lines
421 "Offcore": "1"548 "Offcore": "1"
422 },549 },
423 {550 {
551 "CollectPEBSRecord": "1",
552 "PublicDescription": "Counts data reads generated by L1 or L2 prefetchers that true miss for the L2 cache with a snoop miss in the other processor module. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
424 "EventCode": "0xB7",553 "EventCode": "0xB7",
425 "MSRValue": "0x0200003010 ",554 "MSRValue": "0x0200003010 ",
426 "Counter": "0,1,2,3",555 "Counter": "0,1,2,3",
@@ -432,347 +561,957 @@ · 5 unmodified lines
432 "Offcore": "1"561 "Offcore": "1"
433 },562 },
434 {563 {
564 "CollectPEBSRecord": "1",
565 "PublicDescription": "Counts data reads generated by L1 or L2 prefetchers that hit the L2 cache. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
435 "EventCode": "0xB7",566 "EventCode": "0xB7",
436 "MSRValue": "0x0000043010 ",567 "MSRValue": "0x0000043010 ",
437 "Counter": "0,1,2,3",568 "Counter": "0,1,2,3",
438 "UMask": "0x1",569 "UMask": "0x1",
439 "EventName": "OFFCORE_RESPONSE.ANY_PF_DATA_RD.L2_HIT",570 "EventName": "OFFCORE_RESPONSE.ANY_PF_DATA_RD.L2_HIT",
571 "MSRIndex": "0x1a6,0x1a7",
572 "SampleAfterValue": "100007",
573 "BriefDescription": "Counts data reads generated by L1 or L2 prefetchers that hit the L2 cache.",
574 "Offcore": "1"
575 },
576 {
577 "CollectPEBSRecord": "1",
578 "PublicDescription": "Counts data reads generated by L1 or L2 prefetchers that have any transaction responses from the uncore subsystem. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
579 "EventCode": "0xB7",
580 "MSRValue": "0x0000013010 ",
581 "Counter": "0,1,2,3",
582 "UMask": "0x1",
583 "EventName": "OFFCORE_RESPONSE.ANY_PF_DATA_RD.ANY_RESPONSE",
584 "MSRIndex": "0x1a6,0x1a7",
585 "SampleAfterValue": "100007",
586 "BriefDescription": "Counts data reads generated by L1 or L2 prefetchers that have any transaction responses from the uncore subsystem.",
587 "Offcore": "1"
588 },
589 {
590 "CollectPEBSRecord": "1",
591 "PublicDescription": "Counts requests to the uncore subsystem that are outstanding, per cycle, from the time of the L2 miss to when any response is received. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
592 "EventCode": "0xB7",
593 "MSRValue": "0x4000008000 ",
594 "Counter": "0,1,2,3",
595 "UMask": "0x1",
596 "EventName": "OFFCORE_RESPONSE.ANY_REQUEST.OUTSTANDING",
597 "MSRIndex": "0x1a6",
598 "SampleAfterValue": "100007",
599 "BriefDescription": "Counts requests to the uncore subsystem that are outstanding, per cycle, from the time of the L2 miss to when any response is received.",
600 "Offcore": "1"
601 },
602 {
603 "CollectPEBSRecord": "1",
604 "PublicDescription": "Counts requests to the uncore subsystem that miss the L2 cache. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
605 "EventCode": "0xB7",
606 "MSRValue": "0x3600008000 ",
607 "Counter": "0,1,2,3",
608 "UMask": "0x1",
609 "EventName": "OFFCORE_RESPONSE.ANY_REQUEST.L2_MISS.ANY",
610 "MSRIndex": "0x1a6,0x1a7",
611 "SampleAfterValue": "100007",
612 "BriefDescription": "Counts requests to the uncore subsystem that miss the L2 cache.",
613 "Offcore": "1"
614 },
615 {
616 "CollectPEBSRecord": "1",
617 "PublicDescription": "Counts requests to the uncore subsystem that miss the L2 cache with a snoop hit in the other processor module, data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
618 "EventCode": "0xB7",
619 "MSRValue": "0x1000008000 ",
620 "Counter": "0,1,2,3",
621 "UMask": "0x1",
622 "EventName": "OFFCORE_RESPONSE.ANY_REQUEST.L2_MISS.HITM_OTHER_CORE",
623 "MSRIndex": "0x1a6,0x1a7",
624 "SampleAfterValue": "100007",
625 "BriefDescription": "Counts requests to the uncore subsystem that miss the L2 cache with a snoop hit in the other processor module, data forwarding is required.",
626 "Offcore": "1"
627 },
628 {
629 "CollectPEBSRecord": "1",
630 "PublicDescription": "Counts requests to the uncore subsystem that miss the L2 cache with a snoop hit in the other processor module, no data forwarding is required. Requires MSR_OFFCORE_RESP[0,1] to specify request type and response. (duplicated for both MSRs)",
631 "EventCode": "0xB7",
632 "MSRValue": "0x0400008000 ",

1383 more lines aren’t shown here.

tools/perf/pmu-events/arch/x86/goldmont/memory.json+270−10

This diff is large: its 291 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/goldmont/other.json+42−12

This diff is large: its 89 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/goldmont/pipeline.json+264−242

This diff is large: its 661 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/goldmont/virtual-memory.json+30−30

This diff is large: its 71 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswell/cache.json+194−171

This diff is large: its 735 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswell/floating-point.json+10−10

This diff is large: its 33 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswell/frontend.json+66−66

This diff is large: its 188 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswell/memory.json+21−0

This diff is large: its 168 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswell/other.json+10−10

This diff is large: its 34 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswell/pipeline.json+570−561

This diff is large: its 1433 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswell/virtual-memory.json+106−106

This diff is large: its 342 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswellx/cache.json+200−177

This diff is large: its 764 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswellx/floating-point.json+10−10

This diff is large: its 33 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswellx/frontend.json+66−66

This diff is large: its 186 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswellx/memory.json+28−0

This diff is large: its 224 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswellx/other.json+10−10

This diff is large: its 34 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswellx/pipeline.json+571−562

This diff is large: its 1442 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/haswellx/virtual-memory.json+106−106

This diff is large: its 338 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivybridge/cache.json+111−132

This diff is large: its 482 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivybridge/frontend.json+61−61

This diff is large: its 178 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivybridge/memory.json+12−12

This diff is large: its 38 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivybridge/other.json+10−10

This diff is large: its 34 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivybridge/pipeline.json+412−410

This diff is large: its 1153 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivybridge/virtual-memory.json+30−30

This diff is large: its 71 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivytown/cache.json+112−124

This diff is large: its 479 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivytown/frontend.json+61−61

This diff is large: its 178 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivytown/memory.json+12−12

This diff is large: its 38 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivytown/other.json+10−10

This diff is large: its 34 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivytown/pipeline.json+412−410

This diff is large: its 1153 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/ivytown/virtual-memory.json+30−30

This diff is large: its 85 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/mapfile.csv+1−4

This diff is large: its 12 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/silvermont/cache.json+2−1

This diff is large: its 15 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylake/cache.json+515−3875

This diff is large: its 4776 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylake/floating-point.json+2−3

This diff is large: its 24 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylake/frontend.json+121−111

This diff is large: its 507 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylake/memory.json+212−1906

This diff is large: its 2245 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylake/other.json+38−2

This diff is large: its 50 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylake/pipeline.json+492−481

This diff is large: its 1394 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylake/virtual-memory.json+137−125

This diff is large: its 401 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylakex/cache.json+167−90

This diff is large: its 893 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylakex/floating-point.json+1−2

This diff is large: its 12 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylakex/frontend.json+24−24

This diff is large: its 205 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylakex/memory.json+154−77

This diff is large: its 758 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylakex/other.json+93−1

This diff is large: its 112 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylakex/pipeline.json+22−22

This diff is large: its 169 lines aren’t shown here.

tools/perf/pmu-events/arch/x86/skylakex/virtual-memory.json+21−21

This diff is large: its 138 lines aren’t shown here.

tools/perf/pmu-events/jevents.c+38−1

This diff is large: its 53 lines aren’t shown here.

tools/perf/scripts/python/bin/mem-phys-addr-record+19−0

This diff is large: its 20 lines aren’t shown here.

tools/perf/scripts/python/bin/mem-phys-addr-report+3−0

This diff is large: its 4 lines aren’t shown here.

tools/perf/scripts/python/mem-phys-addr.py+95−0

This diff is large: its 96 lines aren’t shown here.

tools/perf/tests/attr.c+6−0

This diff is large: its 13 lines aren’t shown here.

tools/perf/tests/backward-ring-buffer.c+3−3

This diff is large: its 20 lines aren’t shown here.

tools/perf/tests/bp_signal.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/tests/bpf-script-example.c+2−2

This diff is large: its 11 lines aren’t shown here.

tools/perf/tests/bpf.c+32−36

This diff is large: its 116 lines aren’t shown here.

tools/perf/tests/builtin-test.c+5−5

This diff is large: its 39 lines aren’t shown here.

tools/perf/tests/code-reading.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/tests/dwarf-unwind.c+1−0

This diff is large: its 8 lines aren’t shown here.

tools/perf/tests/keep-tracking.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/tests/mmap-basic.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/tests/openat-syscall-tp-fields.c+4−1

This diff is large: its 18 lines aren’t shown here.

tools/perf/tests/parse-events.c+0−1

This diff is large: its 8 lines aren’t shown here.

tools/perf/tests/perf-record.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/tests/sample-parsing.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/tests/shell/trace+probe_vfs_getname.sh+3−4

This diff is large: its 14 lines aren’t shown here.

tools/perf/tests/sw-clock.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/tests/switch-tracking.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/tests/task-exit.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/tests/thread-map.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/trace/beauty/Build+1−0

This diff is large: its 7 lines aren’t shown here.

tools/perf/trace/beauty/arch_errno_names.c+1−0

This diff is large: its 2 lines aren’t shown here.

tools/perf/trace/beauty/arch_errno_names.sh+100−0

This diff is large: its 101 lines aren’t shown here.

tools/perf/trace/beauty/beauty.h+5−0

This diff is large: its 17 lines aren’t shown here.

tools/perf/trace/beauty/flock.c+5−5

This diff is large: its 26 lines aren’t shown here.

tools/perf/trace/beauty/futex_val3.c+18−0

This diff is large: its 19 lines aren’t shown here.

tools/perf/ui/browsers/annotate.c+197−202

This diff is large: its 823 lines aren’t shown here.

tools/perf/ui/gtk/annotate.c+13−12

This diff is large: its 86 lines aren’t shown here.

tools/perf/util/Build+9−1

This diff is large: its 24 lines aren’t shown here.

tools/perf/util/annotate.c+340−312

This diff is large: its 1003 lines aren’t shown here.

tools/perf/util/annotate.h+42−34

This diff is large: its 122 lines aren’t shown here.

tools/perf/util/arm-spe-pkt-decoder.c+462−0

This diff is large: its 463 lines aren’t shown here.

tools/perf/util/arm-spe-pkt-decoder.h+43−0

This diff is large: its 44 lines aren’t shown here.

tools/perf/util/arm-spe.c+231−0

This diff is large: its 232 lines aren’t shown here.

tools/perf/util/arm-spe.h+31−0

This diff is large: its 32 lines aren’t shown here.

tools/perf/util/auxtrace.c+5−3

This diff is large: its 32 lines aren’t shown here.

tools/perf/util/auxtrace.h+1−0

This diff is large: its 8 lines aren’t shown here.

tools/perf/util/bpf-loader.c+2−2

This diff is large: its 18 lines aren’t shown here.

tools/perf/util/callchain.c+10−0

This diff is large: its 24 lines aren’t shown here.

tools/perf/util/callchain.h+2−0

This diff is large: its 9 lines aren’t shown here.

tools/perf/util/cgroup.c+3−0

This diff is large: its 10 lines aren’t shown here.

tools/perf/util/cs-etm-decoder/Build+1−0

This diff is large: its 2 lines aren’t shown here.

tools/perf/util/cs-etm-decoder/cs-etm-decoder.c+513−0

This diff is large: its 514 lines aren’t shown here.

tools/perf/util/cs-etm-decoder/cs-etm-decoder.h+105−0

This diff is large: its 106 lines aren’t shown here.

tools/perf/util/cs-etm.c+1023−0

This diff is large: its 1024 lines aren’t shown here.

tools/perf/util/cs-etm.h+18−0

This diff is large: its 37 lines aren’t shown here.

tools/perf/util/data.c+0−10

This diff is large: its 17 lines aren’t shown here.

tools/perf/util/dso.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/util/env.c+47−0

This diff is large: its 60 lines aren’t shown here.

tools/perf/util/env.h+2−0

This diff is large: its 7 lines aren’t shown here.

tools/perf/util/event.c+8−0

This diff is large: its 22 lines aren’t shown here.

tools/perf/util/event.h+2−2

This diff is large: its 18 lines aren’t shown here.

tools/perf/util/evlist.c+43−27

This diff is large: its 223 lines aren’t shown here.

tools/perf/util/evlist.h+9−6

This diff is large: its 56 lines aren’t shown here.

tools/perf/util/evsel.c+163−64

This diff is large: its 439 lines aren’t shown here.

tools/perf/util/evsel.h+7−5

This diff is large: its 43 lines aren’t shown here.

tools/perf/util/generate-cmdlist.sh+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/util/header.c+128−2

This diff is large: its 180 lines aren’t shown here.

tools/perf/util/header.h+8−1

This diff is large: its 35 lines aren’t shown here.

tools/perf/util/intel-bts.c+1−5

This diff is large: its 27 lines aren’t shown here.

tools/perf/util/intel-pt-decoder/Build+15−9

This diff is large: its 31 lines aren’t shown here.

tools/perf/util/intel-pt.c+3−8

This diff is large: its 41 lines aren’t shown here.

tools/perf/util/machine.c+2−2

This diff is large: its 18 lines aren’t shown here.

tools/perf/util/map.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/util/metricgroup.c+6−4

This diff is large: its 42 lines aren’t shown here.

tools/perf/util/mmap.c+25−48

This diff is large: its 158 lines aren’t shown here.

tools/perf/util/mmap.h+2−2

This diff is large: its 13 lines aren’t shown here.

tools/perf/util/ordered-events.c+1−2

This diff is large: its 11 lines aren’t shown here.

tools/perf/util/ordered-events.h+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/util/parse-events.c+3−0

This diff is large: its 10 lines aren’t shown here.

tools/perf/util/path.c+14−0

This diff is large: its 25 lines aren’t shown here.

tools/perf/util/path.h+3−0

This diff is large: its 13 lines aren’t shown here.

tools/perf/util/pmu.c+71−16

This diff is large: its 182 lines aren’t shown here.

tools/perf/util/pmu.h+1−1

This diff is large: its 8 lines aren’t shown here.

tools/perf/util/probe-event.c+61−24

This diff is large: its 211 lines aren’t shown here.

tools/perf/util/python-ext-sources+1−0

This diff is large: its 8 lines aren’t shown here.

tools/perf/util/python.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/util/rblist.c+12−7

This diff is large: its 29 lines aren’t shown here.

tools/perf/util/rblist.h+1−0

This diff is large: its 8 lines aren’t shown here.

tools/perf/util/scripting-engines/trace-event-python.c+2−1

This diff is large: its 17 lines aren’t shown here.

tools/perf/util/session.c+26−28

This diff is large: its 140 lines aren’t shown here.

tools/perf/util/session.h+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/util/sort.c+12−8

This diff is large: its 71 lines aren’t shown here.

tools/perf/util/srcline.c+5−4

This diff is large: its 31 lines aren’t shown here.

tools/perf/util/srcline.h+3−2

This diff is large: its 13 lines aren’t shown here.

tools/perf/util/stat-shadow.c+258−168

This diff is large: its 856 lines aren’t shown here.

tools/perf/util/stat.c+11−4

This diff is large: its 29 lines aren’t shown here.

tools/perf/util/stat.h+60−3

This diff is large: its 115 lines aren’t shown here.

tools/perf/util/string.c+46−0

This diff is large: its 50 lines aren’t shown here.

tools/perf/util/string2.h+2−0

This diff is large: its 8 lines aren’t shown here.

tools/perf/util/symbol.c+5−0

This diff is large: its 12 lines aren’t shown here.

tools/perf/util/symbol.h+1−0

This diff is large: its 8 lines aren’t shown here.

tools/perf/util/syscalltbl.c+4−0

This diff is large: its 11 lines aren’t shown here.

tools/perf/util/target.h+7−0

This diff is large: its 21 lines aren’t shown here.

tools/perf/util/thread_map.c+20−7

This diff is large: its 70 lines aren’t shown here.

tools/perf/util/thread_map.h+2−1

This diff is large: its 17 lines aren’t shown here.

tools/perf/util/time-utils.c+289−12

This diff is large: its 348 lines aren’t shown here.

tools/perf/util/time-utils.h+8−0

This diff is large: its 17 lines aren’t shown here.

tools/perf/util/tool.h+1−0

This diff is large: its 8 lines aren’t shown here.

tools/perf/util/unwind-libunwind-local.c+3−6

This diff is large: its 31 lines aren’t shown here.

tools/perf/util/unwind-libunwind.c+2−2

This diff is large: its 18 lines aren’t shown here.

tools/perf/util/util.c+1−1

This diff is large: its 9 lines aren’t shown here.

tools/perf/util/util.h+10−0

This diff is large: its 15 lines aren’t shown here.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t