函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Decrement the entries to the page that an event is on.* The event does not even need to exist, only the pointer* to the page it is on. This may only be called before the commit* takes place.

函数原型:static inline void rb_decrement_entry(struct ring_buffer_per_cpu *cpu_buffer, struct ring_buffer_event *event)

返回类型:void

参数:

类型参数名称
struct ring_buffer_per_cpu *cpu_buffer
struct ring_buffer_event *event
3016  addr等于event
3017  bpage等于committed pages
3020  addr与等于PAGE_MASK
3023  如果此条件成立可能性大(为编译器优化)(Actual data page == (void * )addr)则
3024  local_dec( & ries on this page )
3025  返回
3032  rb_inc_page(cpu_buffer, & bpage)
3033  start等于bpage
3034  循环
3035  如果Actual data page 恒等于addr
3037  返回
3039  rb_inc_page(cpu_buffer, & bpage)
3040 bpage不等于start循环
3043  uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, 1)
调用者
名称描述
ring_buffer_discard_commitg_buffer_commit_discard - discard an event that has not been committed*@buffer: the ring buffer*@event: non committed event to discard* Sometimes an event that is in the ring buffer needs to be ignored