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

Make GsymResolver::find_line_info() report more error context #310

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

d-e-s-o
Copy link
Collaborator

@d-e-s-o d-e-s-o commented Sep 11, 2023

We originally introduced find_line_info_impl() in
GsymResolver::find_line_info() to short circuit on the various error paths, because it was way too cumbersome to report custom errors on each.
By now we have the means for more concise error chaining and so we remove this internal function and report more detailed errors for each of the potential early returns.

We originally introduced find_line_info_impl() in
GsymResolver::find_line_info() to short circuit on the various error
paths, because it was way too cumbersome to report custom errors on
each.
By now we have the means for more concise error chaining and so we
remove this internal function and report more detailed errors for each
of the potential early returns.

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

codecov bot commented Sep 11, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.22% ⚠️

Comparison is base (c1b126d) 85.30% compared to head (3a5bdc0) 85.08%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #310      +/-   ##
==========================================
- Coverage   85.30%   85.08%   -0.22%     
==========================================
  Files          37       37              
  Lines        4654     4613      -41     
==========================================
- Hits         3970     3925      -45     
- Misses        684      688       +4     
Files Changed Coverage Δ
src/gsym/resolver.rs 62.35% <0.00%> (-15.43%) ⬇️

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

@d-e-s-o d-e-s-o merged commit af0288d into libbpf:main Sep 11, 2023
22 checks passed
@d-e-s-o d-e-s-o deleted the topic/line-info-result branch September 11, 2023 23: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.

1 participant