mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
ARM doesn't follow x64 canonical address requirements.
This commit is contained in:
parent
505656df5a
commit
56f0bdd571
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user