Home | History | Annotate | Download | only in libop

Lines Matching refs:nr_events

38  * @param nr_events  number of entry in pev
42 * The returned pointer is an array of nr_events entry
45 build_counter_arc(struct op_event const * pev[], int nr_events)
50 ctr_arc = xmalloc(nr_events * sizeof(*ctr_arc));
52 for (i = 0; i < nr_events; ++i) {
81 * @param nr_events number of entry in array
85 static void delete_counter_arc(counter_arc_head * ctr_arc, int nr_events)
88 for (i = 0; i < nr_events; ++i) {
197 size_t * map_event_to_counter(struct op_event const * pev[], int nr_events,
224 for (i = 0, nr_pmc_events = 0; i < nr_events; i++)
229 ctr_arc = build_counter_arc(pev, nr_events);
231 counter_map = xmalloc(nr_events * sizeof(size_t));
233 if (!allocate_counter(ctr_arc, nr_events, 0, unavailable_counters,
239 delete_counter_arc(ctr_arc, nr_events);