kcov: don't profile branches in kcov
authorAndrey Ryabinin <aryabinin@virtuozzo.com>
Thu, 28 Apr 2016 23:18:55 +0000 (16:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 Apr 2016 02:34:04 +0000 (19:34 -0700)
commit36f05ae8bce904b4c8105363e6227a79d343bda6
tree16cc0a209bdf9df6a69e8d2de0776b3d9b1998b2
parentbdab42dfc974d15303afbf259f340f374a453974
kcov: don't profile branches in kcov

Profiling 'if' statements in __sanitizer_cov_trace_pc() leads to
unbound recursion and crash:

__sanitizer_cov_trace_pc() ->
ftrace_likely_update ->
__sanitizer_cov_trace_pc() ...

Define DISABLE_BRANCH_PROFILING to disable this tracer.

Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kcov.c