aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-03-27 18:44:06 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-03-28 12:41:39 +0000
commitceaf7ddda2fb281b9afe3af812160afffa1b594f (patch)
tree0bb0b44a791d8b16dab013de3c7fe45fd917f031 /pkg
parent92334979f427cdae3104ff0587ec233493d8b819 (diff)
syz-manager: collect more stats about exchange calls
Collect total number of calls, average number of requested progs, average server latency, and average end-to-end latency.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/rpctype/rpctype.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/rpctype/rpctype.go b/pkg/rpctype/rpctype.go
index cb50ecfa6..b31f9ec96 100644
--- a/pkg/rpctype/rpctype.go
+++ b/pkg/rpctype/rpctype.go
@@ -7,6 +7,7 @@ package rpctype
import (
"math"
+ "time"
"github.com/google/syzkaller/pkg/host"
"github.com/google/syzkaller/pkg/ipc"
@@ -45,6 +46,7 @@ type ExchangeInfoRequest struct {
NeedProgs int
StatsDelta map[string]uint64
Results []ExecutionResult
+ Latency time.Duration // latency of the previous ExchangeInfo request
}
// ExchangeInfoReply is a reply to ExchangeInfoRequest.