From 29dc2fadf9a747296739f4fb150b3fe1e8483701 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 21 Dec 2021 22:09:40 +0100 Subject: [PATCH] Do not bail-out on software sampling failure. --- client/TracySysTrace.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index 70ef92ca..1c19d41d 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -856,12 +856,7 @@ bool SysTraceStart( int64_t& samplingPeriod ) pe.exclude_kernel = 1; ProbePreciseIp( pe, currentPid ); fd = perf_event_open( &pe, currentPid, i, -1, PERF_FLAG_FD_CLOEXEC ); - if( fd == -1 ) - { - for( int j=0; j