STRUCT HISI_PTT_PMU_BUF(9)
π struct hisi_ptt_pmu_buf(9) π
okay so bestie, welcome to the Kernel API Manual entry for struct hisi_ptt_pmu_buf β yes that's a whole mouthful, i know, but stay with me because this little struct is genuinely the main character of PTT tracing's AUX buffer situation π
β¨ NAME β¨
struct hisi_ptt_pmu_buf β the descriptor of the AUX buffer of PTT trace. that's it, that's the vibe. it's literally the lil info card that tells everyone what the AUX buffer looks like π¦
πΈ SYNOPSIS πΈ
struct hisi_ptt_pmu_buf {
size_t length;
int nr_pages;
void *base;
long pos;
};
not me formatting that exactly right because the facts do NOT change, periodt π
π Members π
okay so here's the cast of characters, one field at a time, no skips, no cuts:
lengthβ the size of the AUX buffer. how much room we're working with, bestie πnr_pagesβ the number of pages of the AUX buffer. yes we're counting pages, it's giving very organized ποΈbaseβ the start address of the AUX buffer. the literal starting point of everything, lowkey iconic πposβ the position in the AUX buffer to commit traced data. this is where the traced data actually gets committed, so it's highkey the important one π
π¦ SEE ALSO π¦
the friend group, the whole squad, the iykyk circle:
- Kernel file
./drivers/hwtracing/ptt/hisi_ptt.hstructhisi_ptt_tune_desc(9),struct hisi_ptt_dma_buffer(9),struct hisi_ptt_trace_ctrl(9),struct hisi_ptt_filter_desc(9),struct hisi_ptt_filter_update_info(9),struct hisi_ptt(9)
like, go read those too if you wanna be fully caught up, fr fr π«Ά
ok that's genuinely the whole page β short and sweet, just like a good group chat message. go forth and trace those AUX buffers π
this lil page lives at ./drivers/hwtracing/ptt and it's stamped October 2026 β so like, future energy β¨ slay, bye bestie! π
π¦ 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