stack_trace_print(9)
π stack_trace_print(9) β a.k.a. the "bestie, print my stack trace" era
okay so real talk, this is a page from the Kernel API Manual and it's lowkey iconic. it's stack_trace_print(9) and it does exactly one thing: it prints out the entries in a stack trace. that's it. that's the whole vibe. no cap. π«Ά
β¨ NAME β¨
stack_trace_print β literally just prints the entries in the stack trace. slay.
πΈ SYNOPSIS πΈ
void stack_trace_print (const unsigned long *entries , unsigned int
nr_entries , int spaces );
void return, three args, no notes. the way that signature just works. π
π¦ ARGUMENTS π¦
okay bestie here's the breakdown, one by one, no skipping:
entriesβ pointer to the storage array. it's giving "here's where the data lives". πnr_entriesβ number of entries in the storage array. yes, it's the count. yes, you need it. the array does not come with a little nametag, so tell it. πspacesβ number of leading spaces to print. it's the indentation parameter. it's the "make it cute and aligned" parameter. π
ngl, spaces is such a main character move for an argument that just adds whitespace. but we respect it.
π§ SEE ALSO π§
the whole squad, in the order the page gave them, duplicates included β because we don't edit the group chat roster:
- Kernel file
./kernel/stacktrace.c stack_trace_snprint(9)stack_trace_save(9)stack_trace_save_tsk(9)stack_trace_save_regs(9)stack_trace_save_tsk_reliable(9)stack_trace_save_user(9)stack_trace_save(9)stack_trace_save_tsk(9)stack_trace_save_regs(9)stack_trace_save_tsk_reliable(9)stack_trace_save_user(9)filter_irq_stacks(9)
and yeah, some of them are in there twice. that's not me being messy, that's the source material. iykyk. π
β¨ cute little sign-off β¨
this whole situation lives in ./kernel, and it's dated October 2026, page name stack_trace_print(9). go forth and print those traces, bestie. π π β
π¦ 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