sample_reader.cc:102] Error reading from perf_inject_etm_test_loop.data&profile_creator.cc:138] Error reading profile.
- Dominant language
- C++
- Stars
- 619
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
[1] Show an simple examples optimize a program using simpleperf
These all use ETM+ETR in combination with AutoFDO
At a certain step. to convert to a binary file, it is necessary to use 'create_llvm_prof'.
create_llvm_prof -profile perf_inject_etm_test_loop.data -profiler text -binary ./etm_test_loop -out etm_test_loop.afdo -format binary
user_linux:~/bench$ create_llvm_prof -profile perf_inject_etm_test_loop.data -profiler text -binary ./etm_test_loop -out etm_test_loop.afdo -format binary
E0713 18:00:40.240522 3842925 sample_reader.cc:102] Error reading from perf_inject_etm_test_loop.data
E0713 18:00:40.240633 3842925 profile_creator.cc:138] Error reading profile.
user_linux:~/bench$ dmesg | tail
[4303567.323067] audit: type=1400 audit(1688613249.388:296): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.gnome-calculator" pid=3441861 comm="apparmor_parser"
[4650545.826272] show_signal_msg: 7 callbacks suppressed
[4650545.826274] symbol_map_test[3629590]: segfault at 80 ip 000055dac1cf7c08 sp 00007ffe1d9d7220 error 4 in symbol_map_test[55dac1ca7000+2fd000]
[4650545.826277] Code: 89 de e8 cb c0 fb ff 48 8b bc 24 e0 00 00 00 48 8b 58 40 48 8d 84 24 f0 00 00 00 48 89 44 24 28 48 39 c7 74 05 e8 88 fd fa ff <48> 8b 83 80 00 00 00 48 8d 6c 24 70 4c 8d 64 24 58 c7 44 24 58 05
[4650546.609256] llvm_propeller_[3629601]: segfault at 0 ip 0000564faf1b8135 sp 00007ffd5f34d030 error 4 in llvm_propeller_whole_program_info_test[564faf022000+769000]
[4650546.609279] Code: ff 48 89 ef e8 8c d4 ec ff 48 8d 7c 24 40 31 d2 4c 89 f6 e8 0d fd ed ff 48 8b 74 24 40 4c 8d 7c 24 50 ba 01 00 00 00 4c 89 ff <48> 8b 06 ff 50 10 48 8b 7c 24 50 48 c7 84 24 a8 00 00 00 00 00 00
[4650644.955557] symbol_map_test[3629658]: segfault at 80 ip 000055dd4f65fc08 sp 00007ffd689752c0 error 4 in symbol_map_test[55dd4f60f000+2fd000]
[4650644.955561] Code: 89 de e8 cb c0 fb ff 48 8b bc 24 e0 00 00 00 48 8b 58 40 48 8d 84 24 f0 00 00 00 48 89 44 24 28 48 39 c7 74 05 e8 88 fd fa ff <48> 8b 83 80 00 00 00 48 8d 6c 24 70 4c 8d 64 24 58 c7 44 24 58 05
[4650645.717225] llvm_propeller_[3629669]: segfault at 0 ip 00005591b2c76135 sp 00007ffd47f7d060 error 4 in llvm_propeller_whole_program_info_test[5591b2ae0000+769000]
[4650645.717229] Code: ff 48 89 ef e8 8c d4 ec ff 48 8d 7c 24 40 31 d2 4c 89 f6 e8 0d fd ed ff 48 8b 74 24 40 4c 8d 7c 24 50 ba 01 00 00 00 4c 89 ff <48> 8b 06 ff 50 10 48 8b 7c 24 50 48 c7 84 24 a8 00 00 00 00 00 00
Please help me thank you very much!
Contributor guide
Assessment
This issue has not been assessed yet.