mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Dispatch kernel code retrieval.
This commit is contained in:
parent
47ea2a222d
commit
e8fb2abb2a
@ -3100,6 +3100,12 @@ void Profiler::QueueExternalName( uint64_t ptr )
|
||||
#endif
|
||||
}
|
||||
|
||||
void Profiler::QueueKernelCode( uint64_t symbol, uint32_t size )
|
||||
{
|
||||
assert( symbol >> 63 != 0 );
|
||||
AckServerQuery();
|
||||
}
|
||||
|
||||
#ifdef TRACY_HAS_CALLSTACK
|
||||
void Profiler::HandleSymbolQueueItem( const SymbolQueueItem& si )
|
||||
{
|
||||
@ -3660,6 +3666,12 @@ void Profiler::HandleParameter( uint64_t payload )
|
||||
|
||||
void Profiler::HandleSymbolCodeQuery( uint64_t symbol, uint32_t size )
|
||||
{
|
||||
if( symbol >> 63 != 0 )
|
||||
{
|
||||
QueueKernelCode( symbol, size );
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef __ANDROID__
|
||||
// On Android it's common for code to be in mappings that are only executable
|
||||
// but not readable.
|
||||
@ -3670,6 +3682,7 @@ void Profiler::HandleSymbolCodeQuery( uint64_t symbol, uint32_t size )
|
||||
}
|
||||
#endif
|
||||
SendLongString( symbol, (const char*)symbol, size, QueueType::SymbolCode );
|
||||
}
|
||||
}
|
||||
|
||||
void Profiler::HandleSourceCodeQuery()
|
||||
|
@ -753,6 +753,7 @@ private:
|
||||
void QueueSymbolQuery( uint64_t symbol );
|
||||
void QueueCodeLocation( uint64_t ptr );
|
||||
void QueueExternalName( uint64_t ptr );
|
||||
void QueueKernelCode( uint64_t symbol, uint32_t size );
|
||||
|
||||
bool HandleServerQuery();
|
||||
void HandleDisconnect();
|
||||
|
Loading…
Reference in New Issue
Block a user