Fix the core to check number of buckets 70/73470/1
authorLuc Provoost <luc.provoost@gmail.com>
Tue, 13 Sep 2022 15:08:18 +0000 (15:08 +0000)
committerLuc Provoost <luc.provoost@gmail.com>
Tue, 13 Sep 2022 15:17:13 +0000 (15:17 +0000)
We need to check the number of buckets PROX is using for the irq
duration distribution. In the past, the scripts sent a command to
PROX to check this on core 1. This was typically a core running the
the IRQ task in case of VMs. With containers, this is not the case
any more and we need to query which core will run this IRQ task.

Signed-off-by: Luc Provoost <luc.provoost@gmail.com>
Change-Id: If06295774b05d94549955cfbb0b1bb5f4eaf03e2

VNFs/DPPD-PROX/helper-scripts/rapid/rapid_irqtest.py

index b0516ee..de7e6ae 100644 (file)
@@ -45,7 +45,7 @@ class IrqTest(RapidTest):
         max_loop_duration = 0
         machine_details = {}
         for machine in self.machines:
-            buckets=machine.socket.show_irq_buckets(1)
+            buckets=machine.socket.show_irq_buckets(machine.get_cores()[0])
             if max_loop_duration == 0:
                 # First time we go through the loop, we need to initialize
                 # result_details