From ba28e0a86a1747112e1216d1f602ca4254bdf1f7 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Mon, 28 Jul 2025 10:54:22 +0200 Subject: pkg/coveragedb: document how to create the BQ table and data transfer --- pkg/coveragedb/bq-schema.json | 104 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 pkg/coveragedb/bq-schema.json (limited to 'pkg/coveragedb/bq-schema.json') diff --git a/pkg/coveragedb/bq-schema.json b/pkg/coveragedb/bq-schema.json new file mode 100644 index 000000000..bb757a503 --- /dev/null +++ b/pkg/coveragedb/bq-schema.json @@ -0,0 +1,104 @@ +[ + { + "name": "timestamp", + "type": "TIMESTAMP", + "mode": "REQUIRED", + "description": "the time following data was captured" + }, + { + "name": "version", + "type": "INTEGER", + "mode": "REQUIRED", + "description": "the record version to simplify future changes" + }, + { + "name": "fuzzing_minutes", + "type": "INTEGER", + "mode": "REQUIRED", + "description": "how many fuzzing hours are represented in the record" + }, + { + "name": "arch", + "type": "STRING", + "mode": "REQUIRED" + }, + { + "name": "build_id", + "type": "STRING", + "mode": "REQUIRED" + }, + { + "name": "manager", + "type": "STRING", + "mode": "REQUIRED" + }, + { + "name": "kernel_repo", + "type": "STRING", + "mode": "REQUIRED" + }, + { + "name": "kernel_branch", + "type": "STRING", + "mode": "REQUIRED" + }, + { + "name": "kernel_commit", + "type": "STRING", + "mode": "REQUIRED" + }, + { + "name": "file_path", + "type": "STRING", + "mode": "REQUIRED" + }, + { + "name": "func_name", + "type": "STRING", + "mode": "REQUIRED" + }, + { + "name": "sl", + "type": "INTEGER", + "mode": "REQUIRED", + "description": "Callback position frame StartLine." + }, + { + "name": "sc", + "type": "INTEGER", + "mode": "REQUIRED", + "description": "Callback position frame StarCol." + }, + { + "name": "el", + "type": "INTEGER", + "mode": "REQUIRED", + "description": "Callback position frame EndLine." + }, + { + "name": "ec", + "type": "INTEGER", + "mode": "REQUIRED", + "description": "Callback position frame EndCol." + }, + { + "name": "hit_count", + "type": "INTEGER", + "mode": "REQUIRED", + "description": "Coverage point hit count." + }, + { + "name": "inline", + "type": "BOOLEAN", + "mode": "REQUIRED", + "description": "TRUE if the coverage signal was received from inline function" + }, + { + "name": "pc", + "type": "NUMERIC", + "mode": "REQUIRED", + "description": "single callback generates many coverage signals if inlined", + "precision": "20", + "scale": "0" + } +] -- cgit mrf-deployment