video: driver: add buffer statistics logic

Added change to print etb, ebd, ftb, fbd,
(ebd-etb), (fbd - etb), (etb-ftb) wallclock
time in ms.

It will help to debug perf issues.

Change-Id: Ideaecb2d51763711d6628729aa0f9056d05f0d51
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
This commit is contained in:
Govindaraj Rajagopal
2022-07-20 20:02:21 +05:30
committed by Gerrit - the friendly Code Review server
parent 912a80b094
commit 473e46f0cc
11 changed files with 210 additions and 3 deletions

View File

@@ -903,6 +903,8 @@ struct msm_vidc_buffer {
u64 timestamp;
enum msm_vidc_buffer_attributes attr;
u64 fence_id;
u32 start_time_ms;
u32 end_time_ms;
};
struct msm_vidc_buffers {
@@ -914,6 +916,24 @@ struct msm_vidc_buffers {
bool reuse;
};
struct msm_vidc_buffer_stats {
struct list_head list;
u32 frame_num;
u64 timestamp;
u32 etb_time_ms;
u32 ebd_time_ms;
u32 ftb_time_ms;
u32 fbd_time_ms;
u32 data_size;
u32 flags;
};
enum msm_vidc_buffer_stats_flag {
MSM_VIDC_STATS_FLAG_CORRUPT = BIT(0),
MSM_VIDC_STATS_FLAG_OVERFLOW = BIT(1),
MSM_VIDC_STATS_FLAG_NO_OUTPUT = BIT(2),
};
struct msm_vidc_sort {
struct list_head list;
s64 val;