lkml.org 
[lkml]   [2023]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] coresight: core: Add sysfs node to reset all sources and sinks
From

On 2/9/2023 12:36 AM, Suzuki K Poulose wrote:
> 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 <mike.leach@linaro.org> 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

Hi Mike & Suzuki,

Sometimes user just want to have some quick test from PC with adb commands.
It is very easy to reset all sources and sinks' status by command below.
echo 1 > /sys/bus/coresight/reset_source_sink

Preparing the script for test is not easy for users who are not familiar
with the coresight framework.

Thanks
Jinlong Mao

>
>

\
 
 \ /
  Last update: 2023-03-27 00:15    [W:0.060 / U:0.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site