From 588020678f34b89925fcfbcaf8f635c5850e8e7a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 11 Jun 2020 22:10:07 +0200 Subject: all: use more respective language Some terms are normalised on the technical level but may be oppressive on a societal level. Replace them with more technically neutral terms. See the following doc for a longer version: https://tools.ietf.org/id/draft-knodel-terminology-00.html --- pkg/report/linux.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 09b71a60f..aae212062 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -26,7 +26,7 @@ type linux struct { taskContext *regexp.Regexp cpuContext *regexp.Regexp questionableFrame *regexp.Regexp - guiltyFileBlacklist []*regexp.Regexp + guiltyFileIgnores []*regexp.Regexp reportStartIgnores []*regexp.Regexp infoMessagesWithStack [][]byte eoi []byte @@ -54,7 +54,7 @@ func ctorLinux(cfg *config) (Reporter, []string, error) { ctx.cpuContext = regexp.MustCompile(`\[ *C[0-9]+\]`) ctx.questionableFrame = regexp.MustCompile(`(\[\<[0-9a-f]+\>\])? \? `) ctx.eoi = []byte("") - ctx.guiltyFileBlacklist = []*regexp.Regexp{ + ctx.guiltyFileIgnores = []*regexp.Regexp{ regexp.MustCompile(`.*\.h`), regexp.MustCompile(`^lib/.*`), regexp.MustCompile(`^virt/lib/.*`), @@ -423,7 +423,7 @@ func (ctx *linux) extractGuiltyFile(rep *Report) string { if strings.HasPrefix(rep.Title, "INFO: rcu detected stall") { // Special case for rcu stalls. // There are too many frames that we want to skip before actual guilty frames, - // we would need to blacklist too many files and that would be fragile. + // we would need to ignore too many files and that would be fragile. // So instead we try to extract guilty file starting from the known // interrupt entry point first. if pos := bytes.Index(report, []byte(" apic_timer_interrupt+0x")); pos != -1 { @@ -439,7 +439,7 @@ func (ctx *linux) extractGuiltyFileImpl(report []byte) string { files := ctx.extractFiles(report) nextFile: for _, file := range files { - for _, re := range ctx.guiltyFileBlacklist { + for _, re := range ctx.guiltyFileIgnores { if re.MatchString(file) { continue nextFile } -- cgit mrf-deployment