Searched refs:nr_alloc (Results 1 – 4 of 4) sorted by relevance
| /tools/lib/api/fd/ |
| D | array.c | 17 fda->nr = fda->nr_alloc = 0; in fdarray__init() 24 int nr_alloc = fda->nr_alloc + nr; in fdarray__grow() local 25 size_t psize = sizeof(fda->priv[0]) * nr_alloc; in fdarray__grow() 26 size_t size = sizeof(struct pollfd) * nr_alloc; in fdarray__grow() 38 memset(&entries[fda->nr_alloc], 0, sizeof(struct pollfd) * nr); in fdarray__grow() 39 memset(&priv[fda->nr_alloc], 0, sizeof(fda->priv[0]) * nr); in fdarray__grow() 41 fda->nr_alloc = nr_alloc; in fdarray__grow() 47 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow) in fdarray__new() argument 52 if (fdarray__grow(fda, nr_alloc)) { in fdarray__new() 80 if (fda->nr == fda->nr_alloc && in fdarray__add()
|
| D | array.h | 21 int nr_alloc; member 42 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow); 56 return fda->nr_alloc - fda->nr; in fdarray__available_entries()
|
| /tools/perf/tests/ |
| D | fdarray.c | 11 fda->nr = fda->nr_alloc; in fdarray__init_revents() 43 if (nr_fds != fda->nr_alloc) { in test__fdarray__filter() 45 nr_fds, fda->nr_alloc); in test__fdarray__filter() 53 nr_fds, fda->nr_alloc); in test__fdarray__filter()
|
| /tools/perf/ |
| D | builtin-kmem.c | 299 int nr_alloc; member 851 pstat->nr_alloc++; in evsel__process_page_alloc_event() 860 pstat->nr_alloc++; in evsel__process_page_alloc_event() 870 pstat->nr_alloc++; in evsel__process_page_alloc_event() 934 pstat->nr_alloc--; in evsel__process_page_free_event() 937 if (pstat->nr_alloc == 0) { in evsel__process_page_free_event() 1094 data->nr_alloc, data->order, in __print_page_alloc_result() 1136 data->nr_alloc, data->order, in __print_page_caller_result() 1568 if (l->nr_alloc < r->nr_alloc) in page_hit_cmp() 1570 else if (l->nr_alloc > r->nr_alloc) in page_hit_cmp()
|