Lines Matching full:chunk
35 struct pcpu_chunk *chunk; in find_max_nr_alloc() local
40 list_for_each_entry(chunk, &pcpu_chunk_lists[slot], list) in find_max_nr_alloc()
41 max_nr_alloc = max(max_nr_alloc, chunk->nr_alloc); in find_max_nr_alloc()
47 * Prints out chunk state. Fragmentation is considered between
48 * the beginning of the chunk to the last allocation.
52 static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk, in chunk_map_stats() argument
55 struct pcpu_block_md *chunk_md = &chunk->chunk_md; in chunk_map_stats()
69 last_alloc = find_last_bit(chunk->alloc_map, in chunk_map_stats()
70 pcpu_chunk_map_bits(chunk) - in chunk_map_stats()
71 chunk->end_offset / PCPU_MIN_ALLOC_SIZE - 1); in chunk_map_stats()
72 last_alloc = test_bit(last_alloc, chunk->alloc_map) ? in chunk_map_stats()
76 start = chunk->start_offset / PCPU_MIN_ALLOC_SIZE; in chunk_map_stats()
88 if (test_bit(start, chunk->alloc_map)) { in chunk_map_stats()
89 end = find_next_bit(chunk->bound_map, last_alloc, in chunk_map_stats()
93 end = find_next_bit(chunk->alloc_map, last_alloc, in chunk_map_stats()
121 P("nr_alloc", chunk->nr_alloc); in chunk_map_stats()
122 P("max_alloc_size", chunk->max_alloc_size); in chunk_map_stats()
123 P("empty_pop_pages", chunk->nr_empty_pop_pages); in chunk_map_stats()
125 P("free_bytes", chunk->free_bytes); in chunk_map_stats()
137 struct pcpu_chunk *chunk; in percpu_stats_show() local
197 "Per Chunk Stats:\n" in percpu_stats_show()
201 seq_puts(m, "Chunk: <- Reserved Chunk\n"); in percpu_stats_show()
206 list_for_each_entry(chunk, &pcpu_chunk_lists[slot], list) { in percpu_stats_show()
207 if (chunk == pcpu_first_chunk) in percpu_stats_show()
208 seq_puts(m, "Chunk: <- First Chunk\n"); in percpu_stats_show()
210 seq_puts(m, "Chunk (to_depopulate)\n"); in percpu_stats_show()
212 seq_puts(m, "Chunk (sidelined):\n"); in percpu_stats_show()
214 seq_puts(m, "Chunk:\n"); in percpu_stats_show()
215 chunk_map_stats(m, chunk, buffer); in percpu_stats_show()