Lines Matching full:chunk
34 struct pcpu_chunk *chunk;
39 list_for_each_entry(chunk, &pcpu_chunk_lists[slot], list)
40 max_nr_alloc = max(max_nr_alloc, chunk->nr_alloc);
46 * Prints out chunk state. Fragmentation is considered between
47 * the beginning of the chunk to the last allocation.
51 static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk,
54 struct pcpu_block_md *chunk_md = &chunk->chunk_md;
68 last_alloc = find_last_bit(chunk->alloc_map,
69 pcpu_chunk_map_bits(chunk) -
70 chunk->end_offset / PCPU_MIN_ALLOC_SIZE - 1);
71 last_alloc = test_bit(last_alloc, chunk->alloc_map) ?
75 start = chunk->start_offset / PCPU_MIN_ALLOC_SIZE;
87 if (test_bit(start, chunk->alloc_map)) {
88 end = find_next_bit(chunk->bound_map, last_alloc,
92 end = find_next_bit(chunk->alloc_map, last_alloc,
120 P("nr_alloc", chunk->nr_alloc);
121 P("max_alloc_size", chunk->max_alloc_size);
122 P("empty_pop_pages", chunk->nr_empty_pop_pages);
124 P("free_bytes", chunk->free_bytes);
136 struct pcpu_chunk *chunk;
196 "Per Chunk Stats:\n"
200 seq_puts(m, "Chunk: <- Reserved Chunk\n");
205 list_for_each_entry(chunk, &pcpu_chunk_lists[slot], list) {
206 if (chunk == pcpu_first_chunk)
207 seq_puts(m, "Chunk: <- First Chunk\n");
209 seq_puts(m, "Chunk (to_depopulate)\n");
211 seq_puts(m, "Chunk (sidelined):\n");
213 seq_puts(m, "Chunk:\n");
214 chunk_map_stats(m, chunk, buffer);