函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:58:57
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_perf_sw_event

函数原型:static void do_perf_sw_event(enum perf_type_id type, u32 event_id, u64 nr, struct perf_sample_data *data, struct pt_regs *regs)

返回类型:void

参数:

类型参数名称
enum perf_type_idtype
u32event_id
u64nr
struct perf_sample_data *data
struct pt_regs *regs
8642  swhash等于this_cpu_ptr( & swevent_htable)
8646  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
8647  head等于For the read side: events when they trigger
8648  如果非head则转到:end
8652  如果perf_swevent_match(event, type, event_id, data, regs)则perf_swevent_event(event, nr, data, regs)
8655  end :
8656  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
___perf_sw_event