Skip to content

Commit

Permalink
chore: Show microcode version on running tests
Browse files Browse the repository at this point in the history
Several tests depend on not only the kernel version but also the
microcode version, which could be useful in troubleshooting issues.

Signed-off-by: Takahiro Itazuri <[email protected]>
  • Loading branch information
zulinx86 committed Sep 19, 2023
1 parent 8523e2a commit 6520a2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/devtool
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ cmd_test() {

# If we got to here, we've got all we need to continue.
say "Kernel version: $(uname -r)"
if [ "$(uname --machine)" = "x86_64" ]; then
say "Microcode version: $(sudo cat /sys/devices/system/cpu/cpu0/microcode/version)"
elif [ "$(uname --machine)" = "aarch64" ]; then
say "Microcode version: $(sudo cat /sys/devices/system/cpu/cpu0/regs/identification/revidr_el1)"
fi
say "$(lscpu)"
say "Starting test run ..."

Expand Down

0 comments on commit 6520a2f

Please sign in to comment.