STRUCT HVA_CTX_DBG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is struct hva_ctx_dbg(9) from the Kernel API Manual β€” literally the instance context debug info struct, and it's giving β€œdebug stats but make it a whole struct” main character energy. no cap. πŸ’…

✨ SYNOPSIS ✨

here's the whole struct exactly as it appears, bestie β€” don't let the alignment jumpscare you:

       struct hva_ctx_dbg {
           struct dentry   *debugfs_entry;
           bool is_valid_period;
           ktime_t begin;
           u32 total_duration;
           u32 cnt_duration;
           u32 min_duration;
           u32 max_duration;
           u32 avg_duration;
           u32 max_fps;
           u32 total_period;
           u32 cnt_period;
           u32 min_period;
           u32 max_period;
           u32 avg_period;
           u32 total_stream_size;
           u32 avg_fps;
           u32 window_duration;
           u32 cnt_window;
           u32 window_stream_size;
           u32 last_bitrate;
           u32 min_bitrate;
           u32 max_bitrate;
           u32 avg_bitrate;
        };

πŸŽ€ Members πŸŽ€

the struct's members, aka the little besties inside β€” obsessed:

  • debugfs_entry β€” debugfs entry. iconic.
  • is_valid_period β€” true if the sequence is valid for performance.
  • begin β€” start time of last HW task.
  • total_duration β€” total HW processing durations in 0.1ms.
  • cnt_duration β€” number of HW processings.
  • min_duration β€” minimum HW processing duration in 0.1ms.
  • max_duration β€” maximum HW processing duration in 0.1ms.
  • avg_duration β€” average HW processing duration in 0.1ms.
  • max_fps β€” maximum frames encoded per second (in 0.1Hz).
  • total_period β€” total encoding periods in 0.1ms.
  • cnt_period β€” number of periods.
  • min_period β€” minimum encoding period in 0.1ms.
  • max_period β€” maximum encoding period in 0.1ms.
  • avg_period β€” average encoding period in 0.1ms.
  • total_stream_size β€” total number of encoded bytes.
  • avg_fps β€” average frames encoded per second (in 0.1Hz).
  • window_duration β€” duration of the sampling window in 0.1ms.
  • cnt_window β€” number of samples in the window.
  • window_stream_size β€” number of encoded bytes upon the sampling window β€” yes, upon, that's the word, no cap.
  • last_bitrate β€” bitrate upon the last sampling window.
  • min_bitrate β€” minimum bitrate in kbps.
  • max_bitrate β€” maximum bitrate in kbps.
  • avg_bitrate β€” average bitrate in kbps.

🌈 SEE ALSO 🌈

check out the Kernel file ./drivers/media/platform/st/sti/hva/hva.h and its struct besties: struct hva_frameinfo(9), struct hva_streaminfo(9), struct hva_controls(9), struct hva_frame(9), struct hva_stream(9), struct hva_ctx(9), struct hva_dev_dbg(9), struct hva_dev(9), and struct hva_enc(9). yeah, it's a whole friend group, iykyk πŸ’…


okay bye bestie 🫢 this page lives at ./drivers/media/platform/st/st..., dated October 2026, and it's all about struct hva_ctx_dbg(9) β€” slay, mwah πŸ’–

πŸ“¦ where this page comes from