[llvm-profgen] Ignore invalid perf line in LBR record
authorwlei <wlei@fb.com>
Fri, 24 Sep 2021 06:43:08 +0000 (23:43 -0700)
committerwlei <wlei@fb.com>
Fri, 24 Sep 2021 20:44:57 +0000 (13:44 -0700)
commita7cdcf25c17e169eedba276791299c3b2b78fbf1
treee9d20ac573ba93119c97a8fb89ab0cf799e2eddf
parentcf74ef134c9a8089d8997144d54628952c6d4552
[llvm-profgen] Ignore invalid perf line in LBR record

Similar to https://reviews.llvm.org/D109637, there is a whole invalid line of message in perfscript.

```
warning: Invalid address in LBR record at line 14118674: Processed 14138923 events and lost 1 chunks!
warning: Invalid address in LBR record at line 14118676: Check IO/CPU overload!
```

This only happened for LBR only perfscript, hybridperfscript have a check of " 0x" to make sure it's the LBR perf line.

Reviewed By: hoy, wenlei

Differential Revision: https://reviews.llvm.org/D110424
llvm/test/tools/llvm-profgen/Inputs/noprobe.perfscript
llvm/tools/llvm-profgen/PerfReader.cpp