Messages in this thread | | | From | Brendan Higgins <> | Date | Thu, 18 Mar 2021 14:27:24 -0700 | Subject | Re: [PATCH 4/6] um: split up CONFIG_GCOV |
| |
On Fri, Mar 12, 2021 at 1:56 AM Johannes Berg <johannes@sipsolutions.net> wrote: > > From: Johannes Berg <johannes.berg@intel.com> > > It's not always desirable to collect coverage data for the > entire kernel, so split off CONFIG_GCOV_BASE. This option > only enables linking with coverage options, and compiles a > single file (reboot.c) with them as well to force gcov to > be linked into the kernel binary. That way, modules also > work. > > To use this new option properly, one needs to manually add > '-fprofile-arcs -ftest-coverage' to the compiler options > of some object(s) or subdir(s) to collect coverage data at > the desired places. > > Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Hey, thanks for doing this! I was looking into this a few weeks ago and root caused part of the issue in GCC and in the kernel, but I did not have a fix put together.
Anyway, most of the patches make sense to me, but I am not able to apply this patch on torvalds/master. Do you mind sending a rebase so I can test it?
Thanks!
| |