Home
last modified time | relevance | path

Searched refs:nr_alloc (Results 1 – 4 of 4) sorted by relevance

/tools/lib/api/fd/
Darray.c16 fda->nr = fda->nr_alloc = 0; in fdarray__init()
23 int nr_alloc = fda->nr_alloc + nr; in fdarray__grow() local
24 size_t psize = sizeof(fda->priv[0]) * nr_alloc; in fdarray__grow()
25 size_t size = sizeof(struct pollfd) * nr_alloc; in fdarray__grow()
37 fda->nr_alloc = nr_alloc; in fdarray__grow()
43 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow) in fdarray__new() argument
48 if (fdarray__grow(fda, nr_alloc)) { in fdarray__new()
76 if (fda->nr == fda->nr_alloc && in fdarray__add()
Darray.h21 int nr_alloc; member
33 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow);
46 return fda->nr_alloc - fda->nr; in fdarray__available_entries()
/tools/perf/tests/
Dfdarray.c11 fda->nr = fda->nr_alloc; in fdarray__init_revents()
42 if (nr_fds != fda->nr_alloc) { in test__fdarray__filter()
44 nr_fds, fda->nr_alloc); in test__fdarray__filter()
52 nr_fds, fda->nr_alloc); in test__fdarray__filter()
/tools/perf/
Dbuiltin-kmem.c289 int nr_alloc; member
833 pstat->nr_alloc++; in perf_evsel__process_page_alloc_event()
842 pstat->nr_alloc++; in perf_evsel__process_page_alloc_event()
852 pstat->nr_alloc++; in perf_evsel__process_page_alloc_event()
917 pstat->nr_alloc--; in perf_evsel__process_page_free_event()
920 if (pstat->nr_alloc == 0) { in perf_evsel__process_page_free_event()
1086 data->nr_alloc, data->order, in __print_page_alloc_result()
1128 data->nr_alloc, data->order, in __print_page_caller_result()
1560 if (l->nr_alloc < r->nr_alloc) in page_hit_cmp()
1562 else if (l->nr_alloc > r->nr_alloc) in page_hit_cmp()