OSDN Git Service

coresight: pmu: Adding ITRACE property to cs_etm PMU
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 25 Apr 2019 19:52:51 +0000 (13:52 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 20:00:16 +0000 (22:00 +0200)
Add to the capabilities the ITRACE property so that ITRACE START events
are generated when the PMU is switched on by the core.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Tested-by: Leo Yan <leo.yan@linaro.org>
Tested-by: Robert Walker <robert.walker@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm-perf.c

index 4d5a2b9..25ae56e 100644 (file)
@@ -566,7 +566,8 @@ static int __init etm_perf_init(void)
 {
        int ret;
 
-       etm_pmu.capabilities            = PERF_PMU_CAP_EXCLUSIVE;
+       etm_pmu.capabilities            = (PERF_PMU_CAP_EXCLUSIVE |
+                                          PERF_PMU_CAP_ITRACE);
 
        etm_pmu.attr_groups             = etm_pmu_attr_groups;
        etm_pmu.task_ctx_nr             = perf_sw_context;