函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_prepare_sample_aux

函数原型:static unsigned long perf_prepare_sample_aux(struct perf_event *event, struct perf_sample_data *data, size_t size)

返回类型:unsigned long

参数:

类型参数名称
struct perf_event *event
struct perf_sample_data *data
size_tsize
6277  sampler等于aux_event
6280  aux_size等于0
6282  如果非sampler则转到:out
6285  如果WARN_ON_ONCE(READ_ONCE(state) != PERF_EVENT_STATE_ACTIVE)则转到:out
6288  如果WARN_ON_ONCE(READ_ONCE(oncpu) != 当前cpu ID())则转到:out
6291  rb等于ring_buffer_get(parent ? parent : sampler)
6292  如果非rb则转到:out
6299  如果READ_ONCE(aux_in_sampling)则
6300  aux_size等于0
6301  否则
6302  size等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, size, perf_aux_size(rb))
6303  aux_size等于@a is a power of 2 value (size, sizeof(u64))
6305  ring_buffer_put(rb)
6307  out :
6308  返回:aux_size
调用者
名称描述
perf_prepare_sample