mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Send kernel symbol information.
This commit is contained in:
parent
3968945e6a
commit
b35dfe71d1
@ -3218,6 +3218,17 @@ static bool EnsureReadable( uintptr_t address )
|
||||
void Profiler::HandleSymbolQuery( uint64_t symbol )
|
||||
{
|
||||
#ifdef TRACY_HAS_CALLSTACK
|
||||
// Special handling for kernel frames
|
||||
if( symbol >> 63 != 0 )
|
||||
{
|
||||
SendSingleString( "<kernel>" );
|
||||
QueueItem item;
|
||||
MemWrite( &item.hdr.type, QueueType::SymbolInformation );
|
||||
MemWrite( &item.symbolInformation.line, 0 );
|
||||
MemWrite( &item.symbolInformation.symAddr, symbol );
|
||||
AppendData( &item, QueueDataSize[(int)QueueType::SymbolInformation] );
|
||||
return;
|
||||
}
|
||||
# ifdef __ANDROID__
|
||||
// On Android it's common for code to be in mappings that are only executable
|
||||
// but not readable.
|
||||
|
Loading…
Reference in New Issue
Block a user