This commit adds a new event type, `ELOG_TYPE_LOW_BATTERY_INDICATOR`, to the event log. This event is logged when the system boots due to a low battery condition. It includes the reason for the shutdown, currently only supporting "Power Off". BUG=b:339673254 TEST=Able to capture the eventlog for low battery boot event. ``` > elogtool list 9 | 2025-02-03 09:44:19+0530 | Low Battery Boot | Power Off ``` Change-Id: I5cc5e5f540657c7dfd174a4928e697a272da813a Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86223 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Dinesh Gehlot <digehlot@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> |
||
|---|---|---|
| .. | ||
| include/commonlib/bsd | ||
| cbfs_mcache.c | ||
| cbfs_private.c | ||
| elog.c | ||
| gcd.c | ||
| ipchksum.c | ||
| lz4.c.inc | ||
| lz4_wrapper.c | ||
| string.c | ||