STRUCT THREAD_STACK(9)
π struct thread_stack(9) β Kernel API Manual π
πΈ NAME πΈ
okay so bestie, this is the Kernel API Manual page for struct thread_stack β it's literally the thread stack constructed from 'call' and 'return' branch samples. no cap, that's the whole NAME vibe. β¨
π¦ SYNOPSIS π¦
struct thread_stack {
struct thread_stack_entry *stack;
size_t cnt;
size_t sz;
u64 trace_nr;
u64 branch_count;
u64 insn_count;
u64 cyc_count;
u64 kernel_start;
u64 last_time;
struct call_return_processor *crp;
struct comm *comm;
unsigned int arr_sz;
enum retpoline_state_t rstate;
struct branch_stack *br_stack_rb;
unsigned int br_stack_sz;
unsigned int br_stack_pos;
bool mispred_all;
};
π Members π
bestie, here's the member-by-member tour, and every single one is staying in the group chat:
stackβ array that holds the stack. the icon. πcntβ number of entries in the stack. count 'em. π₯szβ current maximum stack size. πtrace_nrβ current trace number. πbranch_countβ running branch count. π¦insn_countβ running instruction count. πΈcyc_countβ running cycle count. βkernel_startβ kernel start address. πlast_timeβ last timestamp. π°οΈcrpβ call/return processor. πcommβ current comm. π«Άarr_szβ size of array if this is the first element of an array. πrstateβ used to detect retpolines. πbr_stack_rbβ branch stack (ring buffer). πbr_stack_szβ maximum branch stack size. πbr_stack_posβ current position inbr_stack_rb. π§mispred_allβ mark all branches as mispredicted. yeah, all of them. π
π₯ SEE ALSO π₯
- Kernel file
./tools/perf/util/thread-stack.candstruct thread_stack_entry(9)β go peek, iykyk. π«Ά
mwah π source/version is ./tools/perf/util, the date is October 2026, and this whole page is struct thread_stack(9). byeee π¦π
π¦ 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