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

Use ReadRaw::read_array() in Gsym parsing code #957

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

d-e-s-o
Copy link
Collaborator

@d-e-s-o d-e-s-o commented Jan 3, 2025

We don't have to use the ReadRaw::read_slice() method in conjunction with a fallible cast to read a compile-time-sized amount of bytes, but can use the ReadRaw::read_array() helper.

We don't have to use the ReadRaw::read_slice() method in conjunction
with a fallible cast to read a compile-time-sized amount of bytes, but
can use the ReadRaw::read_array() helper.

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

codecov bot commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.47%. Comparing base (fb567a3) to head (5e34860).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #957   +/-   ##
=======================================
  Coverage   94.47%   94.47%           
=======================================
  Files          57       57           
  Lines       10644    10644           
=======================================
  Hits        10056    10056           
  Misses        588      588           

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

@danielocfb danielocfb merged commit 94946ca into libbpf:main Jan 3, 2025
41 checks passed
@danielocfb danielocfb deleted the topic/gsym-read-array branch January 3, 2025 22:03
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