Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp916934iob; Wed, 4 May 2022 10:34:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCNuG7n+RYAmIIOUAdxJPh4h1EG1cfOOMFgFJ67xucQKUlcCVw9ERV1xCgtbZtzt0xYqBZ X-Received: by 2002:a63:8ac9:0:b0:3ab:dab:16b4 with SMTP id y192-20020a638ac9000000b003ab0dab16b4mr18915702pgd.129.1651685687671; Wed, 04 May 2022 10:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651685687; cv=none; d=google.com; s=arc-20160816; b=rKkD0/yeIUTQ7FmW8zyB0ooZQ64w+wX/kxJ/Ssogzg9VUAOiHMlJURx9Ak/bzu03+z HmmcJ/+hKrzh5yXJ/1dADWSo1CKpMyYv9qdJrTo5JPemNIqTv4QFM0V+VMFcThCP3ZGE VPaEjehCuU6zE2p6vwOKgyaw3jXiJSU4DLYUUakqdilY6Ax0J0IRvOWdILpl8xB57wyL re4e29J1K3gaNzG59PzLhiz7bZLdugqn2zFUTeAJZe51qPHI2KlQdmRNH3ojOOJxus8q S+2V8mbUJgUopxd/Omx5qlaxefeJBNWF9BBeBRJVaHXdFDWTefLbBpmVjQMGborf5UuB XiNg== 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=rn5KVL6XbQgMbc39zDxk6C/ttk8h2KD8rUu5ZkmQI34=; b=qLaK9dgs6TxrFy7p0ZIDrsErrAYTG9E3oZHt+AY1KxBLcTDNO1U5uhmSy6w3mIu37q isfmWn2Jg36KohJY5RSsvVFi9AD/0CXYT7zEUxXwZMGpPpnI3jYfvyKhF8ruRnH1l6+F oLGuxcwRU2054I5sYGhs8tU3/qMjrodyIHVehTsQKZIGqM3bNIxKnpwgjqFKwfMhEMY0 yk4DUb9FFRqUR5LzjYKj/elv/GOAIS8h34/uL/yDDvNniXQzQi5fcfZ4ZzJsJSd5T+nq r5Z0GSW3xbuKRRpVWKraRRy56pnOaoya3Wd3sv4qLnNbwChogpFVkp2opaSKGHBbGseS jNAg== 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 i18-20020a63d452000000b003aba3fbb424si19908035pgj.669.2022.05.04.10.34.30; Wed, 04 May 2022 10:34:47 -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 S235397AbiECMj2 (ORCPT + 99 others); Tue, 3 May 2022 08:39:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231902AbiECMj0 (ORCPT ); Tue, 3 May 2022 08:39:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F6E62AE33 for ; Tue, 3 May 2022 05:35:52 -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 EB91D12FC; Tue, 3 May 2022 05:35:51 -0700 (PDT) Received: from e127744.cambridge.arm.com (e127744.cambridge.arm.com [10.1.28.130]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A2F093F73D; Tue, 3 May 2022 05:35:49 -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 v2 2/2] coresight: etm4x: docs: Add documentation for 'ts_source' sysfs interface Date: Tue, 3 May 2022 13:35:37 +0100 Message-Id: <20220503123537.1003035-2-german.gomez@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220503123537.1003035-1-german.gomez@arm.com> References: <20220503123537.1003035-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,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 Sync sysfs documentation pages to include the new ts_source (timestamp source) interface. Signed-off-by: German Gomez --- v1: - https://lore.kernel.org/all/20220429123100.268059-3-german.gomez@arm.com/ v2: - Update Data, KernelVersion, and Contact fields (Date is tentative but likely). --- .../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..520dd2e27eab3 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: July 2022 +KernelVersion: 5.19 +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 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