linux/drivers/perf
Hoan Tran cbb72a3c19 drivers/perf: xgene: Add CPU hotplug support
If the CPU assigned to the xgene PMU is taken offline, then subsequent
perf invocations on the PMU will fail:

  # echo 0 > /sys/devices/system/cpu/cpu0/online
  # perf stat -a -e l3c0/cycle-count/,l3c0/write/ sleep 1
    Error:
    The sys_perf_event_open() syscall returned with 19 (No such device) for event (l3c0/cycle-count/).
    /bin/dmesg may provide additional information.
    No CONFIG_PERF_EVENTS=y kernel support configured?

This patch implements a hotplug notifier in the xgene PMU driver so that
the PMU context is migrated to another online CPU should its assigned
CPU disappear.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Hoan Tran <hoan.tran@amperecomputing.com>
[will: Made naming of new cpuhp_state enum entry consistent]
Signed-off-by: Will Deacon <will.deacon@arm.com>
2018-11-21 16:28:00 +00:00
..
hisilicon drivers/perf: hisi: update the sccl_id/ccl_id when MT is supported 2018-07-24 15:40:43 +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 perf: Convert to using %pOFn instead of device_node.name 2018-10-01 11:33:17 +01:00
arm_pmu.c arm64: perf: Reject stand-alone CHAIN events for PMUv3 2018-10-12 15:25:17 +01:00
arm_spe_pmu.c perf: arm_spe: Enable automatic DT loading 2018-11-21 13:16:34 +00:00
arm-cci.c perf/arm-cci: Remove VLA usage 2018-07-02 12:50:03 +01:00
arm-ccn.c Char/Misc driver patches for 4.19-rc1 2018-08-18 11:04:51 -07: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 drivers/perf: xgene: Add CPU hotplug support 2018-11-21 16:28:00 +00:00