Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2330706iob; Sat, 30 Apr 2022 05:55:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGqZPsBUH014Q6hB7/kZ0qqWS0smNgDIXlkzMhjb1UWN2mk+FajZhipD1oVgm785eYGAna X-Received: by 2002:a05:651c:1584:b0:24e:d796:b777 with SMTP id h4-20020a05651c158400b0024ed796b777mr2535278ljq.3.1651323304181; Sat, 30 Apr 2022 05:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651323304; cv=none; d=google.com; s=arc-20160816; b=a+9pXTWvTUKNcy/dstAW+qKSk16zyqPB/us6OKqsBHSHdGmzJhSClO/HUs8mHRMglW tdQP/5kMrTUgDOTBNzGrIZGO9TacQ9Se+b+0Oql1ehdFAfQP8tRPeRbMbOd0n/3JfXzr V0xZexjUiZxX1eLDXjWUe2kgfWPd8FMgBoQkMojhm2AHihd6MGQrZAMmxX4kbdxZToTe cho8cL7ImtI6DuFBzhDr7dfoSjEWpLfZDeyysTUeNDjXqLjUq4iCm6SKTNsLjaHVJUWU hRkM/uphFEM4OUraf6XUcPmIAKng78ZWIpxC5pxssg3Ex6LyzfJNPktikIDH4iOQoNea 1PkQ== 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 :message-id:date:subject:cc:to:from; bh=aWJd5vT1O62kJNs6L/gH6w7wyvmZIOfhLW+ILADSTbg=; b=Sp3i3/J+57Bxhk9eDh6mO1JJGhfzDam/PaIvXqqOVUfZVQY5WQv4bY5BdqLOBzmWFh BJ7OfltujkfuMVDhx3+UI7G3GANJKOzw6j8Rwr/wDbhH6bHRFb+LMa30R6GWxzUts/xn O9BiEIPMxiOXTurNFM0JrdSLjnJYUA0oaz3Nj4EBXSAUWyCInMhCsJr2ZD1lTbemmR7r lzR4Cbv3sJ0GsE8FC9K5tMXIgATW5EFT0+3nhKjY2sbi2R240k6w4VMY8+f8XFqOzOCa w4Sv3t2mM5zZleimE66lSPs+1TEpO7Lz084cFvQ1AVQ23y7FsEXO9TkkHNCwrgj4yct5 yZwQ== 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 d20-20020a2eb054000000b0024b4aad529dsi9183343ljl.194.2022.04.30.05.54.37; Sat, 30 Apr 2022 05:55:04 -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 S1359261AbiD2Me3 (ORCPT + 99 others); Fri, 29 Apr 2022 08:34:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359174AbiD2Me2 (ORCPT ); Fri, 29 Apr 2022 08:34:28 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F434B647F for ; Fri, 29 Apr 2022 05:31:09 -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 0E2DD1063; Fri, 29 Apr 2022 05:31:09 -0700 (PDT) Received: from e127744.arm.com (unknown [10.57.46.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A09FE3F73B; Fri, 29 Apr 2022 05:31:06 -0700 (PDT) From: German Gomez To: coresight@lists.linaro.org, mathieu.poirier@linaro.org, suzuki.poulose@arm.com Cc: james.clark@arm.com, leo.yan@linaro.org, mike.leach@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, German Gomez Subject: [PATCH 0/2] coresight: etm4x: Expose default timestamp source in sysfs Date: Fri, 29 Apr 2022 13:30:58 +0100 Message-Id: <20220429123100.268059-1-german.gomez@arm.com> X-Mailer: git-send-email 2.25.1 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_PASS 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 Hi, I'm Sending this sysfs addition to the etm4x driver in order to expose the timestamp source of the trace (given by the TRFCR_ELx.TS register). As mentioned in [1/2], having this information is useful for assigning Kernel times to the perf samples. Thanks, German German Gomez (3): coresight: etm4x: Expose default timestamp source in sysfs coresight: etm4x: docs: Add documentation for 'ts_source' sysfs interface perf cs_etm: Store ts_source in AUXTRACE_INFO fields .../testing/sysfs-bus-coresight-devices-etm4x | 8 +++ .../coresight/coresight-etm4x-reference.rst | 14 ++++ arch/arm64/include/asm/sysreg.h | 1 + .../coresight/coresight-etm4x-sysfs.c | 34 ++++++++++ tools/perf/arch/arm/util/cs-etm.c | 64 +++++++++++++++++-- tools/perf/util/cs-etm.c | 61 +++++++++--------- tools/perf/util/cs-etm.h | 13 +++- 7 files changed, 159 insertions(+), 36 deletions(-) -- 2.25.1