From 3a4c5e2da302d43152f2e8b1362d8568c0d57e6e Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 18 Jan 2023 18:45:55 +0100 Subject: pkg/subsystem/linux: determine parent-child relations For that, extract a coincidence count matrix from a path coverage, then apply the following rule. Subsystem A is a child of B if both hold true: 1) More than 2/3 of paths that relate to A also relate to B. 2) B covers more directory tree entities than A. --- pkg/subsystem/entity/entities.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/subsystem/entity') diff --git a/pkg/subsystem/entity/entities.go b/pkg/subsystem/entity/entities.go index 3bcdf8e93..bca218ebe 100644 --- a/pkg/subsystem/entity/entities.go +++ b/pkg/subsystem/entity/entities.go @@ -9,6 +9,7 @@ type Subsystem struct { Syscalls []string Lists []string Maintainers []string + Parents []*Subsystem } // PathRule describes the part of the directory tree belonging to a single subsystem. -- cgit mrf-deployment