Function report | 
Source Code:kernel\trace\ring_buffer.c | 
Create Date:2022-07-28 11:53:06 | 
| Last Modify:2020-03-17 19:30:04 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:g_buffer_nr_pages_dirty - get the number of used pages in the ring buffer*@buffer: The ring_buffer to get the number of pages from*@cpu: The cpu of the ring_buffer to get the number of pages from
Proto:size_t ring_buffer_nr_dirty_pages(struct ring_buffer *buffer, int cpu)
Type:size_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ring_buffer * | buffer | |
| int | cpu | 
| 538 | read = local_read( & pages_read) | 
| 539 | cnt = local_read( & pages_touched) | 
| 542 | WARN_ON_ONCE(read > cnt + 1) | 
| 543 | Return 0 | 
| Name | Describe | 
|---|---|
| ring_buffer_wait | g_buffer_wait - wait for input to the ring buffer*@buffer: buffer to wait on*@cpu: the cpu buffer to wait on*@full: wait until a full page is available, if @cpu != RING_BUFFER_ALL_CPUS* If @cpu == RING_BUFFER_ALL_CPUS then the task will wake up as soon | 
| rb_wakeups | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |