aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-08-18 19:27:50 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-08-18 20:34:38 +0000
commit8f3301ce38a7dd1b7553299247a04c0c5dcb9cdb (patch)
tree85388b520dbb7930238e0fcf750d6841f2781d54 /pkg
parent52052143baa2172d2be0fbcc38cba0fe70b16f82 (diff)
pkg/rpcserver: move executor restart to named stats
This will let us see executor restart statistics per VM pool (relevant for diff fuzzing).
Diffstat (limited to 'pkg')
-rw-r--r--pkg/rpcserver/rpcserver.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkg/rpcserver/rpcserver.go b/pkg/rpcserver/rpcserver.go
index 57b851001..fddc6e8cc 100644
--- a/pkg/rpcserver/rpcserver.go
+++ b/pkg/rpcserver/rpcserver.go
@@ -111,10 +111,11 @@ type server struct {
}
type Stats struct {
- StatExecs *stat.Val
- StatNumFuzzing *stat.Val
- StatVMRestarts *stat.Val
- StatModules *stat.Val
+ StatExecs *stat.Val
+ StatNumFuzzing *stat.Val
+ StatVMRestarts *stat.Val
+ StatModules *stat.Val
+ StatExecutorRestarts *stat.Val
}
func NewStats() Stats {
@@ -139,6 +140,8 @@ func NewNamedStats(name string) Stats {
stat.Rate{}, stat.NoGraph),
StatModules: stat.New("modules"+suffix, "Number of loaded kernel modules",
stat.NoGraph, stat.Link("/modules"+linkSuffix)),
+ StatExecutorRestarts: stat.New("executor restarts",
+ "Number of times executor process was restarted", stat.Rate{}, stat.Graph("executor")),
}
}
@@ -209,8 +212,7 @@ func newImpl(cfg *Config, mgr Manager) *server {
statExecRetries: stat.New("exec retries",
"Number of times a test program was restarted because the first run failed",
stat.Rate{}, stat.Graph("executor")),
- statExecutorRestarts: stat.New("executor restarts",
- "Number of times executor process was restarted", stat.Rate{}, stat.Graph("executor")),
+ statExecutorRestarts: cfg.Stats.StatExecutorRestarts,
statExecBufferTooSmall: queue.StatExecBufferTooSmall,
statExecs: cfg.Stats.StatExecs,
statNoExecRequests: queue.StatNoExecRequests,