1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

ARM doesn't follow x64 canonical address requirements.

This commit is contained in:
Bartosz Taudul
2021-04-29 16:38:12 +02:00
parent 505656df5a
commit 56f0bdd571
+2
View File
@@ -738,6 +738,7 @@ static void SetupSampling( int64_t& samplingPeriod )
auto trace = (uint64_t*)tracy_malloc( ( 1 + cnt ) * sizeof( uint64_t ) );
s_ring[i].Read( trace+1, offset, sizeof( uint64_t ) * cnt );
#if defined __x86_64__ || defined _M_X64
// remove non-canonical pointers
do
{
@@ -754,6 +755,7 @@ static void SetupSampling( int64_t& samplingPeriod )
const auto m2 = test >> 47;
if( m1 != m2 ) trace[j] = 0;
}
#endif
// skip kernel frames
uint64_t j;