Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1484214imk; Mon, 4 Jul 2022 04:08:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1taYyOG4HydskzCSbGY778Ii8W+L/2jc1SD5bBhkl42R/mszSzYiU6GfHWtASRxk4XlF2JF X-Received: by 2002:a17:907:3f84:b0:724:2ec:b474 with SMTP id hr4-20020a1709073f8400b0072402ecb474mr28752413ejc.644.1656932900542; Mon, 04 Jul 2022 04:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656932900; cv=none; d=google.com; s=arc-20160816; b=LPOyQQrxXiZyRJBySRMop7McpS973vHC6c5Vq1XGy7OksGi2858+d2uMG/HMEUvUiw j2YD/wOO4xLswXPEQJ2VxL4E4cNtLEoXussqtvE4Ipl0QEicKCEzpvedcdZnGND3Toae kzHD4l6JPF2I4bAR0Dlj/BfR4QZnINqgUCzgnCmlPc/INoC08lYWmiL1FVmzY2PKTEBe xf/tzwI/QbBtufT9pwN72DUeO73zGSkFwY9MrZ5ua4aivXI9QO9GHJs7V9hAB36ZqFaQ CZTU3FmIodUsJVc08UMzT/+ru3n4HMSyIeGxwczauQ6ajrnxrzbqyVRrogbvIF+i1MOs V3bQ== 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=j67pZfKtQcctaC1788DAJoWnV/vU3zEyVouSzagXw4WTpfBbTDlnfoKh4KRcxZC1gb qT4jjkBvZHllHqRj6IhNnB4kNJYx+3Q4lWjXwpEkGQCgkL+MaK2MfXyfPrNesqAmSorn 9P168IZlTuDV4cj+vIX1Wav0NuWhAjzQRxIRUtEX2xKmYr5XJAdMJWVCb1aJl1OIcXkb Y4w5ax0AzZk9RkX/KY1CZXvTcxBbEPvx27dDRuINXiaU1iqoycbJ3GqD5xaow8L8wi5J koNz8prlph1OWeXf8Skhx6NIEa37mXkZi9K5axxfEycfnAWJ6GEb+yGiPSFbFmg1YXjB pbJw== 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 du18-20020a17090772d200b007267d5bec8csi14085152ejc.994.2022.07.04.04.07.54; Mon, 04 Jul 2022 04:08:20 -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 S233977AbiGDKY0 (ORCPT + 99 others); Mon, 4 Jul 2022 06:24:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233935AbiGDKX2 (ORCPT ); Mon, 4 Jul 2022 06:23:28 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AF202BF56 for ; Mon, 4 Jul 2022 03:23:14 -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 542E1152B; Mon, 4 Jul 2022 03:23:14 -0700 (PDT) Received: from e120937-lin.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2330D3F792; Mon, 4 Jul 2022 03:23:12 -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 v4 5/7] include: trace: Add SCMI FastChannel tracing Date: Mon, 4 Jul 2022 11:22:39 +0100 Message-Id: <20220704102241.2988447-6-cristian.marussi@arm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220704102241.2988447-1-cristian.marussi@arm.com> References: <20220704102241.2988447-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