aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-04 08:58:32 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-04 20:56:20 +0200
commita4d38b39a8e23244bea7a53e9d7a759474f85dae (patch)
tree6bdb1f795fc5b670c9d2bad96599820cdb1eea85 /tools
parent58ae5e18624eaaac79cab00e63d6f32c9bd64ee0 (diff)
prog: support disabled attribute
Update #477 Update #502
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-mutate/mutate.go3
-rw-r--r--tools/syz-stress/stress.go3
2 files changed, 2 insertions, 4 deletions
diff --git a/tools/syz-mutate/mutate.go b/tools/syz-mutate/mutate.go
index 3dcc446c6..af92e14a1 100644
--- a/tools/syz-mutate/mutate.go
+++ b/tools/syz-mutate/mutate.go
@@ -64,8 +64,7 @@ func main() {
os.Exit(1)
}
rs := rand.NewSource(seed)
- prios := target.CalculatePriorities(corpus)
- ct := target.BuildChoiceTable(prios, syscalls)
+ ct := target.BuildChoiceTable(corpus, syscalls)
var p *prog.Prog
if flag.NArg() == 0 {
p = target.Generate(rs, *flagLen, ct)
diff --git a/tools/syz-stress/stress.go b/tools/syz-stress/stress.go
index 18d4fa872..b2fa4cb8e 100644
--- a/tools/syz-stress/stress.go
+++ b/tools/syz-stress/stress.go
@@ -74,8 +74,7 @@ func main() {
syscalls = strings.Split(*flagSyscalls, ",")
}
calls := buildCallList(target, syscalls)
- prios := target.CalculatePriorities(corpus)
- ct := target.BuildChoiceTable(prios, calls)
+ ct := target.BuildChoiceTable(corpus, calls)
config, execOpts, err := createIPCConfig(target, features, featuresFlags)
if err != nil {