Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a88bc2c authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

msm: vidc: Add trace class and event for buffer counters



ETB, EBD, FTB, FBD counts are helpful in analysing performance
metrics. Especially to identify starvation.

CRs-Fixed: 2478887
Change-Id: I1fcd134fec331a1550ed4e7249aa1ec6531cb46a
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent 95ec895e
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
@@ -137,6 +137,47 @@ DEFINE_EVENT(venus_hfi_var, venus_hfi_var_done,
	TP_ARGS(cp_start, cp_size, cp_nonpixel_start, cp_nonpixel_size)
);

DECLARE_EVENT_CLASS(msm_v4l2_vidc_count_events,

	TP_PROTO(char *event_type,
		 u32 etb, u32 ebd, u32 ftb, u32 fbd),

	TP_ARGS(event_type, etb, ebd, ftb, fbd),

	TP_STRUCT__entry(
		__field(char *, event_type)
		__field(u32, etb)
		__field(u32, ebd)
		__field(u32, ftb)
		__field(u32, fbd)
	),

	TP_fast_assign(
		__entry->event_type = event_type;
		__entry->etb = etb;
		__entry->ebd = ebd;
		__entry->ftb = ftb;
		__entry->fbd = fbd;
	),

	TP_printk(
		"%s, ETB %u EBD %u FTB %u FBD %u",
		__entry->event_type,
		__entry->etb,
		__entry->ebd,
		__entry->ftb,
		__entry->fbd)
);

DEFINE_EVENT(msm_v4l2_vidc_count_events, msm_v4l2_vidc_buffer_counter,

	TP_PROTO(char *event_type,
		u32 etb, u32 ebd, u32 ftb, u32 fbd),

	TP_ARGS(event_type,
		etb, ebd, ftb, fbd)
);

DECLARE_EVENT_CLASS(msm_v4l2_vidc_buffer_events,

	TP_PROTO(char *event_type, u32 device_addr, int64_t timestamp,