aboutsummaryrefslogtreecommitdiffstats
path: root/vm
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 /vm
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 'vm')
-rw-r--r--vm/vm.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm/vm.go b/vm/vm.go
index 20cde4cd4..19833dc99 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -22,7 +22,7 @@ import (
"github.com/google/syzkaller/pkg/mgrconfig"
"github.com/google/syzkaller/pkg/osutil"
"github.com/google/syzkaller/pkg/report"
- "github.com/google/syzkaller/pkg/stats"
+ "github.com/google/syzkaller/pkg/stat"
"github.com/google/syzkaller/sys/targets"
"github.com/google/syzkaller/vm/dispatcher"
"github.com/google/syzkaller/vm/vmimpl"
@@ -49,7 +49,7 @@ type Pool struct {
timeouts targets.Timeouts
activeCount int32
hostFuzzer bool
- statOutputReceived *stats.Val
+ statOutputReceived *stat.Val
}
type Instance struct {
@@ -134,8 +134,8 @@ func Create(cfg *mgrconfig.Config, debug bool) (*Pool, error) {
template: cfg.WorkdirTemplate,
timeouts: cfg.Timeouts,
hostFuzzer: cfg.SysTarget.HostFuzzer,
- statOutputReceived: stats.New("vm output", "Bytes of VM console output received",
- stats.Graph("traffic"), stats.Rate{}, stats.FormatMB),
+ statOutputReceived: stat.New("vm output", "Bytes of VM console output received",
+ stat.Graph("traffic"), stat.Rate{}, stat.FormatMB),
}, nil
}