aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorZubin Mithra <zsm@google.com>2023-03-07 16:21:41 -0800
committerDmitry Vyukov <dvyukov@google.com>2023-03-10 07:45:18 +0100
commit5205ef306e8b4217fc49cb8d8bd18670b7d08c3c (patch)
treeb91b96f1402ae75c5c6a86cff16b40100ef3ce0b /docs
parentf08b59ac0d8759f409d594ddca4f08c920e23237 (diff)
tools/syz-cover: allow for exporting source line coverage info
Add a `json` CLI flag that allows for writing out a JSON file with the following coverage information. * Module * Filename * Covered source lines * Uncovered source lines * Both source lines This can be used to view syzkaller coverage information on other source browsing/viewing tools. Usage: $ ./syz-cover -kernel_obj <path/to/vmlinux> -json <output_json> rawcover
Diffstat (limited to 'docs')
-rw-r--r--docs/coverage.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/coverage.md b/docs/coverage.md
index a2d8defec..42cba097c 100644
--- a/docs/coverage.md
+++ b/docs/coverage.md
@@ -85,3 +85,9 @@ You can also export CSV file containing function coverage by:
``` bash
./bin/syz-cover --kernel_obj <directory where vmlinux is located> --csv <filename where to export> rawcover
```
+
+You can export a JSON file containing line coverage info by:
+
+```bash
+./bin/syz-cover --kernel_obj <directory where vmlinux is located> --json <filename where to export> rawcover
+```