Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3857403rwa; Tue, 23 Aug 2022 11:18:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7MXJIqKVsHiQwb4RY8nkCaIPjONWicGU7yrdRNFIwJQuuuivCuTkAGV9669qFGHFC0z6tA X-Received: by 2002:a17:907:7f22:b0:73d:6e2e:5bb8 with SMTP id qf34-20020a1709077f2200b0073d6e2e5bb8mr548192ejc.642.1661278725603; Tue, 23 Aug 2022 11:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661278725; cv=none; d=google.com; s=arc-20160816; b=ASTUxJwc5O5JySWj+e2RTvTASxs0W2g1UuBiuQWNAoFYZrUiWwceMiLUq2jHFtO8Mg F60daMCQUOPYtWGnce+FJXrvCcGoLcpYsYjvtZmPQBryz3q3h8N8l/9/qGDuLIXjD8Vt W/caXXyLnioG2PCJnr/PwcmkXKPDb7EouwFxIjT7p2pWeJnC55cEBLPkm256cCYFXC0W IUNJh0NtR1psbIGrgRNUfpObHyg1xiY6XvXFDSdojvb1i806RuDkasNrnXMzxlPAGNgJ KGhrCdhdfLP9/DZaCBSewSLKxyp9J2cEqvLOE+LU50zSNCQSGLXVG3jkURiMW2i/lxPG +unw== 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=HaLVUGJDnosb3LW44saYcQByKL45IzTRdjRDu6b92wc=; b=v0TfECr5X9i/0YHFS1nPsyZ8F/nYj6dXXZgxIJKYxhVnakOZN67Tse7AnFNaL9I/ik Lwt/Ww3EC8XoYiGe+nBYw5DTFLaKE21uqfRgfmzdy+IbIzLaRcMQuYZqHOLex/i+sTqY Lb/ja7RwEHEbm8rmAKYvp7/i5rlkMA+LO8nLlEsQhOhQi/u+jGUKdIMW4U7fPH4wX176 sxMeyqeN5V6afkyleYYAhQGy3Rzg30bcvXTbDW4NxvOZ3m3izqg695AoPMxt+3mcV0Um KA3JjLABL/Jevkzaw6anzX34phdcxrnuCczaMi2IkcRMIv5xCN7wOFs9+VyOwK4q36Xa pO4w== 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 dr16-20020a170907721000b0073d6859e5c7si329517ejc.373.2022.08.23.11.18.19; Tue, 23 Aug 2022 11:18:45 -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 S233291AbiHWSC5 (ORCPT + 99 others); Tue, 23 Aug 2022 14:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231183AbiHWSBE (ORCPT ); Tue, 23 Aug 2022 14:01:04 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12250DCFE8; Tue, 23 Aug 2022 09:07:13 -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 876A21424; Tue, 23 Aug 2022 09:07:16 -0700 (PDT) Received: from e121896.arm.com (unknown [10.57.14.228]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B00BE3F718; Tue, 23 Aug 2022 09:07:10 -0700 (PDT) From: James Clark To: suzuki.poulose@arm.com, coresight@lists.linaro.org, mathieu.poirier@linaro.org Cc: mike.leach@linaro.org, leo.yan@linaro.org, linux-kernel@vger.kernel.org, german.gomez@arm.com, James Clark , Jonathan Corbet , Catalin Marinas , Will Deacon , Alexander Shishkin , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org Subject: [PATCH v3 2/2] coresight: etm4x: docs: Add documentation for 'ts_source' sysfs interface Date: Tue, 23 Aug 2022 17:06:50 +0100 Message-Id: <20220823160650.455823-3-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20220823160650.455823-1-james.clark@arm.com> References: <20220823160650.455823-1-james.clark@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 From: German Gomez Sync sysfs documentation pages to include the new ts_source (timestamp source) interface. Signed-off-by: German Gomez Signed-off-by: James Clark --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 8 ++++++++ .../trace/coresight/coresight-etm4x-reference.rst | 14 ++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x b/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x index 8e53a32f8150..08b1964f27d3 100644 --- a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x +++ b/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x @@ -516,3 +516,11 @@ Contact: Mathieu Poirier Description: (Read) Returns the number of special conditional P1 right-hand keys that the trace unit can use (0x194). The value is taken directly from the HW. + +What: /sys/bus/coresight/devices/etm/ts_source +Date: October 2022 +KernelVersion: 6.1 +Contact: Mathieu Poirier or Suzuki K Poulose +Description: (Read) When FEAT_TRF is implemented, value of TRFCR_ELx.TS used for + trace session. Otherwise -1 indicates an unknown time source. Check + trcidr0.tssize to see if a global timestamp is available. diff --git a/Documentation/trace/coresight/coresight-etm4x-reference.rst b/Documentation/trace/coresight/coresight-etm4x-reference.rst index fb7578fd9372..70e34b8c81c1 100644 --- a/Documentation/trace/coresight/coresight-etm4x-reference.rst +++ b/Documentation/trace/coresight/coresight-etm4x-reference.rst @@ -71,6 +71,20 @@ ---- +:File: ``ts_source`` (ro) +:Trace Registers: None. +:Notes: + When FEAT_TRF is implemented, value of TRFCR_ELx.TS used for trace session. Otherwise -1 + indicates an unknown time source. Check trcidr0.tssize to see if a global timestamp is + available. + +:Example: + ``$> cat ts_source`` + + ``$> 1`` + +---- + :File: ``addr_idx`` (rw) :Trace Registers: None. :Notes: -- 2.28.0