-
Notifications
You must be signed in to change notification settings - Fork 81
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
Pass pid to UprobeOptions #742
Conversation
Thanks @RonFed, do you think it would be possible to add a pid fork in the e2e samples to test this? also sorry to nag about tests... our infra is lacking and it should be a lot easier than it currently is to test changes like this |
I'm in favor of improving our tests, however I can't think of a way to test this case without a big refactor to the test infra. |
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! This looks good to me.
Ah, I thought this PR would automatically instrument every process under an executable. So this really only impacts users that are directly creating an |
This PR passes the PID to
UprobeOptions
.The scenario where this makes a difference is when multiple processes use the same executable, we want to make sure we only probe the relevant process.