From 5b207fe7834d9c6541bd99bf75e3dfeebce2d9d5 Mon Sep 17 00:00:00 2001
From: Nayana Bidari <nybidari@google.com>
Date: Mon, 26 Apr 2021 17:35:16 -0700
Subject: 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
---
 pkg/sentry/syscalls/linux/error.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'pkg/sentry/syscalls')

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")
 }
 
-- 
cgit v1.2.3