aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-trace2syz
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-01-23 09:31:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2025-01-23 13:10:32 +0000
commit79910ad71b16dbf22e70717166c21361b5cf9bf0 (patch)
tree4b967c98b3654b7c0f2900c798ac8e2760e6380b /tools/syz-trace2syz
parentaf620dc7f40ce8ec58b546376a779eff1b64cddb (diff)
sys/syz-sysgen: serialize descriptions as gob and embed
Instead of generating Go files with descriptions serialize them as gob and compress with flate. This significantly reduces build time, go vet time, and solves scalability problems with some static analysis tools. Reference times (all after rm -rf ~/.cache/go-build) before: TIME="%e %P %M" time go install ./syz-manager 48.29 577% 4824820 TIME="%e %P %M" time go test -c ./prog 56.28 380% 6973292 After: TIME="%e %P %M" time go install ./syz-manager 22.81 865% 859788 TIME="%e %P %M" time go test -c ./prog 12.74 565% 267760 syz-manager size before/after: 194712597 -> 83418407 -57% even provided we now embed all descriptions instead of just a single arch. Deflate/decoding time for a single Linux arch is ~330ms. Fixes #5542
Diffstat (limited to 'tools/syz-trace2syz')
-rw-r--r--tools/syz-trace2syz/proggen/fuzz.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-trace2syz/proggen/fuzz.go b/tools/syz-trace2syz/proggen/fuzz.go
index dac2a9ef0..6dd902b41 100644
--- a/tools/syz-trace2syz/proggen/fuzz.go
+++ b/tools/syz-trace2syz/proggen/fuzz.go
@@ -7,7 +7,7 @@ package proggen
import (
"github.com/google/syzkaller/prog"
- _ "github.com/google/syzkaller/sys/linux/gen" // pull in the target
+ _ "github.com/google/syzkaller/sys"
"github.com/google/syzkaller/sys/targets"
)