+ rm -f hotfuncs-pettis.txt hotfuncs-plus.txt + /home/espindola/llvm/old-ld.lld @response.txt -o default-ld.lld + /home/espindola/llvm/old-ld.lld --call-graph-ordering-file call-graph.txt @response.txt -o old-sorted-ld.lld + /home/espindola/llvm/new-ld.lld --call-graph-ordering-file call-graph.txt @response.txt -o new-sorted-ld.lld + /home/espindola/llvm/new-new-ld.lld --call-graph-ordering-file call-graph.txt @response.txt -o new-new-sorted-ld.lld + nm -S default-ld.lld + ./hfsort -a -s call-graph.txt syms Output saved in file hotfuncs.txt Number of hot functions: 9953 Number of clusters: 2234 Final average call distance = 532563.9 (131219375662539 / 246391793) Total Calls = 246391793 Total Calls within 64B = 17722122 (7.19%) Total Calls within 4KB = 126569092 (51.37%) Total Calls within 2MB = 225704217 (91.60%) + mv hotfuncs.txt hotfuncs-plus.txt + ./hfsort -p -s call-graph.txt syms Output saved in file hotfuncs-pettis.txt Number of hot functions: 9953 Number of clusters: 2320 Final average call distance = 504996.3 (124426935576963 / 246391793) Total Calls = 246391793 Total Calls within 64B = 21221286 (8.61%) Total Calls within 4KB = 131117772 (53.22%) Total Calls within 2MB = 225316106 (91.45%) + ./hfsort -s call-graph.txt syms Output saved in file hotfuncs.txt Number of hot functions: 9953 Number of clusters: 557 Final average call distance = 517671.2 (127549939364262 / 246391793) Total Calls = 246391793 Total Calls within 64B = 9636027 (3.91%) Total Calls within 4KB = 126033709 (51.15%) Total Calls within 2MB = 223609812 (90.75%) + sed -i 's/\.text\.//' hotfuncs-pettis.txt + sed -i 's/\.text\.//' hotfuncs-plus.txt + sed -i 's/\.text\.//' hotfuncs.txt + /home/espindola/llvm/old-ld.lld --symbol-ordering-file hotfuncs-pettis.txt @response.txt -o hfsort-pettis-ld.lld + /home/espindola/llvm/old-ld.lld --symbol-ordering-file hotfuncs-plus.txt @response.txt -o hfsort-plus-ld.lld + /home/espindola/llvm/old-ld.lld --symbol-ordering-file hotfuncs.txt @response.txt -o hfsort-ld.lld + cd FileCheck + foo ../default-ld.lld + ../default-ld.lld @response.txt + sudo /home/espindola/inst/cset/bin/cset shield -e perf -- stat -e iTLB-load-misses,L1-icache-load-misses -r 10 ../default-ld.lld @response.txt cset: --> last message, executed args into cpuset "/user", new pid is: 25518 Performance counter stats for '../default-ld.lld @response.txt' (10 runs): 481,576 iTLB-load-misses ( +- 0.17% ) 224,563,456 L1-icache-load-misses ( +- 0.01% ) 2.265646007 seconds time elapsed ( +- 0.03% ) + foo ../old-sorted-ld.lld + ../old-sorted-ld.lld @response.txt + sudo /home/espindola/inst/cset/bin/cset shield -e perf -- stat -e iTLB-load-misses,L1-icache-load-misses -r 10 ../old-sorted-ld.lld @response.txt cset: --> last message, executed args into cpuset "/user", new pid is: 25575 Performance counter stats for '../old-sorted-ld.lld @response.txt' (10 runs): 492,114 iTLB-load-misses ( +- 0.07% ) 211,590,476 L1-icache-load-misses ( +- 0.01% ) 2.241214009 seconds time elapsed ( +- 0.03% ) + foo ../new-sorted-ld.lld + ../new-sorted-ld.lld @response.txt + sudo /home/espindola/inst/cset/bin/cset shield -e perf -- stat -e iTLB-load-misses,L1-icache-load-misses -r 10 ../new-sorted-ld.lld @response.txt cset: --> last message, executed args into cpuset "/user", new pid is: 25632 Performance counter stats for '../new-sorted-ld.lld @response.txt' (10 runs): 395,551 iTLB-load-misses ( +- 0.08% ) 204,152,589 L1-icache-load-misses ( +- 0.01% ) 2.214165364 seconds time elapsed ( +- 0.04% ) + foo ../new-new-sorted-ld.lld + ../new-new-sorted-ld.lld @response.txt + sudo /home/espindola/inst/cset/bin/cset shield -e perf -- stat -e iTLB-load-misses,L1-icache-load-misses -r 10 ../new-new-sorted-ld.lld @response.txt cset: --> last message, executed args into cpuset "/user", new pid is: 25689 Performance counter stats for '../new-new-sorted-ld.lld @response.txt' (10 runs): 389,142 iTLB-load-misses ( +- 0.06% ) 202,914,361 L1-icache-load-misses ( +- 0.01% ) 2.208653544 seconds time elapsed ( +- 0.03% ) + foo ../hfsort-pettis-ld.lld + ../hfsort-pettis-ld.lld @response.txt + sudo /home/espindola/inst/cset/bin/cset shield -e perf -- stat -e iTLB-load-misses,L1-icache-load-misses -r 10 ../hfsort-pettis-ld.lld @response.txt cset: --> last message, executed args into cpuset "/user", new pid is: 25746 Performance counter stats for '../hfsort-pettis-ld.lld @response.txt' (10 runs): 468,220 iTLB-load-misses ( +- 0.12% ) 214,258,886 L1-icache-load-misses ( +- 0.01% ) 2.248951339 seconds time elapsed ( +- 0.02% ) + foo ../hfsort-plus-ld.lld + ../hfsort-plus-ld.lld @response.txt + sudo /home/espindola/inst/cset/bin/cset shield -e perf -- stat -e iTLB-load-misses,L1-icache-load-misses -r 10 ../hfsort-plus-ld.lld @response.txt cset: --> last message, executed args into cpuset "/user", new pid is: 25803 Performance counter stats for '../hfsort-plus-ld.lld @response.txt' (10 runs): 376,270 iTLB-load-misses ( +- 0.05% ) 203,966,899 L1-icache-load-misses ( +- 0.01% ) 2.220844631 seconds time elapsed ( +- 0.03% ) + foo ../hfsort-ld.lld + ../hfsort-ld.lld @response.txt + sudo /home/espindola/inst/cset/bin/cset shield -e perf -- stat -e iTLB-load-misses,L1-icache-load-misses -r 10 ../hfsort-ld.lld @response.txt cset: --> last message, executed args into cpuset "/user", new pid is: 25860 Performance counter stats for '../hfsort-ld.lld @response.txt' (10 runs): 361,143 iTLB-load-misses ( +- 0.13% ) 203,300,135 L1-icache-load-misses ( +- 0.01% ) 2.215502148 seconds time elapsed ( +- 0.03% )