Add kernel and user CPU utilization

This adds two utilization sensors, "CPU_Kernel" and "CPU_User" that
are populated with the fraction of CPU processing spent in kernel space
and user space.

The intended use case is BMCWeb can read those sensors from
phosphor-health-monitor and report them in a RedFish response.

The RedFish resources are:
* ManagerDiagnosticData.ProcessorStatistics.KernelPercent
* ManagerDiagnosticData.ProcessorStatistics.UserPercent

Tested: Installed on a QEMU-emulated BMC
bmc# busctl tree xyz.openbmc_project.HealthMon
`-/xyz
  `-/xyz/openbmc_project
    `-/xyz/openbmc_project/sensors
      `-/xyz/openbmc_project/sensors/utilization
        |-/xyz/openbmc_project/sensors/utilization/CPU
        |-/xyz/openbmc_project/sensors/utilization/CPU_Kernel
        `-/xyz/openbmc_project/sensors/utilization/CPU_User

signed-off-by: Sui Chen <suichen@google.com>
Change-Id: Ic6792e4c7cd8eba144eb9adec9366c1bc15b1a44
2 files changed