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

Fix annotating importer address resolution. #267

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

virajbshah
Copy link
Collaborator

  • Previously, the annotating importer would break in certain
    situations, for example if the virtual address the executable segment
    is to be loaded at was not page-aligned.

 * Pass pointers to the perf profile proto and the main memory mapping
   instead of storing them as class members.
 * The `PerfParser` also does not need to be held on to - it is used
   only once.
 * The `PerfReader` must be held on to since it owns all of the perf
   related data.
…bject.

 * A new check of the sample PID against the main mapping PID.
 * Remove the check for whether the block's code was within the bounds
   of the executable segment in terms of file addresses, this is
   redundant as long as the mapping is valid.
 * Previously, the annotating importer would break in certain
   situations, for example if the virtual address the executable segment
   is to be loaded at was not page-aligned.
Copy link
Collaborator

@ondrasej ondrasej left a comment

Choose a reason for hiding this comment

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

LGTM, once the comments in the parent PRs are resolved.

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