From 233e4681830bc2a9cd40deb4b5909b4e310d1a2a Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Thu, 16 May 2019 15:01:34 +0200 Subject: stats: support multiple works for error counters The current code only allowed access to the main thread error counters. That is not so useful for a multi worker instance. No return a vector indexed by thread of counter_t values. Type: fix Change-Id: Ie322c8889c0c8175e1116e71de04a2cf453b9ed7 Signed-off-by: Ole Troan --- test/test_punt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_punt.py') diff --git a/test/test_punt.py b/test/test_punt.py index f68a38f7515..77847fe21f6 100644 --- a/test/test_punt.py +++ b/test/test_punt.py @@ -757,7 +757,7 @@ class TestPunt(VppTestCase): # 2 - per-reason counters # 2, 3 are the index of the assigned punt reason # - stats = self.statistics.get_counter( + stats = self.statistics.get_err_counter( "/err/punt-dispatch/No registrations") self.assertEqual(stats, 2*NUM_PKTS) -- cgit 1.2.3-korg