Re: [PATCH] kcov: Don't trace the code coverage code

2016-04-13 Thread Dmitry Vyukov
On Wed, Apr 13, 2016 at 6:22 PM, James Morse wrote: > Kcov causes the compiler to add a call to __sanitizer_cov_trace_pc() in > every basic block. Ftrace patches in a call to _mcount() to each function > it has annotated. > > Letting these mechanisms annotate each other is a bad thing. Break the >

[PATCH] kcov: Don't trace the code coverage code

2016-04-13 Thread James Morse
Kcov causes the compiler to add a call to __sanitizer_cov_trace_pc() in every basic block. Ftrace patches in a call to _mcount() to each function it has annotated. Letting these mechanisms annotate each other is a bad thing. Break the loop by adding 'notrace' to __sanitizer_cov_trace_pc() so that