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

Add suport for unsorted normalization of addresses #128

Merged
merged 3 commits into from
Apr 27, 2023

Conversation

d-e-s-o
Copy link
Collaborator

@d-e-s-o d-e-s-o commented Apr 26, 2023

Please see individual commits for descriptions.

@d-e-s-o d-e-s-o requested a review from anakryiko April 26, 2023 18:23
@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Patch coverage: 77.94% and project coverage change: -0.61 ⚠️

Comparison is base (d9facb9) 69.71% compared to head (71bf445) 69.11%.

❗ Current head 71bf445 differs from pull request most recent head 56fd233. Consider uploading reports for the commit 56fd233 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #128      +/-   ##
==========================================
- Coverage   69.71%   69.11%   -0.61%     
==========================================
  Files          23       23              
  Lines        4346     4397      +51     
==========================================
+ Hits         3030     3039       +9     
- Misses       1316     1358      +42     
Impacted Files Coverage Δ
src/c_api/normalize.rs 48.90% <0.00%> (-4.40%) ⬇️
src/normalize/normalize.rs 90.62% <100.00%> (+1.64%) ⬆️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@d-e-s-o d-e-s-o force-pushed the topic/normalize-unsorted branch 2 times, most recently from e8c629c to 820fef8 Compare April 26, 2023 19:45
@d-e-s-o
Copy link
Collaborator Author

d-e-s-o commented Apr 26, 2023

Rebased.

@d-e-s-o
Copy link
Collaborator Author

d-e-s-o commented Apr 26, 2023

Please prioritize reviewing this logic over #129, as it will have to land first.

Copy link
Member

@anakryiko anakryiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heh, another leetcode-like solution comes to the rescue :)

include/blazesym.h Show resolved Hide resolved
src/c_api/normalize.rs Show resolved Hide resolved
src/normalize/normalize.rs Show resolved Hide resolved
Introduce normalize_user_addrs_sorted_impl() as an implementation detail
of normalize_user_addrs_sorted() that works on an iterator. We will
later need this function to implement normalization of unsorted
addresses.

Signed-off-by: Daniel Müller <[email protected]>
This change introduces another normalization function variant that works
on unsorted addresses.

Signed-off-by: Daniel Müller <[email protected]>
@d-e-s-o d-e-s-o merged commit f651864 into libbpf:master Apr 27, 2023
@d-e-s-o d-e-s-o deleted the topic/normalize-unsorted branch April 27, 2023 23:33
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