[all-commits] [llvm/llvm-project] 1f0bc6: [llvm-porfgen] Allow perf data as input

WenleiHe via All-commits all-commits at lists.llvm.org
Wed Sep 29 23:00:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f0bc617bdd11a4f3b0d820603b0089f81aca79b
      https://github.com/llvm/llvm-project/commit/1f0bc617bdd11a4f3b0d820603b0089f81aca79b
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M llvm/tools/llvm-profgen/PerfReader.cpp
    M llvm/tools/llvm-profgen/PerfReader.h
    M llvm/tools/llvm-profgen/llvm-profgen.cpp

  Log Message:
  -----------
  [llvm-porfgen] Allow perf data as input

This change enables llvm-profgen to take raw perf data as alternative input format. Sometimes we need to retrieve evenets for processes with matching binary. Using perf data as input allows us to retrieve process Ids from mmap events for matching binary, then filter by process id during perf script generation.

Differential Revision: https://reviews.llvm.org/D110793




More information about the All-commits mailing list