函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Holding the top-level event's child_mutex means that any* descendant process that has inherited this event will block* in perf_event_exit_event() if it goes to exit, thus satisfying the* task existence requirements of perf_event_enable/disable.

函数原型:static void perf_event_for_each_child(struct perf_event *event, void (*func)(struct perf_event *))

返回类型:void

参数:

类型参数名称
struct perf_event *event
void (*func
5114  WARN_ON_ONCE(parent_ctx)
5116  mutex_lock( & child_mutex)
5117  func(event)
5118  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(child, & child_list, child_list)
5119  func(child)
5120  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
调用者
名称描述
perf_event_for_each
_perf_ioctl
perf_event_task_enable
perf_event_task_disable
perf_event_set_addr_filter