STRUCT CALL_RETURN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 ngl
  • cyc_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, iykyk
  • return_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.h struct
  • 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