Skip to content

Conversation

@sdimitro
Copy link
Contributor

This patch replaces our hand-written implementation of dmesg which doesn't work for most vanilla kernel versions after 5.10 with the drgn helper which stays up to date more often.

In order for this to work I had to change the type of our dmesg command from a Locator+PrettyPrinter to a standard command. This is not a big deal as the only reason we would ever walk and filter dmesg would be to filter the kernel logs by level. I've added this as an argument to the command.

= Github Issue Tracker Automation

Closes #336

This patch replaces our hand-written implementation of dmesg
which doesn't work for most vanilla kernel versions after 5.10
with the drgn helper which stays up to date more often.

In order for this to work I had to change the type of our
dmesg command from a Locator+PrettyPrinter to a standard
command. This is not a big deal as the only reason we would
ever walk and filter dmesg would be to filter the kernel logs
by level. I've added this as an argument to the command.

= Github Issue Tracker Automation

Closes delphix#336
@sdimitro sdimitro marked this pull request as ready for review August 22, 2023 17:09
@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2023

Codecov Report

Merging #340 (ac662a5) into develop (7e9225c) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@             Coverage Diff             @@
##           develop     #340      +/-   ##
===========================================
- Coverage    85.18%   85.18%   -0.01%     
===========================================
  Files           67       67              
  Lines         3084     3077       -7     
===========================================
- Hits          2627     2621       -6     
+ Misses         457      456       -1     
Files Changed Coverage Δ
sdb/commands/linux/dmesg.py 100.00% <100.00%> (+3.70%) ⬆️

@sdimitro sdimitro merged commit 3a1fadc into delphix:develop Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

dmesg fails for new kernels

4 participants