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

Close and flush packet even if packet_size was not reached #30

Open
bogru8 opened this issue Jul 14, 2023 · 0 comments
Open

Close and flush packet even if packet_size was not reached #30

bogru8 opened this issue Jul 14, 2023 · 0 comments

Comments

@bogru8
Copy link

bogru8 commented Jul 14, 2023

Hi,

I have a trace producer that runs continuously, and the number of trace events is not known. (I also use two buffers for traces, and switch them inside close_packet.) I tried to call close_packet when I want to flush the buffer (i.e. from time to time, even if the initial provided buffer is not yet filled). But the generated file is not ok, since it seems that packet size, stored inside packet header, is not the real size of the packet filled up to that point, but the initially provided buffer size.

Is there a way to achieve this deterministic close/flush of packets at certain moments, or just when the buffer is filled or platform_fini called?

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