diff options
author | Ira Weiny <ira.weiny@intel.com> | 2023-12-20 16:17:32 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2024-01-09 15:39:38 -0800 |
commit | 6eade110754c085cee9e46f4d87d2c3ea4e59e8c (patch) | |
tree | 09d9d5207b443296e1df40800887622d2c153167 /include/linux/cxl-event.h | |
parent | 207a1f82301de0b4123f00a8d26ea55bb2484757 (diff) | |
download | linux-6eade110754c085cee9e46f4d87d2c3ea4e59e8c.tar.gz linux-6eade110754c085cee9e46f4d87d2c3ea4e59e8c.tar.bz2 linux-6eade110754c085cee9e46f4d87d2c3ea4e59e8c.zip |
cxl/events: Separate UUID from event structures
The UEFI CXL CPER structure does not include the UUID. Now that the
UUID is passed separately to the trace event there is no need to have
the UUID in those structures.
Move UUID from the event record header to the raw structures. Adjust
cxl-test to Create dummy structures for creating test records.
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20231220-cxl-cper-v5-5-1bb8a4ca2c7a@intel.com
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/cxl-event.h')
-rw-r--r-- | include/linux/cxl-event.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/cxl-event.h b/include/linux/cxl-event.h index 0fc068123f8e..3d9b5954d0c1 100644 --- a/include/linux/cxl-event.h +++ b/include/linux/cxl-event.h @@ -8,7 +8,6 @@ * CXL rev 3.0 section 8.2.9.2.1; Table 8-42 */ struct cxl_event_record_hdr { - uuid_t id; u8 length; u8 flags[3]; __le16 handle; @@ -18,8 +17,13 @@ struct cxl_event_record_hdr { u8 reserved[15]; } __packed; +/* + * Common Event Record Format + * CXL rev 3.0 section 8.2.9.2.1; Table 8-42 + */ #define CXL_EVENT_RECORD_DATA_LENGTH 0x50 struct cxl_event_record_raw { + uuid_t id; struct cxl_event_record_hdr hdr; u8 data[CXL_EVENT_RECORD_DATA_LENGTH]; } __packed; |