On Fri, Jan 24, 2025 at 07:16:46AM -0800, Breno Leitao wrote:
Add a new selftest to verify that the netconsole module correctly handles CPU runtime data in sysdata. The test validates three scenarios:
- Basic CPU sysdata functionality - verifies that cpu=X is appended to messages
- CPU sysdata with userdata - ensures CPU data works alongside userdata
- Disabled CPU sysdata - confirms no CPU data is included when disabled
The test uses taskset to control which CPU sends messages and verifies the reported CPU matches the one used. This helps ensure that netconsole accurately tracks and reports the originating CPU of messages.
Signed-off-by: Breno Leitao leitao@debian.org
Reviewed-by: Simon Horman horms@kernel.org