STRUCT GCOV_FN_INFO(9)
π struct gcov_fn_info(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual page for struct gcov_fn_info(9) β this is the profiling meta data per function situation, and it's lowkey iconic. π«Ά
β¨ NAME β¨
struct gcov_fn_info β profiling meta data per function. periodt. π
π¦ SYNOPSIS π¦
struct gcov_fn_info {
const struct gcov_info *key;
unsigned int ident;
unsigned int lineno_checksum;
unsigned int cfg_checksum;
struct gcov_ctr_info ctrs[];
};
π Members π
keyβ comdat key. it's the vibe check for comdat selection.identβ unique ident of function. main character ID, fr fr. πlineno_checksumβ functionlineo_checksum. yes,lineo_checksumβ that's what the page says, bestie; keep it cute and keep it exact. πcfg_checksumβ function cfg checksum.ctrsβ instrumented counters. the trailing-array era has entered the chat. β¨
πΈ DESCRIPTION πΈ
okay so this data is generated by gcc during compilation and doesn't change at run-time. no cap β compile-time only, bestie. π
This is information about a single function. It uses the trailing array idiom β yes, the ctrs[] situation at the end. The number of counters is determined from the merge pointer array in gcov_info. π
The key is used to detect which of a set of comdat functions was selected β it points to the gcov_info object of the object file containing the selected comdat function. iykyk. π₯
π SEE ALSO π
- Kernel file
./kernel/gcov/gcc_4_7.c struct gcov_ctr_info(9)struct gcov_info(9)gcov_info_filename(9)gcov_info_version(9)gcov_info_next(9)gcov_info_link(9)gcov_info_unlink(9)gcov_info_within_module(9)gcov_info_reset(9)gcov_info_is_compatible(9)gcov_info_add(9)gcov_info_dup(9)gcov_info_free(9)convert_to_gcda(9)
mwah π β this gem came from source/version ./kernel/gcov, date October 2026, and the whole thing is giving kernel-doc royalty. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms