Open dafoerx opened 2 years ago
@yota9, any idea what is happening there?
Hello @dafoerx. Could you please attach the binary and perf file so I will be able to check the binary? Thank you.
Sorry, the core file is too big to upload temporarily, I can provide some more detailed location information for the time being.
1>os version uname -r 4.14.0-115.el7a.0.1.aarch64 cat /etc/redhat-release CentOS Linux release 7.6.1810 (AltArch) 2>bolt code version git clone https://github.com/facebookincubator/BOLT.git git log fe64c4001e17a994c178d1102d7cb12eee196a1c 3>Repetition steps perf record -C 0-47 -e cycles:u -a -o perf.data -- sleep 180 perf2bolt -p perf.data -o perf.fdata postgres -nl
The core file is generated in aARCH64mcplusBuilder.cpp:598. I wonder what scenarios assert comes in. analyzeIndirectBranchFragment assert(DefJTBaseAdd->getOpcode() == AArch64::ADDXri && "Failed to match jump table base address pattern! (1)");
there is a position in the process of use is not strictly according to the operation, I do not know whether it affects, I modify command A(perf record -C 0-47 -e cycles:_u -j any,_u -a -o perf.data -- sleep 180) to command B(perf record -C 0-47 -e cycles:u -a -o perf.data -- sleep 180) Because my environment doesn't seem to support the -j operation.like this "Error: cycles:u: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat'"
Maybe I'm similar to this issue Failed to match indirect branch when BOLT AArch64 binary #111
Is there a way around it so my experiment can go on? perf2bolt -p perf.data -o perf.fdata postgres -nl .....
Sorry, I don't need the core file, I need the executable at least (better with the perf file) to reproduce the problem and check its asm and to find the failure reason
uname -a 4.14.0-115.el7a.0.1.aarch64 #1 SMP Sun Nov 25 20:54:21 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
I am optimizing bin/postgres in the reference documentation, and core appears in the phase of converting perf.data in the ARM environment. Can anyone help
ref: https://github.com/facebookincubator/BOLT