Skip to content

Conversation

@Molter73
Copy link
Collaborator

@Molter73 Molter73 commented Dec 23, 2025

Description

Change from a fixed type for events from BPF to a variable length one. This is done by using a helper map in which we can write all the information for a given event, then submit it to the ringbuffer with the bpf_ringbuf_output helper.

On the userspace, we get a RingBufItem which can be treated as a slice of bytes we can split to retrieve fields one by one.

This change needs to be properly tested for performance, we should use a lot less space for each event in the ringbuffer but serializing and deserializing each event might require more CPU.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

CI should be enough.

@Molter73 Molter73 force-pushed the mauro/feat/variable-event-length branch 2 times, most recently from 5a8d190 to 22145c5 Compare December 24, 2025 16:23
Change from a fixed type for events from BPF to a variable length one.
This is done by using a helper map in which we can write all the
information for a given event, then submit it to the ringbuffer with the
bpf_ringbuf_output helper.

On the userspace, we get a RingBufItem which can be treated as a slice
of bytes we can split to retrieve fields one by one.

This change needs to be properly tested for performance, we should use a
lot less space for each event in the ringbuffer but serializing and
deserializing each event might require more CPU.

TODO: Document the format for the serialized event in the ringbuffer.
@Molter73 Molter73 force-pushed the mauro/feat/variable-event-length branch from 22145c5 to 1aa332f Compare December 24, 2025 16:41
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

Successfully merging this pull request may close these issues.

1 participant