I can't decide on if it would be better to save a bit of space and just print the actual uptime between the 'up' and the 'load', and then put the load average as another entry:
"Uptime": "11:26"
"Load": "0.84, 0.92, 0.87"
but I could make a decision when the time comes.
this would go into makeSysInfoUserDataSection() in pel.cpp in the phosphor-logging repo, where a new function would be added into DataInterface to run the command and parse the output.
One thing to note is we also add this user data into Hostboot PELs in PEL::updateSysInfoInExtendedUserDataSection(). I asked them about this and they said they aren't interested in seeing this data, so we'll need to skip adding it in that case.
There is a UserData section we add to each PEL with extra debug information, like:
I would like to add the output of the 'uptime' command to that.
so:
I can't decide on if it would be better to save a bit of space and just print the actual uptime between the 'up' and the 'load', and then put the load average as another entry:
but I could make a decision when the time comes.
this would go into
makeSysInfoUserDataSection()
in pel.cpp in the phosphor-logging repo, where a new function would be added into DataInterface to run the command and parse the output.One thing to note is we also add this user data into Hostboot PELs in PEL::updateSysInfoInExtendedUserDataSection(). I asked them about this and they said they aren't interested in seeing this data, so we'll need to skip adding it in that case.