Lines Matching refs:event
12 * one event and replace it with another we could get spurious counts from the
13 * wrong event. However, we can take advantage of the fact that the
14 * performance counters can export events to the event bus, and the event bus
16 * the event bus. The procedure for disabling a configurable counter is:
25 * - set the new event type.
105 * misses and main TLB misses. There isn't an event for TLB misses, so
168 * misses and main TLB misses. There isn't an event for TLB misses, so
236 static inline u64 armv6pmu_read_counter(struct perf_event *event)
238 struct hw_perf_event *hwc = &event->hw;
254 static inline void armv6pmu_write_counter(struct perf_event *event, u64 value)
256 struct hw_perf_event *hwc = &event->hw;
269 static void armv6pmu_enable_event(struct perf_event *event)
272 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu);
273 struct hw_perf_event *hwc = &event->hw;
294 * Mask out the current event and set the counter to count the event
327 struct perf_event *event = cpuc->events[idx];
330 /* Ignore if we don't have an event. */
331 if (!event)
341 hwc = &event->hw;
342 armpmu_event_update(event);
344 if (!armpmu_event_set_period(event))
347 if (perf_event_overflow(event, &data, regs))
348 cpu_pmu->disable(event);
389 struct perf_event *event)
391 struct hw_perf_event *hwc = &event->hw;
415 struct perf_event *event)
417 clear_bit(event->hw.idx, cpuc->used_mask);
420 static void armv6pmu_disable_event(struct perf_event *event)
423 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu);
424 struct hw_perf_event *hwc = &event->hw;
443 * Mask out the current event and set the counter to count the number
455 static void armv6mpcore_pmu_disable_event(struct perf_event *event)
458 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu);
459 struct hw_perf_event *hwc = &event->hw;
486 static int armv6_map_event(struct perf_event *event)
488 return armpmu_map_event(event, &armv6_perf_map,
532 * disable the interrupt reporting and update the event. When unthrottling we
536 static int armv6mpcore_map_event(struct perf_event *event)
538 return armpmu_map_event(event, &armv6mpcore_perf_map,