aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/irqbalance
AgeCommit message (Collapse)Author
2023-08-24recipes/classes/scripts: Drop SRCPV usageBruce Ashfield
bitbake has been enhanced such that SRCPV is no longer needed in PV to handle updating git hashes and task signatures. We can simplify our PV by dropping SRCPV Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-27treewide: bulk update patches with status fieldBruce Ashfield
While the insane.bbclass upstream-status check hasn't been made default, users of meta-virtualization may have it enabled in their distros .. so the effect is the same. We must have this tracking tag in out patches. This is a bulk update to add the tag and silence the QA message. As packages get updated, the normal/routine process of checking the patches will continue, and the status fields may (or may not) get more useful. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-08-23irqbalance: Use built-in irqbalance.service instead of local oneHe Zhe
The local irqbalanced.service was written long before when there wasn't one in upstream. Then upstream created temporary runtime directory /run/irqbalance in its irqbalanced.service, but no one did this for this recipe. Which renders the following error. /usr/sbin/irqbalance[314]: Daemon couldn't be bound to the file-based socket. This patch starts to use upstream irqbalance.service instead and remove the local one. root@qemux86-64:~# systemctl status irqbalanced * irqbalanced.service - irqbalance daemon Loaded: loaded (/lib/systemd/system/irqbalanced.service; enabled; preset: enabled) Active: active (running) since Mon 2022-08-22 10:10:22 UTC; 3s ago Docs: man:irqbalance(1) https://github.com/Irqbalance/irqbalance Main PID: 208 (irqbalance) Tasks: 2 (limit: 263) Memory: 1.4M CGroup: /system.slice/irqbalanced.service `-208 /usr/sbin/irqbalance --foreground Aug 22 10:10:22 qemux86-64 systemd[1]: Started irqbalance daemon. root@qemux86-64:~# ls -l /run/irqbalance/irqbalance208.sock srwxr-xr-x 1 root root 0 Aug 22 10:10 /run/irqbalance/irqbalance208.sock Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-29irqbalance: update to 1.8.0-tipBruce Ashfield
Bumping irqbalance to version v1.6.0-154-gb3adb5f, which comprises the following commits: 0f594a6 Separate variable declaration from assignment 9b004c6 Ensure that we get all of a unix message df7b543 Add '\0' to the end of strings to avoid heap buffer overflow f8bdd0e ui/ui.c: always use "%s"-style format for printf()-style functions efab272 Drop CapabilityBoundingSet from irqbalance service Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-02-18global: update licence values to SPDX valuesBruce Ashfield
These changes are the result of running the convert-spdx-licenses.py oe-core script. There's no impact to the build, but we will avoid issues when interacting with core QA by the alignment. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-08irqbalance: bump SRCREV to latestMartin Jansa
* remove the incorrect comment about SRCREV being 1.7.0 * and add +git because the old SRCREV wasn't matching with 1.8.0 tag as well * add -Wno-error=format-security to work around build failures with newer ncurses-6.3 like: | ../git/ui/ui.c:45:32: error: format not a string literal and no format arguments [-Werror=format-security] | 45 | mvprintw(LINES - 1, 0, footer); | | ^~~~~~ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02global: convert github SRC_URIs to use https protocolBruce Ashfield
github is removing git:// access, and fetches will start experiencing interruptions in service, and eventually will fail completely. bitbake will also begin to warn on github src_uri's that don't use https. So we convert the meta-virt instances to use protocol=https (done using the oe-core contrib conversion script) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02global: add explicit branch to all SRC_URIsBruce Ashfield
As introduced in the oe-core post: https://lists.openembedded.org/g/openembedded-core/message/157623 SRC_URIs without an explicit branch will generate warnings, and eventually be an error. We run the provided conversion script to make sure that meta-virt is ready for the change. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-02global: overrides syntax conversionBruce Ashfield
OEcore/bitbake are moving to use the clearer ":" as an overrides separator. This is pass one of updating the meta-virt recipes to use that syntax. This has only been minimally build/runtime tested, more changes will be required for missed overrides, or incorrect conversions Note: A recent bitbake is required: commit 75fad23fc06c008a03414a1fc288a8614c6af9ca Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Sun Jul 18 12:59:15 2021 +0100 bitbake: data_smart/parse: Allow ':' characters in variable/function names It is becomming increasingly clear we need to find a way to show what is/is not an override in our syntax. We need to do this in a way which is clear to users, readable and in a way we can transition to. The most effective way I've found to this is to use the ":" charater to directly replace "_" where an override is being specified. This includes "append", "prepend" and "remove" which are effectively special override directives. This patch simply adds the character to the parser so bitbake accepts the value but maps it back to "_" internally so there is no behaviour change. This change is simple enough it could potentially be backported to older version of bitbake meaning layers using the new syntax/markup could work with older releases. Even if other no other changes are accepted at this time and we don't backport, it does set us on a path where at some point in future we could require a more explict syntax. I've tested this patch by converting oe-core/meta-yocto to the new syntax for overrides (9000+ changes) and then seeing that builds continue to work with this patch. (Bitbake rev: 0dbbb4547cb2570d2ce607e9a53459df3c0ac284) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-06-04irqbalance: update to 1.8.0Bruce Ashfield
Integrating the following commits: bd5aaf5 Fix comma typo in ui.c 43751df drop NoNewPrivs from irqbalance service 066499a remove no existing irq in banned_irqs ee6b3bd Fix compile issue with none AARCH64 builds d17bcc9 Fix irqbalance cannot obtain the full name of irq 99ae256 Updating irqbalance to v1.8.0 47f0f26 Add return value check of opendir in do_one_cpu 518d81c Hotplug may occur again during sleep, so wait until there is no hotplug fe0b99e ui: fix cpu/irq menu off by one 0cdc7a2 fix uint64_t printf format (use PRIu64) 31dea01 Also fetch node info for non-PCI devices ef9bf64 Add hot pull method for irqbalance 6ae114f Add log for hotplug appropriately 0ba4a60 add irq hotplug feature for irqbalance 004c7ab Remove some unused constant macros in constants.h c995237 Add a deprecation notice for IRQBALANCE_BANNED_CPUS 31c7d12 Add IRQBALANCE_BANNED_CPULIST to env file 6fe0329 log correctly for isolated and nohz_full cpus 04e5ce0 Update README.md 4019fe6 Add some examples for IRQBALANCE_BANNED_CPUS b3f95be Adjust how we determine if a cpu is online c8757c6 activate_mapping: activate only online CPUs 677b686 add env variable to ban cpus using cpulist syntax f6fcd3e put arg parsing detail into parse_command_line() Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-03-09irqbalance: upgrade 1.6.0 -> 1.7.0Yanfei Xu
Miscellaneous bug fix release, consisting of: Strlen checking for IRQBALANCE_BANNED_CPU env var Typo cleanup in SOCKET_TMPFS consolidation of numa node creation on non-numa systems fix uninitialized use of package_mask in affinity setup use num_online_cpus instead of core_count fix a null ptr crash in do_one_cpu make list searching common from glib fix a calloc parameter bug remove some unused variables use g_list_free_full remove redundant call to free_cl_opts fix some resource leaks in main() fix some use after free issues in check_for_irq_ban fix resource leaks in irqballance-ui, and in add_one_node Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-08-12irqbalance: upgrade 1.5.0 -> 1.6.0Yuan Chao
Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-06-27irqbalance: use git repo for sourceJoe Slater
Avoid src-uri-bad qa warning when getting source from github.com/../archive. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-03-20irqbalance: uprev to v1.5.0Hongzhi.Song
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2018-05-29irqbalance: uprev to v1.4.0Mark Asselstine
This is a minor bugfix release that was just release by the upstream project about 2 weeks ago. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-04-12irqbalance: refresh patches to fix QA warningYi Zhao
The patches are refreshed with devtool command: devtool modify irqbalance devtool finish --force-patch-refresh irqbalance meta-virtualization Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-11-15irqbalance updated to 1.3.0] irqbalance: fix compilation errorsRC Reddy
Fixed issues: New features in this release:[From Neil Horman] ================================= optimization of platform device irq detection Added sample udev rules to trigger irq rescans on device add/remove Made irqbalance ui an optional compile component Added support for Intel CoD Add -v | --version option to command line Bug fixes in this release: ================================== Misc compiler warning fixes and spelling errors Compilation error fix on aarch64 Compilation error fix when using clang in c99 mode Unused variable cleanup Lots of memory leak cleanup in irqbalance-ui Prevent irqbalance from running in a container Fix irq affinity assignment in some cases to wrong numa node Fix oneshot mode exclude legacy irq 255 Deprecations: ================================= without-glib2 is removed, we just need it enough that we can't dummy it up anymore Tested: ================================ Tested on AARCH64 and it compiles Signed-off-by: RC Reddy <vlsireddy@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-18irqbalance: update to 1.1.0Derek Straka
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-08irqbalance: upgrade 1.0.6 -> 1.0.9Jianchuan Wang
Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-08irqbalance: add systemd supportJianchuan Wang
Add irqbalanced.service file for systemd support. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-08irqbalance: add PACKAGECONFIG for libcap-ngJianchuan Wang
Grasp withval for libcap-ng in configure.ac. Signed-off-by: Ming Liu <ming.liu@windriver.com> Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-29irqbalance: remove old versionsBruce Ashfield
There's no need to carry three versions of irqbalance, so we keep the latest, and drop the older variants. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-18irqbalance: add missing inheritMark Asselstine
irqblance's configure script makes use of pkg-config so we need to inherit pkgconfig or else we may see an error like ./configure: line 12460: syntax error near unexpected token `GLIB,' ./configure: line 12460: ` PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28)' during configure. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-29irqbalance: Uprev to 1.0.6Yang Shi
Add recipe for 1.0.6 version. And, add status and reload commands into init script. Signed-off-by: Yang Shi <yang.shi@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-27irqbalance: disable numa by defaultJoe Slater
Create a PACKAGECONFIG[] for numa. This will disable it by default. The current behavior is auto-detect and will vary depending on when numactl is built. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-27Uprev irqbalance to 1.0.5Amy Fong
Uprev irqbalance to the latest version. * consolidate logging * Implement user policy script callout (http://code.google.com/p/irqbalance/issues/detail?id=35) * Replace fscanf(%as) by getline * manpage: Improve the readability of the --banirq text * glib-local: ad call for g_list_remove Also splitting files into inc and bb files. Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-03-18meta-virtualization: add irqbalanceBruce Ashfield
Depending on the requirements of a system, interrupt balancing may be desireable. This commit adds irqbalance to provide a daemon to balance interrupts across multiple CPUs, which can lead to better performance and IO balance on SMP systems. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>