mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Do not bail-out on software sampling failure.
This commit is contained in:
parent
f1fa352a13
commit
29dc2fadf9
@ -856,12 +856,7 @@ bool SysTraceStart( int64_t& samplingPeriod )
|
|||||||
pe.exclude_kernel = 1;
|
pe.exclude_kernel = 1;
|
||||||
ProbePreciseIp( pe, currentPid );
|
ProbePreciseIp( pe, currentPid );
|
||||||
fd = perf_event_open( &pe, currentPid, i, -1, PERF_FLAG_FD_CLOEXEC );
|
fd = perf_event_open( &pe, currentPid, i, -1, PERF_FLAG_FD_CLOEXEC );
|
||||||
if( fd == -1 )
|
if( fd == -1 ) break;
|
||||||
{
|
|
||||||
for( int j=0; j<s_numBuffers; j++ ) s_ring[j].~RingBuffer();
|
|
||||||
tracy_free( s_ring );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
TracyDebug( " No access to kernel samples\n" );
|
TracyDebug( " No access to kernel samples\n" );
|
||||||
}
|
}
|
||||||
new( s_ring+s_numBuffers ) RingBuffer( 64*1024, fd, EventCallstack );
|
new( s_ring+s_numBuffers ) RingBuffer( 64*1024, fd, EventCallstack );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user