Lines Matching defs:nre
605 u32 nre, nri, sz;
608 nre = evlist__nr_entries(evlist);
613 ret = do_write(ff, &nre, sizeof(nre));
2203 u32 nre, sz, nr, i, j;
2207 if (do_read_u32(ff, &nre))
2210 /* Size of each of the nre attributes. */
2218 * or nre == UINT32_MAX where nre + 1 wraps to 0 in the calloc.
2221 * attr plus a u32 for the id count, check that nre events fit.
2223 if (!nre || sz < PERF_ATTR_SIZE_VER0 ||
2225 nre == UINT32_MAX ||
2226 nre > (ff->size - ff->offset) / (sz + sizeof(u32))) {
2227 pr_err("Invalid HEADER_EVENT_DESC: nre=%u sz=%u (min %d)\n",
2228 nre, sz, PERF_ATTR_SIZE_VER0);
2238 events = calloc(nre + 1, sizeof(*events));
2246 for (i = 0, evsel = events; i < nre; evsel++, i++) {