Lines Matching refs:watermark
230 if (unlikely(head - local_read(&rb->wakeup) > rb->watermark)) in __perf_output_begin()
231 local_add(rb->watermark, &rb->wakeup); in __perf_output_begin()
306 ring_buffer_init(struct perf_buffer *rb, long watermark, int flags) in ring_buffer_init() argument
310 if (watermark) in ring_buffer_init()
311 rb->watermark = min(max_size, watermark); in ring_buffer_init()
313 if (!rb->watermark) in ring_buffer_init()
314 rb->watermark = max_size / 2; in ring_buffer_init()
668 pgoff_t pgoff, int nr_pages, long watermark, int flags) in rb_alloc_aux() argument
682 if (!watermark) in rb_alloc_aux()
683 watermark = nr_pages << (PAGE_SHIFT - 1); in rb_alloc_aux()
689 max_order = get_order(watermark); in rb_alloc_aux()
696 watermark = 0; in rb_alloc_aux()
749 rb->aux_watermark = watermark; in rb_alloc_aux()
805 struct perf_buffer *rb_alloc(int nr_pages, long watermark, int cpu, int flags) in rb_alloc() argument
834 ring_buffer_init(rb, watermark, flags); in rb_alloc()
907 struct perf_buffer *rb_alloc(int nr_pages, long watermark, int cpu, int flags) in rb_alloc() argument
935 ring_buffer_init(rb, watermark, flags); in rb_alloc()