aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/mgrconfig
diff options
context:
space:
mode:
authorKevin Ding <quic_likaid@quicinc.com>2025-02-24 10:23:57 +0800
committerTaras Madan <tarasmadan@google.com>2025-03-11 15:17:43 +0000
commitf2eee6b3351e8cecbbd53e27c4f690a78b9ec2a2 (patch)
treebb0c756ad0af8dfcca909d719bc4fd519b8366d1 /pkg/mgrconfig
parent16256247d9c41cf4980c36db3841ddd674a04b58 (diff)
pkg/cover: allow paths to be excluded from stats
Some sub paths may not be covered due to hardware configuration, or lack of interest. This patch allows them to be excluded from the stats. This can be convenient if the excluded paths are deep in the hierarchy: { "name": "sound", "path": [ "techpack/audio", "-techpack/audio/asoc/aaa/bbb" "-techpack/audio/asoc/aaa/ccc" ] }
Diffstat (limited to 'pkg/mgrconfig')
-rw-r--r--pkg/mgrconfig/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/mgrconfig/config.go b/pkg/mgrconfig/config.go
index 42730eef4..6bf88c574 100644
--- a/pkg/mgrconfig/config.go
+++ b/pkg/mgrconfig/config.go
@@ -51,9 +51,9 @@ type Config struct {
KernelBuildSrc string `json:"kernel_build_src,omitempty"`
// Is the kernel built separately from the modules? (Specific to Android builds)
AndroidSplitBuild bool `json:"android_split_build"`
- // Kernel subsystem with paths to each subsystem
+ // Kernel subsystem with paths to each subsystem, paths starting with "-" will be excluded
// "kernel_subsystem": [
- // { "name": "sound", "path": ["sound", "techpack/audio"]},
+ // { "name": "sound", "path": ["sound", "techpack/audio", "-techpack/audio/dsp"]},
// { "name": "mydriver": "path": ["mydriver_path"]}
// ]
KernelSubsystem []Subsystem `json:"kernel_subsystem,omitempty"`