Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1354860imi; Fri, 1 Jul 2022 08:06:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vR5/ZwoOIlUHZuXLtIyCKxlseoPVToamyHc6uE7216OCMG3J6XbyZjtzVisCPDIsPSJp3+ X-Received: by 2002:a63:14c:0:b0:40c:f458:5e79 with SMTP id 73-20020a63014c000000b0040cf4585e79mr13057273pgb.72.1656688009697; Fri, 01 Jul 2022 08:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656688009; cv=none; d=google.com; s=arc-20160816; b=lgWqaK/AmevAitj6ggsT1VhYQ3VlFxyf2zVIvKN+uIXd2WQDFcykd12xbyLR7pRWog t4hlRD7dN7JOT1LaGb54Oro3yu+bf1OerV2W8MSqFHylD9g4Nwp6ER6OAPr95YvDeU1z kq7Vo7OmokhMk8Xp4ovQreDRtwSjiMgvNjBej50KlZOd1UheBcH32nABvBl3rtms4nuL IW9X7/8XBOJ0cTp2aDBIVahuvzGt0RGnRG+b5Mlu50nY+xPGt561R5/VfX4dRB4J7lyX H76rNdJO9sxXrWMLvpNIUenQe/jgazo9s1ao/T6LFSYSj62NIqNhqBV9VcxRAVqu3y9z Uicg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LY9nU/pChrW87ELmP0lRaO+3EKh73+mpYGhFv3JXwEI=; b=LzZkArN+/J/YGejGPF+dJBmeWYFaSyol2/eE85lnj+m+mYubd3wBC6R/7TYCrEl05P 8LCkXg5I0S7IH96bHliuusW4AlLcBh5ZNt4Re3jEA+udjmHvD0ZdJPod87VJF7fFvyjN a0dr8UBnTiump7QgpOVWNFDVqpp2H1i/3B1vf1oUl7uHYeO13lcNX/VFNQuGJI8XCZx9 tHd3KYhiTqh2GX2PvDVElk1yjSdyYSdQGq+tViXASXLca5RBSxCRbRsV4aGdus6CfqF2 UtR61hvxvvnwqaf2NrRoJUxswdajGbRvGSf/XJ22HRy/Ut2tj+DzfXrqMx9F1KCEo63n K8kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=PWrIvBtx; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m13-20020a6545cd000000b003fc695d1439si31312706pgr.387.2022.07.01.08.06.37; Fri, 01 Jul 2022 08:06:49 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=PWrIvBtx; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230144AbiGAPEc (ORCPT + 99 others); Fri, 1 Jul 2022 11:04:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233466AbiGAPER (ORCPT ); Fri, 1 Jul 2022 11:04:17 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF9E58FC0 for ; Fri, 1 Jul 2022 08:03:51 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id d2so4620009ejy.1 for ; Fri, 01 Jul 2022 08:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LY9nU/pChrW87ELmP0lRaO+3EKh73+mpYGhFv3JXwEI=; b=PWrIvBtxvpbYex1GmBZK/BLPtAYsxevGFVtv+fqVRoqy8ImziC0onOm9yK46XF0Vb5 j8JJ18bNuGc7wYSk3JHYJ6uaC/rQ2FKSzT71WgGofT5TSWiFxs4HZvpKB/D12iz1Veta ARW2EmgLEOPjujGjzcJzqBYiMFqJe3UfyJ4gY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LY9nU/pChrW87ELmP0lRaO+3EKh73+mpYGhFv3JXwEI=; b=qWIvQFpluTDP2i0M0jtyuPZTTZlAx57DRFFf8cqetPyDikFFYqnjgqJ29oEaEcTsrB N0Wl2Ty48ROzx9pB+erJhHaINx7g6AaAbJvIwuC+gGMUd3RgKSsZecXi2U4jjN3DmKcO 8ZW3i/RO/dS/LStvnJHAGjJ8Yha3Go1UoT47D6sp1G8neLFAAx3/J4OByO6Waby1OrgK AnTIe/2Z4rYfG8nWdUzho5cDa9FoFQ2A5tpO40GFC3+qqLAXWyCymRWAxiC98cphPB1f 2BDwuP9GyIxDURnEOu3Lm6TJhOdMlyj3cM6SeVCb56C0/X67SWFXoOFEPMPnUgmjNzsO YWOw== X-Gm-Message-State: AJIora+kwF5GbAkwRdOTmzwUW67NNK5ckTdu5UkqcPa+LHl79DXeVL6o s3ogXUcB8eQoUxzdVdpLl4Q6zgwIIf3rXoGwvTcMsw== X-Received: by 2002:a17:907:9693:b0:726:372c:2c02 with SMTP id hd19-20020a170907969300b00726372c2c02mr15068483ejc.483.1656687830220; Fri, 01 Jul 2022 08:03:50 -0700 (PDT) MIME-Version: 1.0 References: <20220630173135.2086631-1-cristian.marussi@arm.com> <20220701135411.eeruvjuispgfuyls@bogus> In-Reply-To: <20220701135411.eeruvjuispgfuyls@bogus> From: Jim Quinlan Date: Fri, 1 Jul 2022 11:03:38 -0400 Message-ID: Subject: Re: [PATCH v2 0/2] Add SCMI full message tracing To: Sudeep Holla Cc: Cristian Marussi , open list , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , Florian Fainelli , Vincent Guittot , Lukasz Luba Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000a2f69b05e2bfb1c5" X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 --000000000000a2f69b05e2bfb1c5 Content-Type: text/plain; charset="UTF-8" Hi, LGTM, I appreciate this change. For testing, I fed your sample output to this: perl -MData::Dumper -nae 's/^.+scmi_msg_dump:// && print Dumper { (map { split /=/; } split" ") }' < scmi.txt which gives this $VAR1 = { 'pt' => '15', 'seq' => '0000', 'pyld' => '000000000800000009daffffffffffff008268d4c075fd1611daffffffffffff008268d4c075fd1619daffffffffffff008268d4c075fd16', 'msg_id' => '01', 's' => '0', 't' => 'NOTI' }; which is what I wanted. BTW, if I ever write a script that would take this SCMI trace text and decode it to nice cmd names and arguments -- where would I submit such a script? Thanks and Regards, Jim Quinlan Broadcom STB On Fri, Jul 1, 2022 at 9:54 AM Sudeep Holla wrote: > > On Thu, Jun 30, 2022 at 06:31:33PM +0100, Cristian Marussi wrote: > > Hi, > > > > after a few recent troubles handling too strictly out-of-spec replies from > > SCMI servers deployed in the wild, I though it could have been useful to > > have a basic way to dump at will the effective full payloads of > > successfully transmitted/received SCMI messages. > > > > The existing SCMI traces already collect a bunch of information about SCMI > > message exchanges but they do NOT keep any payload information: this is > > certainly preferable most of the time since dumping full SCMI messages to > > the trace buffer involves a full copy of the payload. > > > > For this reason I added a new distinct trace_scmi_msg_dump with this series > > in order to be able to selectively enable at will message dumping only when > > required. > > > > Only successfully transmitted and received (valid) xfers are dumped. > > Looks good to me. I would like to hear from Jim if possible. I plan to > merge this ASAP. > > -- > Regards, > Sudeep --000000000000a2f69b05e2bfb1c5 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQbgYJKoZIhvcNAQcCoIIQXzCCEFsCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3FMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf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