STRUCT GCOV_NODE(9)
β¨ NAME β¨
Okay bestie, this is struct gcov_node(9) in the Kernel API Manual, and the NAME tea is literally: struct gcov_node β represents a debugfs entry. It's giving main character energy in the kernel's gcov/ corner, and we're obsessed. π
πΈ SYNOPSIS πΈ
Here's the struct exactly as it is β do not come for the braces, they're iconic:
struct gcov_node {
struct list_head list;
struct list_head children;
struct list_head all;
struct gcov_node *parent;
struct gcov_info **loaded_info;
struct gcov_info *unloaded_info;
struct dentry *dentry;
struct dentry **links;
int num_loaded;
char name[];
};
π Members π
listβ list head for child node list.childrenβ child nodes. yes, it has children, mother is mothering. π«Άallβ list head for list of all nodes.parentβ parent node. every icon needs their ancestry, periodt.loaded_infoβ array of pointers to profiling data sets for loaded object files.unloaded_infoβ accumulated copy of profiling data sets for unloaded object files. Used only whengcov_persist=1. (so if that's not set, this one's lowkey just vibing.)dentryβ main debugfs entry, either a directory or data file.linksβ associated symbolic links.num_loadedβ number of profiling data sets for loaded object files.nameβ data file basename.
π¦ Description π¦
So struct gcov_node represents an entity within the gcov/ subdirectory of debugfs. There are directory nodes and data file nodes, both living their truth. The data file nodes are the ones that represent the actual synthesized data file plus any associated symbolic links, and those links are needed by the gcov tool to work correctly. That's the whole vibe check β no cap. β¨
π SEE ALSO π
Kernel file ./kernel/gcov/fs.c, plus the whole iterator crew:
struct gcov_iterator(9)gcov_iter_new(9)gcov_iter_free(9)gcov_iter_get_info(9)gcov_iter_start(9)gcov_iter_next(9)gcov_iter_write(9)
Signed off from ./kernel/gcov, October 2026 β struct gcov_node(9) π
π¦ 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