-
Notifications
You must be signed in to change notification settings - Fork 45
Description
hi,
I use propeller on ARM64 platform to operate as follows, please help me find the problem
perf record -e cs_etm// -a -o etm.data -- sleep 100 <
[ perf record: Woken up 467 times to write data ]
[ perf record: Captured and wrote 128.819 MB etm.data ]
perf inject --itrace=i1000il64 -i etm.data -o etm-injected.data <
Warning:
CS ETM Trace: Missing DSO. Use 'perf archive' or debuginfod to export data from the traced system.
Enable CONFIG_PROC_KCORE or use option '-k /path/to/vmlinux' for kernel symbols.
...
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1034678; CS ID=01; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1034833; CS ID=12; Not enough elements to commit
DCD_ETMV4_0024 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1039250; CS ID=18; Not enough elements to commit
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1043527; CS ID=01; Not enough elements to commit
DCD_ETMV4_0026 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1388106; CS ID=1a; Not enough elements to commit
DCD_ETMV4_0024 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1402712; CS ID=18; Not enough elements to commit
DCD_ETMV4_0026 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1403383; CS ID=1a; Not enough elements to commit
DCD_ETMV4_0024 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1403800; CS ID=18; Not enough elements to commit
DCD_ETMV4_0024 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1408165; CS ID=18; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1418304; CS ID=12; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1420340; CS ID=12; Not enough elements to commit
DCD_ETMV4_0026 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1428052; CS ID=1a; Not enough elements to commit
DCD_ETMV4_0024 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=1732727; CS ID=18; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=2331651; CS ID=12; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=2987778; CS ID=12; Not enough elements to commit
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3117973; CS ID=01; Not enough elements to commit
Zero Coresight timestamp found at Idx:3200155. Decoding may be improved by prepending 'Z' to your current --itrace arguments.
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3636600; CS ID=01; Not enough elements to commit
DCD_ETMV4_0026 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3637888; CS ID=1a; Not enough elements to commit
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3777720; CS ID=01; Not enough elements to commit
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3777778; CS ID=01; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3778038; CS ID=12; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3780442; CS ID=12; Not enough elements to commit
DCD_ETMV4_0026 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3781650; CS ID=1a; Not enough elements to commit
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3783428; CS ID=01; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3789500; CS ID=12; Not enough elements to commit
DCD_ETMV4_0026 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3789593; CS ID=1a; Not enough elements to commit
DCD_ETMV4_0024 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3797948; CS ID=18; Not enough elements to commit
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3861984; CS ID=01; Not enough elements to commit
DCD_ETMV4_0024 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3862261; CS ID=18; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3863693; CS ID=12; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3864064; CS ID=12; Not enough elements to commit
DCD_ETMV4_0018 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3919197; CS ID=12; Not enough elements to commit
DCD_ETMV4_0026 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3919523; CS ID=1a; Not enough elements to commit
DCD_ETMV4_0024 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3919770; CS ID=18; Not enough elements to commit
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3920249; CS ID=01; Not enough elements to commit
DCD_ETMV4_0001 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3922756; CS ID=01; Not enough elements to commit
DCD_ETMV4_0024 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3968663; CS ID=18; Not enough elements to commit
DCD_ETMV4_0026 : 0x001a (OCSD_ERR_COMMIT_PKT_OVERRUN) [Overrun in commit packet stack - tried to commit more than available]; TrcIdx=3972117; CS ID=1a; Not enough elements to commit
create_llvm_prof --format=propeller --binary=./myelfxxx --profile=./etm-injected.data --out=./cc_profile1.txt --propeller_symorder=./ld_profile1.txt --profiled_binary_name=./myelfxxx
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20250924 20:54:06.695178 1210058 llvm_propeller_binary_content.cc:376] './myelfxxx' is PIE: 1
I20250924 20:54:06.695272 1210058 llvm_propeller_binary_content.cc:380] './myelfxxx' is relocatable: 0
I20250924 20:54:06.695291 1210058 llvm_propeller_binary_content.cc:388] Build Id found in './myelfxxx': 229b2a29a8ad1ac77328e03b2b99282c
I20250924 20:54:06.699559 1210058 llvm_propeller_binary_content.cc:376] './myelfxxx' is PIE: 1
I20250924 20:54:06.699589 1210058 llvm_propeller_binary_content.cc:380] './myelfxxx' is relocatable: 0
I20250924 20:54:06.699599 1210058 llvm_propeller_binary_content.cc:388] Build Id found in './myelfxxx': 229b2a29a8ad1ac77328e03b2b99282c
I20250924 20:54:06.699671 1210058 llvm_propeller_perf_lbr_aggregator.cc:51] Parsing [1/1] ./etm-injected.data ...
[WARNING:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/perf_reader.cc:1069] Skipping unsupported event PERF_RECORD_CPU_MAP
[WARNING:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/perf_reader.cc:1069] Skipping unsupported event UNKNOWN_EVENT_82
[INFO:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/perf_reader.cc:1060] Number of events stored: 8309819
[WARNING:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc:29] //anon should have offset=0 for mmap pid: 7591 tid: 7591 start: 490977669120 len: 1150976 pgoff: 490977669120 filename: "//anon" filename_md5_prefix: 11476964321930150911 sample_info { pid: 7591 tid: 7591 sample_time_ns: 3905813478273 id: 221 cpu: 7 } maj: 0 xxxn: 0 ino: 0 ino_generation: 0 prot: 7 flags: 2 root_path: "/" root_path_md5_prefix: 7378810950367401542
[WARNING:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc:29] //anon should have offset=0 for mmap pid: 7591 tid: 7591 start: 490977669120 len: 1150976 pgoff: 490977669120 filename: "//anon" filename_md5_prefix: 11476964321930150911 sample_info { pid: 7591 tid: 7591 sample_time_ns: 3905813478273 id: 221 cpu: 7 } maj: 0 xxxn: 0 ino: 0 ino_generation: 0 prot: 7 flags: 2 root_path: "/" root_path_md5_prefix: 7378810950367401542
[WARNING:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc:29] //anon should have offset=0 for mmap pid: 7591 tid: 7591 start: 505723383808 len: 16384 pgoff: 505723383808 filename: "//anon" filename_md5_prefix: 11476964321930150911 sample_info { pid: 7591 tid: 7591 sample_time_ns: 3905824517752 id: 221 cpu: 7 } maj: 0 xxxn: 0 ino: 0 ino_generation: 0 prot: 7 flags: 2 root_path: "/" root_path_md5_prefix: 7378810950367401542
[WARNING:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc:29] //anon should have offset=0 for mmap pid: 7591 tid: 7591 start: 505723383808 len: 16384 pgoff: 505723383808 filename: "//anon" filename_md5_prefix: 11476964321930150911 sample_info { pid: 7591 tid: 7591 sample_time_ns: 3905824517752 id: 221 cpu: 7 } maj: 0 xxxn: 0 ino: 0 ino_generation: 0 prot: 7 flags: 2 root_path: "/" root_path_md5_prefix: 7378810950367401542
[WARNING:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc:29] //anon should have offset=0 for mmap pid: 1949 tid: 10237 start: 491341484032 len: 4096 pgoff: 491341484032 filename: "//anon" filename_md5_prefix: 11476964321930150911 sample_info { pid: 1949 tid: 10237 sample_time_ns: 3933766248358 id: 218 cpu: 4 } maj: 0 xxxn: 0 ino: 0 ino_generation: 0 prot: 7 flags: 2 root_path: "/" root_path_md5_prefix: 7378810950367401542
[INFO:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/perf_parser.cc:272] Parser processed: 51306 MMAP/MMAP2 events, 9969 COMM events, 9725 FORK events, 2269 EXIT events, 0 SAMPLE events, 0 of these were mapped, 0 SAMPLE events with a data address, 0 of these were mapped
[INFO:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/perf_parser.cc:288] Input perf.data has no sample events due to PERF_RECORD_SAMPLE being skipped.
I20250924 20:54:18.992091 1210058 perfdata_reader.cc:270] Found mmap: pid=17615
[0x6256a78000, 0x6256ac1000](pgoff=0x40000, size=0x49000, fn='myelfxxx')
[WARNING:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/perf_reader.cc:1069] Skipping unsupported event PERF_RECORD_CPU_MAP
[WARNING:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/perf_reader.cc:1069] Skipping unsupported event UNKNOWN_EVENT_82
[INFO:/home/xxx/Downloads/llvm_test/autofdo/autofdo/third_party/perf_data_converter/src/quipper/perf_reader.cc:1060] Number of events stored: 8289521
W20250924 20:54:21.056041 1210058 llvm_propeller_perf_lbr_aggregator.cc:67] Too few branch records in perf data.
I20250924 20:54:21.056322 1210058 llvm_propeller_binary_address_mapper.cc:463] Started reading the binary content from: ./myelfxxx
I20250924 20:54:21.057919 1210058 llvm_propeller_profile_generator.cc:181] Parsed 1 profiles.
Total 1 binary mmaps.
Total 0 br entries accumulated.
0 hot functions (alias included) found in profiles.
0 hot basic blocks found in profiles.
Created 0 cfgs.
Created 0 nodes.
0 cfgs have hot landing pads.
0 hot blocks have zero size.
Created 0 edges: {}.
Profiled 0 total edge weight: {}.
Merge order stats:
Initial chains stats: single-node chains: [0] multi-node chains: [0]
Changed inter-function (ext-tsp) score by -nan% from 0.000000 to 0.000000.
Changed intra-function (ext-tsp) score by -nan% from 0.000000 to 0.000000
Disassembly stats:
Could not disassemble: absolute: 0 / weighted: 0
May affect control flow: absolute: 0 / weighted: 0
Can not affect control flow: absolute: 0 / weighted: 0
Cloned 0 paths.
Added 0 cloned basic blocks.
Increased code size by 0 bytes with cloning.
Gained 0 in cloning score.
myelfxxx is .so file