Skip to content

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

Description

@bogru8

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions