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

profile: remove unnecessary bpf_probe_read call #1822

Merged

Conversation

pchaigno
Copy link
Contributor

Remove an unnecessary call to bpf_probe_read in tools/profile.py. Since PT_REGS_IP(&ctx->regs) is still a direct access to context, using bpf_probe_read is not required.

@brendangregg Do you remember if you had a particular reason for the bpf_probe_read call? Maybe some issue I missed with older kernels?

Copy link
Member

@palmtenor palmtenor left a comment

Choose a reason for hiding this comment

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

LGTM

@yonghong-song
Copy link
Collaborator

LGTM. Thanks!

@yonghong-song yonghong-song merged commit 37f7fef into iovisor:master Jun 14, 2018
@pchaigno pchaigno deleted the profile-remove-bpf_probe_read branch June 14, 2018 05:47
banh-gao pushed a commit to banh-gao/bcc that referenced this pull request Jun 21, 2018
CrackerCat pushed a commit to CrackerCat/bcc that referenced this pull request Jul 31, 2024
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.

3 participants