Function report |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-28 11:53:50 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rb_insert_pages
Proto:static int rb_insert_pages(struct ring_buffer_per_cpu *cpu_buffer)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct ring_buffer_per_cpu * | cpu_buffer |
1609 | pages = w pages to add |
1612 | raw_spin_lock_irq( & serialize readers ) |
1627 | retries = 10 |
1628 | success = 0 |
1634 | head_page = list of buffer pages |
1635 | If Not head_page Then Break |
1639 | first_page = next |
1642 | head_page_with_bit = head_page | RB_PAGE_HEAD |
1645 | next = head_page_with_bit |
1648 | r = cmpxchg( & next, head_page_with_bit, first_page) |
1650 | If r == head_page_with_bit Then |
1662 | If success Then Initialization list head |
1669 | raw_spin_unlock_irq( & serialize readers ) |
1672 | If Not success Then |
1680 | Return success |
Name | Describe |
---|---|
rb_update_pages |
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 |