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.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/tools/llvm-profgen/PerfReader.cpp | ||
---|---|---|
287 | fixed, thanks. | |
868 | This is because if we want to get mmap events only, we need to use perf script --show-mmap-events -F comm,pid -i .... However with that, the mmap shows up in the following format. I have a comment above.
The regex handles this today as it's not pinned to the beginning of the line (no ^). |
LGTM, thanks!
llvm/tools/llvm-profgen/PerfReader.cpp | ||
---|---|---|
868 | I see, thanks for the clarification. |
Nit : command