Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:g_buffer_nr_pages_dirty - get the number of used pages in the ring buffer*@buffer: The ring_buffer to get the number of pages from*@cpu: The cpu of the ring_buffer to get the number of pages from

Proto:size_t ring_buffer_nr_dirty_pages(struct ring_buffer *buffer, int cpu)

Type:size_t

Parameter:

TypeParameterName
struct ring_buffer *buffer
intcpu
538  read = local_read( & pages_read)
539  cnt = local_read( & pages_touched)
541  If cnt < read Then
542  WARN_ON_ONCE(read > cnt + 1)
543  Return 0
546  Return cnt - read
Caller
NameDescribe
ring_buffer_waitg_buffer_wait - wait for input to the ring buffer*@buffer: buffer to wait on*@cpu: the cpu buffer to wait on*@full: wait until a full page is available, if @cpu != RING_BUFFER_ALL_CPUS* If @cpu == RING_BUFFER_ALL_CPUS then the task will wake up as soon
rb_wakeups