intel_pt_next_psb(9)
π intel_pt_next_psb(9) β like, the Kernel API Manual girlies know β¨
okay so bestie, welcome to the glow-up of intel_pt_next_psb, straight out of the Kernel API Manual (section 9, obvs β kernel API, not commands, we're fancy like that π).
β¨ NAME β¨
intel_pt_next_psb β moves the buffer pointer to the start of the next PSB packet. literally its whole personality π
π¦ SYNOPSIS π¦
bool intel_pt_next_psb (unsigned char **buf , size_t *len );
πΈ ARGUMENTS πΈ
bufβ a pointer to the buffer pointer. yes bestie, a pointer to a pointer, we're going double pointer today πlenβ the size of the buffer
π« DESCRIPTION π«
so what it does: it updates the buffer pointer so it points to the start of the next PSB packet, if there is one. if there isn't one? the buffer pointer just stays exactly where it was, no drama, no notes π
and if buf does get updated, then len gets adjusted accordingly to match. they move together, ride or die π€
π₯ RETURN π₯
trueβ a PSB packet was found, slay πfalseβ nope, no PSB packet, better luck next time π
π§ SEE ALSO π§
- Kernel file
./tools/perf/util/intel-pt-decoder/intel-pt-decoder.cβ the mothership, go say hi intel_pt_step_psb(9)intel_pt_last_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)
the whole friend group fr fr, iykyk π
mwah π that's the whole page! sourced from ./tools/perf/util/intel-pt-dec... and dated October 2026 β go forth and find those PSB packets, bestie, you've got main character energy today πβ
π¦ 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