aboutsummaryrefslogtreecommitdiffstats
path: root/syz-manager/hub.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-07-24 12:08:49 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-07-24 14:39:45 +0000
commit49e6369fe732c0f81e5b03b36e345afbf3c79a15 (patch)
tree651e322e41a8084abd6f2c80e4f9b7ff50a1dfe9 /syz-manager/hub.go
parent1f032c27c8158e44723253179928104813d45cdc (diff)
pkg/stat: rename package name to singular form
Go package names should generally be singular form: https://go.dev/blog/package-names https://rakyll.org/style-packages https://groups.google.com/g/golang-nuts/c/buBwLar1gNw
Diffstat (limited to 'syz-manager/hub.go')
-rw-r--r--syz-manager/hub.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/syz-manager/hub.go b/syz-manager/hub.go
index 216927a98..2b8d21be5 100644
--- a/syz-manager/hub.go
+++ b/syz-manager/hub.go
@@ -18,7 +18,7 @@ import (
"github.com/google/syzkaller/pkg/report"
"github.com/google/syzkaller/pkg/report/crash"
"github.com/google/syzkaller/pkg/rpctype"
- "github.com/google/syzkaller/pkg/stats"
+ "github.com/google/syzkaller/pkg/stat"
"github.com/google/syzkaller/prog"
)
@@ -50,13 +50,13 @@ func (mgr *Manager) hubSyncLoop(keyGet keyGetter) {
hubReproQueue: mgr.externalReproQueue,
keyGet: keyGet,
- statSendProgAdd: stats.New("hub send prog add", "", stats.Graph("hub progs")),
- statSendProgDel: stats.New("hub send prog del", "", stats.Graph("hub progs")),
- statRecvProg: stats.New("hub recv prog", "", stats.Graph("hub progs")),
- statRecvProgDrop: stats.New("hub recv prog drop", "", stats.NoGraph),
- statSendRepro: stats.New("hub send repro", "", stats.Graph("hub repros")),
- statRecvRepro: stats.New("hub recv repro", "", stats.Graph("hub repros")),
- statRecvReproDrop: stats.New("hub recv repro drop", "", stats.NoGraph),
+ statSendProgAdd: stat.New("hub send prog add", "", stat.Graph("hub progs")),
+ statSendProgDel: stat.New("hub send prog del", "", stat.Graph("hub progs")),
+ statRecvProg: stat.New("hub recv prog", "", stat.Graph("hub progs")),
+ statRecvProgDrop: stat.New("hub recv prog drop", "", stat.NoGraph),
+ statSendRepro: stat.New("hub send repro", "", stat.Graph("hub repros")),
+ statRecvRepro: stat.New("hub recv repro", "", stat.Graph("hub repros")),
+ statRecvReproDrop: stat.New("hub recv repro drop", "", stat.NoGraph),
}
if mgr.cfg.Reproduce && mgr.dash != nil {
// Request reproducers from hub only if there is nothing else to reproduce.
@@ -79,13 +79,13 @@ type HubConnector struct {
needMoreRepros func() bool
keyGet keyGetter
- statSendProgAdd *stats.Val
- statSendProgDel *stats.Val
- statRecvProg *stats.Val
- statRecvProgDrop *stats.Val
- statSendRepro *stats.Val
- statRecvRepro *stats.Val
- statRecvReproDrop *stats.Val
+ statSendProgAdd *stat.Val
+ statSendProgDel *stat.Val
+ statRecvProg *stat.Val
+ statRecvProgDrop *stat.Val
+ statSendRepro *stat.Val
+ statRecvRepro *stat.Val
+ statRecvReproDrop *stat.Val
}
// HubManagerView restricts interface between HubConnector and Manager.