-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed cleanup in eBPF director: * Delete `instrumentationInstance` correctly (passing the correct instrumentation instance name which includes the pod name and the PID). * Add a periodic cleanup routine to detect processes that do not exist and clear all the instrumentation resources associated with them. Refine the director data structures by introducing `InstrumentedProcess`: * make sure we only try to instrument a given PID in a given pod once with `sync.Once`. * Once an instrumented process is closed use an atomic flag to mark it as closed. * Refactor the cleanup of an instrumented process to a common function. * Move the go instrumentation to an `sdks` folder which allows separating the generic director to its package and testing it without having dependencies on the go instrumentation repo. * Add unit testing for the director.
- Loading branch information
Showing
6 changed files
with
554 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.