函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_task

函数原型:static void perf_event_task(struct task_struct *task, struct perf_event_context *task_ctx, int new)

返回类型:void

参数:

类型参数名称
struct task_struct *task
struct perf_event_context *task_ctx
intnew
7314  如果非atomic_read( & nr_comm_events)且非atomic_read( & nr_mmap_events)且非atomic_read( & nr_task_events)则返回
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 = 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.
调用者
名称描述
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().