Lines Matching full:rb
62 extern void rb_free(struct perf_buffer *rb);
66 struct perf_buffer *rb; in rb_free_rcu() local
68 rb = container_of(rcu_head, struct perf_buffer, rcu_head); in rb_free_rcu()
69 rb_free(rb); in rb_free_rcu()
72 static inline void rb_toggle_paused(struct perf_buffer *rb, bool pause) in rb_toggle_paused() argument
74 if (!pause && rb->nr_pages) in rb_toggle_paused()
75 rb->paused = 0; in rb_toggle_paused()
77 rb->paused = 1; in rb_toggle_paused()
83 extern int rb_alloc_aux(struct perf_buffer *rb, struct perf_event *event,
85 extern void rb_free_aux(struct perf_buffer *rb);
87 extern void ring_buffer_put(struct perf_buffer *rb);
89 static inline bool rb_has_aux(struct perf_buffer *rb) in rb_has_aux() argument
91 return !!rb->aux_nr_pages; in rb_has_aux()
98 perf_mmap_to_page(struct perf_buffer *rb, unsigned long pgoff);
107 static inline int page_order(struct perf_buffer *rb) in page_order() argument
109 return rb->page_order; in page_order()
114 static inline int page_order(struct perf_buffer *rb) in page_order() argument
120 static inline int data_page_nr(struct perf_buffer *rb) in data_page_nr() argument
122 return rb->nr_pages << page_order(rb); in data_page_nr()
125 static inline unsigned long perf_data_size(struct perf_buffer *rb) in perf_data_size() argument
127 return rb->nr_pages << (PAGE_SHIFT + page_order(rb)); in perf_data_size()
130 static inline unsigned long perf_aux_size(struct perf_buffer *rb) in perf_aux_size() argument
132 return (unsigned long)rb->aux_nr_pages << PAGE_SHIFT; in perf_aux_size()
150 struct perf_buffer *rb = handle->rb; \
153 handle->page &= rb->nr_pages - 1; \
154 handle->addr = rb->data_pages[handle->page]; \
155 handle->size = PAGE_SIZE << page_order(rb); \