Lines Matching refs:event

42 static void tad_pmu_event_counter_read(struct perf_event *event)  in tad_pmu_event_counter_read()  argument
44 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu); in tad_pmu_event_counter_read()
45 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_read()
57 local64_add(new - prev, &event->count); in tad_pmu_event_counter_read()
60 static void tad_pmu_event_counter_stop(struct perf_event *event, int flags) in tad_pmu_event_counter_stop() argument
62 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu); in tad_pmu_event_counter_stop()
63 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_stop()
75 tad_pmu_event_counter_read(event); in tad_pmu_event_counter_stop()
79 static void tad_pmu_event_counter_start(struct perf_event *event, int flags) in tad_pmu_event_counter_start() argument
81 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu); in tad_pmu_event_counter_start()
82 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_start()
83 u32 event_idx = event->attr.config; in tad_pmu_event_counter_start()
105 static void tad_pmu_event_counter_del(struct perf_event *event, int flags) in tad_pmu_event_counter_del() argument
107 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu); in tad_pmu_event_counter_del()
108 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_del()
111 tad_pmu_event_counter_stop(event, flags | PERF_EF_UPDATE); in tad_pmu_event_counter_del()
116 static int tad_pmu_event_counter_add(struct perf_event *event, int flags) in tad_pmu_event_counter_add() argument
118 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu); in tad_pmu_event_counter_add()
119 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_add()
131 tad_pmu->events[idx] = event; in tad_pmu_event_counter_add()
134 tad_pmu_event_counter_start(event, flags); in tad_pmu_event_counter_add()
139 static int tad_pmu_event_init(struct perf_event *event) in tad_pmu_event_init() argument
141 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu); in tad_pmu_event_init()
143 if (event->attr.type != event->pmu->type) in tad_pmu_event_init()
146 if (!event->attr.disabled) in tad_pmu_event_init()
149 if (event->state != PERF_EVENT_STATE_OFF) in tad_pmu_event_init()
152 event->cpu = tad_pmu->cpu; in tad_pmu_event_init()
153 event->hw.idx = -1; in tad_pmu_event_init()
154 event->hw.config_base = event->attr.config; in tad_pmu_event_init()
217 PMU_FORMAT_ATTR(event, "config:0-7");