Home
last modified time | relevance | path

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

/linux/tools/lib/api/fd/
H A Darray.c17 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, in argument
[all...]
H A Darray.h21 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()
/linux/mm/
H A Dpercpu-internal.h50 int nr_alloc; /* # of allocations */ member
170 u64 nr_alloc; /* lifetime # of allocations */ member
206 pcpu_stats.nr_alloc++; in pcpu_stats_area_alloc()
215 chunk->nr_alloc++; in pcpu_stats_area_alloc()
233 chunk->nr_alloc--; in pcpu_stats_area_dealloc()
H A Dpercpu-stats.c30 * Iterates over all chunks to find the max nr_alloc entries.
40 max_nr_alloc = max(max_nr_alloc, chunk->nr_alloc); in find_max_nr_alloc()
120 P("nr_alloc", chunk->nr_alloc); in chunk_map_stats()
182 PU(nr_alloc); in percpu_stats_show()
/linux/tools/perf/tests/
H A Dfdarray.c11 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()
/linux/tools/perf/
H A Dbuiltin-kmem.c299 int nr_alloc; member
853 pstat->nr_alloc++; in evsel__process_page_alloc_event()
862 pstat->nr_alloc++; in evsel__process_page_alloc_event()
872 pstat->nr_alloc++; in evsel__process_page_alloc_event()
936 pstat->nr_alloc--; in evsel__process_page_free_event()
939 if (pstat->nr_alloc == 0) { in evsel__process_page_free_event()
1096 data->nr_alloc, data->order, in __print_page_alloc_result()
1138 data->nr_alloc, data->order, in __print_page_caller_result()
1570 if (l->nr_alloc < r->nr_alloc) in page_hit_cmp()
[all...]
/linux/drivers/net/ethernet/
H A Djme.c1935 int idx, nr_alloc, mask = jme->tx_ring_mask; in jme_alloc_txdesc() local
1938 nr_alloc = skb_shinfo(skb)->nr_frags + 2; in jme_alloc_txdesc()
1940 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc()
1943 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc()
1945 txring->next_to_use = (txring->next_to_use + nr_alloc) & mask; in jme_alloc_txdesc()