Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1604838rdb; Mon, 8 Jan 2024 04:57:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2aWyksbschTqi9CG7cokxE2HEa48IV0y5t6qEqitNVYVl6fSzJ8bo2vMw0JD8bBhpO6q1 X-Received: by 2002:a05:6512:b23:b0:50e:a942:e6f3 with SMTP id w35-20020a0565120b2300b0050ea942e6f3mr1633836lfu.10.1704718629257; Mon, 08 Jan 2024 04:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704718629; cv=none; d=google.com; s=arc-20160816; b=YuqjXfzip/Hnrc0P3B57gwhl2QuYeCxdmEkzW+Qo3Eqzi3uFc2KsohyH2eFQ5NhIYh NW+R3WnxA8QQKAmgnMj3VA33v0OYcGRt1/z0xqdbiwK7vNqgQCHv9fUE4RiAyaTrVa5M tYf+RzGcQ+k7tBUJll+uCQWv+si4/5oH8ERJlt8vVg4CYtZ7GrnPL2hP6pO1j4nSMLcq /xD1MmjuTIA/Fu8Mt0TSoOZCfXckNmUsJebw9Z27RU8qKChwkMPvxSwRpiHoZxyK/GqF 4E7rp5C2od36DMjhQ9VNEtNJu2GZTBL4pCdqgd88ozu5YkLveaQy6HjXu4rcvRlrvPhx RMlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=u3sIyh2FrveM4uTdmT5I0qPBc7x/Fdrhbz20GLBpdDo=; fh=D5/TWD7bHAbEssXha5Rv8uTbCnv9M/RndN6gMOTPHRM=; b=M+NAIYi/ENRQjjNk2oHlAJvqBICl+8lFbfh0ovr/Ra4hO0sY9dvSgZZMa8vKYBSjSU Sw45N1d5JcoI52zP1Gy+lyQ/Fdu4WSPZQAX1yS/AhLUpwlIf9djMYaA+hzArqQKamU/S ZvvBoAMJYPdjzNBwGDIa4PJGS0ucfLB9ZV9HXixB4KaKaumcuL5s1zIx5CTu6gNeU89G GhXVQ6Ih+5rd2ZeWpH+JBxIU9S0nNzP/OQJMyIjAjHqgkFhcUM6K8aBgf42GsHuvSf/r gIxLSLlal+ZYPEUeFlQZdD3CxuzP9Q5KeWxFNVCiOr4EXelFPuVNLqhq+uVUfTZH/Z4b q4BA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m17-20020a170906259100b00a2aec23bf85si366111ejb.495.2024.01.08.04.57.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:57:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 02FEE1F22EF4 for ; Mon, 8 Jan 2024 12:57:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 032D241237; Mon, 8 Jan 2024 12:56:53 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F37040C13; Mon, 8 Jan 2024 12:56:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4T7vCC1jkdz67NNV; Mon, 8 Jan 2024 20:54:15 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 304D4140B2A; Mon, 8 Jan 2024 20:56:48 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 8 Jan 2024 12:56:47 +0000 Date: Mon, 8 Jan 2024 12:56:46 +0000 From: Jonathan Cameron To: Ira Weiny CC: Dan Williams , Smita Koralahalli , Shiju Jose , Yazen Ghannam , "Davidlohr Bueso" , Dave Jiang , "Alison Schofield" , Vishal Verma , Ard Biesheuvel , , , Subject: Re: [PATCH v5 1/9] cxl/trace: Pass uuid explicitly to event traces Message-ID: <20240108125646.00002c26@Huawei.com> In-Reply-To: <20231220-cxl-cper-v5-1-1bb8a4ca2c7a@intel.com> References: <20231220-cxl-cper-v5-0-1bb8a4ca2c7a@intel.com> <20231220-cxl-cper-v5-1-1bb8a4ca2c7a@intel.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100005.china.huawei.com (7.191.160.25) To lhrpeml500005.china.huawei.com (7.191.163.240) On Wed, 20 Dec 2023 16:17:28 -0800 Ira Weiny wrote: > 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] > > [1] https://lore.kernel.org/all/36f2d12934d64a278f2c0313cbd01abc@huawei.com/ > > Signed-off-by: Ira Weiny LGTM Reviewed-by: Jonathan Cameron