Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\gcov\clang.c Create Date:2022-07-28 11:33:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:gcov_iter_new - allocate and initialize profiling data iterator*@info: profiling data set to be iterated* Return file iterator on success, %NULL otherwise.

Proto:struct gcov_iterator *gcov_iter_new(struct gcov_info *info)

Type:struct gcov_iterator

Parameter:

TypeParameterName
struct gcov_info *info
494  iter = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
495  If Not iter Then Go to err_free
498  info = info
500  size = vert_to_gcda - convert profiling data set to gcda file format*@buffer: the buffer to store file data or %NULL if no data should be stored*@info: profiling data set to be converted
501  buffer = vmalloc(size)
502  If Not buffer Then Go to err_free
505  vert_to_gcda - convert profiling data set to gcda file format*@buffer: the buffer to store file data or %NULL if no data should be stored*@info: profiling data set to be converted
507  Return iter
509  err_free :
510  kfree(iter)
511  Return NULL