• Home
  • Raw
  • Download

Lines Matching refs:nr_pages

496 	unsigned long			nr_pages;  member
811 return buffer->buffers[cpu]->nr_pages; in ring_buffer_nr_pages()
848 size_t nr_pages; in full_hit() local
851 nr_pages = cpu_buffer->nr_pages; in full_hit()
852 if (!nr_pages || !full) in full_hit()
862 return (dirty * 100) >= (full * nr_pages); in full_hit()
1552 long nr_pages, struct list_head *pages) in __rb_allocate_pages() argument
1567 if (i < nr_pages) in __rb_allocate_pages()
1588 for (i = 0; i < nr_pages; i++) { in __rb_allocate_pages()
1626 unsigned long nr_pages) in rb_allocate_pages() argument
1630 WARN_ON(!nr_pages); in rb_allocate_pages()
1632 if (__rb_allocate_pages(cpu_buffer, nr_pages, &pages)) in rb_allocate_pages()
1643 cpu_buffer->nr_pages = nr_pages; in rb_allocate_pages()
1651 rb_allocate_cpu_buffer(struct trace_buffer *buffer, long nr_pages, int cpu) in rb_allocate_cpu_buffer() argument
1691 ret = rb_allocate_pages(cpu_buffer, nr_pages); in rb_allocate_cpu_buffer()
1751 long nr_pages; in __ring_buffer_alloc() local
1765 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in __ring_buffer_alloc()
1774 if (nr_pages < 2) in __ring_buffer_alloc()
1775 nr_pages = 2; in __ring_buffer_alloc()
1787 buffer->buffers[cpu] = rb_allocate_cpu_buffer(buffer, nr_pages, cpu); in __ring_buffer_alloc()
1867 rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned long nr_pages) in rb_remove_pages() argument
1903 for (nr_removed = 0; nr_removed < nr_pages; nr_removed++) { in rb_remove_pages()
2063 cpu_buffer->nr_pages += cpu_buffer->nr_pages_to_update; in rb_update_pages()
2088 unsigned long nr_pages; in ring_buffer_resize() local
2102 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_resize()
2105 if (nr_pages < 2) in ring_buffer_resize()
2106 nr_pages = 2; in ring_buffer_resize()
2130 cpu_buffer->nr_pages_to_update = nr_pages - in ring_buffer_resize()
2131 cpu_buffer->nr_pages; in ring_buffer_resize()
2188 if (nr_pages == cpu_buffer->nr_pages) in ring_buffer_resize()
2201 cpu_buffer->nr_pages_to_update = nr_pages - in ring_buffer_resize()
2202 cpu_buffer->nr_pages; in ring_buffer_resize()
2986 max_count = cpu_buffer->nr_pages * 100; in rb_set_commit_to_write()
5143 return BUF_PAGE_SIZE * buffer->buffers[cpu]->nr_pages; in ring_buffer_size()
5415 if (cpu_buffer_a->nr_pages != cpu_buffer_b->nr_pages) in ring_buffer_swap_cpu()
5783 unsigned long nr_pages; in trace_rb_cpu_prepare() local
5789 nr_pages = 0; in trace_rb_cpu_prepare()
5794 if (nr_pages == 0) in trace_rb_cpu_prepare()
5795 nr_pages = buffer->buffers[cpu_i]->nr_pages; in trace_rb_cpu_prepare()
5796 if (nr_pages != buffer->buffers[cpu_i]->nr_pages) { in trace_rb_cpu_prepare()
5803 nr_pages = 2; in trace_rb_cpu_prepare()
5805 rb_allocate_cpu_buffer(buffer, nr_pages, cpu); in trace_rb_cpu_prepare()