Function report | 
Source Code:kernel\trace\ring_buffer.c | 
Create Date:2022-07-28 11:54:48 | 
| Last Modify:2020-03-17 19:30:04 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:The total entries in the ring buffer is the running counter* of entries entered into the ring buffer, minus the sum of* the entries read from the ring buffer and the number of* entries that were overwritten.
Proto:static inline unsigned long rb_num_of_entries(struct ring_buffer_per_cpu *cpu_buffer)
Type:unsigned long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ring_buffer_per_cpu * | cpu_buffer | 
| 3339 | Return local_read( & entries) - local_read( & overrun) + read | 
| Name | Describe | 
|---|---|
| ring_buffer_entries_cpu | g_buffer_entries_cpu - get the number of entries in a cpu buffer*@buffer: The ring buffer*@cpu: The per CPU buffer to get the entries from. | 
| ring_buffer_entries | g_buffer_entries - get the number of entries in a buffer*@buffer: The ring buffer* Returns the total number of entries in the ring buffer* (all CPU entries) | 
| rb_get_reader_page | 
| 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  |