STRUCT CALL_RETURN(9)
π struct call_return(9) π
okay bestie, welcome to the struct call_return page β it's from the Kernel API Manual and it's literally all about paired call/return information. think of it as the receipts for a function call and its return, matched up like two halves of a friendship bracelet. π«Ά
β¨ SYNOPSIS β¨
struct call_return {
struct thread *thread;
struct comm *comm;
struct call_path *cp;
u64 call_time;
u64 return_time;
u64 branch_count;
u64 insn_count;
u64 cyc_count;
u64 call_ref;
u64 return_ref;
u64 db_id;
u64 parent_db_id;
u32 flags;
};
that's the whole struct, no cap. every field is iconic in its own way, and we're about to go through them one by one π
πΈ Members πΈ
threadβ the thread in which the call/return occurred. the main character, basically π§commβ the comm in which the call/return occurred. yes, its own field, don't ask, it's giving thorough.cpβ the call path. the whole scenic route of how we got here π¦call_timeβ timestamp of the call (if known). note the if known β sometimes we just don't know, and that's okay πreturn_timeβ timestamp of the return (if known). same vibe check as above β¨branch_countβ number of branches seen between the call and the return. counting the plot twists π₯insn_countβ approx. number of instructions between the call and the return. key word approx., we're not doing exact math here nglcyc_countβ approx. number of cycles between the call and the return. also approximate, also slaying βcall_refβ external reference to the'call'sample (e.g.db_id). it's a pointer to the call's other identity, iykykreturn_refβ external reference to the'return'sample (e.g.db_id). same but for the return half πdb_idβ id used for db-export. that's it, that's the field πparent_db_idβ id of the parent call, used for db-export. the parent call is so main character energy πflagsβ the Call/Return flags. unspecified flags, unspecified vibes, we love a mysterious icon π
π¦ SEE ALSO π¦
- Kernel file
./tools/perf/util/thread-stack.hstruct call_return_processor(9)
go read those too bestie, fr fr β this struct does not exist in a vacuum π
and that's the page!! a little sign-off from the source files: this masterpiece lives under ./tools/perf/util, dated October 2026, and it's filed as struct call_return(9). mwah, periodt πβ¨
π¦ 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