From 5205ef306e8b4217fc49cb8d8bd18670b7d08c3c Mon Sep 17 00:00:00 2001 From: Zubin Mithra Date: Tue, 7 Mar 2023 16:21:41 -0800 Subject: 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 -json rawcover --- docs/coverage.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') 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 --csv rawcover ``` + +You can export a JSON file containing line coverage info by: + +```bash +./bin/syz-cover --kernel_obj --json rawcover +``` -- cgit mrf-deployment