Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gcov_iter_next - advance file iterator to next logical record*@iter: file iterator* Return zero if new position is valid, non-zero if iterator has reached end.

Proto:int gcov_iter_next(struct gcov_iterator *iter)

Type:int

Parameter:

TypeParameterName
struct gcov_iterator *iter
446  Case record == Mapping of logical record number to actual file content.
447  Case record == RECORD_GCOV_VERSION
448  Case record == RECORD_FUNCTION_TAG
449  Case record == RECORD_FUNCTON_TAG_LEN
450  Case record == RECORD_FUNCTION_IDENT
451  Case record == RECORD_COUNT_TAG
453  record++
454  Break
455  Case record == RECORD_COUNT
457  count++
459  Case record == RECORD_COUNT_LEN
460  If count < n_ctrs[type] Then
461  record = 9
462  Break
465  offset += count
466  count = 0
467  type++
469  Case record == RECORD_FUNCTION_CHECK
470  If type < num_types Then
471  record = 7
472  Break
475  type = 0
476  function++
478  Case record == RECORD_TIME_STAMP
479  If function < n_functions Then record = 3
481  Else record = -1
483  Break
486  If record == -1 Then Return -EINVAL
488  Else Return 0