Cap the number of dumps

Calculate number of dumps allowed in a system based on
individual dump Max size configured in the system.

Algorithm: Setting Dump size to maximum size,
if (dump entries + active dumps) is less than total allowed dump entries.
Otherwise return error.

Next patch will provide additional algorithm to cap the
dump based on actual size of the dump files.

Change-Id: Id8916a31d72f5c2f2f23eaf68062b829b7e4100c
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
3 files changed
tree: 19cbfdcbbbb1a95f457c3af1be3dd110fa333cc2
  1. tools/
  2. xyz/
  3. bootstrap.sh
  4. configure.ac
  5. core_manager.cpp
  6. core_manager.hpp
  7. core_manager_main.cpp
  8. dump_entry.cpp
  9. dump_entry.hpp
  10. dump_internal.hpp
  11. dump_manager.cpp
  12. dump_manager.hpp
  13. dump_manager_main.cpp
  14. dump_utils.hpp
  15. ffdc
  16. LICENSE
  17. Makefile.am
  18. README.md
  19. watch.cpp
  20. watch.hpp
README.md

phosphor-debug-collector

Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.