commit | 65e6e60f5ea5a087a3bcd0f30d75d22f84fe9abb | [log] [tgz] |
---|---|---|
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | Thu Nov 11 17:08:03 2021 +0200 |
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | Wed Nov 24 15:51:59 2021 -0500 |
tree | 9bd3dc9d8c0c7b70d10513a9baccdde2f6b74580 | |
parent | 77167a2de5b27aa480a20d4fe1c14d107d2998df [diff] |
trace-cmd library: Refactor the logic for writing trace data in the file Refactored the internal logic of tracecmd_write_cpu_data() API to be suitable for upcoming trace file format changes and data compression. The size and the offset of the trace data is saved in the file right after the data is written. The old logic calculates the size and offset in advance, but when the trace data is compressed it is hard to use that approach. Link: https://lore.kernel.org/linux-trace-devel/20211111150805.86419-3-tz.stoyanov@gmail.com Link: https://lore.kernel.org/linux-trace-devel/20211111150805.86419-4-tz.stoyanov@gmail.com Link: https://lore.kernel.org/linux-trace-devel/20211111150805.86419-5-tz.stoyanov@gmail.com Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> [ Merged the above three links into one ] Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>