Function report |
Source Code:mm\percpu-stats.c |
Create Date:2022-07-28 16:36:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:percpu_stats_show
Proto:static int percpu_stats_show(struct seq_file *m, void *v)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct seq_file * | m | |
| void * | v |
| 141 | alloc_buffer : |
| 142 | spin_lock_irq( & pcpu_lock) |
| 144 | spin_unlock_irq( & pcpu_lock) |
| 151 | spin_lock_irq( & pcpu_lock) |
| 155 | spin_unlock_irq( & pcpu_lock) |
| 157 | Go to alloc_buffer |
| 163 | seq_printf(m, "Percpu Memory Statistics\nAllocation Info:\n----------------------------------------\n") |
| 180 | seq_printf(m, "Global Stats:\n----------------------------------------\n") |
| 184 | PU(nr_dealloc) |
| 185 | PU(nr_cur_alloc) |
| 186 | PU(nr_max_alloc) |
| 188 | PU(nr_max_chunks) |
| 189 | PU(min_alloc_size) |
| 190 | PU(max_alloc_size) |
| 191 | P("empty_pop_pages", The number of empty populated pages, protected by pcpu_lock. The* reserved chunk doesn't contribute to the count.) |
| 196 | seq_printf(m, "Per Chunk Stats:\n----------------------------------------\n") |
| 205 | When slot < pcpu_nr_slots cycle |
| 212 | Else |
| 220 | spin_unlock_irq( & pcpu_lock) |
| 224 | Return 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |