linux/drivers/perf
Suzuki K Poulose 7dfc8db1d1 arm_pmu: Tidy up clear_event_idx call backs
The armpmu uses get_event_idx callback to allocate an event
counter for a given event, which marks the selected counter
as "used". Now, when we delete the counter, the arm_pmu goes
ahead and clears the "used" bit and then invokes the "clear_event_idx"
call back, which kind of splits the job between the core code
and the backend. To keep things tidy, mandate the implementation
of clear_event_idx() and add it for exisiting backends.
This will be useful for adding the chained event support, where
we leave the event idx maintenance to the backend.

Also, when an event is removed from the PMU, reset the hw.idx
to indicate that a counter is not allocated for this event,
to help the backends do better checks. This will be also used
for the chain counter support.

Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2018-07-10 18:19:02 +01:00
..
hisilicon perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
arm_dsu_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
arm_pmu_acpi.c arm_pmu: acpi: request IRQs up-front 2018-02-20 11:34:54 +00:00
arm_pmu_platform.c drivers/perf: Initialise return value in armpmu_request_irqs() 2018-07-04 11:50:50 +01:00
arm_pmu.c arm_pmu: Tidy up clear_event_idx call backs 2018-07-10 18:19:02 +01:00
arm_spe_pmu.c perf: simplify getting .drvdata 2018-05-21 18:02:35 +01:00
arm-cci.c perf/arm-cci: Remove VLA usage 2018-07-02 12:50:03 +01:00
arm-ccn.c drivers/perf: arm-ccn: don't log to dmesg in event_init 2018-05-21 18:21:32 +01:00
Kconfig drivers/perf: Remove ARM_SPE_PMU explicit PERF_EVENTS dependency 2018-05-22 17:11:12 +01:00
Makefile drivers/bus: Split Arm CCI driver 2018-03-06 17:26:17 +01:00
qcom_l2_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
qcom_l3_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
xgene_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00