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 9170EC5479D for ; Wed, 11 Jan 2023 11:36:04 +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:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2MPH9Ny1zQgRpN3+EEOZJp50TQBlho1YsYl3wg8Ui8s=; b=mcknexCPI49b5o veZl9qXlrBwmjAESKYrZBH/TJzqp4jNZzPZdjS7MRfMZPGQH5Alz7Q/STZOP/qhIlIwvRwdzPuhYw F+gi0wkR+gBIotnSghZi2Fa53A1yh8EKLKa9r2SuHoX4mnkHc11eN3Jy/iccdBZJW3yqnoI2EUkPO NKdp3e8gOPoJ2kJMYgwDC6XVU9Q9EeBPYFLwiRJOvuCduIkGter1rkTE+3qkML72BWff+6J06S84o 4NgLoSxHYKWZ3LmcwcdbuEK+WAii0mMN20I968LeelX89wf9Fz1P4YvO6zDYn1J9192IK7ukwKhUy zkfiNNWMt1oqrs7K5uJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFZNy-00B4zA-Tk; Wed, 11 Jan 2023 11:35:14 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFZNv-00B4y2-Ee for linux-arm-kernel@lists.infradead.org; Wed, 11 Jan 2023 11:35:12 +0000 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 059EEFEC; Wed, 11 Jan 2023 03:35:51 -0800 (PST) Received: from [10.57.45.242] (unknown [10.57.45.242]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D720F3F587; Wed, 11 Jan 2023 03:35:05 -0800 (PST) Message-ID: <4e6a0766-52d1-effa-9986-af6b3ca29f1a@arm.com> Date: Wed, 11 Jan 2023 11:35:04 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v3 0/7] perf cs_etm: Basic support for virtual/kernel timestamps Content-Language: en-US To: Tanmay Jagdale , "linux-perf-users@vger.kernel.org" , "leo.yan@linaro.org" , "mike.leach@linaro.org" Cc: Sunil Kovvuri Goutham , George Cherian , Linu Cherian , Bharat Bhushan , Mathieu Poirier , Suzuki K Poulose , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , "coresight@lists.linaro.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: <20230103162042.423694-1-james.clark@arm.com> From: James Clark In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230111_033511_570157_8B6BD55B X-CRM114-Status: GOOD ( 11.36 ) 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 10/01/2023 16:42, Tanmay Jagdale wrote: > Hi James, > [...] >> base-commit: 09e6f9f98370be9a9f8978139e0eb1be87d1125f > I have tested this patch set on our platform and able to see updated > timestamp values in perf script's output. > > $ perf record -e cs_etm/cycacc,@tmc_etr0/k -C 9 taskset -c 9 sleep 2 > $ perf script --itrace=i1ns --ns -Fcomm,tid,pid,time,cpu,event,ip,sym,addr,symoff,flags,callindent > > At certain points noticed that hardware emits same timestamp packets > but with updated cycle count (CC) values. A small snippet of the log: > > Idx:100; ID:12; I_ADDR_S_IS0 : Address, Short, IS0.; Addr=0xFFFF8000086A761C ~[0x761C] > Idx:103; ID:12; I_TIMESTAMP : Timestamp.; Updated val = 0x2f373e37e02; CC=0x3d > Idx:107; ID:12; I_ATOM_F2 : Atom format 2.; EN > Idx:108; ID:12; I_TIMESTAMP : Timestamp.; Updated val = 0x2f373e37e02; CC=0x3f > Idx:112; ID:12; I_ATOM_F1 : Atom format 1.; N > Idx:113; ID:12; I_TIMESTAMP : Timestamp.; Updated val = 0x2f373e37e02; CC=0x45 > Idx:116; ID:12; I_ATOM_F1 : Atom format 1.; E > Idx:117; ID:12; I_ADDR_S_IS0 : Address, Short, IS0.; Addr=0xFFFF8000086B52D4 ~[0x152D4] Hi Tanmay, Are you able to email or send a download link with the perf archive and perf.data file of this recording please? Thanks James _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel