For replay purposes, I want to be able to transform system calls described in a local file in regular text (eg read on fd X for Y bytes, write on fd Z for W bytes from this buffer) into a CTF formatted file. These will then be read by the rest of the system (already in place; Babeltrace which reads the CTF files) to carry out the system calls.
I’m wondering what the easiest way to generate the CTF files from sys calls is, without actually calling the sys calls and tracing them. From what I could find, there are tools from converting a trace (.dat) file to a CTF file but then the question becomes how I can generate a .dat file. Again, all without actually running the system calls.