aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-09-28 14:24:31 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-09-28 14:57:20 +0200
commita6143bc982398127935fc6669e685ef1b3d44d29 (patch)
treed730469b42636b6d426aba0479d68258a5c19310 /pkg/report/linux.go
parent746df66f2ceb2a5a4bf9114d64bf6beba8ecc7f8 (diff)
pkg/report: improve KMEMLEAK report parsing
Skip few more common allocation functions.
Diffstat (limited to 'pkg/report/linux.go')
-rw-r--r--pkg/report/linux.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index 97d5e84c3..7f4fa2af4 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -692,6 +692,8 @@ var linuxStackParams = &stackParams{
},
}
+const MemoryLeakPrefix = "memory leak in "
+
func warningStackFmt(skip ...string) *stackFmt {
return &stackFmt{
// In newer kernels WARNING traps and actual stack starts after invalid_op frame,
@@ -891,14 +893,16 @@ var linuxOopses = []*oops{
},
{
title: compile("BUG: memory leak"),
- fmt: "memory leak in %[1]v",
+ fmt: MemoryLeakPrefix + "%[1]v",
stack: &stackFmt{
parts: []*regexp.Regexp{
compile("backtrace:"),
parseStackTrace,
},
skip: []string{"kmemleak", "kmalloc", "kcalloc", "kzalloc",
- "vmalloc", "kmem", "slab", "alloc", "create_object"},
+ "vmalloc", "mmap", "kmem", "slab", "alloc", "create_object",
+ "idr_get", "list_lru_init", "kasprintf", "kvasprintf",
+ "pcpu_create", "strdup", "strndup", "memdup"},
},
},
},