From patchwork Fri Aug 11 03:46:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 134305 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp845101vqi; Thu, 10 Aug 2023 21:13:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFf1LAmNQQgAmFHGtgnSsFY9IwC2mxPXc4H6M5Mg1fGLgcRJi8bYygTLWmGRqIDiMk12OK/ X-Received: by 2002:aa7:cf11:0:b0:522:1f09:dde3 with SMTP id a17-20020aa7cf11000000b005221f09dde3mr610248edy.3.1691727202810; Thu, 10 Aug 2023 21:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691727202; cv=none; d=google.com; s=arc-20160816; b=rAncZ4FPT5lgrGrQcxZipacw9KtRyuFOKuOka7sdCL7OYTdf0otUo5xrZDIdPPo/KO hxgHcjK498r1ovW8y0qlpyLNQNY9Rt23AKJwgHhGiJZhpWglcCIORQ5OjWUEM3+g0ca+ 51Snn+z3Y8Ck0v21OwGQnOv0hRgZcGACo6o1uo4qkIznPGHJtxkvVyiGtER/+d+ZtxF9 VF4fPB8miImyIUp7XKARVVNC1qwmQrQ9ec64TaD0vB2dg4yAFTyYdhPiE4PVvvI29slM ArLKYkmt46pcTmPY/QfWi7Ku7S4VMH6lvvwfQMrxvZXSaN+bnoZBheWHk7uf3EaArOJu yBzQ== 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=Gm9M/FfQjttDN9oYkppuAfxaVnY9xigQZEyizj/jq10=; fh=i7k4OkcaLUFocIK64fg5M0UL6Z7MqFc0/WYsE6IUDvI=; b=bsa2/5wFnb7KQ6aj3Ik4k352KuJDzS2iCPDXam5S/mgAZvXpnEHUHw/Rw2Hg5azXRX DiPWW3JI3e72e2se0OWR33auFgs7N1Z4ujZlqBoU3f/f8hcl1Kxf3UxYzF2sQEHRalaN ci0GfBmQuRhr9/pe7i1Rm8vym6ay27COFK06GhKi7qwQ2lCxjQi0e3AfMGb1WdoC2YT+ 7ES4q2e13gwviGB79CeaINuw283tWmYU6jsyT4+LddocM1UlCKPb/2/I91xxbdDolyiB CLZA39Xe50vcmb16knk/pkZhI4bgUrtJC4lPZraN8fJQctxCEnBnA+vTLsh7Yb11Qx4E 85rQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020aa7d6c1000000b005224c7ad5afsi2702408edr.99.2023.08.10.21.12.59; Thu, 10 Aug 2023 21:13:22 -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 S233302AbjHKDqe (ORCPT + 99 others); Thu, 10 Aug 2023 23:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233279AbjHKDqb (ORCPT ); Thu, 10 Aug 2023 23:46:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7DF4030C1; Thu, 10 Aug 2023 20:46:26 -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 A91FFD75; Thu, 10 Aug 2023 20:47:08 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.54.13]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0029E3F6C4; Thu, 10 Aug 2023 20:46:21 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Anshuman Khandual , Catalin Marinas , Will Deacon , Mike Leach , James Clark , Leo Yan , Jonathan Corbet , linux-doc@vger.kernel.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 3/3] Documentation: coresight: Add cc_threshold tunable Date: Fri, 11 Aug 2023 09:16:00 +0530 Message-Id: <20230811034600.944386-4-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230811034600.944386-1-anshuman.khandual@arm.com> References: <20230811034600.944386-1-anshuman.khandual@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773904543247316362 X-GMAIL-MSGID: 1773904543247316362 This updates config option to include 'cc_threshold' tunable value. Cc: Suzuki K Poulose Cc: Mike Leach Cc: James Clark Cc: Jonathan Corbet Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- Documentation/trace/coresight/coresight.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/trace/coresight/coresight.rst b/Documentation/trace/coresight/coresight.rst index 4a71ea6cb390..ce55adb80b82 100644 --- a/Documentation/trace/coresight/coresight.rst +++ b/Documentation/trace/coresight/coresight.rst @@ -624,6 +624,10 @@ They are also listed in the folder /sys/bus/event_source/devices/cs_etm/format/ * - timestamp - Session local version of the system wide setting: :ref:`ETMv4_MODE_TIMESTAMP ` + * - cc_threshold + - Cycle count threshold value. If nothing is provided here or the provided value is 0, then the + default value i.e 0x100 will be used. If provided value is less than minimum cycles threshold + value, as indicated via TRCIDR3.CCITMIN, then the minimum value will be used instead. How to use the STM module -------------------------