Searched refs:BUF_PAGE_SIZE (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/kernel/trace/
H A Dring_buffer.c410 #define BUF_PAGE_SIZE (PAGE_SIZE - BUF_PAGE_HDR_SIZE) macro
412 /* Max payload is BUF_PAGE_SIZE - header (8bytes) */
413 #define BUF_MAX_DATA_SIZE (BUF_PAGE_SIZE - (sizeof(u32) * 2))
439 (unsigned int)BUF_PAGE_SIZE, ring_buffer_print_page_header()
1342 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); __ring_buffer_alloc()
1549 local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes); rb_remove_pages()
1671 * Minimum size is 2 * BUF_PAGE_SIZE.
1693 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); ring_buffer_resize()
1699 size = nr_pages * BUF_PAGE_SIZE; ring_buffer_resize()
2110 local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes); rb_handle_head_page()
2250 if (tail >= BUF_PAGE_SIZE) { rb_reset_tail()
2256 if (tail == BUF_PAGE_SIZE) rb_reset_tail()
2267 local_add(BUF_PAGE_SIZE - tail, &cpu_buffer->entries_bytes); rb_reset_tail()
2287 if (tail > (BUF_PAGE_SIZE - RB_EVNT_MIN_SIZE)) { rb_reset_tail()
2299 event->array[0] = (BUF_PAGE_SIZE - tail) - RB_EVNT_HDR_SIZE; rb_reset_tail()
2305 length = (tail + length) - BUF_PAGE_SIZE; rb_reset_tail()
2450 if (unlikely(write > BUF_PAGE_SIZE)) __rb_reserve_next()
4155 * BUF_PAGE_SIZE * buffer->nr_pages ring_buffer_size()
4162 return BUF_PAGE_SIZE * buffer->buffers[cpu]->nr_pages; ring_buffer_size()
4590 cpu_buffer->read_bytes += BUF_PAGE_SIZE; ring_buffer_read_page()
4621 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) { ring_buffer_read_page()
4633 if (commit < BUF_PAGE_SIZE) ring_buffer_read_page()
4634 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit); ring_buffer_read_page()

Completed in 98 milliseconds