[LTP] [PATCH v2] irq: informative message for irqbalance01 result
Andrea Cervesato
andrea.cervesato@suse.de
Fri May 30 14:23: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>
---
Changes in v2:
- show an explanation message when TFAIL
- Link to v1: https://lore.kernel.org/r/20250530-fix_irqbalance-v1-1-6509384f52db@suse.com
---
testcases/kernel/irq/irqbalance01.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/irq/irqbalance01.c b/testcases/kernel/irq/irqbalance01.c
index f7c6b027859816052f08b07a4a700787b1460e0e..664fced1ec7ed901ca79d3c5e11afb11fc62a733 100644
--- a/testcases/kernel/irq/irqbalance01.c
+++ b/testcases/kernel/irq/irqbalance01.c
@@ -285,9 +285,18 @@ 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);
+ } else {
+
+ tst_res(TFAIL, "IRQ balancing has not been detected");
+
+ tst_printf("Please, check 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