Hi all,

Recently, while tracing applications from the apps and examples directories, I became confused about when the trace buffer is written to disk. Is the trace data saved only when rte_save_trace() is called, or does it also automatically save when the buffer becomes full?

From my understanding, rte_save_trace() is invoked when the application executes rte_eal_cleanup(). Does this mean the target application needs to explicitly support tracing by calling rte_save_trace()—perhaps at regular intervals—to dump the trace buffer to disk? Otherwise, will we only get a fragment of the trace saved during rte_eal_cleanup() execution?

Thank you for clarifying this point.

Best,
Adel