Add handler for pulse like Assert-DeAssert events
This change adds handler for pulse like events. Currently the changes handle DC
power on - off events. The events are then logged into the Journal.
Tested: Sent IPMI commands to switch DC power on, off, reset and verified that
the logs are updated in the Journal.
Change-Id: I2a6c4e7759015ab80512f6c3da88f950fb02a04f
Signed-off-by: Nikhil Potade <nikhil.potade@intel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6569709..e843eca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,9 +11,18 @@
log SEL records for threshold sensor events"
OFF
)
+
+option (
+ REDFISH_LOG_MONITOR_PULSE_EVENTS
+ "Enable logger to monitor and automatically
+ log events to Redfish for pulse type assert-deassert sensor events"
+ OFF
+)
+
target_compile_definitions (
sel-logger PRIVATE
$<$<BOOL:${SEL_LOGGER_MONITOR_THRESHOLD_EVENTS}>: -DSEL_LOGGER_MONITOR_THRESHOLD_EVENTS>
+ $<$<BOOL:${REDFISH_LOG_MONITOR_PULSE_EVENTS}>: -DREDFISH_LOG_MONITOR_PULSE_EVENTS>
)
target_include_directories (sel-logger PRIVATE ${CMAKE_SOURCE_DIR})