Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:38:58
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_perf_sw_event

Proto: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)

Type:void

Parameter:

TypeParameterName
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  If Not head Then Go to end
8652  If perf_swevent_match(event, type, event_id, data, regs) Then 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()
Caller
NameDescribe
___perf_sw_event