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 maps::parse_filtered() for process symbolization #985

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

d-e-s-o
Copy link
Collaborator

@d-e-s-o d-e-s-o commented Feb 6, 2025

In general not all entries in /proc/[pid]/maps are of interest to us and we perform some pre-filtering based on somewhat coarse grained criteria. However, for one reason or another we didn't do that in the symbolization logic, only when normalizing. Having failed to surface why that is, exactly, let's switch over to using the filtered version nonetheless, as none of our tests fail with the filtered version. Do so should speed up things a bit and make follow-on changes easier to digest.

In general not all entries in /proc/[pid]/maps are of interest to us and
we perform some pre-filtering based on somewhat coarse grained criteria.
However, for one reason or another we didn't do that in the
symbolization logic, only when normalizing. Having failed to surface why
that is, exactly, let's switch over to using the filtered version
nonetheless, as none of our tests fail with the filtered version. Do so
should speed up things a bit and make follow-on changes easier to
digest.

Signed-off-by: Daniel Müller <deso@posteo.net>
@d-e-s-o d-e-s-o enabled auto-merge (rebase) February 6, 2025 19:36
@d-e-s-o d-e-s-o merged commit 77a5c42 into libbpf:main Feb 6, 2025
38 checks passed
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.98%. Comparing base (eadbeee) to head (01e7200).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #985   +/-   ##
=======================================
  Coverage   94.98%   94.98%           
=======================================
  Files          58       58           
  Lines       10750    10750           
=======================================
  Hits        10211    10211           
  Misses        539      539           

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

@d-e-s-o d-e-s-o deleted the topic/parse_filtered branch February 6, 2025 19: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