Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2582307rwl; Mon, 27 Mar 2023 02:11:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Y+H8PQUui7XSTf9Gu3rmPSG2k4EI0foJ3w+bcCEQZC8aEa+NNYzpXucX6eycz94MAaY+1J X-Received: by 2002:a17:906:a1d5:b0:92c:88f9:385c with SMTP id bx21-20020a170906a1d500b0092c88f9385cmr11313692ejb.75.1679908288588; Mon, 27 Mar 2023 02:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679908288; cv=none; d=google.com; s=arc-20160816; b=kSpHZiGnMtiYei0q4uhR3BsjfWt4ANuR2t2tqTipX5oQxtA8VIF+DaT/lE+KsVRWX0 pvLzx2omRWqAX8gFK3iAbmgIKrDAMiXXk8Cfxm4BHaZoYOMCKTz6hYIetYFN/Yto8L67 0ZeUNa6AWImmVnzAQ3xwiw9NdV2tL3GhlfPlnlyg3MkZiGJLqtthEyUACLqXTY1T6jb1 MbazOyhCIvRVjVbCn4QYuoCLhtM0lZn0Ym5m0/KLy397x1cfBOwt8qQXhBfrNpQ3hGAd Tvj8fNgL9N1HxN8slU0aO5P+4T0rhYwhzznbLVQmQFLpsDEd/jq8PSirQAGTw83KQsgK mA/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=O8fUt4pO+XHuFO5xT5Dt4jN0bSb0IjaRl69C7+BMdDg=; b=00KB2vHytWAjQQqI85dkzotYczKkvmVFISvS2p2Yp36Cej2BSShkDdVpA2e+ZU6LlL kkIJz2K6HCWsEl6LsLLC/C0ZrpFqSqgTTzA/Y2sswM5pdes6GM8ijQbyJOd/JBwBE8Jx cx79J+i45QpeiAUjlaZQwzRt0l5brgQhI49WZqzWsY8BYuEOTJWJ0/YPr5TKUk/HAJ/O puRI90I947qlZ2Ntow3GXlVodRyir36nkM+rVeJCY1tvdAho1lt66XFK4Rmdu7YYWEzw 4vWAth04PtznhwmbyMCA8mOd40wjb6Ra7ja/ya/JoScIKeiUpsqn1o+XxsyfjGJ2NUhv QtzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LcgNg+6N; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb30-20020a1709071c9e00b0093f50f55532si7144780ejc.672.2023.03.27.02.11.04; Mon, 27 Mar 2023 02:11:28 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LcgNg+6N; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232457AbjC0JHp (ORCPT + 99 others); Mon, 27 Mar 2023 05:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233304AbjC0JHI (ORCPT ); Mon, 27 Mar 2023 05:07:08 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5DA54EFD; Mon, 27 Mar 2023 02:06:33 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id l7so7048117pjg.5; Mon, 27 Mar 2023 02:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679907993; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=O8fUt4pO+XHuFO5xT5Dt4jN0bSb0IjaRl69C7+BMdDg=; b=LcgNg+6NtV1SL1HZQ41SfLf4+zxLtfV9YXrxPK7vJ5t3NhP4X/JdG0vszd1eEYhVEi Lx0vA1NU1gcwAQ8PRLarirt1b17dx3ulnzdHVH3i9FyW/z845IxGIo4PEVkQAxINU0kz O2BbcKQHUzwTxWoIs4Nl9/n8vmpmDFssbVjkJtANNenJpDzQQM3coQDZhgRLEqCACobQ NA26ZrjjI4CcToPS5twfuS0xEWwLRWevqsCZH/kaaBMSyPDAgQYA+YrSDAEcICpyyYH/ KiS0tgcgHQbHeXuzAIOXjLgCE46vLsxSFJunPzgAq2e+Lc8OPBQ5cmJX9U/Y8FcU9ki2 CzVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679907993; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=O8fUt4pO+XHuFO5xT5Dt4jN0bSb0IjaRl69C7+BMdDg=; b=1UyTcrX+UqTns8O0csW/dsL36bsNxwbNH430svLFoKY69i807b8w6lSynSlIUFTiN+ 3I84cX9b6b6y5fMWLAZtzxCgJ0QDVj13p7tp8f0v+8+X2tc6t8FZlnlO4dvJlj9gNnVG Dl4Wu3ErUyhVLSkdWByxy8Yjd1ZbkAXa1YgeHafARJvRSTPaa3MUSaqnnMZ6cAeFF+0n o9vLY1f1KNHXdJeyHJqntpi42bqoJhyfEEKPYVyMfsoTX0y5AC9Qbek2KcWJqm5jCq3G tySBy/3fj/XP9BmzUs7ytdDL+2k0EvN7QAHEq6nfxijdMsWZpBFKXyM6hzwIttkWmOP4 jdyQ== X-Gm-Message-State: AAQBX9dEAFC8U4fD6vR3M4AXh56/vCNMNtydlwxHSaIC3Jj/rCdVq67f klY3vMyFRFDpK6Ic2QOETP0= X-Received: by 2002:a17:903:28c8:b0:1a2:19c1:a974 with SMTP id kv8-20020a17090328c800b001a219c1a974mr8678082plb.68.1679907993332; Mon, 27 Mar 2023 02:06:33 -0700 (PDT) Received: from debian.me (subs02-180-214-232-16.three.co.id. [180.214.232.16]) by smtp.gmail.com with ESMTPSA id l18-20020a170902d35200b0019468fe44d3sm18629240plk.25.2023.03.27.02.06.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 02:06:32 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 6B322106758; Mon, 27 Mar 2023 16:06:29 +0700 (WIB) Date: Mon, 27 Mar 2023 16:06:28 +0700 From: Bagas Sanjaya To: Hao Zhang , Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , Konrad Dybcio , Mike Leach , Rob Herring , Krzysztof Kozlowski , Andy Gross , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jonathan Corbet Cc: Leo Yan , Greg Kroah-Hartman , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tingwei Zhang , Jinlong Mao , Yuanfang Zhang , Tao Zhang , Trilok Soni , linux-arm-msm@vger.kernel.org, Bjorn Andersson , linux-doc@vger.kernel.org Subject: Re: [PATCH v2 3/3] Documentation: trace: Add documentation for Coresight Dummy Trace Message-ID: References: <20230324061608.33609-1-quic_hazha@quicinc.com> <20230324061608.33609-4-quic_hazha@quicinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Nhj3/4xBxIE5HRwH" Content-Disposition: inline In-Reply-To: <20230324061608.33609-4-quic_hazha@quicinc.com> X-Spam-Status: No, score=1.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 --Nhj3/4xBxIE5HRwH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 24, 2023 at 02:16:08PM +0800, Hao Zhang wrote: > +Sysfs files and directories > +--------------------------- > + > +Root: ``/sys/bus/coresight/devices/dummy`` > + > +---- > + > +:File: ``enable_source`` (RW) > +:Notes: > + - > 0 : enable the datasets of dummy source. > + > + - =3D 0 : disable the datasets of dummy source. > + > +:Syntax: > + ``echo 1 > enable_source`` > + > +---- > + > +:File: ``enable_sink`` (RW) > +:Notes: > + - > 0 : enable the datasets of dummy sink. > + > + - =3D 0 : disable the datasets of dummy sink. > + > +:Syntax: > + ``echo 1 > enable_sink`` Is enable_{source,sink} integer-valued or bit (0/1)? In other words, is it OK to `echo 2` to both sysfs files? > + > +---- > + > +Config details > +--------------------------- > + > +There are two types of nodes, dummy sink and dummy source. The nodes > +should be observed at the coresight path > +"/sys/bus/coresight/devices". For consistency, inline this sysfs also (thus ``/sys/bus/coresight/devices``. > +e.g. e.g.:: (make the shell snippet below code block) > +/sys/bus/coresight/devices # ls -l | grep dummy IMO I prefer `PS1=3D\$` (that is, omit the directory). Alternatively, you can write `ls -l /sys/bus/coresight/devices | grep dummy` (specify the directory to `ls`). Thanks. --=20 An old man doll... just what I always wanted! - Clara --Nhj3/4xBxIE5HRwH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZCFcjwAKCRD2uYlJVVFO o1gMAP9hA3XoJ+1BWv3KOewMhgRMYIwCugU1u1SLb6+ulgXKKQD8DNcMJrpatOcs cyouf4vyhI6HmCRIK5V0aHosRUkHrQM= =Bs3E -----END PGP SIGNATURE----- --Nhj3/4xBxIE5HRwH--