Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add softlockup scenario for kdump/Fadump testing #785

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SACHIN-BAPPALIGE
Copy link

@SACHIN-BAPPALIGE SACHIN-BAPPALIGE commented Sep 20, 2023

Add kdump-softlockup-testcase to PowerNVDump.py. This test needs kernel modules to create softlockup to crash the system due to panic on softlockup. Later , verify the dump file . If it exists , then test passed. otherwise , test failed.

How to run this testcase :
./op-test -c test.config --run testcases.PowerNVDump.KernelCrash_KdumpSoftlockup

This testcase use source files (softlockup.c and Makefile). These 2 files added to op-tests framework's directory op-test/test_binaries . This testcase copy softlockup.c and Makefile to /tmp directory. Later, it will build kernel module for softlockup with the help of Makefile. To activate the kernel panic on soft lockup use this command
$ sysctl -w kernel.softlockup_panic=1

The command insmod used to insert generated kernel module ( i.e softlockup.ko) into the kernel.

Finally , testcase will verify the dump file created after kernel panic on soft lockup.

@SACHIN-BAPPALIGE SACHIN-BAPPALIGE force-pushed the kdump-softlockup-testcase branch 2 times, most recently from 671bdce to 5e26281 Compare September 20, 2023 11:22
@abdhaleegit abdhaleegit self-requested a review September 21, 2023 10:37
@abdhaleegit abdhaleegit self-assigned this Sep 21, 2023
testcases/PowerNVDump.py Outdated Show resolved Hide resolved
testcases/PowerNVDump.py Outdated Show resolved Hide resolved
testcases/PowerNVDump.py Show resolved Hide resolved
testcases/PowerNVDump.py Outdated Show resolved Hide resolved
KernelCrash_KdumpSoftlockup testcase use source files(softlockup.c
and Makefile).These files added to op-tests framework's directory
"op-test/test_binaries". This testcase activates the kernel panic
on soft lockup and copy softlockup.c and Makefile to /tmp directory
to build kernel module. The command insmod used to insert generated
kernel module(softlockup.ko) into the kernel and verify the dump
file created after kernel panic on soft lockup.

Signed-off-by: Sachin P Bappalige <[email protected]>
@SACHIN-BAPPALIGE SACHIN-BAPPALIGE force-pushed the kdump-softlockup-testcase branch from 5e26281 to 95a55aa Compare September 22, 2023 06:31
@PraveenPenguin PraveenPenguin force-pushed the master branch 2 times, most recently from 4d0cb14 to b976629 Compare October 6, 2023 07:38
@abdhaleegit abdhaleegit self-requested a review October 26, 2023 14:02
Copy link
Collaborator

@abdhaleegit abdhaleegit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please upload the logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants