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

core: memory alignment feature addition #9174

Merged
merged 4 commits into from
Aug 9, 2024

Commits on Aug 7, 2024

  1. build: added an option to enforce memory alignment

    Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
    leonardo-albertovich committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    bd27266 View commit details
    Browse the repository at this point in the history
  2. core: added a byte order detection abstraction macro

    Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
    leonardo-albertovich committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    ba70894 View commit details
    Browse the repository at this point in the history
  3. core: added aligned memory read functions

    Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
    leonardo-albertovich committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    0f2b082 View commit details
    Browse the repository at this point in the history
  4. log_event_decoder: updated code to use aligned memory reads

    This will not change the underlying code for 99.9% of the users,
    however, when specifically enabled it through the FLB_ENFORCE_ALIGNMENT
    feature flag, FLB_ALIGNED_DWORD_READ will issue four BYTE sized reads
    instead of a single DWORD sized read to ensure that memory access is
    aligned.
    
    Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
    leonardo-albertovich committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    ceba63e View commit details
    Browse the repository at this point in the history