[PATCH 2/2] Documentation: kunit: Add clang UML coverage example

2023-10-20 Thread Michał Winiarski
LLVM-based toolchain is using a different set of tools for coverage. Add an example that produces output in lcov format. Signed-off-by: Michał Winiarski --- Documentation/dev-tools/kunit/running_tips.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/dev-tools

[PATCH 1/2] arch: um: Add Clang coverage support

2023-10-20 Thread Michał Winiarski
Clang uses a different set of command line arguments for enabling coverage. Signed-off-by: Michał Winiarski --- arch/um/Makefile-skas | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/um/Makefile-skas b/arch/um/Makefile-skas index ac35de5316a6..67323b028999 100644 --- a/arch/um

[PATCH 0/2] um: kunit: Add Clang support for CONFIG_GCOV

2023-10-20 Thread Michał Winiarski
Clang uses a different set of CLI args for coverage, and the output needs to be processed by a different set of tools. Update the Makefile and add an example of usage in kunit docs. Michał Winiarski (2): arch: um: Add Clang coverage support Documentation: kunit: Add clang UML coverage example