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:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:gcov_iter_write - write data for current pos to seq_file*@iter: file iterator*@seq: seq_file handle* Return zero on success, non-zero otherwise.

Proto:int gcov_iter_write(struct gcov_iterator *iter, struct seq_file *seq)

Type:int

Parameter:

TypeParameterName
struct gcov_iterator *iter
struct seq_file *seq
534  rc = -EINVAL
537  Case record == Mapping of logical record number to actual file content.
538  rc = seq_write_gcov_u32 - write 32 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file.
539  Break
540  Case record == RECORD_GCOV_VERSION
541  rc = seq_write_gcov_u32 - write 32 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file.
542  Break
543  Case record == RECORD_TIME_STAMP
544  rc = seq_write_gcov_u32 - write 32 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file.
545  Break
546  Case record == RECORD_FUNCTION_TAG
547  rc = seq_write_gcov_u32 - write 32 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file.
548  Break
549  Case record == RECORD_FUNCTON_TAG_LEN
550  rc = seq_write_gcov_u32 - write 32 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file.
551  Break
552  Case record == RECORD_FUNCTION_IDENT
553  rc = seq_write_gcov_u32 - write 32 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file.
554  Break
555  Case record == RECORD_FUNCTION_CHECK
556  rc = seq_write_gcov_u32 - write 32 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file.
557  Break
558  Case record == RECORD_COUNT_TAG
559  rc = seq_write_gcov_u32 - write 32 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file.
561  Break
562  Case record == RECORD_COUNT_LEN
563  rc = seq_write_gcov_u32 - write 32 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file.
565  Break
566  Case record == RECORD_COUNT
567  rc = seq_write_gcov_u64 - write 64 bit number in gcov format to seq_file*@seq: seq_file handle*@v: value to be stored* Number format defined by gcc: numbers are recorded in the 32 bit* unsigned binary form of the endianness of the machine generating the* file
570  Break
572  Return rc