diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2022-06-18 10:18:27 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-06-20 13:25:04 +0200 |
| commit | 6bc654432e118601d676876d83964b604758bf3a (patch) | |
| tree | 2ba3c84a0f127b765c2cf71bbf8596655fee59e2 /pkg/report/linux.go | |
| parent | f2bfa3b3aba781e0990ff592aebf36338b0ed821 (diff) | |
pkg/report: skip atomic functions
For some reason gcc stopped inlining atomic/bitops functions
on a 5.4 kernel (see add test reports).
Skip all atomic/bitops functions from these files:
https://elixir.bootlin.com/linux/latest/source/include/linux/atomic/atomic-instrumented.h
https://elixir.bootlin.com/linux/latest/source/include/asm-generic/bitops/instrumented-atomic.h
https://elixir.bootlin.com/linux/latest/source/include/asm-generic/bitops/instrumented-lock.h
Diffstat (limited to 'pkg/report/linux.go')
| -rw-r--r-- | pkg/report/linux.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index c67e5458f..bdc5418a7 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -1060,7 +1060,8 @@ var linuxStackParams = &stackParams{ "mutex_remove_waiter", "osq_lock", "osq_unlock", - "atomic_dec", + "atomic(64)?_(dec|inc|read|set|or|xor|and|add|sub|fetch|xchg|cmpxchg|try)", + "(set|clear|change|test)_bit", "__wake_up", "refcount_add", "refcount_sub", |
