Skip to content

Commit

Permalink
Add kernel boot cmdline to sysprofiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Coopydood committed May 22, 2024
1 parent 00c5c32 commit 4aeca75
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/sysprofiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ def cpydProfile(logMsg,warn=None):
else:
depVirsh = 1

output_stream = os.popen("cat /proc/cmdline")
bootCmd = output_stream.read()

output_stream = os.popen('lspci')
vmc1 = output_stream.read()

Expand Down Expand Up @@ -438,6 +441,10 @@ def cpydProfile(logMsg,warn=None):
cpydProfile("Release : "+distro.version())

cpydProfile("Kernel : "+platform.release())
bootCmd = bootCmd.replace("\n","")
bootCmd = bootCmd.replace("BOOT_IMAGE=","")

cpydProfile("BootCMD : "+str(bootCmd))
if isVM == False:
cpydProfile("VM : NO")
else:
Expand Down

0 comments on commit 4aeca75

Please sign in to comment.