函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_event_type

函数原型:static enum event_type_t get_event_type(struct perf_event *event)

返回类型:enum event_type_t

参数:

类型参数名称
struct perf_event *event
1470  ctx等于ctx
1473  lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:)
1479  如果group_leader不等于eventevent等于group_leader
1482  event_type等于如果pinnedEVENT_PINNED否则EVENT_FLEXIBLE
1483  如果非taskevent_type或等于 see ctx_resched() for details
1486  返回:event_type
调用者
名称描述
__perf_install_in_contextCross CPU call to install and enable a performance event* Very similar to remote_function() + event_function() but cannot assume that* things like ctx->is_active and cpuctx->task_ctx are set.
__perf_event_enableCross CPU call to enable a performance event
perf_event_enable_on_execEnable all of a task's events that have been marked enable-on-exec.* This expects task == current.