Lines Matching defs:event
29 pmc:3, /* #PMC holding the sampling event */
81 static int amd_brs_setup_filter(struct perf_event *event)
83 u64 type = event->attr.branch_sample_type;
101 int amd_brs_hw_config(struct perf_event *event)
109 if (!is_sampling_event(event))
115 * to allow sampling on BRS with an event that does not match
117 * Otherwise the correlation with the event's period is even
122 * With any other event:
128 * Where Y is the occurences of the event while BRS is
135 if (!amd_is_brs_event(event))
142 if (event->attr.freq)
148 if (event->attr.sample_period <= x86_pmu.lbr_nr)
154 ret = amd_brs_setup_filter(event);
158 event->hw.flags |= PERF_X86_EVENT_AMD_BRS;
262 static bool amd_brs_match_plm(struct perf_event *event, u64 to)
264 int type = event->attr.branch_sample_type;
284 struct perf_event *event = cpuc->events[0];
291 * BRS event forced on PMC0,
292 * so check if there is an event.
293 * It is possible to have lbr_users > 0 but the event
296 if (!event)
341 if (!amd_brs_match_plm(event, to))