函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\ring_buffer.c Create Date:2022-07-27 15:02:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:perf_output_put_handle

函数原型:static void perf_output_put_handle(struct perf_output_handle *handle)

返回类型:void

参数:

类型参数名称
struct perf_output_handle *handle
52  rb等于rb
60  nest等于READ_ONCE( nested writers )
61  如果nest大于1则
62  WRITE_ONCE( nested writers , nest - 1)
63  转到:out
66  again :
75  The "volatile" is due to gcc bugs ()
76  head等于local_read( & write position )
109  smp_wmb()
110  WRITE_ONCE(head in the data section , head)
117  The "volatile" is due to gcc bugs ()
118  WRITE_ONCE( nested writers , 0)
124  The "volatile" is due to gcc bugs ()
125  如果此条件成立可能性小(为编译器优化)(head != local_read( & write position ))则
126  WRITE_ONCE( nested writers , 1)
127  转到:again
130  如果wakeup不等于local_read( & wakeup stamp )则perf_output_wakeup(handle)
133  out :
134  禁用抢占和中断()
调用者
名称描述
__perf_output_begin
perf_output_end