Skip to content

[kernel] collect important machine health counters#4035

Merged
TurboTurtle merged 1 commit into
sosreport:mainfrom
sourabhjains:machine-health-counter
Jun 5, 2025
Merged

[kernel] collect important machine health counters#4035
TurboTurtle merged 1 commit into
sosreport:mainfrom
sourabhjains:machine-health-counter

Conversation

@sourabhjains

Copy link
Copy Markdown
Contributor

Kernel commits 8b05aa263361 ("panic: Expose "warn_count" to sysfs"), 9db89b411170 ("exit: Expose "oops_count" to sysfs"), and aaf05e96e93c ("kernel/watchdog: add /sys/kernel/{hard,soft}lockup_count") exported following counter to userspace:

  • sys/kernel/hardlockup_count
  • sys/kernel/softlockup_count
  • sys/kernel/warn_count
  • sys/kernel/oops_count

This counter reflects the machine's health, so collect it.


Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines

  • Is the commit message split over multiple lines and hard-wrapped at 72 characters?
  • Is the subject and message clear and concise?
  • Does the subject start with [plugin_name] if submitting a plugin patch or a [section_name] if part of the core sosreport code?
  • Does the commit contain a Signed-off-by: First Lastname email@example.com?
  • Are any related Issues or existing PRs properly referenced via a Closes (Issue) or Resolved (PR) line?
  • Are all passwords or private data gathered by this PR obfuscated?

Kernel commits 8b05aa263361 ("panic: Expose "warn_count" to sysfs"),
9db89b411170 ("exit: Expose "oops_count" to sysfs"), and aaf05e96e93c
("kernel/watchdog: add /sys/kernel/{hard,soft}lockup_count") exported
following counter to userspace:

- sys/kernel/hardlockup_count
- sys/kernel/softlockup_count
- sys/kernel/warn_count
- sys/kernel/oops_count

This counter reflects the machine's health, so collect it.

Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
@arif-ali arif-ali added Reviewed/Needs 2nd Ack Require a 2nd ack from a maintainer Status/Needs Review This issue still needs a review from project members Kind/Collection New or updated command or file collection labels Jun 3, 2025
@packit-as-a-service

Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/sosreport-sos-4035
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@TurboTurtle TurboTurtle added Reviewed/Ready for Merge Has been reviewed, ready for merge and removed Reviewed/Needs 2nd Ack Require a 2nd ack from a maintainer Status/Needs Review This issue still needs a review from project members labels Jun 5, 2025
@TurboTurtle TurboTurtle merged commit 2b3346f into sosreport:main Jun 5, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kind/Collection New or updated command or file collection Reviewed/Ready for Merge Has been reviewed, ready for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants