buffer: Implement "readErrorLogs"

This is the API that will be called by the main to read all of the error
logs. Found a cornercase in wraparoundRead, so added a unit test to
guard it as well.

Tested:
Unit tested and tested on a real HW (with the following changes)

Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: I94cd3a2f53ee7da2c145b751c1c3b5989f4c5b23
3 files changed
tree: 157a8c48b23a344a10ed9c942075501011be729a
  1. include/
  2. service_files/
  3. src/
  4. subprojects/
  5. test/
  6. .clang-format
  7. .clang-tidy
  8. .gitignore
  9. LICENSE
  10. MAINTAINERS
  11. meson.build
  12. meson_options.txt
  13. OWNERS
  14. README.md
README.md

bios-bmc-smm-error-logger

This daemon will follow the design doc: https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/52109

More detailed implementation details will also be placed here in the future