Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Iterate all events that need to receive side-band events.* For new callers; ensure that account_pmu_sb_event() includes* your event, otherwise it might not get delivered.

Proto:static void perf_iterate_sb(perf_iterate_f output, void *data, struct perf_event_context *task_ctx)

Type:void

Parameter:

TypeParameterName
perf_iterate_foutput
void *data
struct perf_event_context *task_ctx
7084  _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
7085  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
7092  If task_ctx Then
7093  perf_iterate_ctx(task_ctx, output, data, false)
7094  Go to done
7097  perf_iterate_sb_cpu(output, data)
7100  ctx = fetch RCU-protected pointer for dereferencing(perf_event_ctxp[ctxn])
7101  If ctx Then perf_iterate_ctx(ctx, output, data, false)
7104  done :
7105  preempt_enable()
7106  _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_event_task
perf_event_comm_event
perf_event_namespaces
perf_event_mmap_event
perf_event_switch
perf_event_ksymbol
perf_event_bpf_event