buffer: bugfix (v2) consolidate the offset and readptr

- It didn't make sense to make the user keep count of the different
  types of read pointers, instead do the relative calculation at the
  lowest level (wraparoundRead)
- Added further tests to prove out that readPtr is being updated
  properly in wraparoundRead)
- Fixed wraparoundRead, as it was relying on the dataInterface->read to
  read until the "end". The "end" was fixed in the bugfix #1 to be the
  end of the queue instead of the mmaped buffer.
- took out addtionalBoundaryCheck from wraparoundRead, as it was no
  longer needed

Tested: Unit tested

Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: I101360223597d197362dc1dbe4a27601da09933f
4 files changed
tree: eebc4cc1f256394d6072934902b45ec082dbef4b
  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