函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_stop

函数原型:static int perf_event_stop(struct perf_event *event, int restart)

返回类型:int

参数:

类型参数名称
struct perf_event *event
intrestart
2907  struct stop_event_data sd = {event = event, restart = restart, }
2911  ret等于0
2913  循环
2914  如果READ_ONCE(state)不等于PERF_EVENT_STATE_ACTIVE则返回:0
2918  smp_rmb()
2925  ret等于pu_function_call - call a function on the cpu*@func: the function to be called*@info: the function call argument* Calls the function @func on the remote cpu.* returns: @func return value or -ENXIO when the cpu is offline
2927 ret恒等于负EAGAIN循环
2929  返回:ret
调用者
名称描述
ring_buffer_attach
perf_event_addr_filters_execClear all file-based filters at exec, they'll have to be* re-instated when/if these objects are mmapped again.
__perf_addr_filters_adjust
perf_event_addr_filters_applyUpdate event's address range filters based on the* task's existing mappings, if any.