simpleperf: convert vaddr to file_offset in autofdo output.
AutoFDO text format needs addrs to be file offsets in binary, and uses
formula: vaddr = file_offset + FirstLoadSegmentVaddr().
FirstLoadSegmentVaddr() is almost always zero, but not for chromeos
vmlinux. To make it work, convert vaddrs to file offsets in autofdo
output.
Also add comment to avoid feeding autofdo output directly to
create_llvm_prof where there are more than one binary.
Bug: none
Test: run simpleperf_unit_test.
Test: run simpleperf manually.
Change-Id: I218d10864c31c22e1b78d60e10c8d56519be9a08
3 files changed