Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:36:23
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_prepare_sample_aux

Proto:static unsigned long perf_prepare_sample_aux(struct perf_event *event, struct perf_sample_data *data, size_t size)

Type:unsigned long

Parameter:

TypeParameterName
struct perf_event *event
struct perf_sample_data *data
size_tsize
6277  sampler = aux_event
6280  aux_size = 0
6282  If Not sampler Then Go to out
6285  If WARN_ON_ONCE(READ_ONCE(state) != PERF_EVENT_STATE_ACTIVE) Then Go to out
6288  If WARN_ON_ONCE(READ_ONCE(oncpu) != smp_processor_id()) Then Go to out
6291  rb = ring_buffer_get(parent ? parent : sampler)
6292  If Not rb Then Go to out
6299  If READ_ONCE(aux_in_sampling) Then
6300  aux_size = 0
6301  Else
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  Return aux_size
Caller
NameDescribe
perf_prepare_sample