函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Cross CPU call to remove a performance event* We disable the event on the hardware level first. After that we* remove it from the context list.

函数原型:static void __perf_remove_from_context(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, void *info)

返回类型:void

参数:

类型参数名称
struct perf_event *event
struct perf_cpu_context *cpuctx
struct perf_event_context *ctx
void *info
2171  flags等于info
2173  如果is_active按位与EVENT_TIME
2174  update_context_time(ctx)
2175  update_cgrp_time_from_cpuctx(cpuctx)
2178  event_sched_out(event, cpuctx, ctx)
2179  如果flags按位与DETACH_GROUPperf_group_detach(event)
2181  Remove an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.
2183  如果非nr_eventsis_active
2184  is_active等于0
2185  如果task
2187  task_ctx = NULL
调用者
名称描述
__perf_event_exit_context