intel_pt_last_psb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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