Re: [PATCH v5] gcov: Clang support

2019-04-17 Thread Tri Vo
On Wed, Apr 17, 2019 at 4:21 PM Andrew Morton wrote: > > On Wed, 17 Apr 2019 15:53:28 -0700 Tri Vo wrote: > > > LLVM uses profiling data that's deliberately similar to GCC, but has a very > > different way of exporting that data. LLVM calls llvm_gcov_init() once per > > module, and provides a co

Re: [PATCH v5] gcov: Clang support

2019-04-17 Thread Andrew Morton
On Wed, 17 Apr 2019 15:53:28 -0700 Tri Vo wrote: > LLVM uses profiling data that's deliberately similar to GCC, but has a very > different way of exporting that data. LLVM calls llvm_gcov_init() once per > module, and provides a couple of callbacks that we can use to ask for more > data. > > We

[PATCH v5] gcov: Clang support

2019-04-17 Thread Tri Vo
From: Greg Hackmann LLVM uses profiling data that's deliberately similar to GCC, but has a very different way of exporting that data. LLVM calls llvm_gcov_init() once per module, and provides a couple of callbacks that we can use to ask for more data. We care about the "writeout" callback, whic