1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-28 20:23:51 +00: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
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

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;