aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2025-06-09 02:46:27 -0700
committerJakub Kicinski <kuba@kernel.org>2025-06-10 14:21:53 -0700
commite99d938f867173937373b1bb08cbc2d102a07d0c (patch)
tree086caae56b98b6180914f451882776825050b0fc /tools/perf/scripts/python
parentnetconsole: Only register console drivers when targets are configured (diff)
downloadlinux-e99d938f867173937373b1bb08cbc2d102a07d0c.tar.gz
linux-e99d938f867173937373b1bb08cbc2d102a07d0c.zip
netconsole: Add automatic console unregistration on target removal
Add unregister_netcons_consoles() function to automatically unregister console handlers when no targets of the corresponding type remain active. The function iterates through the target list to determine which console types (basic vs extended) are still needed, and unregisters any console handlers that are no longer required. This prevents having registered console handlers without corresponding active targets. The function is called when a target is disabled and moved to the cleanup list, ensuring proper cleanup of unused console registrations. Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20250609-netcons_ext-v3-2-5336fa670326@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions