Add Dump Monitoring Support

This commit introduces the DumpMonitor class to monitor DBus signals
for dump creation and manage the collection process. It aims to
abstract the complexities of dump collection from the
phosphor-dump-collector and consolidate system-specific handling
within the openpower-dump-collector.

Rationale:
- By moving dump collection responsibilities to the
  openpower-dump-collector, we ensure that the
  phosphor-dump-collector` remains focused solely on hosting dump
  entries and interacting with external interfaces.
- The openpower-dump-collector now handles all system-specific
  dump collection, reducing potential impacts on the
  phosphor-dump-collector.
- Simplified Management: This change simplifies the overall management
  of dumps by centralizing dump collection logic in one place.

Key Changes:
1. A new DumpMonitor class monitors DBus signals for dump creation.
2. The executeCollectionScript function handles the actual dump
   collection and copies the dump to a specified location for the
   phosphor-dump-manager to pick up.
3. Once the dump is copied to the specific folder, the phosphor dump
   manager will pick up the file and update its status.
3. In the case of collection failure, the monitor updates the progress
   status to indicate that the dump collection failed.

Change-Id: Id5bac5f3fbc8ef7a4bd9e93ac91796206b3cfda9
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
4 files changed
tree: 183dbf5d41fafb94e958928d5335282a4265d57c
  1. dump/
  2. subprojects/
  3. watchdog/
  4. .clang-format
  5. .gitignore
  6. .shellcheck-ignore
  7. checkstop_app.cpp
  8. LICENSE
  9. meson.build
  10. meson.options
  11. OWNERS
  12. README.md
  13. watchdog_timeout.cpp
README.md

Building the Code

To build this package, do the following steps:

    1. meson build
    2. ninja -C build

To clean the repository run `rm -rf build`.