29 Commits

Author SHA1 Message Date
qinyu
84b2c01879 irqbalance: procinterrupts: Fix IRQ name parsing on certain arm64 SoC
procinterrupts: Fix IRQ name parsing on certain arm64 SoC

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:09 +08:00
qinyu
654999b7f1 irqbalance: check whether savedptr is NULL before invoking strlen
check whether savedptr is NULL before invoking strlen

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:09 +08:00
qinyu
450e509daa irqbalance: fix opendir fails in check_platform_device
fix opendir fails in check_platform_device

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:09 +08:00
qinyu
f97c2da792 irqbalance: add keep_going check to prevent irqbalance from failing to exit after SIGTERM
add keep_going check to prevent irqbalance from failing to exit after SIGTERM

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:08 +08:00
qinyu
f2a2be426e irqbalance: parse_proc_interrupts: fix parsing interrupt counts
parse_proc_interrupts: fix parsing interrupt counts

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:08 +08:00
qinyu
dc6155df16 irqbalance: Add '\0' to the end of strings to avoid heap buffer overflow
Add '\0' to the end of strings to avoid heap buffer overflow

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:08 +08:00
qinyu
5dfdea86a9 irqbalance: remove no existing irq in banned_irqs
remove no existing irq in banned_irqs

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:08 +08:00
qinyu
3a9655c20f irqbalance: Fix compile issue with none AARCH64 builds
Fix compile issue with none AARCH64 builds

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:08 +08:00
qinyu
4e87047d4a irqbalance: Fix irqbalance cannot obtain the full name of irq
Fix irqbalance cannot obtain the full name of irq

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:08 +08:00
qinyu
3d6bfed55b irqbalance: Add return value check of opendir in do_one_cpu
Add return value check of opendir in do_one_cpu

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:08 +08:00
qinyu
94fb3fd6d8 irqbalance: Hotplug may occur again during sleep, so wait until there is no hotplug
Hotplug may occur again during sleep, so wait until there is no hotplug

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:08 +08:00
qinyu
e8c09cb04f irqbalance: Also fetch node info for non-PCI devices
Also fetch node info for non-PCI devices

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:07 +08:00
qinyu
08ae98ad73 irqbalance: Add hot pull method for irqbalance
Add hot pull method for irqbalance

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:07 +08:00
qinyu
8ff57497b3 irqbalance: add irq hotplug feature for irqbalance
add irq hotplug feature for irqbalance

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:07 +08:00
qinyu
f17762e55a irqbalance: log correctly for isolated and nohz_full cpus
log correctly for isolated and nohz_full cpus

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:07 +08:00
qinyu
b1a4f44928 irqbalance: activate_mapping: activate only online CPUs
activate_mapping: activate only online CPUs

Signed-off-by: qinyu <qinyu32@huawei.com>
2023-01-05 20:24:07 +08:00
SuperSix173
5469746414 fix unsigned integer subtraction sign overflow 2021-08-25 11:19:49 +08:00
SuperSix173
05b6460f7a remove PIDFile in irqbalance.service
(cherry picked from commit 4efd1f4c7c377fda853d8f83deff2ec25d420ea9)
2021-05-22 18:54:31 +08:00
SuperSix173
17bda84ffd remove PIDFile in irqbalance.service 2021-05-10 17:25:03 +08:00
root
85ecf952f1 rebase to v1.7.0 2020-08-14 17:26:52 +08:00
sugarfillet
4479c5691d fix no fPIC error 2020-03-24 00:23:48 +08:00
wuxu_wu
a975a4b2f1 fix rpmbuild error on x86_64 architecture. 2020-03-21 18:27:09 +08:00
SuperSix173
b80d2a2702 synchronize patches 2020-03-11 09:48:32 +08:00
shenyangyang
a2ac9a149c update Huawei copyright 2019-12-30 16:35:04 +08:00
caomeng5@huawei.com
f3207add3c rename patch 2019-12-26 09:42:32 +08:00
dogsheng
ad917abf90 Package init 2019-12-25 22:08:07 +08:00
dogsheng
72868d0397 Package init 2019-12-13 15:29:40 +08:00
zhuchunyi
02658ac8c8 update code 2019-11-06 19:34:16 +08:00
overweight
aa0afbee66 Package init 2019-09-30 10:53:30 -04:00