diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-01-18 18:45:55 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-10 14:34:44 +0100 |
| commit | 3a4c5e2da302d43152f2e8b1362d8568c0d57e6e (patch) | |
| tree | 87327b1f4d350392c22b6941a34bd4c9ae48aed9 /pkg/subsystem/entity | |
| parent | 8d41190df0b6184bac7d8b34765fc84395f27cf4 (diff) | |
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.
Diffstat (limited to 'pkg/subsystem/entity')
| -rw-r--r-- | pkg/subsystem/entity/entities.go | 1 |
1 files changed, 1 insertions, 0 deletions
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. |
