Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp122605iob; Mon, 2 May 2022 14:51:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznjTyJEM+Jc794H9tOrF1WqlRppCptzlypT5vsr9QoqYI7oXDb5ti3rKoFHqDzRKs7JHMm X-Received: by 2002:a17:902:e94e:b0:158:91e6:501 with SMTP id b14-20020a170902e94e00b0015891e60501mr13679242pll.29.1651528270339; Mon, 02 May 2022 14:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651528270; cv=none; d=google.com; s=arc-20160816; b=Jz9o5G/FH6vS+2vYx8ep+3VHhkwUqEZENP7W8z7vefsLF9dqwG8qQQ+zEmXFDS1p22 HvGLdtaN1LzonT0Cx5lXTi98sAdpInCup4c5gmOciBJ7O+M5YNdZF5Rrd+kZx3Jc+gIP c6OtCPujMgQMKADUTxZe7KjX8MSdzkDtHtlk+HxL9x6L8J9L0i7+QlBal5V3/0p/e86n 5oJyM9sI9jd77PvhEXB0ng2IpyKaYZ7yxn4CNprPAR8KBtv+/UvAcbbFR6VoSQk7bBO8 Hf6tsp3XxBygpA/LLEK9AssbtIBh7V9gomMdom4dCjY15+JbfOLsseGUYZ+ZKy2j2k+c X98Q== 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=g/dY+VEayNyuONZwrXts8cSa7KKtqRmSBcEW0haYQgI=; b=vb1oOqnWREmBNoUss3/pt6ruAghdrRwKId2YsCjbgoPVgPM4+s+Gj32GjTM4ZJuscO stqn2VSdtffdtOlZ8swCvvHkuA46azy9xPQAggnF8FwG8E7QzrFuuxcbHyLTY1rMHIgR DtY5xmMfce6PaNntSMaI+eIzyYYaWQdL/SppWM2QAAQncRAYe9t4OhQJq1El9MNsqm7d KtixXKy4qVqKtdwcYizms7FApCS/4wApemOFn2eBBUCKEI2HLrq0i0Ee/HJzdQWv/bbz mSlBQNNnvHqblxn5rX6iiaw3CrJvR7AO5L0AJ99mtPyec/qI0PPs4VIUW1BlAjDmUcwb naVg== 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 n9-20020a17090b0d0900b001c9e16e3b0dsi393342pjz.73.2022.05.02.14.50.50; Mon, 02 May 2022 14:51:10 -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 S1359185AbiD2Meq (ORCPT + 99 others); Fri, 29 Apr 2022 08:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359295AbiD2Mej (ORCPT ); Fri, 29 Apr 2022 08:34:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AB0EDC90E7 for ; Fri, 29 Apr 2022 05:31:19 -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 5DEC91063; Fri, 29 Apr 2022 05:31:19 -0700 (PDT) Received: from e127744.arm.com (unknown [10.57.46.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 04ECA3F73B; Fri, 29 Apr 2022 05:31:16 -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 2/2] coresight: etm4x: docs: Add documentation for 'ts_source' sysfs interface Date: Fri, 29 Apr 2022 13:31:00 +0100 Message-Id: <20220429123100.268059-3-german.gomez@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220429123100.268059-1-german.gomez@arm.com> References: <20220429123100.268059-1-german.gomez@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Sync sysfs documentation pages to include the new ts_source (timestamp source) interface. Signed-off-by: German Gomez --- .../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 8e53a32f81505..19ac9d6d2f504 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: April 2022 +KernelVersion: 5.18 +Contact: Mathieu Poirier +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 d25dfe86af9bf..f016c7c29429b 100644 --- a/Documentation/trace/coresight/coresight-etm4x-reference.rst +++ b/Documentation/trace/coresight/coresight-etm4x-reference.rst @@ -71,6 +71,20 @@ the ‘TRC’ prefix. ---- +: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.25.1