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

Require that Pod: Clone #940

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Conversation

danielocfb
Copy link
Collaborator

With upcoming changes we are going to support either working with memory mapped ELF data or with data retrieved using regular file I/O APIs. Obviously, from a memory management perspective the two behave differently: where one just requires some massaging of byte slices, the other necessitates heap allocated buffers.
In order for our ELF types to play nice with the latter, guarantee that everything implementing Pod also is cloneable.

With upcoming changes we are going to support either working with memory
mapped ELF data or with data retrieved using regular file I/O APIs.
Obviously, from a memory management perspective the two behave
differently: where one just requires some massaging of byte slices, the
other necessitates heap allocated buffers.
In order for our ELF types to play nice with the latter, guarantee that
everything implementing Pod also is cloneable.

Signed-off-by: Daniel Müller <[email protected]>
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.56%. Comparing base (a2e6c8a) to head (5efde13).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #940   +/-   ##
=======================================
  Coverage   94.56%   94.56%           
=======================================
  Files          57       57           
  Lines       10527    10527           
=======================================
  Hits         9955     9955           
  Misses        572      572           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielocfb danielocfb merged commit 6ee4daa into libbpf:main Dec 23, 2024
41 checks passed
@danielocfb danielocfb deleted the topic/cloneable-pods branch December 23, 2024 17:50
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.

2 participants