drm/msm: dpu: Add extra_flush_bits to trigger_flush trace
authorSean Paul <seanpaul@chromium.org>
Wed, 19 Sep 2018 18:33:49 +0000 (14:33 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 4 Oct 2018 00:24:53 +0000 (20:24 -0400)
It's useful to know which bits of the flush come from extra_flush_bits

Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h

index e56f291901211f76f9dd206abb9c1a4c679fcb69..8f6880db5c996394c761d140d8fac560913d57dd 100644 (file)
@@ -1444,7 +1444,8 @@ static inline void _dpu_encoder_trigger_flush(struct drm_encoder *drm_enc,
                ret = ctl->ops.get_pending_flush(ctl);
 
        trace_dpu_enc_trigger_flush(DRMID(drm_enc), phys->intf_idx,
-                                   pending_kickoff_cnt, ctl->idx, ret);
+                                   pending_kickoff_cnt, ctl->idx,
+                                   extra_flush_bits, ret);
 }
 
 /**
index 0be51db02f2e607d5f6fc8e66276f97936ac691c..ae6b0c51ba5208bc078f66df648c57b9a84a4408 100644 (file)
@@ -468,14 +468,16 @@ TRACE_EVENT(dpu_enc_frame_done_cb,
 
 TRACE_EVENT(dpu_enc_trigger_flush,
        TP_PROTO(uint32_t drm_id, enum dpu_intf intf_idx,
-                int pending_kickoff_cnt, int ctl_idx, u32 pending_flush_ret),
+                int pending_kickoff_cnt, int ctl_idx, u32 extra_flush_bits,
+                u32 pending_flush_ret),
        TP_ARGS(drm_id, intf_idx, pending_kickoff_cnt, ctl_idx,
-               pending_flush_ret),
+               extra_flush_bits, pending_flush_ret),
        TP_STRUCT__entry(
                __field(        uint32_t,       drm_id                  )
                __field(        enum dpu_intf,  intf_idx                )
                __field(        int,            pending_kickoff_cnt     )
                __field(        int,            ctl_idx                 )
+               __field(        u32,            extra_flush_bits        )
                __field(        u32,            pending_flush_ret       )
        ),
        TP_fast_assign(
@@ -483,12 +485,14 @@ TRACE_EVENT(dpu_enc_trigger_flush,
                __entry->intf_idx = intf_idx;
                __entry->pending_kickoff_cnt = pending_kickoff_cnt;
                __entry->ctl_idx = ctl_idx;
+               __entry->extra_flush_bits = extra_flush_bits;
                __entry->pending_flush_ret = pending_flush_ret;
        ),
        TP_printk("id=%u, intf_idx=%d, pending_kickoff_cnt=%d ctl_idx=%d "
-                 "pending_flush_ret=%u", __entry->drm_id,
-                 __entry->intf_idx, __entry->pending_kickoff_cnt,
-                 __entry->ctl_idx, __entry->pending_flush_ret)
+                 "extra_flush_bits=0x%x pending_flush_ret=0x%x",
+                 __entry->drm_id, __entry->intf_idx,
+                 __entry->pending_kickoff_cnt, __entry->ctl_idx,
+                 __entry->extra_flush_bits, __entry->pending_flush_ret)
 );
 
 DECLARE_EVENT_CLASS(dpu_enc_ktime_template,