Re: kcov: trace threads

2018-08-23 Thread Anton Lindqvist
On Thu, Aug 23, 2018 at 08:16:06AM +0200, Anton Lindqvist wrote: > Hi. > Currently kcov is enabled on a per process (pid) basis. A process with > multiple threads therefore share the same coverage buffer which leads to > non-deterministic results. Instead, kcov should be enabled on a per > thread b

kcov: trace threads

2018-08-22 Thread Anton Lindqvist
Hi. Currently kcov is enabled on a per process (pid) basis. A process with multiple threads therefore share the same coverage buffer which leads to non-deterministic results. Instead, kcov should be enabled on a per thread basis; just like how kcov behaves on Linux and FreeBSD. The decision to trac