Intel TPEBS & LBR Event Logging Supported By Linux 6.12 With Perf Tools

Written by Michael Larabel in Linux Kernel on 22 September 2024 at 02:45 PM EDT. Add A Comment
LINUX KERNEL
The perf tooling changes were merged today for the in-development 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.

Intel Sierra Forest server


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 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 the Git merge for the full list of perf tools feature changes this cycle.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week