Lines Matching refs:watermark
232 if (unlikely(head - local_read(&rb->wakeup) > rb->watermark)) in __perf_output_begin()
233 local_add(rb->watermark, &rb->wakeup); in __perf_output_begin()
309 ring_buffer_init(struct perf_buffer *rb, long watermark, int flags) in ring_buffer_init() argument
313 if (watermark) in ring_buffer_init()
314 rb->watermark = min(max_size, watermark); in ring_buffer_init()
316 if (!rb->watermark) in ring_buffer_init()
317 rb->watermark = max_size / 2; in ring_buffer_init()
671 pgoff_t pgoff, int nr_pages, long watermark, int flags) in rb_alloc_aux() argument
685 if (!watermark) in rb_alloc_aux()
686 watermark = nr_pages << (PAGE_SHIFT - 1); in rb_alloc_aux()
692 max_order = get_order(watermark); in rb_alloc_aux()
699 watermark = 0; in rb_alloc_aux()
758 rb->aux_watermark = watermark; in rb_alloc_aux()
814 struct perf_buffer *rb_alloc(int nr_pages, long watermark, int cpu, int flags) in rb_alloc() argument
843 ring_buffer_init(rb, watermark, flags); in rb_alloc()
911 struct perf_buffer *rb_alloc(int nr_pages, long watermark, int cpu, int flags) in rb_alloc() argument
939 ring_buffer_init(rb, watermark, flags); in rb_alloc()