Skip to content

Commit

Permalink
chore: Use /proc/cpuinfo instead of lscpu
Browse files Browse the repository at this point in the history
The /proc/cpuinfo shows what the lscpu command shows and the microcode
version.

Signed-off-by: Takahiro Itazuri <[email protected]>
  • Loading branch information
zulinx86 committed Sep 20, 2023
1 parent a8deede commit df99d07
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/devtool
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,7 @@ 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)"
fi
say "$(lscpu)"
say "sed '/^processor.*: 0$/,/^processor.*: 1$/!d; /^processor.*: 1$/d' /proc/cpuinfo"
say "Starting test run ..."

# Testing (running Firecracker via the jailer) needs root access,
Expand Down

0 comments on commit df99d07

Please sign in to comment.