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

No kernel cache on cygwin.

This commit is contained in:
Bartosz Taudul 2021-06-16 00:51:30 +02:00
parent 48fe6550a6
commit 50e0d4781b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -278,6 +278,7 @@ static const char* GetModuleName( uint64_t addr )
{
if( ( addr >> 63 ) != 0 )
{
#ifndef __CYGWIN__
if( s_krnlCache )
{
auto it = std::lower_bound( s_krnlCache, s_krnlCache + s_krnlCacheCnt, addr, []( const KernelDriver& lhs, const uint64_t& rhs ) { return lhs.addr > rhs; } );
@ -286,6 +287,7 @@ static const char* GetModuleName( uint64_t addr )
return it->mod;
}
}
#endif
return "<kernel>";
}