Add timestamp helper function

Adds a helper function to convert chrono time points into a UEFI CPER
record header timestamp specification.

Tested: Unit test
Google-Bug-Id: 322561358
Change-Id: I75cbce7db4c6f348d96d028598f00360f4154e20
Signed-off-by: Aryk Ledet <arykledet@google.com>
5 files changed
tree: 740dc980934fe6a004c5b48a55e055e643575d80
  1. include/
  2. test/
  3. .clang-format
  4. LICENSE
  5. meson.build
  6. meson.options
  7. README.md
README.md

cper-lib

This is a header-only library which provides a generic interface for users to write application specific UEFI CPER log encoders.

How to use this library

The UEFI specification for CPER logs allows for many combinations of Record Header and Section Descriptor properties based on the application. However, the underlying data structure does not change from application to application. To make it easier for gBMC applications to log faults in the CPER format the user only needs to specify the type of Record and Section type(s) that the encoder will need to create.