intel_pt_last_psb(9)
π intel_pt_last_psb(9) β like, the Kernel API Manual bestie, section 9
okay so real talk, this page is from the Kernel API Manual and it's called intel_pt_last_psb(9) β yes the 9 is part of the name, it's giving kernel-internals-only, iykyk π§
β¨ NAME β¨
intel_pt_last_psb β find the last PSB packet in a buffer. that's it. that's the whole gig π
π¦ SYNOPSIS π¦
unsigned char * intel_pt_last_psb (unsigned char *buf , size_t len );
look at her go. one function, two args, returns a pointer. main character energy honestly π
πΈ ARGUMENTS πΈ
bufβ the buffer. the actual bytes we're snooping through π΅οΈββοΈlenβ size of buffer. how much of it we're allowed to look at, no going past the edge bestie π§
π DESCRIPTION π
so basically: this function finds the last PSB in a buffer. that's the description. that's literally the whole thing. lowkey iconic that they didn't over-explain it, periodt π
β RETURN β
- a pointer to the last PSB in
bufβ if it's found π NULLβ if it is not found π
no cap, that's the full contract. check for NULL, bestie, or you're gonna have a bad time π
π SEE ALSO π
the source lives in the kernel file right here, go read it fr fr:
./tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
and the whole friend group shows up too:
intel_pt_next_psb(9)intel_pt_step_psb(9)intel_pt_next_tsc(9)intel_pt_tsc_cmp(9)adj_for_padding(9)intel_pt_find_overlap_tsc(9)intel_pt_find_overlap(9)struct fast_forward_data(9)intel_pt_ff_cb(9)intel_pt_fast_forward(9)
squad goals honestly π«Ά
ok that's the whole page! tiny page, huge vibes. go find your last PSB and slay β¨
sign-off time π this little love letter comes to you from source ./tools/perf/util/intel-pt-dec... and it's dated October 2026 β same intel_pt_last_psb(9) energy, forever and always π
π¦ 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