summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls
diff options
context:
space:
mode:
authorNayana Bidari <nybidari@google.com>2021-04-26 17:35:16 -0700
committergVisor bot <gvisor-bot@google.com>2021-04-26 17:37:29 -0700
commit5b207fe7834d9c6541bd99bf75e3dfeebce2d9d5 (patch)
tree7783dbac4f1189e065412745701724336527b79a /pkg/sentry/syscalls
parent509f5aa57fa079d113411f10fc26d9f8432ec511 (diff)
Remove metrics: fallback, vsyscallCount and partialResult
The newly added Weirdness metric with fields should be used instead of them. Simple query for weirdness metric: http://shortn/_DGNk0z2Up6 PiperOrigin-RevId: 370578132
Diffstat (limited to 'pkg/sentry/syscalls')
-rw-r--r--pkg/sentry/syscalls/linux/error.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/sentry/syscalls/linux/error.go b/pkg/sentry/syscalls/linux/error.go
index c668e81ac..6eabfd219 100644
--- a/pkg/sentry/syscalls/linux/error.go
+++ b/pkg/sentry/syscalls/linux/error.go
@@ -29,8 +29,7 @@ import (
)
var (
- partialResultMetric = metric.MustCreateNewUint64Metric("/syscalls/partial_result", true /* sync */, "Whether or not a partial result has occurred for this sandbox.")
- partialResultOnce sync.Once
+ partialResultOnce sync.Once
)
// incrementPartialResultMetric increments PartialResultMetric by calling
@@ -38,7 +37,6 @@ var (
// us to pass a function which does not take any arguments, whereas Increment()
// takes a variadic number of arguments.
func incrementPartialResultMetric() {
- partialResultMetric.Increment()
metric.WeirdnessMetric.Increment("partial_result")
}