[all-commits] [llvm/llvm-project] 22bea0: [BOLT] Add itrace aggregation for AUX data (#70426)

Jonathan Davies via All-commits all-commits at lists.llvm.org
Mon Nov 6 03:40:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22bea0c52135e3e19c6b078e57a3c44cf566c6be
      https://github.com/llvm/llvm-project/commit/22bea0c52135e3e19c6b078e57a3c44cf566c6be
  Author: Jonathan Davies <jonathan.davies at arm.com>
  Date:   2023-11-06 (Mon, 06 Nov 2023)

  Changed paths:
    M bolt/lib/Profile/DataAggregator.cpp

  Log Message:
  -----------
  [BOLT] Add itrace aggregation for AUX data (#70426)

If you have a perf.data with Arm ETM data the only way to use perf2bolt
with Branch Aggregation is to first run `perf inject --itrace=l64i1us -o
perf-brstack.data` and then pass the new perf-brstack.data into
perf2bolt. perf2bolt then runs `perf script -F pid,ip,brstack` to
produce the brstacks.

This PR adds `--itrace` arg to perf2bolt to enable Itrace Aggregation.
It takes a string which is what is passed to the `perf script -F
pid,ip,brstack --itrace={0}`. This command produces the brstacks without
having to run perf inject and creating a new perf.data file.




More information about the All-commits mailing list