函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rb_reset_tail

函数原型:static inline void rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer, unsigned long tail, struct rb_event_info *info)

返回类型:void

参数:

类型参数名称
struct ring_buffer_per_cpu *cpu_buffer
unsigned longtail
struct rb_event_info *info
2132  tail_page等于tail_page
2134  length等于length
2140  如果tail大于等于BUF_PAGE_SIZE
2146  如果tail恒等于BUF_PAGE_SIZEal end of data 等于0
2149  local_sub(length, & dex for next write )
2150  返回
2153  event等于__rb_page_index(tail_page, tail)
2156  local_add(BUF_PAGE_SIZE - tail, & entries_bytes)
2163  al end of data 等于tail
2176  如果tail大于BUF_PAGE_SIZEwo 32bit words
2180  rb_event_set_padding(event)
2183  local_sub(length, & dex for next write )
2184  返回
2188  array[0]等于BUF_PAGE_SIZEtailRB_EVNT_HDR_SIZE
2189  type_len等于RINGBUF_TYPE_PADDING
2191  time_delta等于1
2194  length等于taillengthBUF_PAGE_SIZE
2195  local_sub(length, & dex for next write )
调用者
名称描述
rb_move_tailThis is the slow path, force gcc not to inline it.