summaryrefslogtreecommitdiff
path: root/scripts/code_cov_gather_on_test.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@kernel.org>2022-03-16 15:59:57 +0100
committerPetri Latvala <petri.latvala@intel.com>2022-03-21 18:34:59 +0200
commit4c6eab51e1078f273ed6e53d8490166089592392 (patch)
tree71206f27d5a83584b0264896c018edc9c962047a /scripts/code_cov_gather_on_test.py
parent16cf1cc3ef953159116f6818ae99be3e591e7557 (diff)
scripts/code_cov_gather*/sh: add help scripts for code coverage
When a Linux Kernel is built with gcov support, the compiler creates some other object files (*.gcno) that are dependent of the compiler version, and contain references to the source files. At Kernel runtime at the test machine, counter files will be visible at sysfs (*.gcda files), which are also on a compiler specific format. In order to be able to properly parse the contents of the counters, the information from 3 different places should be merged altogether: - Runtime counters: /sys/.../*.gcda and hiperlinks to *.gcno - Compile-time cross-reference object files: *.gcno - Kernel source code. If the build machine is different than the source machine, some special scripts are needed in order to either copy the source files to the runtime machine or vice versa. This is described at: https://www.kernel.org/doc/html/latest/dev-tools/gcov.html Copy the two scripts described there as-is. Further patches will modify them as needed. Acked-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'scripts/code_cov_gather_on_test.py')
0 files changed, 0 insertions, 0 deletions