函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:exclusive_event_installable

函数原型:static bool exclusive_event_installable(struct perf_event *event, struct perf_event_context *ctx)

返回类型:bool

参数:

类型参数名称
struct perf_event *event
struct perf_event_context *ctx
4565  pmu等于pmu
4567  lockdep_assert_held( & Protect the list of events. Locking either mutex or lock* is sufficient to ensure the list doesn't change; to change* the list you need to lock both the mutex and the spinlock.)
4569  如果非is_exclusive_pmu(pmu)则返回:true
4573  如果exclusive_event_match(iter_event, event)则返回:false
4577  返回:true
调用者
名称描述
perf_install_in_contextAttach a performance event to a context.* Very similar to event_function_call, see comment there.
perf_event_create_kernel_counterperf_event_create_kernel_counter*@attr: attributes of the counter to create*@cpu: cpu in which the counter is bound*@task: task to profile (NULL for percpu)