Increase Linux sys trace per-cpu buffer size to 4 MB.

This commit is contained in:
Bartosz Taudul 2020-08-12 01:19:10 +02:00
parent 6db581ff4e
commit 1f4bfb68a0

View File

@ -699,7 +699,7 @@ bool SysTraceStart( int64_t& samplingPeriod )
#endif
if( !TraceWrite( SchedSwitch, sizeof( SchedSwitch ), "1", 2 ) ) return false;
if( !TraceWrite( SchedWakeup, sizeof( SchedWakeup ), "1", 2 ) ) return false;
if( !TraceWrite( BufferSizeKb, sizeof( BufferSizeKb ), "512", 4 ) ) return false;
if( !TraceWrite( BufferSizeKb, sizeof( BufferSizeKb ), "4096", 5 ) ) return false;
#if defined __ANDROID__ && ( defined __aarch64__ || defined __ARM_ARCH )
SysTraceInjectPayload();