Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5673C636D7 for ; Wed, 8 Feb 2023 16:37:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbjBHQg7 (ORCPT ); Wed, 8 Feb 2023 11:36:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230378AbjBHQgs (ORCPT ); Wed, 8 Feb 2023 11:36:48 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E5DA246088; Wed, 8 Feb 2023 08:36:43 -0800 (PST) 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 1CC0B1477; Wed, 8 Feb 2023 08:37:26 -0800 (PST) Received: from [10.57.75.176] (unknown [10.57.75.176]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BA8243F8C6; Wed, 8 Feb 2023 08:36:41 -0800 (PST) Message-ID: Date: Wed, 8 Feb 2023 16:36:40 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] coresight: core: Add sysfs node to reset all sources and sinks To: Mike Leach , Mao Jinlong Cc: Mathieu Poirier , Leo Yan , Alexander Shishkin , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Tingwei Zhang , Yuanfang Zhang , Tao Zhang , Hao Zhang References: <20230208111630.20132-1-quic_jinlmao@quicinc.com> From: Suzuki K Poulose In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/02/2023 16:20, Mike Leach wrote: > Quick correction - you need to look for enable_source / enable_sink > files and disable those that are currently '1' > > Mike > > On Wed, 8 Feb 2023 at 16:16, Mike Leach wrote: >> >> Hi >> >> As this is a sysfs only update - would it not be easier to simply use >> a shell script to iterate through coresight/devices/ looking for >> disable_source / disable_sink files and setting those accordingly? >> >> See tools/perf/tests/shell/test_arm_coresight.sh for an example of a >> script that does similar iteration to test coresight in perf >> +1 Suzuki