From 787079e52a07afe0308da2e96ce1bb764960f16d Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 7 Mar 2024 14:10:23 -0800 Subject: [PATCH] pps: Config tweaks to avoid loosing traces Signed-off-by: Rob Clark Part-of: --- src/tool/pps/cfg/system.cfg | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/tool/pps/cfg/system.cfg b/src/tool/pps/cfg/system.cfg index ea0c99b8b51..b943398fab3 100644 --- a/src/tool/pps/cfg/system.cfg +++ b/src/tool/pps/cfg/system.cfg @@ -1,3 +1,16 @@ +# Enable periodic flushing of the trace buffer into the output file. +write_into_file: true + +# Writes the userspace buffer into the file every .5 seconds. +file_write_period_ms: 500 + +# Commits the trace from the shared memory buffer to the central buffer +# periodically. Otherwise, the --full-sort option will be required for +# trace_processor_shell and traceconv when importing the trace. +flush_period_ms: 2000 + +duration_ms: 7000 + buffers { size_kb: 65536 fill_policy: DISCARD @@ -146,5 +159,3 @@ producers { shm_size_kb: 4096 page_size_kb: 4 } - -duration_ms: 7000