msm: mdss: add ftrace for per pipe qos configuration
Add ftraces to the qos luts, danger and safe per pipe configuration. Change-Id: I409ca413e5bf76fcdc6a565ac3c41f4f53aa4f29 Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
This commit is contained in:
parent
b7f5f9c937
commit
2ff5436517
2 changed files with 59 additions and 0 deletions
|
@ -155,6 +155,10 @@ int mdss_mdp_pipe_qos_lut(struct mdss_mdp_pipe *pipe)
|
|||
qos_lut = get_qos_lut_macrotile(total_fl);
|
||||
}
|
||||
|
||||
trace_mdp_perf_set_qos_luts(pipe->num, pipe->src_fmt->format,
|
||||
ctl->intf_num, pipe->mixer_left->rotator_mode, total_fl,
|
||||
qos_lut, mdss_mdp_is_linear_format(pipe->src_fmt));
|
||||
|
||||
pr_debug("pnum:%d fmt:%d intf:%d rot:%d fl:%d lut:0x%x\n",
|
||||
pipe->num, pipe->src_fmt->format, ctl->intf_num,
|
||||
pipe->mixer_left->rotator_mode, total_fl, qos_lut);
|
||||
|
@ -194,6 +198,9 @@ static void mdss_mdp_config_pipe_panic_lut(struct mdss_mdp_pipe *pipe)
|
|||
mdss_mdp_pipe_write(pipe, MDSS_MDP_REG_SSPP_SAFE_LUT,
|
||||
robust_lut);
|
||||
|
||||
trace_mdp_perf_set_panic_luts(pipe->num, pipe->src_fmt->format,
|
||||
pipe->src_fmt->fetch_mode, panic_lut, robust_lut);
|
||||
|
||||
pr_debug("pnum:%d fmt:%d mode:%d luts[0x%x, 0x%x]\n",
|
||||
pipe->num, pipe->src_fmt->format, pipe->src_fmt->fetch_mode,
|
||||
panic_lut, robust_lut);
|
||||
|
|
|
@ -85,6 +85,58 @@ DEFINE_EVENT(mdp_sspp_template, mdp_sspp_change,
|
|||
TP_ARGS(pipe)
|
||||
);
|
||||
|
||||
TRACE_EVENT(mdp_perf_set_qos_luts,
|
||||
TP_PROTO(u32 pnum, u32 fmt, u32 intf, u32 rot, u32 fl,
|
||||
u32 lut, bool linear),
|
||||
TP_ARGS(pnum, fmt, intf, rot, fl, lut, linear),
|
||||
TP_STRUCT__entry(
|
||||
__field(u32, pnum)
|
||||
__field(u32, fmt)
|
||||
__field(u32, intf)
|
||||
__field(u32, rot)
|
||||
__field(u32, fl)
|
||||
__field(u32, lut)
|
||||
__field(bool, linear)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->pnum = pnum;
|
||||
__entry->fmt = fmt;
|
||||
__entry->intf = intf;
|
||||
__entry->rot = rot;
|
||||
__entry->fl = fl;
|
||||
__entry->lut = lut;
|
||||
__entry->linear = linear;
|
||||
),
|
||||
TP_printk("pnum=%d fmt=%d intf=%d rot=%d fl:%d lut=0x%x lin:%d",
|
||||
__entry->pnum, __entry->fmt,
|
||||
__entry->intf, __entry->rot, __entry->fl,
|
||||
__entry->lut, __entry->linear)
|
||||
);
|
||||
|
||||
TRACE_EVENT(mdp_perf_set_panic_luts,
|
||||
TP_PROTO(u32 pnum, u32 fmt, u32 mode, u32 panic_lut,
|
||||
u32 robust_lut),
|
||||
TP_ARGS(pnum, fmt, mode, panic_lut, robust_lut),
|
||||
TP_STRUCT__entry(
|
||||
__field(u32, pnum)
|
||||
__field(u32, fmt)
|
||||
__field(u32, mode)
|
||||
__field(u32, panic_lut)
|
||||
__field(u32, robust_lut)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->pnum = pnum;
|
||||
__entry->fmt = fmt;
|
||||
__entry->mode = mode;
|
||||
__entry->panic_lut = panic_lut;
|
||||
__entry->robust_lut = robust_lut;
|
||||
),
|
||||
TP_printk("pnum=%d fmt=%d mode=%d luts[0x%x, 0x%x]",
|
||||
__entry->pnum, __entry->fmt,
|
||||
__entry->mode, __entry->panic_lut,
|
||||
__entry->robust_lut)
|
||||
);
|
||||
|
||||
TRACE_EVENT(mdp_perf_set_wm_levels,
|
||||
TP_PROTO(u32 pnum, u32 use_space, u32 priority_bytes, u32 wm0, u32 wm1,
|
||||
u32 wm2, u32 mb_cnt, u32 mb_size),
|
||||
|
|
Loading…
Add table
Reference in a new issue