perf cs-etm: Allow no CoreSight sink to be specified on command line
authorMike Leach <mike.leach@linaro.org>
Tue, 16 Jun 2020 16:40:41 +0000 (17:40 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Jun 2020 19:28:09 +0000 (16:28 -0300)
Adjust the handling of the session sink selection to allow no sink to be
selected on the command line. This then forwards the sink selection to
the CoreSight infrastructure which will attempt to select a sink based
on the default sink select priorities.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Tested-by: Leo Yan <leo.yan@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/arm/util/cs-etm.c

index cea5e33d61d2b5be03b86c045fac209cda90356c..cad7bf78341381649ec4e253a0c976461238c1e0 100644 (file)
@@ -243,10 +243,10 @@ static int cs_etm_set_sink_attr(struct perf_pmu *pmu,
        }
 
        /*
-        * No sink was provided on the command line - for _now_ treat
-        * this as an error.
+        * No sink was provided on the command line - allow the CoreSight
+        * system to look for a default
         */
-       return ret;
+       return 0;
 }
 
 static int cs_etm_recording_options(struct auxtrace_record *itr,