Intel TPEBS & LBR Event Logging Supported By Linux 6.12 With Perf Tools
([Linux Kernel] 3 Hours Ago
Intel PEBS + LBR Event Logging)
- Reference: 0001493278
- News link: https://www.phoronix.com/news/Linux-6.12-Perf-Tools
- Source link:
The perf tooling changes were merged today for the in-development [1]Linux 6.12 kernel. Notable on the perf tools side is supporting some features found in newer Intel processors.
The perf tools with Linux 6.12 add Intel branch counters support using LBR event logging. The Last Branch Record (LBR) event logging allows for logging PMU event data within LBRs.
This LBR Event Logging support is first found with Intel Xeon 6 "Sierra Forest" and upcoming Grand Ridge processors. Grand Ridge and Sierra Forest feature Crestmont E cores but over the incarnation found within Meteor Lake there is now this PMU LBR event logging capability. The Intel documentation with the patches goes on to explain of the LBR event logging:
"The LBR event logging introduces a per-counter indication of precise event occurrences in LBRs. It can provide a means to attribute exposed retirement latency to combinations of events across a block of instructions. It also provides a means of attributing Timed LBR latencies to events."
The other new Intel CPU feature with the perf tools work for Linux 6.12 is supporting Timed PEBS, or Precision Event-Based Sampling. With the perf stat command the new "--enable-tpebs-recording" option can be used for enabling Timed PEBS (TPEBS). More details on Timed PEBS as found with Meteor Lake and Granite Rapids can be found via [2]this Intel.com documentation .
Also on the Intel side with Linux 6.12 perf tools is updating the Meteor Lake metric JSON files for perf events.
Linux 6.12 per tools also allows using BPF+BTF to collect and print syscall and tracepoint arguments within "perf trace", various data type profiling improvements, and more. See [3]the Git merge for the full list of perf tools feature changes this cycle.
[1] https://www.phoronix.com/search/Linux+6.12
[2] https://www.intel.com/content/www/us/en/developer/articles/technical/timed-process-event-based-sampling-tpebs.html
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=891e8abed532423d3b918b0c445dc8919bc445b5
The perf tools with Linux 6.12 add Intel branch counters support using LBR event logging. The Last Branch Record (LBR) event logging allows for logging PMU event data within LBRs.
This LBR Event Logging support is first found with Intel Xeon 6 "Sierra Forest" and upcoming Grand Ridge processors. Grand Ridge and Sierra Forest feature Crestmont E cores but over the incarnation found within Meteor Lake there is now this PMU LBR event logging capability. The Intel documentation with the patches goes on to explain of the LBR event logging:
"The LBR event logging introduces a per-counter indication of precise event occurrences in LBRs. It can provide a means to attribute exposed retirement latency to combinations of events across a block of instructions. It also provides a means of attributing Timed LBR latencies to events."
The other new Intel CPU feature with the perf tools work for Linux 6.12 is supporting Timed PEBS, or Precision Event-Based Sampling. With the perf stat command the new "--enable-tpebs-recording" option can be used for enabling Timed PEBS (TPEBS). More details on Timed PEBS as found with Meteor Lake and Granite Rapids can be found via [2]this Intel.com documentation .
Also on the Intel side with Linux 6.12 perf tools is updating the Meteor Lake metric JSON files for perf events.
Linux 6.12 per tools also allows using BPF+BTF to collect and print syscall and tracepoint arguments within "perf trace", various data type profiling improvements, and more. See [3]the Git merge for the full list of perf tools feature changes this cycle.
[1] https://www.phoronix.com/search/Linux+6.12
[2] https://www.intel.com/content/www/us/en/developer/articles/technical/timed-process-event-based-sampling-tpebs.html
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=891e8abed532423d3b918b0c445dc8919bc445b5
phoronix