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

[CWS] Add is_exec_child field in ProcessActivityNode for CWS #258

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

Gui774ume
Copy link
Contributor

What does this PR do?

This PR introduces a new field in ProcessActivityNode called is_exec_child. This new field is used to track "exec-exec" children in a process tree without having to rely solely on execution and exit timestamp (which we might fail to resolve because of lost events).

Motivation

This new field is required to allow the backend of CWS to properly evaluate a profile from the data generated by an agent. Without it, the backend doesn't know if 2 process nodes in a process tree are linked by an intermediary fork or if the parent simply execed into the child without forking first.

We need to be able to identified exec entries because the agent might miss part of the process tree context because of lost events.

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

Reviewers: please see the review guidelines.

@Gui774ume Gui774ume requested review from a team as code owners July 3, 2023 13:30
@Gui774ume Gui774ume removed request for a team July 3, 2023 13:36
@Gui774ume Gui774ume merged commit b45a1d5 into master Jul 4, 2023
7 checks passed
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

3 participants