google / google/autofdo

use_lbr was enabled but range_count_map was empty!

Open
#138 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
619
Forks
127
PR merge metrics
No merged PRs in 30d

Description

So I'm trying to use AutoFDO to profile LLVM builds of the Linux kernel.
```sh
$ perf record -b -e br_inst_retired.near_taken -- make LLVM=1 -j72 -s defconfig all
$ create_llvm_prof --binary=/android0/llvm-project/llvm/build/bin/clang --out=profdata.prof.txt --format=text
[WARNING:../third_party/perf_data_converter/src/quipper/perf_reader.cc:1247] Skipping 428 bytes of metadata: HEADER_CPU_TOPOLOGY
[WARNING:../third_party/perf_data_converter/src/quipper/perf_reader.cc:1039] Skipping unsupported event PERF_RECORD_CPU_MAP
[INFO:../third_party/perf_data_converter/src/quipper/perf_reader.cc:1030] Number of events stored: 2716409
[INFO:../third_party/perf_data_converter/src/quipper/perf_parser.cc:267] Parser processed: 258581 MMAP/MMAP2 events, 40616 COMM events, 42238 FORK events, 42239 EXIT events, 2312867 SAMPLE events, 2309573 of these were mapped, 0 SAMPLE events with a data address, 0 of these were mapped
WARNING: Logging before InitGoogleLogging() is written to STDERR
W20220609 13:10:46.989851 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:47.490473 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:48.051054 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:48.415345 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:48.707093 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:48.818660 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:49.018415 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:49.314018 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:49.339546 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:49.799479 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:49.850066 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:50.208909 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:50.334342 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:51.216764 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:51.417107 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:51.608160 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:51.720455 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:52.109645 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:52.128116 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:52.168269 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:52.266398 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:52.418479 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:52.488134 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:52.586100 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:52.762876 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:52.814779 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:53.349150 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:53.659881 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:53.832845 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:54.169456 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:54.553118 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:55.135272 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:55.195591 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:55.499243 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:55.550426 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:55.633762 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:55.815116 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:56.277334 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:56.424436 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:56.439827 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:57.116207 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:57.640405 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:58.107260 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:58.171854 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:58.947707 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:59.296545 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:10:59.799553 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:00.569710 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:00.626411 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:00.903523 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:01.222597 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:01.550545 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:02.090402 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:02.341794 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:02.774662 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:03.510779 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:03.940009 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:04.018903 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:04.475869 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:04.900394 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:04.996759 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:05.308588 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:05.411761 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:05.456180 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:05.884120 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:05.959224 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:06.247490 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:06.261242 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:06.268589 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:06.369735 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:06.383276 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:06.579290 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:06.710788 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:06.798413 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:07.208199 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
W20220609 13:11:07.566677 3398549 profile.cc:105] use_lbr was enabled but range_count_map was empty!
$ cat profdata.prof.txt
$
```
Am I holding it wrong?
If I try:
```
$ create_llvm_prof --binary=/android0/llvm-project/llvm/build/bin/clang --out=profdata.prof --format=binary
```
without having linked clang with `-Wl,--build-id`, then I observe:
```
E20220609 11:08:19.315649 3322321 sample_reader.cc:264] No buildid found in binary
```
and I think `create_llvm_prof` has hung; it's been running for two hours...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.