函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-27 13:01:00
Last Modify:2020-03-17 19:30:04 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rb_reset_cpu

函数原型:static void rb_reset_cpu(struct ring_buffer_per_cpu *cpu_buffer)

返回类型:void

参数:

类型参数名称
struct ring_buffer_per_cpu *cpu_buffer
4353  _head_page_deactivate - clears head page ptr (for free list)
4355  ad from head 等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(pages, structbuffer_page, list)
4357  local_set( & dex for next write , 0)
4358  local_set( & ries on this page , 0)
4359  local_set( & write committed index , 0)
4361  dex for next read 等于0
4363  write to tail 等于ad from head
4364  committed pages 等于ad from head
4366  初始化链表头
4367  初始化链表头
4368  local_set( & dex for next write , 0)
4369  local_set( & ries on this page , 0)
4370  local_set( & write committed index , 0)
4371  dex for next read 等于0
4373  local_set( & entries_bytes, 0)
4374  local_set( & overrun, 0)
4375  local_set( & commit_overrun, 0)
4376  local_set( & dropped_events, 0)
4377  local_set( & entries, 0)
4378  local_set( & committing, 0)
4379  local_set( & commits, 0)
4380  local_set( & pages_touched, 0)
4381  local_set( & pages_read, 0)
4382  last_pages_touch等于0
4383  shortest_full等于0
4384  read等于0
4385  read_bytes等于0
4387  write_stamp等于0
4388  read_stamp等于0
4390  lost_events等于0
4391  last_overrun等于0
4393  _head_page_activate - sets up head page
调用者
名称描述
ring_buffer_reset_cpug_buffer_reset_cpu - reset a ring buffer per CPU buffer*@buffer: The ring buffer to reset a per cpu buffer of*@cpu: The CPU buffer to be reset