From 44068e196185e2f5a7c94629b6245cdde008b140 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 14 Dec 2021 17:27:37 +0100 Subject: pkg/mgrconfig: add "interests" We have "suppressions" parameter to suppress non-interesting reports. Add "interests" parameter which is an opposite of "suppressions" -- everything that's not in "interests" is suppressed. It's matched against bug title, guilty file and maintainer emails. --- pkg/mgrconfig/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/mgrconfig') diff --git a/pkg/mgrconfig/config.go b/pkg/mgrconfig/config.go index a2e850db1..7384b75c5 100644 --- a/pkg/mgrconfig/config.go +++ b/pkg/mgrconfig/config.go @@ -153,6 +153,10 @@ type Config struct { // Completely ignore reports matching these regexps (don't save nor reboot), // must match the first line of crash message. Ignores []string `json:"ignores,omitempty"` + // List of regexps to select bugs of interest. + // If this list is not empty and none of the regexps match a bug, it's suppressed. + // Regexps are matched against bug title, guilty file and maintainer emails. + Interests []string `json:"interests,omitempty"` // Type of virtual machine to use, e.g. "qemu", "gce", "android", "isolated", etc. Type string `json:"type"` -- cgit mrf-deployment