cxl/trace: Pass UUID explicitly to event traces
authorIra Weiny <ira.weiny@intel.com>
Thu, 21 Dec 2023 00:17:28 +0000 (16:17 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 3 Jan 2024 22:15:52 +0000 (14:15 -0800)
commit6d0fc416c42a98b39a74151376928d577873941c
treea9d4c9d4a9b5d8c3dd88afd9cb392741533fcc94
parent861deac3b092f37b2c5e6871732f3e11486f7082
cxl/trace: Pass UUID explicitly to event traces

CXL CPER events are identified by the CPER Section Type GUID. The GUID
correlates with the CXL UUID for the event record. It turns out that a
CXL CPER record is a strict subset of the CXL event record, only the
UUID header field is chopped.

In order to unify handling between native and CPER flavors of CXL
events, prepare the code for the UUID to be passed in rather than
inferred from the record itself.

Later patches update the passed in record to only refer to the common
data between the formats.

Pass the UUID explicitly to each trace event to be able to remove the
UUID from the event structures.

Originally it was desirable to remove the UUID from the well known event
because the UUID value was redundant.  However, the trace API was
already in place.[1]

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/all/36f2d12934d64a278f2c0313cbd01abc@huawei.com
Link: https://lore.kernel.org/r/20231220-cxl-cper-v5-1-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>
drivers/cxl/core/mbox.c
drivers/cxl/core/trace.h