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

Refactor: Unify traversal through Field and FieldAddr instructions #201

Merged
merged 8 commits into from Dec 22, 2020

Conversation

mlevesquedion
Copy link
Contributor

@mlevesquedion mlevesquedion commented Nov 23, 2020

This PR is part of #188.

This PR uniformizes the way propagation works for Field and FieldAddr instructions. While the dynamic semantics of these two instructions are a little different, for the purposes of our traversal they should be the handled the same way.

I know we've recently been discussing (#195, #228) how we might need to rethink the way we handle fields, and I think unifying the way these instructions are handled is a necessary step towards that.

  • Running against a large codebase such as Kubernetes does not error out.

@mlevesquedion mlevesquedion marked this pull request as draft November 23, 2020 22:23
@mlevesquedion mlevesquedion mentioned this pull request Dec 2, 2020
2 tasks
@mlevesquedion mlevesquedion marked this pull request as ready for review December 15, 2020 20:47
@mlevesquedion mlevesquedion marked this pull request as draft December 15, 2020 20:48
@@ -41,7 +46,7 @@ func TestProtoStyleFieldAccessorPIISecondLevel(wrapper struct{ *core.Source }) {
core.Sinkf("Source id: %v", wrapper.Source.GetID())
}

func tesDirectFieldAccessorPIISecondLevel(wrapper struct{ *core.Source }) {
func TestDirectFieldAccessorPIISecondLevel(wrapper struct{ *core.Source }) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for the drive-by, unrelated fix, but this bugs me every time I see it.

@mlevesquedion mlevesquedion merged commit 9404551 into google:master Dec 22, 2020
@mlevesquedion mlevesquedion deleted the field-investigation branch December 22, 2020 16:14
@mlevesquedion mlevesquedion changed the title Unify traversal through Field and FieldAddr instructions Refactor: Unify traversal through Field and FieldAddr instructions Feb 19, 2021
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.

None yet

2 participants