函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\ring_buffer.c Create Date:2022-07-27 15:03:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Copy out AUX data from an AUX handle.

函数原型:long perf_output_copy_aux(struct perf_output_handle *aux_handle, struct perf_output_handle *handle, unsigned long from, unsigned long to)

返回类型:long

参数:

类型参数名称
struct perf_output_handle *aux_handle
struct perf_output_handle *handle
unsigned longfrom
unsigned longto
572  len等于0
573  rb等于rb
576  from与等于aux_nr_pages左移PAGE_SHIFT determines the page size 位的值减1
577  to与等于aux_nr_pages左移PAGE_SHIFT determines the page size 位的值减1
579  循环
580  tocopy等于PAGE_SIZEoffset_in_page(from)
581  如果to大于fromtocopy等于两数取小(tocopy, to - from)
583  如果非tocopy退出
586  addr等于aux_pages[from >> PAGE_SHIFT determines the page size ]
587  addr加等于offset_in_page(from)
589  remainder等于perf_output_copy(handle, addr, tocopy)
590  如果remainder则返回:负EFAULT
593  len加等于tocopy
594  from加等于tocopy
595  from与等于aux_nr_pages左移PAGE_SHIFT determines the page size 位的值减1
596 to不等于from循环
598  返回:len