intel_pt_step_psb(9)
π intel_pt_step_psb β a little field guide
okay so bestie, welcome to the Kernel API Manual entry for intel_pt_step_psb, section 9. yes that's the whole vibe. buckle up π
β¨ NAME β¨
intel_pt_step_psb β move that buffer pointer to the start of the following PSB packet. literally its whole job. no cap. π¦
πΈ SYNOPSIS πΈ
bool intel_pt_step_psb (unsigned char **buf , size_t *len );
look at her. so small. so powerful. π
π§ ARGUMENTS π§
bufβ a pointer to a buffer pointer. yes, a double pointer. she's pointing at a pointer, we love a layered queen πlenβ size of buffer. the size. of the buffer. iykyk π
π DESCRIPTION π
so what she does is: she updates the buffer pointer so it points at the start of the following PSB packet β and important detail, she's skipping the PSB that's sitting at buf itself, if there is one. if there isn't one? the buffer pointer just stays exactly where it was. unchanged. no movement. we respect the vibe check π₯
and if buf does get updated, then len gets adjusted accordingly. they move together. main character energy, both of them β¨
β RETURN β
trueβ if a PSB packet is found πfalseβ otherwise π
π¦ SEE ALSO π¦
- Kernel file
./tools/perf/util/intel-pt-decoder/intel-pt-decoder.c intel_pt_next_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)
their whole friend group honestly. go read them too π«Ά
ngl the source line got snipped in the original, so here's the trace we've got: ./tools/perf/util/intel-pt-dec... β and it's dated October 2026. future-coded of her honestly. mwah, that's the whole page, periodt π
π¦ 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