Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-28 11:54:39
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static inline void rb_decrement_entry(struct ring_buffer_per_cpu *cpu_buffer, struct ring_buffer_event *event)

Type:void

Parameter:

TypeParameterName
struct ring_buffer_per_cpu *cpu_buffer
struct ring_buffer_event *event
3016  addr = event
3017  bpage = committed pages
3020  addr &= PAGE_MASK
3023  If Value is more likely to compile time(Actual data page == (void * )addr) Then
3024  local_dec( & ries on this page )
3025  Return
3032  rb_inc_page(cpu_buffer, & bpage)
3033  start = bpage
3034  Do
3035  If Actual data page == addr Then
3037  Return
3039  rb_inc_page(cpu_buffer, & bpage)
3040  When bpage != start cycle
3043  uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, 1)
Caller
NameDescribe
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