When setting up the function_graph tracer in Linux (Ubuntu 18), the trace that is stored at /sys/kernel/debug/tracing/trace only stores a couple of seconds before overwriting itself.
As the period might be variable, I cannot be saving it with for example
cat /sys/kernel/debug/tracing/trace >> total_trace
Because it might produce duplicates which are not acceptable during postprocessing. Even worst, it might miss some information.
Is there a way I can open the file and just pipe all the new incoming info to another one?
Thanks