aboutsummaryrefslogtreecommitdiff
path: root/src/commonlib/bsd/include
diff options
context:
space:
mode:
authorHsuan Ting Chen <roccochen@chromium.org>2021-11-01 19:14:01 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-11-22 14:59:37 +0000
commita5cbe27148506ed851034673469d404407f902d7 (patch)
tree6807079bc9d58666e11c11aaa62512c4ec53c6ac /src/commonlib/bsd/include
parentb2a442ed5915e17b057efcfb81b5c826cafd63f3 (diff)
eventlog: Add a log type for Chrome OS diagnostics
Add events for Chrome OS diagnostics in eventlog tool: * ELOG_TYPE_CROS_DIAGNOSTICS(0xb6): diagnostics-related events * ELOG_CROS_LAUNCH_DIAGNOSTICS(0x01): sub-type for diagnostics boot These events are not added anywhere currently. They will be added in another separate commit. Signed-off-by: Hsuan Ting Chen <roccochen@chromium.org> Change-Id: I1b67fdb46f64db33f581cfb5635103c9f5bbb302 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58795 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/commonlib/bsd/include')
-rw-r--r--src/commonlib/bsd/include/commonlib/bsd/elog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/elog.h b/src/commonlib/bsd/include/commonlib/bsd/elog.h
index 7e564fca21..29c781b6f5 100644
--- a/src/commonlib/bsd/include/commonlib/bsd/elog.h
+++ b/src/commonlib/bsd/include/commonlib/bsd/elog.h
@@ -305,6 +305,10 @@ struct elog_event_mem_cache_update {
#define ELOG_TYPE_MI_HRPC 0xb4
#define ELOG_TYPE_MI_HR 0xb5
+/* Chrome OS diagnostics-related events */
+#define ELOG_TYPE_CROS_DIAGNOSTICS 0xb6
+#define ELOG_CROS_LAUNCH_DIAGNOSTICS 0x01
+
struct elog_event_extended_event {
uint8_t event_type;
uint32_t event_complement;