|
|
7bf5db |
From 7f1caca47aee32084c319db07d9a236684b818a3 Mon Sep 17 00:00:00 2001
|
|
|
7bf5db |
From: Liu Chao <liuchao173@huawei.com>
|
|
|
7bf5db |
Date: Tue, 28 Jun 2022 16:42:10 +0800
|
|
|
7bf5db |
Subject: [PATCH 09/14] irqbalance-ui: move 'ASSIGNED TO CPUS' to the last
|
|
|
7bf5db |
column
|
|
|
7bf5db |
|
|
|
7bf5db |
Signed-off-by: Liu Chao <liuchao173@huawei.com>
|
|
|
7bf5db |
---
|
|
|
7bf5db |
ui/ui.c | 10 +++++-----
|
|
|
7bf5db |
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
7bf5db |
|
|
|
7bf5db |
diff --git a/ui/ui.c b/ui/ui.c
|
|
|
7bf5db |
index 6ff3305..beafe3a 100644
|
|
|
7bf5db |
--- a/ui/ui.c
|
|
|
7bf5db |
+++ b/ui/ui.c
|
|
|
7bf5db |
@@ -331,7 +331,7 @@ void print_assigned_objects_string(irq_t *irq, int *line_offset)
|
|
|
7bf5db |
char assigned_to[128] = "\0";
|
|
|
7bf5db |
for_each_int(irq->assigned_to, copy_assigned_obj, assigned_to);
|
|
|
7bf5db |
assigned_to[strlen(assigned_to) - 2] = '\0';
|
|
|
7bf5db |
- mvprintw(*line_offset, 36, "%s", assigned_to);
|
|
|
7bf5db |
+ mvprintw(*line_offset, 68, "%s", assigned_to);
|
|
|
7bf5db |
}
|
|
|
7bf5db |
|
|
|
7bf5db |
void print_irq_line(irq_t *irq, void *data)
|
|
|
7bf5db |
@@ -364,9 +364,9 @@ void print_irq_line(irq_t *irq, void *data)
|
|
|
7bf5db |
}
|
|
|
7bf5db |
mvprintw(*line_offset, 3, "IRQ %d", irq->vector);
|
|
|
7bf5db |
mvprintw(*line_offset, 19, "%s", irq->is_banned ? "YES" : "NO ");
|
|
|
7bf5db |
- print_assigned_objects_string(irq, line_offset);
|
|
|
7bf5db |
- mvprintw(*line_offset, 84, "%s",
|
|
|
7bf5db |
+ mvprintw(*line_offset, 36, "%s",
|
|
|
7bf5db |
irq->class < 0 ? "Unknown" : IRQ_CLASS_TO_STR[irq->class]);
|
|
|
7bf5db |
+ print_assigned_objects_string(irq, line_offset);
|
|
|
7bf5db |
(*line_offset)++;
|
|
|
7bf5db |
|
|
|
7bf5db |
}
|
|
|
7bf5db |
@@ -377,8 +377,8 @@ void print_all_irqs()
|
|
|
7bf5db |
*line = 4;
|
|
|
7bf5db |
attrset(COLOR_PAIR(0));
|
|
|
7bf5db |
mvprintw(2, 3,
|
|
|
7bf5db |
- "NUMBER IS BANNED ASSIGNED TO CPUS \
|
|
|
7bf5db |
- CLASS");
|
|
|
7bf5db |
+ "NUMBER IS BANNED CLASS \
|
|
|
7bf5db |
+ ASSIGNED TO CPUS");
|
|
|
7bf5db |
for_each_irq(all_irqs, print_irq_line, line);
|
|
|
7bf5db |
}
|
|
|
7bf5db |
|
|
|
7bf5db |
--
|
|
|
7bf5db |
2.33.1
|
|
|
7bf5db |
|