Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_task

Proto:static void perf_event_task(struct task_struct *task, struct perf_event_context *task_ctx, int new)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
struct perf_event_context *task_ctx
intnew
7314  If Not atomic_read( & nr_comm_events) && Not atomic_read( & nr_mmap_events) && Not atomic_read( & nr_task_events) Then Return
7319  task_event = (struct perf_task_event){task = task, task_ctx = task_ctx, event_id = {header = {type = new ? PERF_RECORD_FORK : PERF_RECORD_EXIT, misc = 0, size = size of event_id , }, }, }
7336  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.
Caller
NameDescribe
perf_event_fork
perf_event_exit_task_context
perf_event_exit_taskWhen a child task exits, feed back event values to parent events.* Can be called with cred_guard_mutex held when called from* install_exec_creds().