Add Asserted property for mem thermtrip

Add "Asserted" property in dbus to make phosphor-ipmi-host could know
whether the memory thermaltrip error is asserted or not.

Tested:
1.
Add in startMonitors:
'''
    mem1ThermtripMonitor = std::make_unique<
        host_error_monitor::mem_thermtrip_monitor::MemThermtripMonitor>(
        io, conn, "CPU1_MEM_THERM_EVENT", 1, "CPU0_MEMTrip");
'''
Result:
'''
root@qbmc:~# busctl get-property xyz.openbmc_project.HostErrorMonitor \
> /xyz/openbmc_project/host_error_monitor/processor/CPU0_MEMTrip \
> xyz.openbmc_project.HostErrorMonitor.Processor.ThermalTrip Asserted
b false
'''
2.
Add in startMonitors:
'''
    mem1ThermtripMonitor = std::make_unique<
        host_error_monitor::mem_thermtrip_monitor::MemThermtripMonitor>(
        io, conn, "CPU1_MEM_THERM_EVENT", 1);
'''
and the objectPath is
"/xyz/openbmc_project/host_error_monitor/processor/CPU1_MEM_THERM_EVENT"

Signed-off-by: JinFuLin <JeffLin2@quantatw.com>
Change-Id: I351b4379cf0f67ba667c72fa3046f5d96dc18096
1 file changed
tree: 467985139950dfe487bed165ab0569303e7390bc
  1. include/
  2. service_files/
  3. src/
  4. .clang-format
  5. cmake-format.json
  6. CMakeLists.txt
  7. LICENSE
  8. MAINTAINERS
  9. OWNERS
  10. README.md
README.md

host-error-monitor

The host-error-monitor application is intended to monitor various host error signals and take appropriate action (logging, crashdump, reset, etc.) when triggered.