Task: get custom human readable output from already generated CTF data, like babeltrace's sink.text.pretty
.
Question: Does anyone know the cheapest solution to solve this task? Has anyone already tried one of the mentioned options?
Possible solutions:
- Use babeltrace2 python API to read a file or stream, iterate over all the trace entries, get each field and construct a string.
- Write a plugin for babeltrace2 which implements a sink, like
sink.text.pretty
, but with different output format. - Same as point 2 but the plugin would take a template with placeholders which will be replaced with values of CTF trace entry fields.
Thank you for any feedback!