STRUCT HVA_CTX_DBG(9)
π 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βtrueif the sequence is valid for performance.beginβ start time of last HW task.total_durationβ total HW processing durations in0.1ms.cnt_durationβ number of HW processings.min_durationβ minimum HW processing duration in0.1ms.max_durationβ maximum HW processing duration in0.1ms.avg_durationβ average HW processing duration in0.1ms.max_fpsβ maximum frames encoded per second (in0.1Hz).total_periodβ total encoding periods in0.1ms.cnt_periodβ number of periods.min_periodβ minimum encoding period in0.1ms.max_periodβ maximum encoding period in0.1ms.avg_periodβ average encoding period in0.1ms.total_stream_sizeβ total number of encoded bytes.avg_fpsβ average frames encoded per second (in0.1Hz).window_durationβ duration of the sampling window in0.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 inkbps.max_bitrateβ maximum bitrate inkbps.avg_bitrateβ average bitrate inkbps.
π 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
- 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