Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving space by writing/reading to compressed file instead of raw binary #4

Open
siyuanchai1999 opened this issue Nov 24, 2024 · 0 comments

Comments

@siyuanchai1999
Copy link
Member

We can directly write to a compressed file using gzwrite in QEMU. When dynamorio read it, it will be using gzread. This will save the space of the output, but may slowdown the write speed due to compression overhead. I am not sure about the trade off is not yet clear, so we need some testing on that.

Where qemu performs write: https://github.com/xlab-uiuc/qemu_ECPT/blob/de63a5a4f6025cebef8d4de53e18b47ab8fefff8/tests/plugin/execlog.c#L223C12-L223C18
where dynamorio performs read: https://github.com/xlab-uiuc/dynamorio/blob/b08d8603b4350fc47ba38810f208dd852db01498/clients/drcachesim/reader/qemu_file_reader.cpp#L283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant