You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tetragon/windows: Support multiple programs from a single collection
This PR changes the way programs are loaded on Windows in order to
support loading multiple programs from a single collection. Earlier
implementation assumed one program per collection.
In Windows, a collection can be loaded only once per process. In that light,
if a sensor had two programs from the same sys file, the loading of the second
program would fail, as loading the collection second time around fails.
In the PR, we cache loaded collections by path and check the cache before
loading a new collection. The second run will use the cached collection
object and load the passed in program.
Signed-off-by: Anadi Anadi<[email protected]>
0 commit comments