aboutsummaryrefslogtreecommitdiffstats
path: root/syz-manager/manager.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-11-07 16:01:04 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-11-08 14:15:20 +0000
commit0e6221e714759ad3d12fb1a94b62c5c607a4dbab (patch)
tree7b0c2da5c189a282ad7ea83b61a97d1c14716083 /syz-manager/manager.go
parent9c60c31484778260e7eb20d563c33554cf39e8fd (diff)
syz-manager: add pause function
The pause function is useful to make manager stop consuming CPU for some time, e.g. when it runs on a shared machine, and a user wants to use CPU for something else. Previously one would need to kill the manager process and restart later to achieve this, but the restart is costly, and aborts all bug reproductions.
Diffstat (limited to 'syz-manager/manager.go')
-rw-r--r--syz-manager/manager.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/syz-manager/manager.go b/syz-manager/manager.go
index 9318bf8b2..07c6df153 100644
--- a/syz-manager/manager.go
+++ b/syz-manager/manager.go
@@ -295,6 +295,7 @@ func RunManager(mode Mode, cfg *mgrconfig.Config) {
mgr.http.Pool = mgr.pool
mgr.reproLoop = manager.NewReproLoop(mgr, mgr.vmPool.Count()-mgr.cfg.FuzzingVMs, mgr.cfg.DashboardOnlyRepro)
mgr.http.ReproLoop = mgr.reproLoop
+ mgr.http.TogglePause = mgr.pool.TogglePause
ctx := vm.ShutdownCtx()
go mgr.http.Serve()