intel_pt_compare_buffers(9)
β¨ NAME β¨
okay bestie, welcome to the intel_pt_compare_buffers(9) page from the Kernel API Manual β it's literally about comparing bytes in a buffer to a circular buffer, and yes, it ate π
πΈ SYNOPSIS πΈ
bool intel_pt_compare_buffers (void *buf1 , size_t compare_size , void *buf2 , size_t offs2 , size_t buf2_size );
π ARGUMENTS π
buf1β the first buffer, bestie. first one. the OG.compare_sizeβ how many bytes we're comparing. the amount. the count. periodt.buf2β the second buffer, and plot twist: it's a circular buffer πoffs2β the offset in the second buffer. where we start vibing insidebuf2.buf2_sizeβ the size of the second buffer. its whole capacity, no cap.
π¦ DESCRIPTION π¦
so the comparison allows for the possibility that the bytes to compare in the circular buffer are not contiguous π like they might be split across the wrap-around situation, and this function is built for that.
it is assumed that compare_size <= buf2_size β that's the vibe check the function is assuming, so pls respect it π«Ά
this function returns false if the bytes are identical, and true otherwise. yes, that's the whole assignment. identical = false, not identical = true. iconic behavior honestly π
β SEE ALSO β
- Kernel file
./tools/perf/arch/x86/util/intel-pt.cβ go read it, iykyk π₯
signing off from ./tools/perf/arch/x86/util, dated October 2026 β mwah πβ¨
π¦ 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