Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2912255iog; Mon, 27 Jun 2022 05:37:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t+WzadxZQIMg4WF5vAv20WQe0fNR3DJ7GfTAJ/+L5NWLZKYX55eL6AE+krAdmgVGujQ1rE X-Received: by 2002:a17:907:2d09:b0:722:f0bf:ac26 with SMTP id gs9-20020a1709072d0900b00722f0bfac26mr12892464ejc.77.1656333447481; Mon, 27 Jun 2022 05:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333447; cv=none; d=google.com; s=arc-20160816; b=Bd726MGniYiR66vgMT2Df1km7uDLgqFjkV8bKGXv+fGL8S6HxKhEbE6EoX/aMZTbKe lNufqsXrYIuixkh7evLzLGdYPDyeYPsxq7TnbRiwF9SXHPTL39aBggLevrXeJHMqhqcz EZg7eYrT3KV6PhieY0LFmothOWJc4OOmwQw0CDsyHarTQ5Z5qrHJE3ckpfB/3Lh+ArgV u6CopJ48sye15F5EPSNTR5k/roXZW/MQzINVYeWQ3qUG9ZAJUaZrXJcFswn8LW5QHpSn KjCHWaob47cyFKKymxNmPIyhNqtvZo9vmyzePX1z+TnPpCdmI8OonmHJWlC3yRGESzq6 zZKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/zLPhix43x7B5Gk029BS8iZQ2vbaTO19knsKhq6oSAw=; b=ZAVUBUSuJu99+XJif5OZPLJdCfsyWHomWHD4o76/TnZVTL52fgGlKxQlP8ZycVFEc0 NL9eW+OwWF2z4YqnJTQRe2820rp8Unr5EIw0Lx/SjQw6SVIIr30imlz3cbJd/CwH2pTq pFBbQFaBcRHHR3MEGJkk2LKs0ZXDnixlShhkD7tFsvalmxvxt6qjhQwEZ3KrWk0T/WnY x1K1aY/bFDGZDnE6SqHz6OlQvJGetfbmEqcYV0vBtclaiHeyJwnzcIN8e7/VrCd1F/pz XXdDASijLdU2oKTc93Qz5/kFjFCmPiIkKBcA7voRUGUEL2I3TiQ78PS2c9IOX4dwdNAB LJrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cd3-20020a170906b34300b00722f48fa044si11051970ejb.192.2022.06.27.05.37.01; Mon, 27 Jun 2022 05:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236097AbiF0Mb3 (ORCPT + 99 others); Mon, 27 Jun 2022 08:31:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234205AbiF0MbG (ORCPT ); Mon, 27 Jun 2022 08:31:06 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E8C45BF6C for ; Mon, 27 Jun 2022 05:31:05 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id ECA47176B; Mon, 27 Jun 2022 05:31:05 -0700 (PDT) Received: from e120937-lin.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D0FF63F792; Mon, 27 Jun 2022 05:31:03 -0700 (PDT) From: Cristian Marussi To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@Huawei.com, f.fainelli@gmail.com, etienne.carriere@linaro.org, vincent.guittot@linaro.org, daniel.lezcano@linaro.org, tarek.el-sherbiny@arm.com, adrian.slatineanu@arm.com, souvik.chakravarty@arm.com, wleavitt@marvell.com, wbartczak@marvell.com, Cristian Marussi Subject: [PATCH v3 6/9] include: trace: Add SCMI FastChannel tracing Date: Mon, 27 Jun 2022 13:30:35 +0100 Message-Id: <20220627123038.1427067-7-cristian.marussi@arm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220627123038.1427067-1-cristian.marussi@arm.com> References: <20220627123038.1427067-1-cristian.marussi@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All the currently defined SCMI events are meant to trace only regular SCMI transfers based on SCMI messages exchanges; SCMI transactions based on FastChannels, where used, are completely invisible from the tracing point of view. Add support to trace FastChannel transactions; while doing that avoid exposing full shared memory location addresses. Signed-off-by: Cristian Marussi --- include/trace/events/scmi.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/trace/events/scmi.h b/include/trace/events/scmi.h index cee4b2b64ae4..fa8879568a37 100644 --- a/include/trace/events/scmi.h +++ b/include/trace/events/scmi.h @@ -7,6 +7,31 @@ #include +TRACE_EVENT(scmi_fc_call, + TP_PROTO(u8 protocol_id, u8 msg_id, u32 res_id, u32 val1, u32 val2), + TP_ARGS(protocol_id, msg_id, res_id, val1, val2), + + TP_STRUCT__entry( + __field(u8, protocol_id) + __field(u8, msg_id) + __field(u32, res_id) + __field(u32, val1) + __field(u32, val2) + ), + + TP_fast_assign( + __entry->protocol_id = protocol_id; + __entry->msg_id = msg_id; + __entry->res_id = res_id; + __entry->val1 = val1; + __entry->val2 = val2; + ), + + TP_printk("[0x%02X]:[0x%02X]:[%08X]:%u:%u", + __entry->protocol_id, __entry->msg_id, + __entry->res_id, __entry->val1, __entry->val2) +); + TRACE_EVENT(scmi_xfer_begin, TP_PROTO(int transfer_id, u8 msg_id, u8 protocol_id, u16 seq, bool poll), -- 2.32.0