-
Notifications
You must be signed in to change notification settings - Fork 29
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
Streamline APK ELF build ID retrieval #227
Conversation
52b820d
to
94c879a
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #227 +/- ##
==========================================
+ Coverage 84.28% 84.82% +0.53%
==========================================
Files 26 26
Lines 3800 3783 -17
==========================================
+ Hits 3203 3209 +6
+ Misses 597 574 -23
☔ View full report in Codecov by Sentry. |
This change concludes the work for support APK ELF addresses by adding symbolization support, in addition to the previously covered normalization. Closes: libbpf#175 Signed-off-by: Daniel Müller <deso@posteo.net>
94c879a
to
84003a1
Compare
Including the remaining pieces for APK ELF address symbolization now as well. |
696b5fc
to
e374fc6
Compare
This change optimizes the reading of build IDs from ELF files in APKs. Specifically, we stop re-mmapping the entire archive and searching for the ELF file in it by path and just work on the mmap we created initially. Signed-off-by: Daniel Müller <deso@posteo.net>
Now that we have eliminated the re-mapping of APK archives for retrieval of the build ID of the contained ELF file, we no longer need the BuildIdReader::read_build_id_from_apk_elf method. Remove it. Signed-off-by: Daniel Müller <deso@posteo.net>
We want APK ELF addresses to be normalized relative to the ELF file, as that allows for easy symbolization if the ELF file is available. The current code, however, report an address normalized to the containing APK. This change adjusts the logic and documents the property. We also start adding more doc tests. Signed-off-by: Daniel Müller <deso@posteo.net>
e374fc6
to
9734c91
Compare
9734c91
to
305376a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
305376a
to
64954a6
Compare
Please see individual commits for descriptions.