Lines Matching refs:rb
61 extern void rb_free(struct perf_buffer *rb);
65 struct perf_buffer *rb; in rb_free_rcu() local
67 rb = container_of(rcu_head, struct perf_buffer, rcu_head); in rb_free_rcu()
68 rb_free(rb); in rb_free_rcu()
71 static inline void rb_toggle_paused(struct perf_buffer *rb, bool pause) in rb_toggle_paused() argument
73 if (!pause && rb->nr_pages) in rb_toggle_paused()
74 rb->paused = 0; in rb_toggle_paused()
76 rb->paused = 1; in rb_toggle_paused()
82 extern int rb_alloc_aux(struct perf_buffer *rb, struct perf_event *event,
84 extern void rb_free_aux(struct perf_buffer *rb);
86 extern void ring_buffer_put(struct perf_buffer *rb);
88 static inline bool rb_has_aux(struct perf_buffer *rb) in rb_has_aux() argument
90 return !!rb->aux_nr_pages; in rb_has_aux()
97 perf_mmap_to_page(struct perf_buffer *rb, unsigned long pgoff);
106 static inline int page_order(struct perf_buffer *rb) in page_order() argument
108 return rb->page_order; in page_order()
113 static inline int page_order(struct perf_buffer *rb) in page_order() argument
119 static inline int data_page_nr(struct perf_buffer *rb) in data_page_nr() argument
121 return rb->nr_pages << page_order(rb); in data_page_nr()
124 static inline unsigned long perf_data_size(struct perf_buffer *rb) in perf_data_size() argument
126 return rb->nr_pages << (PAGE_SHIFT + page_order(rb)); in perf_data_size()
129 static inline unsigned long perf_aux_size(struct perf_buffer *rb) in perf_aux_size() argument
131 return rb->aux_nr_pages << PAGE_SHIFT; in perf_aux_size()
149 struct perf_buffer *rb = handle->rb; \
152 handle->page &= rb->nr_pages - 1; \
153 handle->addr = rb->data_pages[handle->page]; \
154 handle->size = PAGE_SIZE << page_order(rb); \