[LTP] [PATCH] irq: informative TINFO for irqbalance01 result

Andrea Cervesato andrea.cervesato@suse.de
Fri May 30 12:22:02 CEST 2025


From: Andrea Cervesato <andrea.cervesato@suse.com>

Change heuristic message when irqbalance01 test is sending the result.
The test can't detect if an IRQ balance service is up and running, so
after a test failure users should verify that:

- a balancing service is up and running on the system
- a balancing service is running, but it didn't perform any IRQ
  assignment on any CPU
- a balancing service is running, but CPUs didn't performed any
  interrupt after IRQs assignments

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
 testcases/kernel/irq/irqbalance01.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/testcases/kernel/irq/irqbalance01.c b/testcases/kernel/irq/irqbalance01.c
index f7c6b027859816052f08b07a4a700787b1460e0e..4120b2eae6e2f862e0d86b4f86e3db5b2760db84 100644
--- a/testcases/kernel/irq/irqbalance01.c
+++ b/testcases/kernel/irq/irqbalance01.c
@@ -285,9 +285,17 @@ static void evidence_of_change(void)
 		}
 	}
 
-	tst_res(changed ? TPASS : TFAIL,
-		"Heuristic: Detected %zu irq-cpu pairs have been dissallowed",
-		changed);
+	if (changed) {
+		tst_res(TPASS, "IRQs assignments have changed %zu times",
+			changed);
+		return;
+	}
+
+	tst_res(TFAIL,
+		"IRQ balancing has not been detected. It might be that:\n"
+		"- balancing service is not running\n"
+		"- balancing service is running but rules didn't change\n"
+		"- balancing rules have been changed, but CPUs didn't perform any interrupt");
 }
 
 static void setup(void)

---
base-commit: a16ec9409a99d41cd4268ed3f8bbe49108d51a4d
change-id: 20250530-fix_irqbalance-c8922476bec7

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>



More information about the ltp mailing list