Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6502

How to generate CTF (Common Trace Format) files from system calls?

$
0
0

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.


Viewing all articles
Browse latest Browse all 6502

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>