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

Remove unnecessary bpf_probe_reads #1303

Merged
merged 3 commits into from
Aug 22, 2017

Conversation

pchaigno
Copy link
Contributor

While working on improving bcc's rewriting of dereferences, I found a few tools that use bpf_probe_reads where bcc already support deferences.

I tested that the three tools still work as expected on both IPv4 and IPv6 connections.

Note: The same applies to several tools in tools/old/, but I wasn't sure we're supposed to change those.

The use of a kernel function to cast sk is masking the assignment of
the external pointer to the bcc rewriter and prevents subsequent use
of dereferences.
@brendangregg
Copy link
Member

tested, works, thanks. Much better.

@brendangregg brendangregg merged commit 08ed403 into iovisor:master Aug 22, 2017
@pchaigno pchaigno deleted the remove-bpf_probe_reads branch August 23, 2017 04:46
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