STRUCT HISI_PTT_PMU_BUF(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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.h struct hisi_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