函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_sync_stat

函数原型:static void perf_event_sync_stat(struct perf_event_context *ctx, struct perf_event_context *next_ctx)

返回类型:void

参数:

类型参数名称
struct perf_event_context *ctx
struct perf_event_context *next_ctx
3180  如果非nr_stat则返回
3183  update_context_time(ctx)
3185  event等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & event_list, structperf_event, event_entry)
3188  next_event等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & event_list, structperf_event, event_entry)
3191 event_entry不等于event_listevent_entry不等于event_list循环
3194  __perf_event_sync_stat(event, next_event)
3196  event等于list_next_entry - get the next element in list*@pos: the type * to cursor*@member: the name of the list_head within the struct.(event, event_entry)
3197  next_event等于list_next_entry - get the next element in list*@pos: the type * to cursor*@member: the name of the list_head within the struct.(next_event, event_entry)
调用者
名称描述
perf_event_context_sched_out