[PATCH] D110793: [llvm-porfgen] Allow perf data as input

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 29 17:12:43 PDT 2021


wenlei created this revision.
wenlei added reviewers: hoy, wlei, wmi.
Herald added subscribers: modimo, lxfind.
wenlei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110793

Files:
  llvm/tools/llvm-profgen/PerfReader.cpp
  llvm/tools/llvm-profgen/PerfReader.h
  llvm/tools/llvm-profgen/llvm-profgen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110793.376077.patch
Type: text/x-patch
Size: 8895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210930/e791b4b9/attachment.bin>


More information about the llvm-commits mailing list