cpu_pmu 272 arch/arm/kernel/perf_event_v6.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 274 arch/arm/kernel/perf_event_v6.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 306 arch/arm/kernel/perf_event_v6.c armv6pmu_handle_irq(struct arm_pmu *cpu_pmu) cpu_pmu 310 arch/arm/kernel/perf_event_v6.c struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 326 arch/arm/kernel/perf_event_v6.c for (idx = 0; idx < cpu_pmu->num_events; ++idx) { cpu_pmu 348 arch/arm/kernel/perf_event_v6.c cpu_pmu->disable(event); cpu_pmu 363 arch/arm/kernel/perf_event_v6.c static void armv6pmu_start(struct arm_pmu *cpu_pmu) cpu_pmu 366 arch/arm/kernel/perf_event_v6.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 375 arch/arm/kernel/perf_event_v6.c static void armv6pmu_stop(struct arm_pmu *cpu_pmu) cpu_pmu 378 arch/arm/kernel/perf_event_v6.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 423 arch/arm/kernel/perf_event_v6.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 425 arch/arm/kernel/perf_event_v6.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 458 arch/arm/kernel/perf_event_v6.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 460 arch/arm/kernel/perf_event_v6.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 492 arch/arm/kernel/perf_event_v6.c static void armv6pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 494 arch/arm/kernel/perf_event_v6.c cpu_pmu->handle_irq = armv6pmu_handle_irq; cpu_pmu 495 arch/arm/kernel/perf_event_v6.c cpu_pmu->enable = armv6pmu_enable_event; cpu_pmu 496 arch/arm/kernel/perf_event_v6.c cpu_pmu->disable = armv6pmu_disable_event; cpu_pmu 497 arch/arm/kernel/perf_event_v6.c cpu_pmu->read_counter = armv6pmu_read_counter; cpu_pmu 498 arch/arm/kernel/perf_event_v6.c cpu_pmu->write_counter = armv6pmu_write_counter; cpu_pmu 499 arch/arm/kernel/perf_event_v6.c cpu_pmu->get_event_idx = armv6pmu_get_event_idx; cpu_pmu 500 arch/arm/kernel/perf_event_v6.c cpu_pmu->clear_event_idx = armv6pmu_clear_event_idx; cpu_pmu 501 arch/arm/kernel/perf_event_v6.c cpu_pmu->start = armv6pmu_start; cpu_pmu 502 arch/arm/kernel/perf_event_v6.c cpu_pmu->stop = armv6pmu_stop; cpu_pmu 503 arch/arm/kernel/perf_event_v6.c cpu_pmu->map_event = armv6_map_event; cpu_pmu 504 arch/arm/kernel/perf_event_v6.c cpu_pmu->num_events = 3; cpu_pmu 507 arch/arm/kernel/perf_event_v6.c static int armv6_1136_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 509 arch/arm/kernel/perf_event_v6.c armv6pmu_init(cpu_pmu); cpu_pmu 510 arch/arm/kernel/perf_event_v6.c cpu_pmu->name = "armv6_1136"; cpu_pmu 514 arch/arm/kernel/perf_event_v6.c static int armv6_1156_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 516 arch/arm/kernel/perf_event_v6.c armv6pmu_init(cpu_pmu); cpu_pmu 517 arch/arm/kernel/perf_event_v6.c cpu_pmu->name = "armv6_1156"; cpu_pmu 521 arch/arm/kernel/perf_event_v6.c static int armv6_1176_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 523 arch/arm/kernel/perf_event_v6.c armv6pmu_init(cpu_pmu); cpu_pmu 524 arch/arm/kernel/perf_event_v6.c cpu_pmu->name = "armv6_1176"; cpu_pmu 542 arch/arm/kernel/perf_event_v6.c static int armv6mpcore_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 544 arch/arm/kernel/perf_event_v6.c cpu_pmu->name = "armv6_11mpcore"; cpu_pmu 545 arch/arm/kernel/perf_event_v6.c cpu_pmu->handle_irq = armv6pmu_handle_irq; cpu_pmu 546 arch/arm/kernel/perf_event_v6.c cpu_pmu->enable = armv6pmu_enable_event; cpu_pmu 547 arch/arm/kernel/perf_event_v6.c cpu_pmu->disable = armv6mpcore_pmu_disable_event; cpu_pmu 548 arch/arm/kernel/perf_event_v6.c cpu_pmu->read_counter = armv6pmu_read_counter; cpu_pmu 549 arch/arm/kernel/perf_event_v6.c cpu_pmu->write_counter = armv6pmu_write_counter; cpu_pmu 550 arch/arm/kernel/perf_event_v6.c cpu_pmu->get_event_idx = armv6pmu_get_event_idx; cpu_pmu 551 arch/arm/kernel/perf_event_v6.c cpu_pmu->clear_event_idx = armv6pmu_clear_event_idx; cpu_pmu 552 arch/arm/kernel/perf_event_v6.c cpu_pmu->start = armv6pmu_start; cpu_pmu 553 arch/arm/kernel/perf_event_v6.c cpu_pmu->stop = armv6pmu_stop; cpu_pmu 554 arch/arm/kernel/perf_event_v6.c cpu_pmu->map_event = armv6mpcore_map_event; cpu_pmu 555 arch/arm/kernel/perf_event_v6.c cpu_pmu->num_events = 3; cpu_pmu 656 arch/arm/kernel/perf_event_v7.c #define ARMV7_IDX_COUNTER_LAST(cpu_pmu) \ cpu_pmu 657 arch/arm/kernel/perf_event_v7.c (ARMV7_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1) cpu_pmu 728 arch/arm/kernel/perf_event_v7.c static inline int armv7_pmnc_counter_valid(struct arm_pmu *cpu_pmu, int idx) cpu_pmu 731 arch/arm/kernel/perf_event_v7.c idx <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); cpu_pmu 748 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 753 arch/arm/kernel/perf_event_v7.c if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { cpu_pmu 768 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 772 arch/arm/kernel/perf_event_v7.c if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { cpu_pmu 833 arch/arm/kernel/perf_event_v7.c static void armv7_pmnc_dump_regs(struct arm_pmu *cpu_pmu) cpu_pmu 859 arch/arm/kernel/perf_event_v7.c cnt <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); cnt++) { cpu_pmu 875 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 876 arch/arm/kernel/perf_event_v7.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 879 arch/arm/kernel/perf_event_v7.c if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { cpu_pmu 901 arch/arm/kernel/perf_event_v7.c if (cpu_pmu->set_event_filter || idx != ARMV7_IDX_CYCLE_COUNTER) cpu_pmu 921 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 922 arch/arm/kernel/perf_event_v7.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 925 arch/arm/kernel/perf_event_v7.c if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { cpu_pmu 949 arch/arm/kernel/perf_event_v7.c static irqreturn_t armv7pmu_handle_irq(struct arm_pmu *cpu_pmu) cpu_pmu 953 arch/arm/kernel/perf_event_v7.c struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 973 arch/arm/kernel/perf_event_v7.c for (idx = 0; idx < cpu_pmu->num_events; ++idx) { cpu_pmu 995 arch/arm/kernel/perf_event_v7.c cpu_pmu->disable(event); cpu_pmu 1010 arch/arm/kernel/perf_event_v7.c static void armv7pmu_start(struct arm_pmu *cpu_pmu) cpu_pmu 1013 arch/arm/kernel/perf_event_v7.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 1021 arch/arm/kernel/perf_event_v7.c static void armv7pmu_stop(struct arm_pmu *cpu_pmu) cpu_pmu 1024 arch/arm/kernel/perf_event_v7.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 1036 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 1052 arch/arm/kernel/perf_event_v7.c for (idx = ARMV7_IDX_COUNTER0; idx < cpu_pmu->num_events; ++idx) { cpu_pmu 1095 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = (struct arm_pmu *)info; cpu_pmu 1096 arch/arm/kernel/perf_event_v7.c u32 idx, nb_cnt = cpu_pmu->num_events, val; cpu_pmu 1098 arch/arm/kernel/perf_event_v7.c if (cpu_pmu->secure_access) { cpu_pmu 1168 arch/arm/kernel/perf_event_v7.c static void armv7pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1170 arch/arm/kernel/perf_event_v7.c cpu_pmu->handle_irq = armv7pmu_handle_irq; cpu_pmu 1171 arch/arm/kernel/perf_event_v7.c cpu_pmu->enable = armv7pmu_enable_event; cpu_pmu 1172 arch/arm/kernel/perf_event_v7.c cpu_pmu->disable = armv7pmu_disable_event; cpu_pmu 1173 arch/arm/kernel/perf_event_v7.c cpu_pmu->read_counter = armv7pmu_read_counter; cpu_pmu 1174 arch/arm/kernel/perf_event_v7.c cpu_pmu->write_counter = armv7pmu_write_counter; cpu_pmu 1175 arch/arm/kernel/perf_event_v7.c cpu_pmu->get_event_idx = armv7pmu_get_event_idx; cpu_pmu 1176 arch/arm/kernel/perf_event_v7.c cpu_pmu->clear_event_idx = armv7pmu_clear_event_idx; cpu_pmu 1177 arch/arm/kernel/perf_event_v7.c cpu_pmu->start = armv7pmu_start; cpu_pmu 1178 arch/arm/kernel/perf_event_v7.c cpu_pmu->stop = armv7pmu_stop; cpu_pmu 1179 arch/arm/kernel/perf_event_v7.c cpu_pmu->reset = armv7pmu_reset; cpu_pmu 1200 arch/arm/kernel/perf_event_v7.c static int armv7_a8_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1202 arch/arm/kernel/perf_event_v7.c armv7pmu_init(cpu_pmu); cpu_pmu 1203 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_cortex_a8"; cpu_pmu 1204 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = armv7_a8_map_event; cpu_pmu 1205 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1207 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1209 arch/arm/kernel/perf_event_v7.c return armv7_probe_num_events(cpu_pmu); cpu_pmu 1212 arch/arm/kernel/perf_event_v7.c static int armv7_a9_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1214 arch/arm/kernel/perf_event_v7.c armv7pmu_init(cpu_pmu); cpu_pmu 1215 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_cortex_a9"; cpu_pmu 1216 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = armv7_a9_map_event; cpu_pmu 1217 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1219 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1221 arch/arm/kernel/perf_event_v7.c return armv7_probe_num_events(cpu_pmu); cpu_pmu 1224 arch/arm/kernel/perf_event_v7.c static int armv7_a5_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1226 arch/arm/kernel/perf_event_v7.c armv7pmu_init(cpu_pmu); cpu_pmu 1227 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_cortex_a5"; cpu_pmu 1228 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = armv7_a5_map_event; cpu_pmu 1229 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1231 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1233 arch/arm/kernel/perf_event_v7.c return armv7_probe_num_events(cpu_pmu); cpu_pmu 1236 arch/arm/kernel/perf_event_v7.c static int armv7_a15_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1238 arch/arm/kernel/perf_event_v7.c armv7pmu_init(cpu_pmu); cpu_pmu 1239 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_cortex_a15"; cpu_pmu 1240 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = armv7_a15_map_event; cpu_pmu 1241 arch/arm/kernel/perf_event_v7.c cpu_pmu->set_event_filter = armv7pmu_set_event_filter; cpu_pmu 1242 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1244 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1246 arch/arm/kernel/perf_event_v7.c return armv7_probe_num_events(cpu_pmu); cpu_pmu 1249 arch/arm/kernel/perf_event_v7.c static int armv7_a7_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1251 arch/arm/kernel/perf_event_v7.c armv7pmu_init(cpu_pmu); cpu_pmu 1252 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_cortex_a7"; cpu_pmu 1253 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = armv7_a7_map_event; cpu_pmu 1254 arch/arm/kernel/perf_event_v7.c cpu_pmu->set_event_filter = armv7pmu_set_event_filter; cpu_pmu 1255 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1257 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1259 arch/arm/kernel/perf_event_v7.c return armv7_probe_num_events(cpu_pmu); cpu_pmu 1262 arch/arm/kernel/perf_event_v7.c static int armv7_a12_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1264 arch/arm/kernel/perf_event_v7.c armv7pmu_init(cpu_pmu); cpu_pmu 1265 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_cortex_a12"; cpu_pmu 1266 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = armv7_a12_map_event; cpu_pmu 1267 arch/arm/kernel/perf_event_v7.c cpu_pmu->set_event_filter = armv7pmu_set_event_filter; cpu_pmu 1268 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1270 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1272 arch/arm/kernel/perf_event_v7.c return armv7_probe_num_events(cpu_pmu); cpu_pmu 1275 arch/arm/kernel/perf_event_v7.c static int armv7_a17_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1277 arch/arm/kernel/perf_event_v7.c int ret = armv7_a12_pmu_init(cpu_pmu); cpu_pmu 1278 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_cortex_a17"; cpu_pmu 1279 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1281 arch/arm/kernel/perf_event_v7.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1498 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 1499 arch/arm/kernel/perf_event_v7.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 1524 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 1525 arch/arm/kernel/perf_event_v7.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 1558 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = info; cpu_pmu 1559 arch/arm/kernel/perf_event_v7.c u32 idx, nb_cnt = cpu_pmu->num_events; cpu_pmu 1585 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 1597 arch/arm/kernel/perf_event_v7.c bit += ARMV7_IDX_COUNTER_LAST(cpu_pmu) + 1; cpu_pmu 1654 arch/arm/kernel/perf_event_v7.c static int krait_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1656 arch/arm/kernel/perf_event_v7.c armv7pmu_init(cpu_pmu); cpu_pmu 1657 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_krait"; cpu_pmu 1659 arch/arm/kernel/perf_event_v7.c if (of_property_read_bool(cpu_pmu->plat_device->dev.of_node, cpu_pmu 1661 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = krait_map_event_no_branch; cpu_pmu 1663 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = krait_map_event; cpu_pmu 1664 arch/arm/kernel/perf_event_v7.c cpu_pmu->set_event_filter = armv7pmu_set_event_filter; cpu_pmu 1665 arch/arm/kernel/perf_event_v7.c cpu_pmu->reset = krait_pmu_reset; cpu_pmu 1666 arch/arm/kernel/perf_event_v7.c cpu_pmu->enable = krait_pmu_enable_event; cpu_pmu 1667 arch/arm/kernel/perf_event_v7.c cpu_pmu->disable = krait_pmu_disable_event; cpu_pmu 1668 arch/arm/kernel/perf_event_v7.c cpu_pmu->get_event_idx = krait_pmu_get_event_idx; cpu_pmu 1669 arch/arm/kernel/perf_event_v7.c cpu_pmu->clear_event_idx = krait_pmu_clear_event_idx; cpu_pmu 1670 arch/arm/kernel/perf_event_v7.c return armv7_probe_num_events(cpu_pmu); cpu_pmu 1831 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 1832 arch/arm/kernel/perf_event_v7.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 1857 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 1858 arch/arm/kernel/perf_event_v7.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 1891 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = info; cpu_pmu 1892 arch/arm/kernel/perf_event_v7.c u32 idx, nb_cnt = cpu_pmu->num_events; cpu_pmu 1918 arch/arm/kernel/perf_event_v7.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 1930 arch/arm/kernel/perf_event_v7.c bit += ARMV7_IDX_COUNTER_LAST(cpu_pmu) + 1; cpu_pmu 1984 arch/arm/kernel/perf_event_v7.c static int scorpion_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1986 arch/arm/kernel/perf_event_v7.c armv7pmu_init(cpu_pmu); cpu_pmu 1987 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_scorpion"; cpu_pmu 1988 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = scorpion_map_event; cpu_pmu 1989 arch/arm/kernel/perf_event_v7.c cpu_pmu->reset = scorpion_pmu_reset; cpu_pmu 1990 arch/arm/kernel/perf_event_v7.c cpu_pmu->enable = scorpion_pmu_enable_event; cpu_pmu 1991 arch/arm/kernel/perf_event_v7.c cpu_pmu->disable = scorpion_pmu_disable_event; cpu_pmu 1992 arch/arm/kernel/perf_event_v7.c cpu_pmu->get_event_idx = scorpion_pmu_get_event_idx; cpu_pmu 1993 arch/arm/kernel/perf_event_v7.c cpu_pmu->clear_event_idx = scorpion_pmu_clear_event_idx; cpu_pmu 1994 arch/arm/kernel/perf_event_v7.c return armv7_probe_num_events(cpu_pmu); cpu_pmu 1997 arch/arm/kernel/perf_event_v7.c static int scorpion_mp_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1999 arch/arm/kernel/perf_event_v7.c armv7pmu_init(cpu_pmu); cpu_pmu 2000 arch/arm/kernel/perf_event_v7.c cpu_pmu->name = "armv7_scorpion_mp"; cpu_pmu 2001 arch/arm/kernel/perf_event_v7.c cpu_pmu->map_event = scorpion_map_event; cpu_pmu 2002 arch/arm/kernel/perf_event_v7.c cpu_pmu->reset = scorpion_pmu_reset; cpu_pmu 2003 arch/arm/kernel/perf_event_v7.c cpu_pmu->enable = scorpion_pmu_enable_event; cpu_pmu 2004 arch/arm/kernel/perf_event_v7.c cpu_pmu->disable = scorpion_pmu_disable_event; cpu_pmu 2005 arch/arm/kernel/perf_event_v7.c cpu_pmu->get_event_idx = scorpion_pmu_get_event_idx; cpu_pmu 2006 arch/arm/kernel/perf_event_v7.c cpu_pmu->clear_event_idx = scorpion_pmu_clear_event_idx; cpu_pmu 2007 arch/arm/kernel/perf_event_v7.c return armv7_probe_num_events(cpu_pmu); cpu_pmu 145 arch/arm/kernel/perf_event_xscale.c xscale1pmu_handle_irq(struct arm_pmu *cpu_pmu) cpu_pmu 149 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 173 arch/arm/kernel/perf_event_xscale.c for (idx = 0; idx < cpu_pmu->num_events; ++idx) { cpu_pmu 190 arch/arm/kernel/perf_event_xscale.c cpu_pmu->disable(event); cpu_pmu 207 arch/arm/kernel/perf_event_xscale.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 209 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 243 arch/arm/kernel/perf_event_xscale.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 245 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 301 arch/arm/kernel/perf_event_xscale.c static void xscale1pmu_start(struct arm_pmu *cpu_pmu) cpu_pmu 304 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 313 arch/arm/kernel/perf_event_xscale.c static void xscale1pmu_stop(struct arm_pmu *cpu_pmu) cpu_pmu 316 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 370 arch/arm/kernel/perf_event_xscale.c static int xscale1pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 372 arch/arm/kernel/perf_event_xscale.c cpu_pmu->name = "armv5_xscale1"; cpu_pmu 373 arch/arm/kernel/perf_event_xscale.c cpu_pmu->handle_irq = xscale1pmu_handle_irq; cpu_pmu 374 arch/arm/kernel/perf_event_xscale.c cpu_pmu->enable = xscale1pmu_enable_event; cpu_pmu 375 arch/arm/kernel/perf_event_xscale.c cpu_pmu->disable = xscale1pmu_disable_event; cpu_pmu 376 arch/arm/kernel/perf_event_xscale.c cpu_pmu->read_counter = xscale1pmu_read_counter; cpu_pmu 377 arch/arm/kernel/perf_event_xscale.c cpu_pmu->write_counter = xscale1pmu_write_counter; cpu_pmu 378 arch/arm/kernel/perf_event_xscale.c cpu_pmu->get_event_idx = xscale1pmu_get_event_idx; cpu_pmu 379 arch/arm/kernel/perf_event_xscale.c cpu_pmu->clear_event_idx = xscalepmu_clear_event_idx; cpu_pmu 380 arch/arm/kernel/perf_event_xscale.c cpu_pmu->start = xscale1pmu_start; cpu_pmu 381 arch/arm/kernel/perf_event_xscale.c cpu_pmu->stop = xscale1pmu_stop; cpu_pmu 382 arch/arm/kernel/perf_event_xscale.c cpu_pmu->map_event = xscale_map_event; cpu_pmu 383 arch/arm/kernel/perf_event_xscale.c cpu_pmu->num_events = 3; cpu_pmu 497 arch/arm/kernel/perf_event_xscale.c xscale2pmu_handle_irq(struct arm_pmu *cpu_pmu) cpu_pmu 501 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 519 arch/arm/kernel/perf_event_xscale.c for (idx = 0; idx < cpu_pmu->num_events; ++idx) { cpu_pmu 536 arch/arm/kernel/perf_event_xscale.c cpu_pmu->disable(event); cpu_pmu 553 arch/arm/kernel/perf_event_xscale.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 555 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 599 arch/arm/kernel/perf_event_xscale.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 601 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 664 arch/arm/kernel/perf_event_xscale.c static void xscale2pmu_start(struct arm_pmu *cpu_pmu) cpu_pmu 667 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 676 arch/arm/kernel/perf_event_xscale.c static void xscale2pmu_stop(struct arm_pmu *cpu_pmu) cpu_pmu 679 arch/arm/kernel/perf_event_xscale.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 739 arch/arm/kernel/perf_event_xscale.c static int xscale2pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 741 arch/arm/kernel/perf_event_xscale.c cpu_pmu->name = "armv5_xscale2"; cpu_pmu 742 arch/arm/kernel/perf_event_xscale.c cpu_pmu->handle_irq = xscale2pmu_handle_irq; cpu_pmu 743 arch/arm/kernel/perf_event_xscale.c cpu_pmu->enable = xscale2pmu_enable_event; cpu_pmu 744 arch/arm/kernel/perf_event_xscale.c cpu_pmu->disable = xscale2pmu_disable_event; cpu_pmu 745 arch/arm/kernel/perf_event_xscale.c cpu_pmu->read_counter = xscale2pmu_read_counter; cpu_pmu 746 arch/arm/kernel/perf_event_xscale.c cpu_pmu->write_counter = xscale2pmu_write_counter; cpu_pmu 747 arch/arm/kernel/perf_event_xscale.c cpu_pmu->get_event_idx = xscale2pmu_get_event_idx; cpu_pmu 748 arch/arm/kernel/perf_event_xscale.c cpu_pmu->clear_event_idx = xscalepmu_clear_event_idx; cpu_pmu 749 arch/arm/kernel/perf_event_xscale.c cpu_pmu->start = xscale2pmu_start; cpu_pmu 750 arch/arm/kernel/perf_event_xscale.c cpu_pmu->stop = xscale2pmu_stop; cpu_pmu 751 arch/arm/kernel/perf_event_xscale.c cpu_pmu->map_event = xscale_map_event; cpu_pmu 752 arch/arm/kernel/perf_event_xscale.c cpu_pmu->num_events = 5; cpu_pmu 297 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu = container_of(pmu, struct arm_pmu, pmu); cpu_pmu 303 arch/arm64/kernel/perf_event.c test_bit(pmu_attr->id, cpu_pmu->pmceid_bitmap)) cpu_pmu 308 arch/arm64/kernel/perf_event.c test_bit(pmu_attr->id, cpu_pmu->pmceid_ext_bitmap)) cpu_pmu 344 arch/arm64/kernel/perf_event.c #define ARMV8_IDX_COUNTER_LAST(cpu_pmu) \ cpu_pmu 345 arch/arm64/kernel/perf_event.c (ARMV8_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1) cpu_pmu 389 arch/arm64/kernel/perf_event.c static inline int armv8pmu_counter_valid(struct arm_pmu *cpu_pmu, int idx) cpu_pmu 392 arch/arm64/kernel/perf_event.c idx <= ARMV8_IDX_COUNTER_LAST(cpu_pmu); cpu_pmu 426 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 431 arch/arm64/kernel/perf_event.c if (!armv8pmu_counter_valid(cpu_pmu, idx)) cpu_pmu 463 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 467 arch/arm64/kernel/perf_event.c if (!armv8pmu_counter_valid(cpu_pmu, idx)) cpu_pmu 611 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 612 arch/arm64/kernel/perf_event.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 646 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 647 arch/arm64/kernel/perf_event.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 667 arch/arm64/kernel/perf_event.c static void armv8pmu_start(struct arm_pmu *cpu_pmu) cpu_pmu 670 arch/arm64/kernel/perf_event.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 678 arch/arm64/kernel/perf_event.c static void armv8pmu_stop(struct arm_pmu *cpu_pmu) cpu_pmu 681 arch/arm64/kernel/perf_event.c struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 689 arch/arm64/kernel/perf_event.c static irqreturn_t armv8pmu_handle_irq(struct arm_pmu *cpu_pmu) cpu_pmu 693 arch/arm64/kernel/perf_event.c struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); cpu_pmu 717 arch/arm64/kernel/perf_event.c armv8pmu_stop(cpu_pmu); cpu_pmu 718 arch/arm64/kernel/perf_event.c for (idx = 0; idx < cpu_pmu->num_events; ++idx) { cpu_pmu 740 arch/arm64/kernel/perf_event.c cpu_pmu->disable(event); cpu_pmu 742 arch/arm64/kernel/perf_event.c armv8pmu_start(cpu_pmu); cpu_pmu 757 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu) cpu_pmu 761 arch/arm64/kernel/perf_event.c for (idx = ARMV8_IDX_COUNTER0; idx < cpu_pmu->num_events; idx ++) { cpu_pmu 769 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu) cpu_pmu 777 arch/arm64/kernel/perf_event.c for (idx = ARMV8_IDX_COUNTER0 + 1; idx < cpu_pmu->num_events; idx += 2) { cpu_pmu 792 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); cpu_pmu 806 arch/arm64/kernel/perf_event.c return armv8pmu_get_chain_idx(cpuc, cpu_pmu); cpu_pmu 808 arch/arm64/kernel/perf_event.c return armv8pmu_get_single_idx(cpuc, cpu_pmu); cpu_pmu 876 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu = (struct arm_pmu *)info; cpu_pmu 877 arch/arm64/kernel/perf_event.c u32 idx, nb_cnt = cpu_pmu->num_events; cpu_pmu 964 arch/arm64/kernel/perf_event.c struct arm_pmu *cpu_pmu = probe->pmu; cpu_pmu 979 arch/arm64/kernel/perf_event.c cpu_pmu->num_events = (armv8pmu_pmcr_read() >> ARMV8_PMU_PMCR_N_SHIFT) cpu_pmu 983 arch/arm64/kernel/perf_event.c cpu_pmu->num_events += 1; cpu_pmu 988 arch/arm64/kernel/perf_event.c bitmap_from_arr32(cpu_pmu->pmceid_bitmap, cpu_pmu 994 arch/arm64/kernel/perf_event.c bitmap_from_arr32(cpu_pmu->pmceid_ext_bitmap, cpu_pmu 998 arch/arm64/kernel/perf_event.c static int armv8pmu_probe_pmu(struct arm_pmu *cpu_pmu) cpu_pmu 1001 arch/arm64/kernel/perf_event.c .pmu = cpu_pmu, cpu_pmu 1006 arch/arm64/kernel/perf_event.c ret = smp_call_function_any(&cpu_pmu->supported_cpus, cpu_pmu 1015 arch/arm64/kernel/perf_event.c static int armv8_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1017 arch/arm64/kernel/perf_event.c int ret = armv8pmu_probe_pmu(cpu_pmu); cpu_pmu 1021 arch/arm64/kernel/perf_event.c cpu_pmu->handle_irq = armv8pmu_handle_irq; cpu_pmu 1022 arch/arm64/kernel/perf_event.c cpu_pmu->enable = armv8pmu_enable_event; cpu_pmu 1023 arch/arm64/kernel/perf_event.c cpu_pmu->disable = armv8pmu_disable_event; cpu_pmu 1024 arch/arm64/kernel/perf_event.c cpu_pmu->read_counter = armv8pmu_read_counter; cpu_pmu 1025 arch/arm64/kernel/perf_event.c cpu_pmu->write_counter = armv8pmu_write_counter; cpu_pmu 1026 arch/arm64/kernel/perf_event.c cpu_pmu->get_event_idx = armv8pmu_get_event_idx; cpu_pmu 1027 arch/arm64/kernel/perf_event.c cpu_pmu->clear_event_idx = armv8pmu_clear_event_idx; cpu_pmu 1028 arch/arm64/kernel/perf_event.c cpu_pmu->start = armv8pmu_start; cpu_pmu 1029 arch/arm64/kernel/perf_event.c cpu_pmu->stop = armv8pmu_stop; cpu_pmu 1030 arch/arm64/kernel/perf_event.c cpu_pmu->reset = armv8pmu_reset; cpu_pmu 1031 arch/arm64/kernel/perf_event.c cpu_pmu->set_event_filter = armv8pmu_set_event_filter; cpu_pmu 1032 arch/arm64/kernel/perf_event.c cpu_pmu->filter_match = armv8pmu_filter_match; cpu_pmu 1037 arch/arm64/kernel/perf_event.c static int armv8_pmuv3_init(struct arm_pmu *cpu_pmu) cpu_pmu 1039 arch/arm64/kernel/perf_event.c int ret = armv8_pmu_init(cpu_pmu); cpu_pmu 1043 arch/arm64/kernel/perf_event.c cpu_pmu->name = "armv8_pmuv3"; cpu_pmu 1044 arch/arm64/kernel/perf_event.c cpu_pmu->map_event = armv8_pmuv3_map_event; cpu_pmu 1045 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1047 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1053 arch/arm64/kernel/perf_event.c static int armv8_a35_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1055 arch/arm64/kernel/perf_event.c int ret = armv8_pmu_init(cpu_pmu); cpu_pmu 1059 arch/arm64/kernel/perf_event.c cpu_pmu->name = "armv8_cortex_a35"; cpu_pmu 1060 arch/arm64/kernel/perf_event.c cpu_pmu->map_event = armv8_a53_map_event; cpu_pmu 1061 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1063 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1069 arch/arm64/kernel/perf_event.c static int armv8_a53_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1071 arch/arm64/kernel/perf_event.c int ret = armv8_pmu_init(cpu_pmu); cpu_pmu 1075 arch/arm64/kernel/perf_event.c cpu_pmu->name = "armv8_cortex_a53"; cpu_pmu 1076 arch/arm64/kernel/perf_event.c cpu_pmu->map_event = armv8_a53_map_event; cpu_pmu 1077 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1079 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1085 arch/arm64/kernel/perf_event.c static int armv8_a57_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1087 arch/arm64/kernel/perf_event.c int ret = armv8_pmu_init(cpu_pmu); cpu_pmu 1091 arch/arm64/kernel/perf_event.c cpu_pmu->name = "armv8_cortex_a57"; cpu_pmu 1092 arch/arm64/kernel/perf_event.c cpu_pmu->map_event = armv8_a57_map_event; cpu_pmu 1093 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1095 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1101 arch/arm64/kernel/perf_event.c static int armv8_a72_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1103 arch/arm64/kernel/perf_event.c int ret = armv8_pmu_init(cpu_pmu); cpu_pmu 1107 arch/arm64/kernel/perf_event.c cpu_pmu->name = "armv8_cortex_a72"; cpu_pmu 1108 arch/arm64/kernel/perf_event.c cpu_pmu->map_event = armv8_a57_map_event; cpu_pmu 1109 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1111 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1117 arch/arm64/kernel/perf_event.c static int armv8_a73_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1119 arch/arm64/kernel/perf_event.c int ret = armv8_pmu_init(cpu_pmu); cpu_pmu 1123 arch/arm64/kernel/perf_event.c cpu_pmu->name = "armv8_cortex_a73"; cpu_pmu 1124 arch/arm64/kernel/perf_event.c cpu_pmu->map_event = armv8_a73_map_event; cpu_pmu 1125 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1127 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1133 arch/arm64/kernel/perf_event.c static int armv8_thunder_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1135 arch/arm64/kernel/perf_event.c int ret = armv8_pmu_init(cpu_pmu); cpu_pmu 1139 arch/arm64/kernel/perf_event.c cpu_pmu->name = "armv8_cavium_thunder"; cpu_pmu 1140 arch/arm64/kernel/perf_event.c cpu_pmu->map_event = armv8_thunder_map_event; cpu_pmu 1141 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1143 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 1149 arch/arm64/kernel/perf_event.c static int armv8_vulcan_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 1151 arch/arm64/kernel/perf_event.c int ret = armv8_pmu_init(cpu_pmu); cpu_pmu 1155 arch/arm64/kernel/perf_event.c cpu_pmu->name = "armv8_brcm_vulcan"; cpu_pmu 1156 arch/arm64/kernel/perf_event.c cpu_pmu->map_event = armv8_vulcan_map_event; cpu_pmu 1157 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = cpu_pmu 1159 arch/arm64/kernel/perf_event.c cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = cpu_pmu 31 arch/nds32/kernel/perf_event_cpu.c static struct nds32_pmu *cpu_pmu; cpu_pmu 34 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_start(struct nds32_pmu *cpu_pmu); cpu_pmu 35 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_stop(struct nds32_pmu *cpu_pmu); cpu_pmu 229 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = (struct nds32_pmu *)dev; cpu_pmu 230 arch/nds32/kernel/perf_event_cpu.c struct pmu_hw_events *cpuc = cpu_pmu->get_hw_events(); cpu_pmu 249 arch/nds32/kernel/perf_event_cpu.c nds32_pmu_stop(cpu_pmu); cpu_pmu 250 arch/nds32/kernel/perf_event_cpu.c for (idx = 0; idx < cpu_pmu->num_events; ++idx) { cpu_pmu 272 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->disable(event); cpu_pmu 274 arch/nds32/kernel/perf_event_cpu.c nds32_pmu_start(cpu_pmu); cpu_pmu 287 arch/nds32/kernel/perf_event_cpu.c static inline int nds32_pfm_counter_valid(struct nds32_pmu *cpu_pmu, int idx) cpu_pmu 289 arch/nds32/kernel/perf_event_cpu.c return ((idx >= 0) && (idx < cpu_pmu->num_events)); cpu_pmu 417 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = to_nds32_pmu(event->pmu); cpu_pmu 418 arch/nds32/kernel/perf_event_cpu.c struct pmu_hw_events *events = cpu_pmu->get_hw_events(); cpu_pmu 421 arch/nds32/kernel/perf_event_cpu.c if (!nds32_pfm_counter_valid(cpu_pmu, idx)) { cpu_pmu 440 arch/nds32/kernel/perf_event_cpu.c if ((!cpu_pmu->set_event_filter || cpu_pmu 441 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->set_event_filter(hwc, &event->attr)) && cpu_pmu 468 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = to_nds32_pmu(event->pmu); cpu_pmu 469 arch/nds32/kernel/perf_event_cpu.c struct pmu_hw_events *events = cpu_pmu->get_hw_events(); cpu_pmu 472 arch/nds32/kernel/perf_event_cpu.c if (!nds32_pfm_counter_valid(cpu_pmu, idx)) { cpu_pmu 497 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = to_nds32_pmu(event->pmu); cpu_pmu 502 arch/nds32/kernel/perf_event_cpu.c if (!nds32_pfm_counter_valid(cpu_pmu, idx)) { cpu_pmu 526 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = to_nds32_pmu(event->pmu); cpu_pmu 530 arch/nds32/kernel/perf_event_cpu.c if (!nds32_pfm_counter_valid(cpu_pmu, idx)) { cpu_pmu 595 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_start(struct nds32_pmu *cpu_pmu) cpu_pmu 599 arch/nds32/kernel/perf_event_cpu.c struct pmu_hw_events *events = cpu_pmu->get_hw_events(); cpu_pmu 612 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_stop(struct nds32_pmu *cpu_pmu) cpu_pmu 616 arch/nds32/kernel/perf_event_cpu.c struct pmu_hw_events *events = cpu_pmu->get_hw_events(); cpu_pmu 641 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_init(struct nds32_pmu *cpu_pmu) cpu_pmu 643 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->handle_irq = nds32_pmu_handle_irq; cpu_pmu 644 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->enable = nds32_pmu_enable_event; cpu_pmu 645 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->disable = nds32_pmu_disable_event; cpu_pmu 646 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->read_counter = nds32_pmu_read_counter; cpu_pmu 647 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->write_counter = nds32_pmu_write_counter; cpu_pmu 648 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->get_event_idx = nds32_pmu_get_event_idx; cpu_pmu 649 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->start = nds32_pmu_start; cpu_pmu 650 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->stop = nds32_pmu_stop; cpu_pmu 651 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->reset = nds32_pmu_reset; cpu_pmu 652 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->max_period = 0xFFFFFFFF; /* Maximum counts */ cpu_pmu 661 arch/nds32/kernel/perf_event_cpu.c static int device_pmu_init(struct nds32_pmu *cpu_pmu) cpu_pmu 663 arch/nds32/kernel/perf_event_cpu.c nds32_pmu_init(cpu_pmu); cpu_pmu 668 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->name = "nds32v3-pmu"; cpu_pmu 669 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->map_event = nds32_spav3_map_event; cpu_pmu 670 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->num_events = nds32_read_num_pfm_events(); cpu_pmu 671 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->set_event_filter = nds32_pmu_set_event_filter; cpu_pmu 1071 arch/nds32/kernel/perf_event_cpu.c static int cpu_pmu_request_irq(struct nds32_pmu *cpu_pmu, irq_handler_t handler) cpu_pmu 1074 arch/nds32/kernel/perf_event_cpu.c struct platform_device *pmu_device = cpu_pmu->plat_device; cpu_pmu 1087 arch/nds32/kernel/perf_event_cpu.c cpu_pmu); cpu_pmu 1096 arch/nds32/kernel/perf_event_cpu.c static void cpu_pmu_free_irq(struct nds32_pmu *cpu_pmu) cpu_pmu 1099 arch/nds32/kernel/perf_event_cpu.c struct platform_device *pmu_device = cpu_pmu->plat_device; cpu_pmu 1103 arch/nds32/kernel/perf_event_cpu.c free_irq(irq, cpu_pmu); cpu_pmu 1106 arch/nds32/kernel/perf_event_cpu.c static void cpu_pmu_init(struct nds32_pmu *cpu_pmu) cpu_pmu 1113 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->get_hw_events = cpu_pmu_get_cpu_events; cpu_pmu 1114 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->request_irq = cpu_pmu_request_irq; cpu_pmu 1115 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->free_irq = cpu_pmu_free_irq; cpu_pmu 1118 arch/nds32/kernel/perf_event_cpu.c if (cpu_pmu->reset) cpu_pmu 1119 arch/nds32/kernel/perf_event_cpu.c on_each_cpu(cpu_pmu->reset, cpu_pmu, 1); cpu_pmu 1136 arch/nds32/kernel/perf_event_cpu.c if (cpu_pmu) { cpu_pmu 1158 arch/nds32/kernel/perf_event_cpu.c cpu_pmu = pmu; cpu_pmu 1159 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->plat_device = pdev; cpu_pmu 1160 arch/nds32/kernel/perf_event_cpu.c cpu_pmu_init(cpu_pmu); cpu_pmu 1161 arch/nds32/kernel/perf_event_cpu.c ret = nds32_pmu_register(cpu_pmu, PERF_TYPE_RAW); cpu_pmu 737 drivers/perf/arm_pmu.c static int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) cpu_pmu 739 drivers/perf/arm_pmu.c cpu_pmu->cpu_pm_nb.notifier_call = cpu_pm_pmu_notify; cpu_pmu 740 drivers/perf/arm_pmu.c return cpu_pm_register_notifier(&cpu_pmu->cpu_pm_nb); cpu_pmu 743 drivers/perf/arm_pmu.c static void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) cpu_pmu 745 drivers/perf/arm_pmu.c cpu_pm_unregister_notifier(&cpu_pmu->cpu_pm_nb); cpu_pmu 748 drivers/perf/arm_pmu.c static inline int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) { return 0; } cpu_pmu 749 drivers/perf/arm_pmu.c static inline void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) { } cpu_pmu 752 drivers/perf/arm_pmu.c static int cpu_pmu_init(struct arm_pmu *cpu_pmu) cpu_pmu 757 drivers/perf/arm_pmu.c &cpu_pmu->node); cpu_pmu 761 drivers/perf/arm_pmu.c err = cpu_pm_pmu_register(cpu_pmu); cpu_pmu 769 drivers/perf/arm_pmu.c &cpu_pmu->node); cpu_pmu 774 drivers/perf/arm_pmu.c static void cpu_pmu_destroy(struct arm_pmu *cpu_pmu) cpu_pmu 776 drivers/perf/arm_pmu.c cpu_pm_pmu_unregister(cpu_pmu); cpu_pmu 778 drivers/perf/arm_pmu.c &cpu_pmu->node); cpu_pmu 446 virt/kvm/arm/pmu.c struct arm_pmu *cpu_pmu = to_arm_pmu(perf_event->pmu); cpu_pmu 451 virt/kvm/arm/pmu.c cpu_pmu->pmu.stop(perf_event, PERF_EF_UPDATE); cpu_pmu 473 virt/kvm/arm/pmu.c cpu_pmu->pmu.start(perf_event, PERF_EF_RELOAD);