Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_mmap_output

Proto:static void perf_event_mmap_output(struct perf_event *event, void *data)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
void *data
7615  mmap_event = data
7618  size = size
7619  type = type
7622  If Not perf_event_mmap_match(event, data) Then Return
7625  If mmap2 Then
7626  type = PERF_RECORD_MMAP2
7627  size += size of maj
7628  size += size of min
7629  size += size of ino
7630  size += size of ino_generation
7631  size += size of prot
7632  size += size of flags
7635  perf_event_header__init_id( & header, & sample, event)
7636  ret = perf_output_begin( & handle, event, size)
7638  If ret Then Go to out
7641  pid = perf_event_pid(event, current process)
7642  tid = perf_event_tid(event, current process)
7644  perf_output_put( & handle, event_id)
7646  If mmap2 Then
7647  perf_output_put( & handle, maj)
7648  perf_output_put( & handle, min)
7649  perf_output_put( & handle, ino)
7650  perf_output_put( & handle, ino_generation)
7651  perf_output_put( & handle, prot)
7652  perf_output_put( & handle, flags)
7655  __output_copy( & handle, file_name, file_size)
7658  perf_event__output_id_sample(event, & handle, & sample)
7660  perf_output_end( & handle)
7661  out :
7662  size = size
7663  type = type