From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 98BD5ECAAA1 for ; Mon, 19 Sep 2022 17:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=p95WEXu5FvveozvRfACWVNNIVbegxfsKceClJW3FmnE=; b=iE/HtLx+kvIDQ8 sFE1Qh2nJMkDN+vUrWylaIuRwyIB36y9Kn2oSsXT1ldCJWzMQ+c2za55Q1cVv18TYiqN4EObLgBMU qQTnjpJ2zBdwSFKTu4CXp0Tx8z07+ZMy2kKHvpC8dUSGm8UidB6P97AXgTO37Y4Arrfuq2FPzTHYq 5K54rN0w7sNxNqzmRqOotTPEUhSjkyCoFhVwLqia9bB69l6qo0DWe1hYwI29NMs35Ye4DRUbSgZSD HaiDen9tvyizwIFHyxSKyazKHZo7U4wxk3nRqkV2UibCwZKHrY/5oRmCFej8/F+dEdEyUhN8p9tdY Kd+YgR62A4j+/kmndzFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaKdS-00DISb-Cm; Mon, 19 Sep 2022 17:32:46 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaKdP-00DIQk-0W for linux-arm-kernel@lists.infradead.org; Mon, 19 Sep 2022 17:32:44 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 59D00B80C72; Mon, 19 Sep 2022 17:32:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE097C433C1; Mon, 19 Sep 2022 17:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663608760; bh=TB+0gRSIN5rcKrjh40MuTk8n8S3NBnRNudCQ11g3VQY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=O0pmtZQoaOtjsmjSOBs8DglqGNou81tOxyfEbcewNAAhJntyY/ukqaKZpN2xNC6GP tS3s9K9ayax6mIIcNAVRTzkFymC6+r47W+ZVjfeJpgInWCg7bdvQZWK+OylIKmk7Kw HvtKXvYFQZCcPYskb5yJSQ8O1WNzqKrRBSeHkHOVAOpeCj+0vyQvY+SmYfrMc6LrI5 iSHHzfSHrIrm8Orx94SzEKUj1UaJPgNW2cwLCHi7pYe67n2yNhq8TAK/G8SJE3JbGv JaiTD6X7YtyRAn2klgr5xoZM2qGXwynR99CewVitDEQJk+DB8cIYxJpmerQFp9x4iW Zzs2bZQ2StdQw== Date: Mon, 19 Sep 2022 12:32:38 -0500 From: Bjorn Helgaas To: Yicong Yang Cc: acme@kernel.org, peterz@infradead.org, alexander.shishkin@linux.intel.com, leo.yan@linaro.org, james.clark@arm.com, will@kernel.org, mathieu.poirier@linaro.org, mark.rutland@arm.com, suzuki.poulose@arm.com, jonathan.cameron@huawei.com, john.garry@huawei.com, mike.leach@linaro.org, gregkh@linuxfoundation.org, lorenzo.pieralisi@arm.com, shameerali.kolothum.thodi@huawei.com, mingo@redhat.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-perf-users@vger.kernel.org, prime.zeng@huawei.com, zhangshaokun@hisilicon.com, linuxarm@huawei.com, yangyicong@hisilicon.com, liuqi6124@gmail.com Subject: Re: [PATCH v13 3/3] perf tool: Add support for parsing HiSilicon PCIe Trace packet Message-ID: <20220919173238.GA1014074@bhelgaas> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220919090045.6778-4-yangyicong@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220919_103243_479968_90CAEEA4 X-CRM114-Status: GOOD ( 14.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Sep 19, 2022 at 05:00:45PM +0800, Yicong Yang wrote: > From: Qi Liu > > Add support for using 'perf report --dump-raw-trace' to parse PTT packet. > > Example usage: > > Output will contain raw PTT data and its textual representation, such > as: > > 0 0 0x5810 [0x30]: PERF_RECORD_AUXTRACE size: 0x400000 offset: 0 > ref: 0xa5d50c725 idx: 0 tid: -1 cpu: 0 > . > . ... HISI PTT data: size 4194304 bytes > . 00000000: 00 00 00 00 Prefix > . 00000004: 08 20 00 60 Header DW0 > . 00000008: ff 02 00 01 Header DW1 > . 0000000c: 20 08 00 00 Header DW2 > . 00000010: 10 e7 44 ab Header DW3 > . 00000014: 2a a8 1e 01 Time > . 00000020: 00 00 00 00 Prefix > . 00000024: 01 00 00 60 Header DW0 > . 00000028: 0f 1e 00 01 Header DW1 > . 0000002c: 04 00 00 00 Header DW2 > . 00000030: 40 00 81 02 Header DW3 > . 00000034: ee 02 00 00 Time This is great! Is there a way to actually decode the TLP headers? E.g., something along the lines of what this does? https://github.com/NetTLP/wireshark-nettlp/blob/master/plugins/nettlp.lua If there is, it might be nice if the commit log included a hint about how to do more decoding. Bjorn _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel