Searched refs:hw_events (Results 1 – 10 of 10) sorted by relevance
/linux-4.1.27/arch/arm/kernel/ |
D | perf_event.c | 210 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_del() local 215 hw_events->events[idx] = NULL; in armpmu_del() 216 clear_bit(idx, hw_events->used_mask); in armpmu_del() 218 armpmu->clear_event_idx(hw_events, event); in armpmu_del() 227 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_add() local 235 idx = armpmu->get_event_idx(hw_events, event); in armpmu_add() 247 hw_events->events[idx] = event; in armpmu_add() 262 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, in validate_event() argument 285 return armpmu->get_event_idx(hw_events, event) >= 0; in validate_event() 489 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_enable() local [all …]
|
D | perf_event_cpu.c | 85 struct pmu_hw_events __percpu *hw_events = cpu_pmu->hw_events; in cpu_pmu_free_irq() local 92 free_percpu_irq(irq, &hw_events->percpu_pmu); in cpu_pmu_free_irq() 104 free_irq(irq, per_cpu_ptr(&hw_events->percpu_pmu, cpu)); in cpu_pmu_free_irq() 113 struct pmu_hw_events __percpu *hw_events = cpu_pmu->hw_events; in cpu_pmu_request_irq() local 127 &hw_events->percpu_pmu); in cpu_pmu_request_irq() 159 per_cpu_ptr(&hw_events->percpu_pmu, cpu)); in cpu_pmu_request_irq() 216 cpu_pmu->hw_events = cpu_hw_events; in cpu_pmu_init() 238 free_percpu(cpu_pmu->hw_events); in cpu_pmu_destroy()
|
D | perf_event_xscale.c | 141 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_handle_irq() 201 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_enable_event() 237 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_disable_event() 290 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_start() 302 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_stop() 488 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_handle_irq() 542 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_enable_event() 588 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_disable_event() 654 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_start() 666 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_stop()
|
D | perf_event_v6.c | 265 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_enable_event() 303 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_handle_irq() 359 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_start() 371 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_stop() 412 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_disable_event() 447 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6mpcore_pmu_disable_event()
|
D | perf_event_v7.c | 764 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_enable_event() 810 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_disable_event() 842 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_handle_irq() 902 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_start() 913 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_stop() 1347 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in krait_pmu_disable_event() 1373 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in krait_pmu_enable_event() 1680 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in scorpion_pmu_disable_event() 1706 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in scorpion_pmu_enable_event()
|
/linux-4.1.27/drivers/bus/ |
D | arm-cci.c | 122 struct cci_pmu_hw_events hw_events; member 430 struct cci_pmu_hw_events *events = &pmu->hw_events; in pmu_handle_irq() 494 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_enable() local 495 int enabled = bitmap_weight(hw_events->used_mask, cci_pmu->num_events); in cci_pmu_enable() 502 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_enable() 507 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_enable() 514 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_disable() local 518 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_disable() 523 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_disable() 529 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_start() local [all …]
|
/linux-4.1.27/arch/arm/include/asm/ |
D | pmu.h | 100 int (*get_event_idx)(struct pmu_hw_events *hw_events, 102 void (*clear_event_idx)(struct pmu_hw_events *hw_events, 119 struct pmu_hw_events __percpu *hw_events; member
|
/linux-4.1.27/arch/arm64/kernel/ |
D | perf_event.c | 47 static DEFINE_PER_CPU(struct perf_event * [ARMPMU_MAX_HWEVENTS], hw_events); 275 struct pmu_hw_events *hw_events = armpmu->get_hw_events(); in armpmu_del() local 282 hw_events->events[idx] = NULL; in armpmu_del() 283 clear_bit(idx, hw_events->used_mask); in armpmu_del() 292 struct pmu_hw_events *hw_events = armpmu->get_hw_events(); in armpmu_add() local 300 idx = armpmu->get_event_idx(hw_events, hwc); in armpmu_add() 312 hw_events->events[idx] = event; in armpmu_add() 327 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, in validate_event() argument 352 return armpmu->get_event_idx(hw_events, &fake_event) >= 0; in validate_event() 624 struct pmu_hw_events *hw_events = armpmu->get_hw_events(); in armpmu_enable() local [all …]
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | pmu.h | 52 int (*get_event_idx)(struct pmu_hw_events *hw_events,
|
/linux-4.1.27/arch/tile/kernel/ |
D | perf_event.c | 64 const int *hw_events; /* generic hw events table */ member 332 .hw_events = tile_hw_event_map, 749 return tile_pmu->hw_events[config]; in tile_map_hw_event()
|