Add debug script to dump all openBMC errors

The intent of this script is to help out the IBM
service team by putting every single possible openBMC
error in a single file.  They can then use this data
to make their error policy table for a system.

It does this by being pointed to the directories with
all of the error YAML which are accumulated in one place
by the bitbake recipe that will run this.

The output format is in JSON to make it easily read
by other tools if necessary.

An example output entry is:

{
  "desc":"Callout IIC device",
  "error":"xyz.openbmc_project.Common.Callout.Error.IIC",
  "file":"xyz/openbmc_project/Common/Callout.errors.yaml",
  "metadata":[
    "CALLOUT_IIC_BUS",
    "CALLOUT_IIC_ADDR",
    "Inherits xyz.openbmc_project.Common.Callout.Error.Device"
  ]
}

A future commit will add the ability to crosscheck this data
with an existing policy table JSON file.

Change-Id: If215adbf1b77c403b6311a23ac9a206b1331ebcb
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
1 file changed
tree: 3a611aaee2c0eec94f22b5400c58a548a1198fe5
  1. test/
  2. .gitignore
  3. bootstrap.sh
  4. condense_policy.py
  5. configure.ac
  6. create_error_reports.py
  7. dbus.cpp
  8. dbus.hpp
  9. interfaces.hpp
  10. LICENSE
  11. main.cpp
  12. Makefile.am
  13. manager.cpp
  14. manager.hpp
  15. policy_find.cpp
  16. policy_find.hpp
  17. policy_table.cpp
  18. policy_table.hpp
  19. README.md
README.md

Provides IBM specific error logging functionality.

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`.