[PATCH] D110793: [llvm-porfgen] Allow perf data as input
Lei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 29 17:45:26 PDT 2021
wlei added inline comments.
================
Comment at: llvm/tools/llvm-profgen/PerfReader.cpp:287
+ convertPerfDataToTrace(Binary, PerfInputFile);
+ // Let commoand opt own the string for converted perf trace file name
+ PerfTraceFilename = ConvertedPerfScript;
----------------
Nit : command
================
Comment at: llvm/tools/llvm-profgen/PerfReader.cpp:867
+ // for ` perf script --show-mmap-events -i ...`
+ return Line.find("PERF_RECORD_MMAP2") != StringRef::npos;
+}
----------------
Before we use "TraceIt.getCurrentLine().startswith("PERF_RECORD_MMAP2"))" for the check, why here changed to `find`? it seems like our regex match only supports for leading "PERF_RECORD_MMAP2"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110793/new/
https://reviews.llvm.org/D110793
More information about the llvm-commits
mailing list