From 5dd8aee810424d4c1b06252f59ae59416fcacc55 Mon Sep 17 00:00:00 2001 From: Jouni Hogander Date: Mon, 24 Aug 2020 13:45:03 +0300 Subject: docs/coverage.md: update coverage document --- docs/coverage.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/coverage.md') diff --git a/docs/coverage.md b/docs/coverage.md index 8d1adb33f..b97392bbd 100644 --- a/docs/coverage.md +++ b/docs/coverage.md @@ -10,6 +10,8 @@ Directory can be clicked and you get view on files and possible subdirectories. If you click on any C files you will get source code view. There is certain coloring used in the source code view. Color definitions can be found in [coverTemplate](/pkg/cover/report.go#L504). Coloring is described below. +If you click on percentage number of any listed source file you will get cover percentage for each function in that source file. + ### Covered: black (#000000) All PC values associated to that line are covered. There is number on the left side indicating how many programs have triggered executing the PC values assocaciated to this line. You can click on that number and it will open last executed program. Example below shows how single line which is fully covered is shown. @@ -59,3 +61,9 @@ Now this raw cover data can be fed to `syz-cover` to generate coverage report: ``` bash ./bin/syz-cover --kernel_obj rawcover ``` + +You can also export CSV file containing function coverage by: + +``` bash +./bin/syz-cover --kernel_obj --csv rawcover +``` -- cgit mrf-deployment